MCPcopy Create free account
hub / github.com/cogentcore/core / Len

Method Len

tensor/tensor.go:36–36  ·  view source on GitHub ↗

Len returns the number of elements in the tensor (product of shape dimensions).

()

Source from the content-addressed store, hash-verified

34
35 // Len returns the number of elements in the tensor (product of shape dimensions).
36 Len() int
37
38 // NumDims returns the total number of dimensions.
39 NumDims() int

Callers 15

PackageModesFunction · 0.65
GetInterfacesMethod · 0.65
InspectGenDeclMethod · 0.65
GenerateMethod · 0.65
LenMethod · 0.65
CopyFromMethod · 0.65
Projection2DShapeFunction · 0.65
NewNumberFunction · 0.65
NewNumberShapeFunction · 0.65
CopyFromMethod · 0.65
LenMethod · 0.65
NewStringFunction · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by 12

TestTensorStringFunction · 0.52
TestTensorFloat64Function · 0.52
TestBitSlice10Function · 0.52
TestBitSlice8Function · 0.52
TestBitSlice7Function · 0.52
TestNodeEmbedAddChildFunction · 0.52
TestNodeEmbedNewChildFunction · 0.52
TestNodePathFunction · 0.52
TestNodeEscapePathsFunction · 0.52
TestNodeDeleteChildFunction · 0.52
TestNodeFindNameFunction · 0.52