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

Method get_sub_objects

src/argument.cpp:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194argument argument::share() const { return {m_shape, m_data.share()}; }
195
196std::vector<argument> argument::get_sub_objects() const
197{
198 std::vector<argument> result;
199 assert(m_shape.sub_shapes().size() == m_data.sub.size());
200 std::transform(m_shape.sub_shapes().begin(),
201 m_shape.sub_shapes().end(),
202 m_data.sub.begin(),
203 std::back_inserter(result),
204 [](auto&& s, auto&& d) {
205 return argument{s, d};
206 });
207 return result;
208}
209
210argument argument::element(std::size_t i) const
211{

Callers 7

TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
flattenFunction · 0.45
raw_data_to_valueFunction · 0.45

Calls 4

transformFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.36