| 49 | } |
| 50 | |
| 51 | unsigned int tensorSize( TensorShape shape ) |
| 52 | { |
| 53 | unsigned int size = 1; |
| 54 | for ( unsigned int dimSize : shape ) |
| 55 | { |
| 56 | size *= dimSize; |
| 57 | } |
| 58 | return size; |
| 59 | } |
| 60 | |
| 61 | // See https://github.com/onnx/onnx/blob/main/docs/Broadcasting.md#multidirectional-broadcasting |
| 62 | TensorShape getMultidirectionalBroadcastShape( TensorShape shape1, TensorShape shape2 ) |
no outgoing calls
no test coverage detected