Skip to content

Commit 5151eb6

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Fix log softmax shape compliance
Summary: Empty tensor is allowed in aten Reviewed By: manuelcandales Differential Revision: D48468446 fbshipit-source-id: be0b87d30f3b7fa720becdf3b5391f7cb86bfab8
1 parent d7dce4a commit 5151eb6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernels/portable/cpu/op_log_softmax.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ void check_preconditions(
3737
"in.dim() %zd!= out.dim() %zd",
3838
in.dim(),
3939
out.dim());
40-
// Ensure in has value
41-
ET_CHECK_MSG(in.numel() > 0, "in.numel() %zd <= 0", in.numel());
4240
// Ensure dim is valid
4341
if (in.dim() == 0) {
4442
ET_CHECK_MSG(dim == 0 || dim == -1, "dim must be 0 or -1 for 0-D tensor");

0 commit comments

Comments
 (0)