TensorGrid TensorGrid is a widget that displays tensor values as a grid of colored squares.
| 167 | |
| 168 | // TensorGrid is a widget that displays tensor values as a grid of colored squares. |
| 169 | type 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 | |
| 182 | func (tg *TensorGrid) WidgetValue() any { return &tg.Tensor } |
| 183 |
nothing calls this directly
no outgoing calls
no test coverage detected