#ifndef MIGRAPHX_GUARD_OPERATORS_BINARY_HPP #define MIGRAPHX_GUARD_OPERATORS_BINARY_HPP #include #include #include #include #include #include #include #include #include #include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace op { struct binary { shape compute_shape(std::vector inputs) const { check_shapes{inputs}.has(2).same_type().same_dims(); if(inputs.at(0) == inputs.at(1) and inputs.at(0).packed()) { return inputs.at(0); } else { return {inputs.at(0).type(), inputs.at(0).lens()}; } } }; } // namespace op } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx #endif