Closed AlbertMitjans closed 1 year ago
@dwierichs Do we allow batching with lists? Should we check this earlier on?
No, we do not allow this currently, and most operations will raise an error when used with batching with lists. I think we have the following options:
matrix
most likely is the problematic part). Again there would be multiple options where to check for this.What are use cases for batching with lists? Do we expect the restriction to batching with tensor_like
objects to be severe?
I would vote explicitly not supporting lists.
Expected behavior
The following code returns the matrix:
Actual behavior
The following code raises an error:
Additional information
An easy fix would be to cast the input parameters to a tensor object.
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues