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

Method NumDims

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

NumDims returns the total number of dimensions.

()

Source from the content-addressed store, hash-verified

76
77// NumDims returns the total number of dimensions.
78func (tsr *Bits) NumDims() int { return tsr.Shp.NumDims() }
79
80// DimSize returns size of given dimension
81func (tsr *Bits) DimSize(dim int) int { return tsr.Shp.DimSize(dim) }

Callers

nothing calls this directly

Calls 1

NumDimsMethod · 0.65

Tested by

no test coverage detected