Shortcuts

Class CrossMapLRN2dImpl

Inheritance Relationships

Base Type

Class Documentation

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

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

Example:

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

Public Functions

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

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

virtual 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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources