Skip to content

Commit dd7d232

Browse files
bertmaherMikhail Zolotukhin
authored and
Mikhail Zolotukhin
committed
Scalars are 0-dim, not 1-dim (pytorch#239)
1 parent 6616812 commit dd7d232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/jit/tensorexpr/kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static std::vector<ExprHandle> broadcastShapes(
191191
std::vector<ExprHandle> TensorExprKernel::valueShape(const torch::jit::Value* v) {
192192
auto it = tensors_.find(v->unique());
193193
if (it == tensors_.end()) {
194-
return {1};
194+
return {};
195195
}
196196
return ExprVectorToExprHandleVector(it->second->dims());
197197
}

0 commit comments

Comments
 (0)