Commit 8181a324 authored by Jerry Zhang's avatar Jerry Zhang Committed by Facebook Github Bot

Rename ndim() -> dim()

Summary:
Codemod generated with clangr shard mode, 50 files per diff,
clangr code(ndim()->dim()): diffusion/FBS/browse/master/fbcode/caffe2/caffe2/fb/codemods/TensorMethodRename.cpp

Reviewed By: ezyang

Differential Revision: D12935918

fbshipit-source-id: 4ce24a3debcd471b3649fa71f890f7b24bb8678a
parent b2474ff2
......@@ -22,7 +22,7 @@ template <>
bool ZeroEvenOp<float, CPUContext>::RunOnDevice() {
// Retrieve the input tensor.
const auto& X = Input(0);
CAFFE_ENFORCE(X.ndim() == 1);
CAFFE_ENFORCE(X.dim() == 1);
// Initialize the output tensor to a copy of the input tensor.
auto* Y = Output(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment