Skip to content

Commit 57dde9e

Browse files
committed
Fix.
Signed-off-by: Michał Zientkiewicz <[email protected]>
1 parent 0e962be commit 57dde9e

File tree

1 file changed

+2
-1
lines changed
  • dali/python/nvidia/dali/experimental/dali2

1 file changed

+2
-1
lines changed

dali/python/nvidia/dali/experimental/dali2/_tensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def _volume(shape: Tuple[int, ...]) -> int:
3232

3333

3434
def _is_tensor_type(x, nested_list_warning=False):
35-
if isinstance(x, Batch):
35+
from . import _batch
36+
if isinstance(x, _batch.Batch):
3637
raise ValueError("A list of Batchs is not a valid argument type")
3738
if isinstance(x, Tensor):
3839
return True

0 commit comments

Comments
 (0)