#pragma once #include #include #if AT_MKLDNN_ENABLED() #include #include namespace at::native::mkldnn { struct ContextConv final { ideep::tensor weight_packed_; std::optional at_bias_; std::vector padding_; std::vector stride_; std::vector dilation_; int64_t groups_; ideep::attr_t attr_; ContextConv() = delete; ContextConv( ideep::tensor&& weight_packed, std::optional at_bias, std::vector padding, std::vector stride, std::vector dilation, int64_t groups, ideep::attr_t attr) : weight_packed_(std::move(weight_packed)), at_bias_(std::move(at_bias)), padding_(std::move(padding)), stride_(std::move(stride)), dilation_(std::move(dilation)), groups_(groups), attr_(attr) {} }; } // namespace at #endif // AT_MKLDNN_ENABLED()