MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Tensor

Struct Tensor

tensorflow/go/tensor.go:64–67  ·  view source on GitHub ↗

Tensor holds a multi-dimensional array of elements of a single data type.

Source from the content-addressed store, hash-verified

62
63// Tensor holds a multi-dimensional array of elements of a single data type.
64type 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

Callers 1

SparsifyWeightsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected