Element-wise round the input, In case of halfs, round to the nearest even integer Args: x (Tensor): input tensor. Returns: the output Tensor.
(x)
| 5635 | |
| 5636 | |
| 5637 | def rounde(x): |
| 5638 | """ |
| 5639 | Element-wise round the input, In case of halfs, round to the nearest even integer |
| 5640 | Args: |
| 5641 | x (Tensor): input tensor. |
| 5642 | Returns: |
| 5643 | the output Tensor. |
| 5644 | """ |
| 5645 | return Rounde()(x)[0] |
| 5646 | |
| 5647 | |
| 5648 | class Embedding(Operator): |