Fix label_tensor.py doc (#543)

This commit is contained in:
Dario Coscia
2025-04-10 18:24:39 +02:00
parent 6dd7bd2825
commit d87a314722

View File

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