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

Method copy

src/argument.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186argument argument::copy() const
187{
188 argument result{this->get_shape()};
189 auto* src = this->data();
190 std::copy(src, src + this->get_shape().bytes(), result.data());
191 return result;
192}
193
194argument argument::share() const { return {m_shape, m_data.share()}; }
195

Callers 4

insert_copyFunction · 0.45
applyMethod · 0.45
run_sampleFunction · 0.45
run_sampleFunction · 0.45

Calls 4

dataMethod · 0.95
copyFunction · 0.50
get_shapeMethod · 0.45
bytesMethod · 0.45

Tested by

no test coverage detected