MCPcopy Create free account
hub / github.com/ml-explore/mlx / output_shape

Method output_shape

mlx/primitives.cpp:866–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866Shape Broadcast::output_shape(const std::vector<array>& inputs) {
867 auto shape = inputs[0].shape();
868 for (int i = 1; i < inputs.size(); ++i) {
869 shape = broadcast_shapes(shape, inputs[i].shape());
870 }
871 return shape;
872}
873
874std::vector<Shape> Broadcast::output_shapes(const std::vector<array>& inputs) {
875 if (inputs.size() < 2) {

Callers

nothing calls this directly

Calls 9

broadcast_shapesFunction · 0.85
rbeginMethod · 0.80
rendMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected