clip
clip(min=0, max=none, axis=none, dims=none, p=1.0)
Given a min and/or max value, clips the range of values in input data. Use none to prevent either end to remain unclipped.
A list of one or more indices can be specified via dims, to apply the operation to specific features, and the probability of the operation being applied to the data can be set with p.
Arguments
-
min (
int|float|str|none): Minimum clipping value.Default:
0 -
max (
int|float|none): Maximum clipping value.Default:
none -
dims (
int|list[int]|none): Feature dimensions to apply operation to. Ifnone, all feature dimensions are used.Default:
none -
p (
float): Probability for operation to be applied to data sequence, between 0 and 1.Default:
1.0