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

Function numElements

tensorflow/go/tensor.go:277–283  ·  view source on GitHub ↗
(shape []int64)

Source from the content-addressed store, hash-verified

275}
276
277func numElements(shape []int64) int64 {
278 n := int64(1)
279 for _, d := range shape {
280 n *= d
281 }
282 return n
283}
284
285// byteSizeOfEncodedStrings returns the size of the encoded strings in val.
286// val MUST be a string, or a container (array/slice etc.) of strings.

Callers 3

NewTensorFunction · 0.85
ReadTensorFunction · 0.85
ValueMethod · 0.85

Calls 1

int64Function · 0.85

Tested by

no test coverage detected