-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tensor shape #857
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
Layer.input_size
andLayer.output_size
currently returnint | ModelImageSize
. A user must first type check the result to do anything with it.Desired solution
TensorShape
withdimensionality: int
. It should contain the number of indices required to access a scalar in the tensorget_size(dimension: int) -> int
. It should return the number of elements along the given dimension.dimension
< 0 (0-based indexing) - use_check_bounds
.dimension
>=dimensionality
.ModelImageSize
a subclass ofTensorShape
.Layer.input_size
andLayer.output_size
to return aTensorShape
instead.Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: