* In-place version of @see Tensor.round
()
| 756 | * In-place version of @see {@link Tensor.round} |
| 757 | */ |
| 758 | round_() { |
| 759 | const this_data = this.data; |
| 760 | for (let i = 0; i < this_data.length; ++i) { |
| 761 | this_data[i] = Math.round(this_data[i]); |
| 762 | } |
| 763 | return this; |
| 764 | } |
| 765 | |
| 766 | /** |
| 767 | * Rounds elements of input to the nearest integer. |