MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / tensorSize

Function tensorSize

src/input_parsers/TensorUtils.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51unsigned 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
62TensorShape getMultidirectionalBroadcastShape( TensorShape shape1, TensorShape shape2 )

Callers 9

unpackIndexFunction · 0.85
packIndexFunction · 0.85
getTensorFloatValuesFunction · 0.85
getTensorIntValuesFunction · 0.85
getTensorInt32ValuesFunction · 0.85
makeNodeVariablesMethod · 0.85
batchNormEquationsMethod · 0.85
scaleAndAddEquationsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected