mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Revert "Land "Make ceil,floor,round,trunc handle integers" (#85144)"
This reverts commit b27eb8d377fc8ac267fdaed7f95a03d609764604. Reverted https://github.com/pytorch/pytorch/pull/85144 on behalf of https://github.com/clee2000 due to broke slow tests in trunk ex https://ossci-raw-job-status.s3.amazonaws.com/log/8433956087
This commit is contained in:
@ -2327,9 +2327,6 @@ ceil(input, *, out=None) -> Tensor
|
||||
Returns a new tensor with the ceil of the elements of :attr:`input`,
|
||||
the smallest integer greater than or equal to each element.
|
||||
|
||||
For integer inputs, follows the array-api convention of returning a
|
||||
copy of the input tensor.
|
||||
|
||||
.. math::
|
||||
\text{out}_{i} = \left\lceil \text{input}_{i} \right\rceil
|
||||
"""
|
||||
@ -4167,9 +4164,6 @@ floor(input, *, out=None) -> Tensor
|
||||
Returns a new tensor with the floor of the elements of :attr:`input`,
|
||||
the largest integer less than or equal to each element.
|
||||
|
||||
For integer inputs, follows the array-api convention of returning a
|
||||
copy of the input tensor.
|
||||
|
||||
.. math::
|
||||
\text{out}_{i} = \left\lfloor \text{input}_{i} \right\rfloor
|
||||
"""
|
||||
@ -9637,9 +9631,6 @@ round(input, *, decimals=0, out=None) -> Tensor
|
||||
|
||||
Rounds elements of :attr:`input` to the nearest integer.
|
||||
|
||||
For integer inputs, follows the array-api convention of returning a
|
||||
copy of the input tensor.
|
||||
|
||||
.. note::
|
||||
This function implements the "round half to even" to
|
||||
break ties when a number is equidistant from two
|
||||
@ -12019,9 +12010,6 @@ trunc(input, *, out=None) -> Tensor
|
||||
Returns a new tensor with the truncated integer values of
|
||||
the elements of :attr:`input`.
|
||||
|
||||
For integer inputs, follows the array-api convention of returning a
|
||||
copy of the input tensor.
|
||||
|
||||
Args:
|
||||
{input}
|
||||
|
||||
|
Reference in New Issue
Block a user