[Feature Request]: Adding the superset behaviour for Shape
class methods present in torch
and tf
#28617
Open
3 of 20 tasks
Labels
Is your feature request related to a problem? Please describe.
To fully support functionalities like serialization we need to support the behaviour of supported
Shape
instances in ivy backends and unify their behaviour across the backends.Describe the solution you'd like
An example is in
torch
when you're saving a tensor to disk and want to recreate it later. you can use a__getnewrags__
method oftorch.Size
class which helps to recreate the tensor later on.Describe alternatives you've considered
Additional context
Here is the list of suggested methods to be added for superset support.
For
torch.Size
class:__getnewargs__
#28655For the
tf.TensorShape
class:The text was updated successfully, but these errors were encountered: