(a: TensorLike)
| 162 | } |
| 163 | |
| 164 | export function assertNonNull(a: TensorLike): void { |
| 165 | assert( |
| 166 | a != null, |
| 167 | () => `The input to the tensor constructor must be a non-null value.`); |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * Returns the size (number of elements) of the tensor given its shape. |