Fix label_tensor.py doc (#543)

This commit is contained in:
Dario Coscia
2025-04-10 18:24:39 +02:00
committed by FilippoOlivo
parent 1bb3c125ac
commit bcac3a386b

View File

@@ -58,7 +58,7 @@ class LabelTensor(torch.Tensor):
>>> from pina import LabelTensor >>> from pina import LabelTensor
>>> tensor = LabelTensor( >>> tensor = LabelTensor(
>>> torch.rand((2000, 3)), >>> torch.rand((2000, 3)),
... {1: {"name": "space", "dof": ['a', 'b', 'c']) ... {1: {"name": "space", "dof": ['a', 'b', 'c']}})
>>> tensor = LabelTensor( >>> tensor = LabelTensor(
>>> torch.rand((2000, 3)), >>> torch.rand((2000, 3)),
... ["a", "b", "c"]) ... ["a", "b", "c"])