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

Struct TensorGrid

tensor/tensorcore/tensorgrid.go:169–180  ·  view source on GitHub ↗

TensorGrid TensorGrid is a widget that displays tensor values as a grid of colored squares.

Source from the content-addressed store, hash-verified

167
168// TensorGrid is a widget that displays tensor values as a grid of colored squares.
169type TensorGrid struct {
170 core.WidgetBase
171
172 // the tensor that we view
173 Tensor tensor.Tensor `set:"-"`
174
175 // display options
176 Display TensorDisplay
177
178 // the actual colormap
179 ColorMap *colormap.Map
180}
181
182func (tg *TensorGrid) WidgetValue() any { return &tg.Tensor }
183

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected