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

Method set_output_shape

src/opr-mm/impl/mm_handler.cpp:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void GroupServerProxy::set_output_shape(
86 void* input_ptr, size_t input_len, std::string* output) {
87 INFO_INIT(mm_handler, SetOutputShape);
88 auto&& shape_proto = req.shape();
89 TensorShape shape;
90 shape.ndim = shape_proto.ndim();
91 for (size_t i = 0; i < shape.ndim; ++i) {
92 shape.shape[i] = shape_proto.shape(i);
93 }
94 m_mgr.set_output_shape(req.key(), shape);
95 rsp.SerializeToString(output);
96}
97
98void GroupServerProxy::get_output_shape(
99 void* input_ptr, size_t input_len, std::string* output) {

Callers 1

Calls 3

shapeMethod · 0.45
ndimMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected