Renaming dims() to sizes() (fbcode)

Summary: Codemod generated with clangr shard mode, 25 files per diff, for renaming dims() to sizes()

Reviewed By: ezyang

Differential Revision: D10848643

fbshipit-source-id: ac75833be8be9162e35b00dcd352f616bc7bbafe
This commit is contained in:
Jerry Zhang
2018-10-25 09:30:05 -07:00
committed by Facebook Github Bot
parent 1720757220
commit e5752f2cb4

View File

@ -37,7 +37,7 @@ class UpsampleNearestOp final : public Operator<Context> {
bool RunOnDevice() override {
auto& X = Input(0);
auto* Y = Output(0);
auto out_shape = X.dims().vec();
auto out_shape = X.sizes().vec();
out_shape[X.ndim() - 1] *= scale_;
out_shape[X.ndim() - 2] *= scale_;
Y->Resize(out_shape);