pytorch
faf0a3bd - Move bernoulli_() to DistributionTemplates (#38558)

Commit
4 years ago
Move bernoulli_() to DistributionTemplates (#38558) Summary: resolve the feature introduced in https://github.com/pytorch/pytorch/issues/37373 Pull Request resolved: https://github.com/pytorch/pytorch/pull/38558 Differential Revision: D21920685 Pulled By: pbelevich fbshipit-source-id: 50c77d9aaa334b3276a2352afe6c4ad03f12be31
Author
Parents
  • aten/src/ATen
    • native
      • File
        DistributionTemplates.h
      • File
        Distributions.cpp
      • File
        UnaryOps.h
      • cpu
        • File
          DistributionTemplates.h
        • File
          UnaryOpsKernel.cpp
      • cuda
        • File
          DistributionBernoulli.cu
        • File
          DistributionTemplates.h
      • File
        native_functions.yaml
    • test
      • File
        cpu_rng_test.cpp
  • test
    • File
      test_cuda.py
    • File
      test_torch.py