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

Method Clone

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

Clone clones this tensor, creating a duplicate copy of itself with its own separate memory representation of all the values, and returns that as a Tensor (which can be converted into the known type as needed).

()

Source from the content-addressed store, hash-verified

124 // own separate memory representation of all the values, and returns
125 // that as a Tensor (which can be converted into the known type as needed).
126 Clone() Tensor
127
128 // CopyFrom copies all avail values from other tensor into this tensor, with an
129 // optimized implementation if the other tensor is of the same type, and

Callers 15

CloneMethod · 0.65
TestTensorStringFunction · 0.65
TestTensorFloat64Function · 0.65
SetShapeMethod · 0.65
CopyShapeMethod · 0.65
GatherTableRowsFunction · 0.65
ReduceTableFunction · 0.65
SetIndexViewMethod · 0.65
NewMethod · 0.65
ExtractLevelsMethod · 0.65
CopyFromMethod · 0.65
CopyFromMethod · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by 2

TestTensorStringFunction · 0.52
TestTensorFloat64Function · 0.52