#pragma once #include #include #include #if AT_MKLDNN_ENABLED() namespace at { namespace native { namespace mkldnn { namespace internal { namespace convolution { c10::intrusive_ptr createConvPrePackOpContext( Tensor weight, std::optional bias, std::vector stride, std::vector padding, std::vector dilation, int64_t groups, std::vector input_size, std::string attr); Tensor conv_run( const Tensor& input, const c10::intrusive_ptr& op_context); ContextConv create( const Tensor& weight, const std::optional& bias, const IntArrayRef padding, const IntArrayRef stride, const IntArrayRef dilation, const int64_t groups, const IntArrayRef input_size, const ideep::attr_t& attr); Tensor run(ContextConv& context, const Tensor& input); void run(ContextConv& context, const Tensor& input, void* output); } // namespace convolution } // namespace internal } // namespace mkldnn } // namespace native } // namespace at #endif // AT_MKLDNN_ENABLED()