Class Hardshrink#
Defined in File activation.h
Page Contents
Inheritance Relationships#
Base Type#
public torch::nn::ModuleHolder< HardshrinkImpl >
(Template Class ModuleHolder)
Class Documentation#
-
class Hardshrink : public torch::nn::ModuleHolder<HardshrinkImpl>#
A
ModuleHolder
subclass forHardshrinkImpl
.See the documentation for
HardshrinkImpl
class to learn what methods it provides, and examples of how to useHardshrink
withtorch::nn::HardshrinkOptions
. See the documentation forModuleHolder
to learn about PyTorch’s module storage semantics.Public Types
-
using Impl = HardshrinkImpl#
-
using Impl = HardshrinkImpl#