Skip to content

Commit e021c13

Browse files
xwang233facebook-github-bot
authored andcommitted
[doc] Add overflow notice for cuFFT on half precision (#35594)
Summary: This would fix #33485. cc ptrblck Pull Request resolved: #35594 Differential Revision: D20722426 Pulled By: ngimel fbshipit-source-id: 68f7304de5d6cecdd9e34e8697fc84bc551b1a45
1 parent 5e27de0 commit e021c13

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

torch/_torch_docs.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6843,6 +6843,11 @@ def merge_dicts(*dicts):
68436843
configuration. See :ref:`cufft-plan-cache` for more details on how to
68446844
monitor and control the cache.
68456845
6846+
.. warning::
6847+
Due to limited dynamic range of half datatype, performing this operation
6848+
in half precision may cause the first element of
6849+
result to overflow for certain inputs.
6850+
68466851
.. warning::
68476852
For CPU tensors, this method is currently only available with MKL. Use
68486853
:func:`torch.backends.mkl.is_available` to check if MKL is installed.
@@ -6938,6 +6943,10 @@ def merge_dicts(*dicts):
69386943
configuration. See :ref:`cufft-plan-cache` for more details on how to
69396944
monitor and control the cache.
69406945
6946+
.. warning::
6947+
Due to limited dynamic range of half datatype, performing this operation in half
6948+
precision may cause the first element of result to overflow for certain inputs.
6949+
69416950
.. warning::
69426951
For CPU tensors, this method is currently only available with MKL. Use
69436952
:func:`torch.backends.mkl.is_available` to check if MKL is installed.
@@ -7022,6 +7031,10 @@ def merge_dicts(*dicts):
70227031
configuration. See :ref:`cufft-plan-cache` for more details on how to
70237032
monitor and control the cache.
70247033
7034+
.. warning::
7035+
Due to limited dynamic range of half datatype, performing this operation in half
7036+
precision may cause the first element of result to overflow for certain inputs.
7037+
70257038
.. warning::
70267039
For CPU tensors, this method is currently only available with MKL. Use
70277040
:func:`torch.backends.mkl.is_available` to check if MKL is installed.
@@ -7099,6 +7112,10 @@ def merge_dicts(*dicts):
70997112
configuration. See :ref:`cufft-plan-cache` for more details on how to
71007113
monitor and control the cache.
71017114
7115+
.. warning::
7116+
Due to limited dynamic range of half datatype, performing this operation in half
7117+
precision may cause the first element of result to overflow for certain inputs.
7118+
71027119
.. warning::
71037120
For CPU tensors, this method is currently only available with MKL. Use
71047121
:func:`torch.backends.mkl.is_available` to check if MKL is installed.

0 commit comments

Comments
 (0)