@@ -12335,11 +12335,12 @@ def merge_dicts(*dicts):
12335
12335
defined by the variable argument :attr:`size`.
12336
12336
12337
12337
.. note::
12338
- If :func:`torch.use_deterministic_algorithms()` is set to ``True``, the
12339
- output tensor is initialized to prevent any possible nondeterministic
12340
- behavior from using the data as an input to an operation. Floating point
12341
- and complex tensors are filled with NaN, and integer tensors are filled
12342
- with the maximum value.
12338
+ If :func:`torch.use_deterministic_algorithms()` and
12339
+ :attr:`torch.utils.deterministic.fill_uninitialized_memory` are both set to
12340
+ ``True``, the output tensor is initialized to prevent any possible
12341
+ nondeterministic behavior from using the data as an input to an operation.
12342
+ Floating point and complex tensors are filled with NaN, and integer tensors
12343
+ are filled with the maximum value.
12343
12344
12344
12345
Args:
12345
12346
size (int...): a sequence of integers defining the shape of the output tensor.
@@ -12374,11 +12375,12 @@ def merge_dicts(*dicts):
12374
12375
``torch.empty(input.size(), dtype=input.dtype, layout=input.layout, device=input.device)``.
12375
12376
12376
12377
.. note::
12377
- If :func:`torch.use_deterministic_algorithms()` is set to ``True``, the
12378
- output tensor is initialized to prevent any possible nondeterministic
12379
- behavior from using the data as an input to an operation. Floating point
12380
- and complex tensors are filled with NaN, and integer tensors are filled
12381
- with the maximum value.
12378
+ If :func:`torch.use_deterministic_algorithms()` and
12379
+ :attr:`torch.utils.deterministic.fill_uninitialized_memory` are both set to
12380
+ ``True``, the output tensor is initialized to prevent any possible
12381
+ nondeterministic behavior from using the data as an input to an operation.
12382
+ Floating point and complex tensors are filled with NaN, and integer tensors
12383
+ are filled with the maximum value.
12382
12384
12383
12385
Args:
12384
12386
{input}
@@ -12413,11 +12415,12 @@ def merge_dicts(*dicts):
12413
12415
in memory) its behavior is undefined.
12414
12416
12415
12417
.. note::
12416
- If :func:`torch.use_deterministic_algorithms()` is set to ``True``, the
12417
- output tensor is initialized to prevent any possible nondeterministic
12418
- behavior from using the data as an input to an operation. Floating point
12419
- and complex tensors are filled with NaN, and integer tensors are filled
12420
- with the maximum value.
12418
+ If :func:`torch.use_deterministic_algorithms()` and
12419
+ :attr:`torch.utils.deterministic.fill_uninitialized_memory` are both set to
12420
+ ``True``, the output tensor is initialized to prevent any possible
12421
+ nondeterministic behavior from using the data as an input to an operation.
12422
+ Floating point and complex tensors are filled with NaN, and integer tensors
12423
+ are filled with the maximum value.
12421
12424
12422
12425
Args:
12423
12426
size (tuple of int): the shape of the output tensor
@@ -12465,11 +12468,12 @@ def merge_dicts(*dicts):
12465
12468
:func:`torch.empty_strided` or manual use of :func:`torch.as_strided`.
12466
12469
12467
12470
.. note::
12468
- If :func:`torch.use_deterministic_algorithms()` is set to ``True``, the
12469
- output tensor is initialized to prevent any possible nondeterministic
12470
- behavior from using the data as an input to an operation. Floating point
12471
- and complex tensors are filled with NaN, and integer tensors are filled
12472
- with the maximum value.
12471
+ If :func:`torch.use_deterministic_algorithms()` and
12472
+ :attr:`torch.utils.deterministic.fill_uninitialized_memory` are both set to
12473
+ ``True``, the output tensor is initialized to prevent any possible
12474
+ nondeterministic behavior from using the data as an input to an operation.
12475
+ Floating point and complex tensors are filled with NaN, and integer tensors
12476
+ are filled with the maximum value.
12473
12477
12474
12478
Args:
12475
12479
size (tuple of int): the shape of the output tensor
0 commit comments