public class TorchTensor extends TorchReferenceable
| Modifier and Type | Field and Description |
|---|---|
int[] |
shape |
int |
startIndex |
TorchStorage |
storage |
index, torchName, version| Constructor and Description |
|---|
TorchTensor() |
| Modifier and Type | Method and Description |
|---|---|
<T extends TorchStorage> |
getStorage() |
int |
length() |
java.lang.String |
toString() |
public int[] shape
public int startIndex
public TorchStorage storage
public java.lang.String toString()
toString in class java.lang.Objectpublic int length()
public <T extends TorchStorage> T getStorage()