We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Layer.input_size and Layer.output_size currently return int | ModelImageSize. A user must first type check the result to do anything with it.
Layer.input_size
Layer.output_size
int | ModelImageSize
TensorShape
dimensionality: int
get_size(dimension: int) -> int
dimension
_check_bounds
dimensionality
ModelImageSize
No response
The text was updated successfully, but these errors were encountered:
LIEeOoNn
xXstupidnameXx
Successfully merging a pull request may close this issue.
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: