Don't crash when attempting to reduce empty tensors.
3 files changed