Closed AdilZouitine closed 3 years ago
Haha, it's definitely true I went a bit overboard on the tests.
I think duplicating every test with a -1
in test_shape.py, to also test for Any
, should be sufficient.
My PR is ready for the code review @patrick-kidger :smile:
Edit: I forgot README.md
and doc modification
English is not my mother tongue, so don't hesitate to correct me :smile:
I thank you for your reactivity, I will come back to you with new feature proposals when I will have spent more time using your library :smile:
LGTM. Thanks for contributing!
We can specify the arbitrary shape of a dimension using the Any type. Example:
any_tensor = TensorType[3, 3, Any, torch.float32]
I do not include the tests, to be honest, I am a bit lost on all the tests that you want. Could you clarify them for me @patrick-kidger ?
So that I can do them in the next commit.
Edit: I guess a
test/test_any.py
and a functiontest_any_dim
intest/test_shape.py