MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_output_var_shape

Method get_output_var_shape

src/opr/impl/basic_arith.cpp:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171TensorShape Elemwise::get_output_var_shape(
172 Mode mode, const TensorShapeArray& input_shapes) {
173 mgb_assert(input_shapes.size() == ModeTrait::from_mode(mode).arity);
174 TensorShape ret;
175 megdnn::Elemwise::deduce_shape(input_shapes, ret);
176 return ret;
177}
178
179void Elemwise::perform(
180 Mode mode, DeviceTensorND& dest, const SmallVector<DeviceTensorND>& inputs,

Callers

nothing calls this directly

Calls 5

get_output_var_shapeFunction · 0.50
paramFunction · 0.50
sizeMethod · 0.45
atMethod · 0.45
eq_shapeMethod · 0.45

Tested by

no test coverage detected