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

Struct TensorButton

tensor/tensorcore/values.go:29–32  ·  view source on GitHub ↗

TensorButton represents a Tensor with a button for making a [TensorGrid] viewer for an [tensor.Tensor].

Source from the content-addressed store, hash-verified

27// TensorButton represents a Tensor with a button for making a [TensorGrid]
28// viewer for an [tensor.Tensor].
29type TensorButton struct {
30 core.Button
31 Tensor tensor.Tensor
32}
33
34func (tb *TensorButton) WidgetValue() any { return &tb.Tensor }
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected