Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tensor ¶
type Tensor struct {
// Data holds the tensor values.
Data []interface{}
// Shape holds the tensor dimensions.
Shape []int
}
Tensor represents a multidimensional array of values.
func (*Tensor) Get ¶
Get retrieves a single value from the tensor given the indices specified. It returns an error if the indices provided are out of bounds.
Click to show internal directories.
Click to hide internal directories.