@@ -18,8 +18,8 @@ namespace native {
1818namespace legacy {
1919namespace cuda {
2020
21- Tensor & _th_masked_fill_ (Tensor & self, const Tensor & mask, Scalar value);
22- Tensor & _th_masked_fill_bool_ (Tensor & self, const Tensor & mask, Scalar value);
21+ Tensor & _th_masked_fill_ (Tensor & self, const Tensor & mask, const Scalar& value);
22+ Tensor & _th_masked_fill_bool_ (Tensor & self, const Tensor & mask, const Scalar& value);
2323Tensor & _th_index_copy_ (Tensor & self, int64_t dim, const Tensor & index, const Tensor & source);
2424Tensor & _th_take_out (Tensor & result, const Tensor & self, const Tensor & index);
2525Tensor _th_take (const Tensor & self, const Tensor & index);
@@ -32,9 +32,9 @@ std::tuple<Tensor &,Tensor &> _th_sort_out_stable(Tensor & values, Tensor & indi
3232std::tuple<Tensor,Tensor> _th_sort_stable (const Tensor & self, c10::optional<bool > stable, int64_t dim, bool descending);
3333std::tuple<Tensor &,Tensor &> _th_topk_out (Tensor & values, Tensor & indices, const Tensor & self, int64_t k, int64_t dim, bool largest, bool sorted);
3434std::tuple<Tensor,Tensor> _th_topk (const Tensor & self, int64_t k, int64_t dim, bool largest, bool sorted);
35- Tensor & _th_renorm_out (Tensor & result, const Tensor & self, Scalar p, int64_t dim, Scalar maxnorm);
36- Tensor _th_renorm (const Tensor & self, Scalar p, int64_t dim, Scalar maxnorm);
37- Tensor & _th_renorm_ (Tensor & self, Scalar p, int64_t dim, Scalar maxnorm);
35+ Tensor & _th_renorm_out (Tensor & result, const Tensor & self, const Scalar& p, int64_t dim, const Scalar& maxnorm);
36+ Tensor _th_renorm (const Tensor & self, const Scalar& p, int64_t dim, const Scalar& maxnorm);
37+ Tensor & _th_renorm_ (Tensor & self, const Scalar& p, int64_t dim, const Scalar& maxnorm);
3838Tensor & _th_cross_kernel_out (Tensor & result, const Tensor & self, const Tensor & other, int64_t dim);
3939Tensor _th_cross_kernel (const Tensor & self, const Tensor & other, int64_t dim);
4040std::tuple<Tensor &,Tensor &> _th_gels_out (Tensor & res1, Tensor & res2, const Tensor & self, const Tensor & A);
@@ -44,10 +44,10 @@ Tensor _th_potri(const Tensor & self, bool upper);
4444std::tuple<Tensor &,Tensor &> _th_geqrf_out (Tensor & res1, Tensor & res2, const Tensor & self);
4545std::tuple<Tensor,Tensor> _th_geqrf (const Tensor & self);
4646Tensor & _th_copy_ignoring_overlaps_ (Tensor & self, const Tensor & src);
47- Tensor & _thnn_multi_margin_loss_forward_out (Tensor & output, const Tensor & self, const Tensor & target, Scalar p, Scalar margin, const Tensor & weight, int64_t reduction);
48- Tensor _thnn_multi_margin_loss_forward (const Tensor & self, const Tensor & target, Scalar p, Scalar margin, const Tensor & weight, int64_t reduction);
49- Tensor & _thnn_multi_margin_loss_backward_out (Tensor & grad_input, const Tensor & grad_output, const Tensor & self, const Tensor & target, Scalar p, Scalar margin, const Tensor & weight, int64_t reduction);
50- Tensor _thnn_multi_margin_loss_backward (const Tensor & grad_output, const Tensor & self, const Tensor & target, Scalar p, Scalar margin, const Tensor & weight, int64_t reduction);
47+ Tensor & _thnn_multi_margin_loss_forward_out (Tensor & output, const Tensor & self, const Tensor & target, const Scalar& p, const Scalar& margin, const Tensor & weight, int64_t reduction);
48+ Tensor _thnn_multi_margin_loss_forward (const Tensor & self, const Tensor & target, const Scalar& p, const Scalar& margin, const Tensor & weight, int64_t reduction);
49+ Tensor & _thnn_multi_margin_loss_backward_out (Tensor & grad_input, const Tensor & grad_output, const Tensor & self, const Tensor & target, const Scalar& p, const Scalar& margin, const Tensor & weight, int64_t reduction);
50+ Tensor _thnn_multi_margin_loss_backward (const Tensor & grad_output, const Tensor & self, const Tensor & target, const Scalar& p, const Scalar& margin, const Tensor & weight, int64_t reduction);
5151std::tuple<Tensor &,Tensor &> _thnn_multilabel_margin_loss_forward_out (Tensor & output, Tensor & is_target, const Tensor & self, const Tensor & target, int64_t reduction);
5252std::tuple<Tensor,Tensor> _thnn_multilabel_margin_loss_forward (const Tensor & self, const Tensor & target, int64_t reduction);
5353Tensor & _thnn_multilabel_margin_loss_backward_out (Tensor & grad_input, const Tensor & grad_output, const Tensor & self, const Tensor & target, int64_t reduction, const Tensor & is_target);
@@ -68,10 +68,10 @@ std::tuple<Tensor &,Tensor &> _thnn_log_sigmoid_forward_out(Tensor & output, Ten
6868std::tuple<Tensor,Tensor> _thnn_log_sigmoid_forward (const Tensor & self);
6969Tensor & _thnn_log_sigmoid_backward_out (Tensor & grad_input, const Tensor & grad_output, const Tensor & self, const Tensor & buffer);
7070Tensor _thnn_log_sigmoid_backward (const Tensor & grad_output, const Tensor & self, const Tensor & buffer);
71- Tensor & _thnn_rrelu_with_noise_forward_out (Tensor & output, const Tensor & self, const Tensor & noise, Scalar lower, Scalar upper, bool training, c10::optional<at::Generator> generator);
72- Tensor _thnn_rrelu_with_noise_forward (const Tensor & self, const Tensor & noise, Scalar lower, Scalar upper, bool training, c10::optional<at::Generator> generator);
73- Tensor _thnn_rrelu_with_noise_backward (const Tensor & grad_output, const Tensor & self, const Tensor & noise, Scalar lower, Scalar upper, bool training);
74- Tensor & _thnn_rrelu_with_noise_forward_ (Tensor & self, const Tensor & noise, Scalar lower, Scalar upper, bool training, c10::optional<at::Generator> generator);
71+ Tensor & _thnn_rrelu_with_noise_forward_out (Tensor & output, const Tensor & self, const Tensor & noise, const Scalar& lower, const Scalar& upper, bool training, c10::optional<at::Generator> generator);
72+ Tensor _thnn_rrelu_with_noise_forward (const Tensor & self, const Tensor & noise, const Scalar& lower, const Scalar& upper, bool training, c10::optional<at::Generator> generator);
73+ Tensor _thnn_rrelu_with_noise_backward (const Tensor & grad_output, const Tensor & self, const Tensor & noise, const Scalar& lower, const Scalar& upper, bool training);
74+ Tensor & _thnn_rrelu_with_noise_forward_ (Tensor & self, const Tensor & noise, const Scalar& lower, const Scalar& upper, bool training, c10::optional<at::Generator> generator);
7575std::tuple<Tensor &,Tensor &,Tensor &> _thnn_conv2d_forward_out (Tensor & output, Tensor & columns, Tensor & ones, const Tensor & self, const Tensor & weight, IntArrayRef kernel_size, const Tensor & bias, IntArrayRef stride, IntArrayRef padding);
7676std::tuple<Tensor,Tensor,Tensor> _thnn_conv2d_forward (const Tensor & self, const Tensor & weight, IntArrayRef kernel_size, const Tensor & bias, IntArrayRef stride, IntArrayRef padding);
7777std::tuple<Tensor &,Tensor &,Tensor &> _thnn_conv2d_backward_out (Tensor & grad_input, Tensor & grad_weight, Tensor & grad_bias, const Tensor & grad_output, const Tensor & self, const Tensor & weight, IntArrayRef kernel_size, IntArrayRef stride, IntArrayRef padding, const Tensor & columns, const Tensor & ones);
0 commit comments