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 empty strided symint (#84830) 2022-09-15 04:09:43 +00:00
test_backend_device.cpp
test_cache.cpp
test_ir_util.cpp [LTC] Make ComputePostOrder accept const T pointers (#88773) 2022-11-10 18:34:19 +00:00
test_ir.cpp Update isDynamic api to align with is_symbolic API (#83415) 2022-08-18 22:53:19 +00:00
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