We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e962be commit 57dde9eCopy full SHA for 57dde9e
dali/python/nvidia/dali/experimental/dali2/_tensor.py
@@ -32,7 +32,8 @@ def _volume(shape: Tuple[int, ...]) -> int:
32
33
34
def _is_tensor_type(x, nested_list_warning=False):
35
- if isinstance(x, Batch):
+ from . import _batch
36
+ if isinstance(x, _batch.Batch):
37
raise ValueError("A list of Batchs is not a valid argument type")
38
if isinstance(x, Tensor):
39
return True
0 commit comments