Skip to content

Commit d96bb62

Browse files
r-barnesfacebook-github-bot
authored andcommitted
c10::optional -> std::optional
Summary: `c10::optional` is an alias for `std::optional`. Let's remove the alias and use the real thing. Reviewed By: malfet Differential Revision: D63402342 fbshipit-source-id: 96b81478bc470e6e8fd8202a22404c62318a0c71
1 parent 155edb6 commit d96bb62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchcsprng/csrc/kernels_body.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ at::Tensor& random_(at::Tensor& self, std::optional<at::Generator> generator) {
187187
return at::native::templates::random_impl<RandomKernel, CSPRNGGeneratorImpl>(self, generator);
188188
}
189189

190-
at::Tensor& random_from_to(at::Tensor& self, int64_t from, std::optional<int64_t> to, c10::optional<at::Generator> generator) {
190+
at::Tensor& random_from_to(at::Tensor& self, int64_t from, std::optional<int64_t> to, std::optional<at::Generator> generator) {
191191
return at::native::templates::random_from_to_impl<RandomFromToKernel, CSPRNGGeneratorImpl>(self, from, to, generator);
192192
}
193193

0 commit comments

Comments
 (0)