Because it uses empty_like, which doesn't create contiguous strides for empty tensors or tensors with one dimension cc @ezyang @anjali411 @dylanbespalko @mruberry @Lezcano @nikitaved @ngimel