Created
August 3, 2020 23:24
-
-
Save ailzhang/897ef9fdf0c834279cd358febba07734 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No difference in VariableType | |
λ ~/pytorch033 cat diff_TypeDefault | |
--- TypeDefault_before 2020-08-03 16:23:14.155651681 -0700 | |
+++ TypeDefault_after 2020-08-03 16:17:08.590947589 -0700 | |
@@ -3904,6 +3904,8 @@ | |
m.impl("conv_transpose3d.input", | |
torch::CppFunction::makeUnboxedOnly(&TypeDefault::conv_transpose3d_input)); | |
m.def("copy_(Tensor(a!) self, Tensor src, bool non_blocking=False) -> Tensor(a!)"); | |
+ m.impl("copy_", | |
+ torch::CppFunction::makeUnboxedOnly(&TypeDefault::copy_)); | |
m.def("_copy_from(Tensor self, Tensor dst, bool non_blocking=False) -> Tensor"); | |
m.def("cos(Tensor self) -> Tensor"); | |
m.impl("cos", | |
@@ -4956,7 +4958,11 @@ | |
m.impl("sinh.out", | |
torch::CppFunction::makeUnboxedOnly(&TypeDefault::sinh_out_out)); | |
m.def("detach(Tensor(a) self) -> Tensor(a)"); | |
+ m.impl("detach", | |
+ c10::impl::hacky_wrapper_for_legacy_signatures(TORCH_FN(TypeDefault::detach))); | |
m.def("detach_(Tensor(a!) self) -> Tensor(a!)"); | |
+ m.impl("detach_", | |
+ torch::CppFunction::makeUnboxedOnly(&TypeDefault::detach_)); | |
m.def("size.int(Tensor self, int dim) -> int"); | |
m.impl("size.int", | |
c10::impl::hacky_wrapper_for_legacy_signatures(TORCH_FN(TypeDefault::size_int))); | |
@@ -5366,6 +5372,8 @@ | |
torch::CppFunction::makeUnboxedOnly(&TypeDefault::nuclear_norm_out_dim_out)); | |
m.def("clone(Tensor self, *, MemoryFormat? memory_format=None) -> Tensor"); | |
m.def("resize_as_(Tensor(a!) self, Tensor the_template, *, MemoryFormat? memory_format=None) -> Tensor(a!)"); | |
+ m.impl("resize_as_", | |
+ torch::CppFunction::makeUnboxedOnly(&TypeDefault::resize_as_)); | |
m.def("pow.Tensor_Scalar_out(Tensor self, Scalar exponent, *, Tensor(a!) out) -> Tensor(a!)"); | |
m.def("pow.Tensor_Scalar(Tensor self, Scalar exponent) -> Tensor"); | |
m.def("zero_(Tensor(a!) self) -> Tensor(a!)"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment