| 31 | inline namespace MIGRAPHX_INLINE_NS { |
| 32 | |
| 33 | argument::argument(const shape& s) : m_shape(s) |
| 34 | { |
| 35 | auto buffer = make_shared_array<char>(s.bytes()); |
| 36 | assign_buffer({[=]() mutable { return buffer.get(); }}); |
| 37 | } |
| 38 | |
| 39 | argument::argument(shape s, std::nullptr_t) |
| 40 | : m_shape(std::move(s)), m_data({[] { return nullptr; }}) |