Skip to content

Conversation

@Jackmin801
Copy link
Contributor

@Jackmin801 Jackmin801 commented Jan 17, 2023

This is because parametrizing them can cause them to be wrong when operations are performed.
We only need the parametrization during instantiation for validation.
After that, we make no guarantees about the shape.

Goals:

@github-actions github-actions bot added size/m and removed size/s labels Jan 18, 2023
@github-actions
Copy link

📝 Docs are deployed on https://ft-feat-994-dropshape--jina-docs.netlify.app 🎉

@samsja samsja merged commit ec241e0 into feat-rewrite-v2 Jan 25, 2023
@samsja samsja deleted the feat-994-dropshape branch January 25, 2023 12:29
JoanFM pushed a commit that referenced this pull request Jan 26, 2023
#1026)

* test: add tensor ops tests

Signed-off-by: Jackmin801 <[email protected]>

* feat: instances of parametrized types are not parametrized anymore

Signed-off-by: Jackmin801 <[email protected]>

* test: fix test that have been changed by this feature

Signed-off-by: Jackmin801 <[email protected]>

* refactor: change class name and add comments

Signed-off-by: Jackmin801 <[email protected]>

* test: add tests to make sure isinstance does not do coercion

Signed-off-by: Jackmin801 <[email protected]>

* fix: parametrized isinstance check should not perform coercion

Signed-off-by: Jackmin801 <[email protected]>

* test: add more tests to parametrized class name tests

Signed-off-by: Jackmin801 <[email protected]>

* style: small black fix

Signed-off-by: Jackmin801 <[email protected]>

Signed-off-by: Jackmin801 <[email protected]>
Signed-off-by: Joan Fontanals Martinez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants