MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / compute_shape

Method compute_shape

test/api/test_custom_op_gpu.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override
108 {
109 if(not inputs[0].standard() or not inputs[1].standard())
110 {
111 throw std::runtime_error("Input args must be standard shaped");
112 }
113 if(inputs.size() != 2)
114 {
115 throw std::runtime_error("number of inputs must be 2");
116 }
117 return inputs.back();
118 }
119};
120
121// overwrites input buffer

Callers

nothing calls this directly

Calls 3

backMethod · 0.80
standardMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected