pytorch/test/cpp/lazy
Peter Bell bc438af6fe std/var: support floating point correction value (#94073)
Ref https://github.com/pytorch/pytorch/issues/61492#issuecomment-1413003480

The array API specifies correction to be `Union[int, float]` while we currently only support integers.
https://data-apis.org/array-api/latest/API_specification/generated/array_api.std.html

As std/var is calculated currently, the final count of elements is already done
in floating point so we can make the correction floating point without any loss
of precision or generality.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/94073
Approved by: https://github.com/ezyang
2023-02-23 05:50:45 +00:00
..
CMakeLists.txt
test_backend_device.cpp
test_cache.cpp
test_ir_util.cpp
test_ir.cpp
test_lazy_ops_util.cpp
test_lazy_ops_util.h
test_lazy_ops.cpp std/var: support floating point correction value (#94073) 2023-02-23 05:50:45 +00:00
test_misc.cpp
test_permutation_util.cpp
test_shape.cpp
test_tensor_impl.cpp
test_trie_cache.cpp
test_util.cpp