Skip to content

Commit b33132e

Browse files
committed
fix bug in ZPull_
1 parent e846fa6 commit b33132e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ps/af_tensor_app.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class AFTensorWorker {
294294
msg.meta.dtype = static_cast<int>(tensor.scalar_type());
295295
msg.meta.shape.clear();
296296
for (int64_t s = 0; s < tensor.dim(); s++) {
297-
msg.meta.shape.push_back(tensor.size(i));
297+
msg.meta.shape.push_back(tensor.size(s));
298298
}
299299
msg.data.clear();
300300
msg.AddData(key);

0 commit comments

Comments
 (0)