Class HardTanh
java.lang.Object
ai.beestream.jitnn.nn.Module
ai.beestream.jitnn.nn.HardTanh
- All Implemented Interfaces:
AutoCloseable
HardTanh: x clamped to [min, max].
-
Constructor Summary
ConstructorsConstructorDescriptionHardTanh(float min, float max) Clamps to [min, max] (PyTorch's default -1, 1). -
Method Summary
Methods inherited from class Module
buffer, buffers, child, close, isClosed, isTraining, loadStateDict, parameter, parameterCount, parameters, stateDict, train, zeroGrad
-
Constructor Details
-
HardTanh
public HardTanh(float min, float max) Clamps to [min, max] (PyTorch's default -1, 1).
-
-
Method Details
-
forward
-