Shape represents the (possibly partially known) shape of a tensor that will be produced by an operation. The zero-value of a Shape represents a shape with an unknown number of dimensions.
| 27 | // The zero-value of a Shape represents a shape with an unknown number of |
| 28 | // dimensions. |
| 29 | type Shape struct { |
| 30 | dims []int64 |
| 31 | } |
| 32 | |
| 33 | // ScalarShape returns a Shape representing a scalar. |
| 34 | func ScalarShape() Shape { |
no outgoing calls