-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
similar functions for from_tensor
to_tensor
from ragged api
#20731
Labels
type:support
User is asking for help / asking an implementation question. Stackoverflow would be better suited.
Comments
dhantule
added
the
type:support
User is asking for help / asking an implementation question. Stackoverflow would be better suited.
label
Jan 7, 2025
Is there any temp support for other backend (jax, torch)? |
I have the following setup (written in keras 3), works in tensorflow backend. Now, I'm thinking how to extend it to support torch and jax. class XYZ(Layer):
def __init__(
self, **kwargs
):
super().__init__(**kwargs)
...
def call(self, inputs):
if isinstance(inputs, tf.RaggedTensor):
inputs = inputs.to_tensor()
batch_size = ops.shape(inputs)[0]
clips_list = []
...
...
return <...>
model = VideoSwinT(
...
)
umodel = keras.Sequential(
[
keras.layers.InputLayer(shape=(32, 224, 224, 3)),
XYZ
model
]
) |
dhantule
added
the
keras-team-review-pending
Pending review by a Keras team member.
label
Jan 8, 2025
hertschuh
assigned divyashreepathihalli and hertschuh and unassigned divyashreepathihalli
Jan 8, 2025
hertschuh
removed
the
keras-team-review-pending
Pending review by a Keras team member.
label
Jan 12, 2025
hertschuh
added a commit
to hertschuh/keras
that referenced
this issue
Jan 13, 2025
hertschuh
added a commit
to hertschuh/keras
that referenced
this issue
Jan 13, 2025
Added `ragged` option to `KerasTensor`, `InputLayer` and `convert_to_tensor`. The logic is the same as for sparse tensors. Fixes keras-team#20731
hertschuh
added a commit
to hertschuh/keras
that referenced
this issue
Jan 13, 2025
Added `ragged` option to `KerasTensor`, `InputLayer` and `convert_to_tensor`. The logic is the same as for sparse tensors. Fixes keras-team#20731
hertschuh
added a commit
to hertschuh/keras
that referenced
this issue
Jan 14, 2025
Added `ragged` option to `KerasTensor`, `InputLayer` and `convert_to_tensor`. The logic is the same as for sparse tensors. Fixes keras-team#20731
hertschuh
added a commit
to hertschuh/keras
that referenced
this issue
Jan 14, 2025
Added `ragged` option to `KerasTensor`, `InputLayer` and `convert_to_tensor`. The logic is the same as for sparse tensors. Fixes keras-team#20731
1 similar comment
@innat , The feature has been added, you can use it tomorrow if you install It works like this: x = keras.ops.convert_to_tensor(x, ragged=False) This will densify any ragged tensor. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type:support
User is asking for help / asking an implementation question. Stackoverflow would be better suited.
I think ragged doesn't support yet. But is there any way to handle such following cases?
The text was updated successfully, but these errors were encountered: