#pragma once // @generated by aten/src/ATen/gen.py #include #include #include #include #include #include #include #include #include namespace c10 { struct Storage; } namespace at { class Tensor; using TensorList = ArrayRef; class Context; struct Generator; struct Quantizer; // This is temporary typedef to enable Quantizer in aten native function API // we'll remove them when we are actually exposing Quantizer class // to frontend using ConstQuantizerPtr = const c10::intrusive_ptr&; #ifdef USE_STATIC_DISPATCH namespace QuantizedCPUType { Tensor as_strided(const Tensor & self, IntArrayRef size, IntArrayRef stride, c10::optional storage_offset); Tensor _empty_affine_quantized(IntArrayRef size, const TensorOptions & options, double scale, int64_t zero_point, c10::optional memory_format); Tensor _empty_per_channel_affine_quantized(IntArrayRef size, const Tensor & scales, const Tensor & zero_points, int64_t axis, const TensorOptions & options, c10::optional memory_format); Tensor & resize_(Tensor & self, IntArrayRef size); Tensor quantized_max_pool2d(const Tensor & self, IntArrayRef kernel_size, IntArrayRef stride, IntArrayRef padding, IntArrayRef dilation, bool ceil_mode); Tensor mean(const Tensor & self, c10::optional dtype); Tensor mean(const Tensor & self, IntArrayRef dim, bool keepdim, c10::optional dtype); Tensor & mean_out(Tensor & out, const Tensor & self, IntArrayRef dim, bool keepdim, c10::optional dtype); Tensor relu(const Tensor & self); Tensor & relu_(Tensor & self); Tensor clone(const Tensor & self); Tensor dequantize(const Tensor & self); double q_scale(const Tensor & self); int64_t q_zero_point(const Tensor & self); Tensor q_per_channel_scales(const Tensor & self); Tensor q_per_channel_zero_points(const Tensor & self); int64_t q_per_channel_axis(const Tensor & self); Tensor int_repr(const Tensor & self); QScheme qscheme(const Tensor & self); Tensor & set_(Tensor & self, Storage source, int64_t storage_offset, IntArrayRef size, IntArrayRef stride); Tensor & set_quantizer_(Tensor & self, ConstQuantizerPtr quantizer); Tensor view(const Tensor & self, IntArrayRef size); Tensor & ne_out(Tensor & out, const Tensor & self, Scalar other); Tensor ne(const Tensor & self, Scalar other); Tensor & ne_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor ne(const Tensor & self, const Tensor & other); Tensor & eq_out(Tensor & out, const Tensor & self, Scalar other); Tensor eq(const Tensor & self, Scalar other); Tensor & eq_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor eq(const Tensor & self, const Tensor & other); Tensor & ge_out(Tensor & out, const Tensor & self, Scalar other); Tensor ge(const Tensor & self, Scalar other); Tensor & ge_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor ge(const Tensor & self, const Tensor & other); Tensor & le_out(Tensor & out, const Tensor & self, Scalar other); Tensor le(const Tensor & self, Scalar other); Tensor & le_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor le(const Tensor & self, const Tensor & other); Tensor & gt_out(Tensor & out, const Tensor & self, Scalar other); Tensor gt(const Tensor & self, Scalar other); Tensor & gt_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor gt(const Tensor & self, const Tensor & other); Tensor & lt_out(Tensor & out, const Tensor & self, Scalar other); Tensor lt(const Tensor & self, Scalar other); Tensor & lt_out(Tensor & out, const Tensor & self, const Tensor & other); Tensor lt(const Tensor & self, const Tensor & other); Tensor min(const Tensor & self); Tensor max(const Tensor & self); std::tuple sort(const Tensor & self, int64_t dim, bool descending); std::tuple topk(const Tensor & self, int64_t k, int64_t dim, bool largest, bool sorted); bool equal(const Tensor & self, const Tensor & other); Tensor _adaptive_avg_pool2d(const Tensor & self, IntArrayRef output_size); Tensor avg_pool2d(const Tensor & self, IntArrayRef kernel_size, IntArrayRef stride, IntArrayRef padding, bool ceil_mode, bool count_include_pad, c10::optional divisor_override); Tensor upsample_bilinear2d(const Tensor & self, IntArrayRef output_size, bool align_corners); Tensor upsample_nearest2d(const Tensor & self, IntArrayRef output_size); } #endif } // namespace at