Clip#

class hypercoil.init.mapparam.Clip[source]#

Handle out-of-domain values by clipping them to the closest allowed point.

Methods

apply(x, bound)

Clip values in the specified tensor to the specified bounds.