Class CrossMapLRN2dImpl

Inheritance Relationships

Base Type

Class Documentation

class torch::nn::CrossMapLRN2dImpl : public torch::nn::Cloneable<CrossMapLRN2dImpl>

See the documentation for torch::nn::CrossMapLRN2dOptions class to learn what constructor arguments are supported for this module.


CrossMapLRN2d model(CrossMapLRN2dOptions(3).alpha(1e-5).beta(0.1).k(10));

Public Functions

CrossMapLRN2dImpl(int64_t size)
CrossMapLRN2dImpl(const CrossMapLRN2dOptions &options_)
void reset() override

reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules.

void pretty_print(std::ostream &stream) const override

Pretty prints the CrossMapLRN2d module into the given stream.

torch::Tensor forward(const torch::Tensor &input)

Public Members

CrossMapLRN2dOptions options


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources