ranged

In-place tensor scaling to fit given value range.

nothrow @nogc
ranged
(
Scalar
Tensor
)
(
Tensor tensor
,
Scalar minValue = 0
,
Scalar maxValue = 1
)
if (
isNumeric!Scalar
)

Parameters

tensor Tensor

Input tensor.

minValue Scalar

Minimal value output tensor should contain.

maxValue Scalar

Maximal value output tensor should contain.

Meta