#include #include #include #include #include #include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace cpu { struct cpu_allocate : auto_register_op { shape s; template static auto reflect(Self& self, F f) { return pack(f(self.s, "shape")); } std::string name() const { return "cpu::allocate"; } shape compute_shape(const std::vector& inputs) const { check_shapes{inputs, *this}.has(0); return s; } argument compute(context&, const shape& output_shape, const std::vector&) const { argument result{output_shape}; return result; } }; } // namespace cpu } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx