@@ -36,7 +36,7 @@ Tensor THSTensor_ifft2(const Tensor tensor, const int64_t* s, const int64_t* dim
3636 CATCH_TENSOR (torch::fft::ifft2 (*tensor, sArg , dArg, normArg));
3737}
3838
39- Tensor THSTensor_fftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
39+ Tensor THSTensor_fftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
4040{
4141 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
4242 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -45,7 +45,7 @@ Tensor THSTensor_fftn(const Tensor tensor, const int64_t* s, const int s_length,
4545 CATCH_TENSOR (torch::fft::fftn (*tensor, sArg , dArg, normArg));
4646}
4747
48- Tensor THSTensor_ifftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
48+ Tensor THSTensor_ifftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
4949{
5050 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
5151 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -69,7 +69,7 @@ Tensor THSTensor_hfft2(const Tensor tensor, const int64_t* s, const int64_t* dim
6969 CATCH_TENSOR (torch::fft::hfft2 (*tensor, sArg , dArg, normArg));
7070}
7171
72- Tensor THSTensor_hfftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
72+ Tensor THSTensor_hfftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
7373{
7474 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
7575 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -93,7 +93,7 @@ Tensor THSTensor_ihfft2(const Tensor tensor, const int64_t* s, const int64_t* di
9393 CATCH_TENSOR (torch::fft::ihfft2 (*tensor, sArg , dArg, normArg));
9494}
9595
96- Tensor THSTensor_ihfftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
96+ Tensor THSTensor_ihfftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
9797{
9898 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
9999 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -134,7 +134,7 @@ Tensor THSTensor_irfft2(const Tensor tensor, const int64_t* s, const int64_t* di
134134 CATCH_TENSOR (torch::fft::irfft2 (*tensor, sArg , dArg, normArg));
135135}
136136
137- Tensor THSTensor_rfftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
137+ Tensor THSTensor_rfftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
138138{
139139 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
140140 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -143,7 +143,7 @@ Tensor THSTensor_rfftn(const Tensor tensor, const int64_t* s, const int s_length
143143 CATCH_TENSOR (torch::fft::rfftn (*tensor, sArg , dArg, normArg));
144144}
145145
146- Tensor THSTensor_irfftn (const Tensor tensor, const int64_t * s, const int s_length, const int64_t * dim, const int dim_length, int8_t norm)
146+ Tensor THSTensor_irfftn (const Tensor tensor, const int64_t * s, const int32_t s_length, const int64_t * dim, const int32_t dim_length, int8_t norm)
147147{
148148 auto normArg = (norm == 0 ) ? " backward" : (norm == 1 ) ? " forward" : " ortho" ;
149149 auto sArg = (s == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (s, s_length));
@@ -152,7 +152,7 @@ Tensor THSTensor_irfftn(const Tensor tensor, const int64_t* s, const int s_lengt
152152 CATCH_TENSOR (torch::fft::irfftn (*tensor, sArg , dArg, normArg));
153153}
154154
155- Tensor THSTensor_fftfreq (const int64_t n, const double d, const int8_t scalar_type, const int device_type, const int device_index, const bool requires_grad)
155+ Tensor THSTensor_fftfreq (const int64_t n, const double d, const int8_t scalar_type, const int32_t device_type, const int32_t device_index, const bool requires_grad)
156156{
157157 auto options = at::TensorOptions ()
158158 .dtype (at::ScalarType (scalar_type))
@@ -162,7 +162,7 @@ Tensor THSTensor_fftfreq(const int64_t n, const double d, const int8_t scalar_ty
162162 CATCH_TENSOR (d == 0.0 ? torch::fft::fftfreq (n, options) : torch::fft::fftfreq (n, d, options));
163163}
164164
165- Tensor THSTensor_rfftfreq (const int64_t n, const double d, const int8_t scalar_type, const int device_type, const int device_index, const bool requires_grad)
165+ Tensor THSTensor_rfftfreq (const int64_t n, const double d, const int8_t scalar_type, const int32_t device_type, const int32_t device_index, const bool requires_grad)
166166{
167167 auto options = at::TensorOptions ()
168168 .dtype (at::ScalarType (scalar_type))
@@ -172,13 +172,13 @@ Tensor THSTensor_rfftfreq(const int64_t n, const double d, const int8_t scalar_t
172172 CATCH_TENSOR (d == 0.0 ? torch::fft::rfftfreq (n, options) : torch::fft::rfftfreq (n, d, options));
173173}
174174
175- Tensor THSTensor_fftshift (const Tensor tensor, const int64_t * dim, const int dim_length)
175+ Tensor THSTensor_fftshift (const Tensor tensor, const int64_t * dim, const int32_t dim_length)
176176{
177177 auto dArg = (dim == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (dim, dim_length));
178178 CATCH_TENSOR (torch::fft::fftshift (*tensor, dArg));
179179}
180180
181- Tensor THSTensor_ifftshift (const Tensor tensor, const int64_t * dim, const int dim_length)
181+ Tensor THSTensor_ifftshift (const Tensor tensor, const int64_t * dim, const int32_t dim_length)
182182{
183183 auto dArg = (dim == nullptr ) ? c10::nullopt : c10::optional<c10::IntArrayRef>(c10::IntArrayRef (dim, dim_length));
184184 CATCH_TENSOR (torch::fft::ifftshift (*tensor, dArg));
0 commit comments