Add matches_jit_signature to recent native functions
authorChristian Puhrsch <cpuhrsch@fb.com>
Fri, 8 Mar 2019 19:37:01 +0000 (11:37 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 8 Mar 2019 19:42:25 +0000 (11:42 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17805

Differential Revision: D14388004

Pulled By: cpuhrsch

fbshipit-source-id: c50580b6fe1e9cfefed91aaa526376325d9f9c0d

aten/src/ATen/native/native_functions.yaml

index 6ce0eb5..bcfc526 100644 (file)
     CUDA: batch_norm_cuda
 
 - func: batch_norm_stats(Tensor input, float eps) -> (Tensor, Tensor)
+  matches_jit_signature: True
   dispatch:
     CUDA: batch_norm_stats_cuda
 
 - func: batch_norm_elemt(Tensor input, Tensor? weight, Tensor? bias, Tensor mean, Tensor invstd, float eps) -> Tensor
+  matches_jit_signature: True
   dispatch:
     CUDA: batch_norm_elemt_cuda
 
 - func: batch_norm_gather_stats(Tensor input, Tensor mean, Tensor invstd, Tensor? running_mean, Tensor? running_var, float momentum, float eps, int count) -> (Tensor, Tensor)
+  matches_jit_signature: True
   dispatch:
     CUDA: batch_norm_gather_stats_cuda
 
     CUDA: batch_norm_backward_cuda
 
 - func: batch_norm_backward_reduce(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, bool input_g, bool weight_g, bool bias_g) -> (Tensor, Tensor, Tensor, Tensor)
+  matches_jit_signature: True
   dispatch:
     CUDA: batch_norm_backward_reduce_cuda
 
 - func: batch_norm_backward_elemt(Tensor grad_out, Tensor input, Tensor mean, Tensor invstd, Tensor? weight, Tensor mean_dy, Tensor mean_dy_xmu) -> Tensor
+  matches_jit_signature: True
   dispatch:
     CUDA: batch_norm_backward_elemt_cuda