namedtensor icon indicating copy to clipboard operation
namedtensor copied to clipboard

Discussion: Dim Labels

Open srush opened this issue 6 years ago • 0 comments

Some folks have suggested we might want to add optional dim labels as well. I was skeptical of this at first, but it might be worthwhile. For instance if you have sequence of word at each index, or the names of the final classes that might really help debugging.

Syntax proposal:

q = ntorch.ones(5, 7, names=("a", "b"), labels={"a": ["*pad*", "x", "y", "z", "*pad*"]})

srush avatar Feb 05 '19 16:02 srush