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

Method CopyFrom

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

CopyFrom copies all avail values from other tensor into this tensor, with an optimized implementation if the other tensor is of the same type, and otherwise it goes through appropriate standard type.

(from Tensor)

Source from the content-addressed store, hash-verified

129 // optimized implementation if the other tensor is of the same type, and
130 // otherwise it goes through appropriate standard type.
131 CopyFrom(from Tensor)
132
133 // CopyShapeFrom copies just the shape from given source tensor
134 // calling SetShape with the shape params from source (see for more docs).

Callers 15

ConfigMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
pasteAssignSyncMethod · 0.65
pasteAssignMethod · 0.65
FindChildrenMethod · 0.65
FindAnyChildrenMethod · 0.65
StructInheritElsMethod · 0.65
CloneMethod · 0.65
FindAnyChildrenMethod · 0.65
CopyFromScopeMethod · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by

no test coverage detected