Tensor holds a multi-dimensional array of elements of a single data type.
| 62 | |
| 63 | // Tensor holds a multi-dimensional array of elements of a single data type. |
| 64 | type Tensor struct { |
| 65 | c *C.TF_Tensor |
| 66 | shape []int64 |
| 67 | } |
| 68 | |
| 69 | // NewTensor converts from a Go value to a Tensor. Valid values are scalars, |
| 70 | // slices, and arrays. Every element of a slice must have the same length so |