DataType returns the scalar datatype of the Tensor.
()
| 155 | |
| 156 | // DataType returns the scalar datatype of the Tensor. |
| 157 | func (t *Tensor) DataType() DataType { return DataType(C.TF_TensorType(t.c)) } |
| 158 | |
| 159 | // Shape returns the shape of the Tensor. |
| 160 | func (t *Tensor) Shape() []int64 { return t.shape } |