diff options
author | Wei Yang <38509346+weiyangfb@users.noreply.github.com> | 2018-06-13 13:22:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 13:22:50 -0700 |
commit | 71a3633e3f25b0f974fd30d1a9d74751397a93e3 (patch) | |
tree | cd01d6247f175307efccd9849f6b28127cf3005e /aten/doc | |
parent | 5b86c3af4a6315665e9db1cabaaddbf2d107b52f (diff) | |
download | pytorch-71a3633e3f25b0f974fd30d1a9d74751397a93e3.tar.gz pytorch-71a3633e3f25b0f974fd30d1a9d74751397a93e3.tar.bz2 pytorch-71a3633e3f25b0f974fd30d1a9d74751397a93e3.zip |
change tensor.set_() argument names to match descriptions in doc (#8403)
Replaced args name `storage` and `sourceStorage` to `source` in tensor.set_() to match the descriptions in docs.
Diffstat (limited to 'aten/doc')
-rw-r--r-- | aten/doc/Tensor.h | 4 | ||||
-rw-r--r-- | aten/doc/Type.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/aten/doc/Tensor.h b/aten/doc/Tensor.h index 54c79d75e2..120105ad68 100644 --- a/aten/doc/Tensor.h +++ b/aten/doc/Tensor.h @@ -122,8 +122,8 @@ struct Tensor : public detail::TensorBase { int64_t storage_offset() const; Tensor & resize_(IntList size); int64_t numel() const; - Tensor & set_(Storage & storage); - Tensor & set_(Storage & sourceStorage, int64_t storage_offset, IntList size, IntList stride={}); + Tensor & set_(Storage & source); + Tensor & set_(Storage & source, int64_t storage_offset, IntList size, IntList stride={}); Tensor & set_(const Tensor & source); Tensor & set_(); Tensor & fill_(Scalar value); diff --git a/aten/doc/Type.h b/aten/doc/Type.h index 8dce294518..871d979b85 100644 --- a/aten/doc/Type.h +++ b/aten/doc/Type.h @@ -133,8 +133,8 @@ struct AT_API Type { virtual Tensor & ones_like_out(Tensor & result, const Tensor & input) const; virtual Tensor ones_like(const Tensor & input) const; virtual int64_t numel(const Tensor & self) const; - virtual Tensor & set_(Tensor & self, Storage & storage) const; - virtual Tensor & set_(Tensor & self, Storage & sourceStorage, int64_t storage_offset, IntList size, IntList stride={}) const; + virtual Tensor & set_(Tensor & self, Storage & source) const; + virtual Tensor & set_(Tensor & self, Storage & source, int64_t storage_offset, IntList size, IntList stride={}) const; virtual Tensor & set_(Tensor & self, const Tensor & source) const; virtual Tensor & set_(Tensor & self) const; virtual Tensor & fill_(Tensor & self, Scalar value) const; |