Class ReLU6Impl#
Defined in File activation.h
Page Contents
Inheritance Relationships#
Base Type#
public torch::nn::Cloneable< ReLU6Impl >
(Template Class Cloneable)
Class Documentation#
-
class ReLU6Impl : public torch::nn::Cloneable<ReLU6Impl>#
Applies the ReLU6 function element-wise.
See https://pytorch.org/docs/main/nn.html#torch.nn.ReLU6 to learn about the exact behavior of this module.
See the documentation for
torch::nn::ReLU6Options
class to learn what constructor arguments are supported for this module.Example:
ReLU6 model(ReLU6Options().inplace(true));
Public Functions
-
explicit ReLU6Impl(const ReLU6Options &options_ = {})#
-
Tensor forward(Tensor input)#
Public Members
-
ReLU6Options options#
The options with which this
Module
was constructed.
-
explicit ReLU6Impl(const ReLU6Options &options_ = {})#