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

Method resize

src/value.cpp:389–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388void value::clear() { get_array_throw(x).clear(); }
389void value::resize(std::size_t n)
390{
391 if(not is_array())
392 MIGRAPHX_THROW("Expected an array.");
393 get_array_impl(x).resize(n);
394}
395void value::resize(std::size_t n, const value& v)
396{
397 if(not is_array())

Callers 15

resize_with_aspectratioFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
compileMethod · 0.80
generic_evalFunction · 0.80
compute_shapesMethod · 0.80
common_dimsMethod · 0.80
applyMethod · 0.80

Calls

no outgoing calls

Tested by 2

TEST_CASEFunction · 0.64
TEST_CASEFunction · 0.64