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

Method SetShape

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

SetShape sets the sizes parameters of the tensor, and resizes backing storage appropriately. existing names will be preserved if not presented.

(sizes []int, names ...string)

Source from the content-addressed store, hash-verified

144 // SetShape sets the sizes parameters of the tensor, and resizes backing storage appropriately.
145 // existing names will be preserved if not presented.
146 SetShape(sizes []int, names ...string)
147
148 // SetNumRows sets the number of rows (outer-most dimension).
149 SetNumRows(rows int)

Callers 15

SetShapeMethod · 0.65
NewNumberFunction · 0.65
CopyShapeFromMethod · 0.65
SetShapeMethod · 0.65
NewStringFunction · 0.65
CopyShapeFromMethod · 0.65
CopyDenseFunction · 0.65
TestTensorStringFunction · 0.65
TestTensorFloat64Function · 0.65
TableColMethod · 0.65
TensorFunction · 0.65
TensorsFunction · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by 2

TestTensorStringFunction · 0.52
TestTensorFloat64Function · 0.52