pytorch/test/cpp_extensions
Pavel Belevich c9a1fc2b31 replace Generator arguments with c10::optional<Generator> (#36232)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36232

The purpose of this PR is to replace `at::Generator generator = nullptr` with `c10::optional<at::Generator> = c10::nullopt` all over the code

* #36230 Replace std::shared_ptr with c10::intrusive_ptr in at::Generator

Test Plan: Imported from OSS

Differential Revision: D20943603

Pulled By: pbelevich

fbshipit-source-id: 65d335990f01fcc706867d5344e73793fad68ae6
2020-04-13 16:26:57 -07:00
..
no_python_abi_suffix_test
torch_test_cpp_extension
cpp_c10d_extension.cpp add c10d dynamic loading mechanism and unit test (#28068) 2020-04-02 15:46:51 -07:00
cpp_c10d_extension.hpp add c10d dynamic loading mechanism and unit test (#28068) 2020-04-02 15:46:51 -07:00
cpp_frontend_extension.cpp
cuda_extension.cpp Deprecate tensor.type() (#30281) 2019-12-05 10:55:34 -08:00
cuda_extension.cu
cuda_extension_kernel.cu
cuda_extension_kernel2.cu
cudnn_extension.cpp
doubler.h
extension.cpp
jit_extension.cpp
jit_extension2.cpp
msnpu_extension.cpp [RELAND] Add temporary impl_UNBOXED syntax sugar for unboxed-only defs. (#36223) 2020-04-09 14:58:33 -07:00
rng_extension.cpp replace Generator arguments with c10::optional<Generator> (#36232) 2020-04-13 16:26:57 -07:00
setup.py pybind11 type_caster for at::Generator and custom RNG python test (#34774) 2020-03-22 10:57:35 -07:00