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

Function from_value_op

tools/include/operation.hpp:492–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490
491template <class T>
492void from_value_op(T& x, const value& v)
493{
494 if(not(v.is_object() or (v.empty() and v.is_array())))
495 MIGRAPHX_THROW("Value is not an object");
496 return migraphx::from_value(v, x);
497}
498
499template <class T>
500lifetime get_lifetime_op(const T&)

Callers

nothing calls this directly

Calls 4

from_valueFunction · 0.85
is_objectMethod · 0.80
is_arrayMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected