struct dnnl::eltwise_forward

Overview

Elementwise unary operation forward propagation primitive. More…

#include <dnnl.hpp>

struct eltwise_forward: public dnnl::primitive
{
    // structs

    struct desc;
    struct primitive_desc;

    // methods

    eltwise_forward();
    eltwise_forward(const primitive_desc& pd);
};

Inherited Members

public:
    // enums

    enum kind;

    // methods

    handle();
    handle(const handle<T, traits>&);
    handle<T, traits>& operator = (const handle<T, traits>&);
    handle(handle<T, traits>&&);
    handle<T, traits>& operator = (handle<T, traits>&&);
    handle(T t, bool weak = false);
    void reset(T t, bool weak = false);
    T get(bool allow_empty = false) const;
    operator T () const;
    operator bool () const;
    bool operator == (const handle<T, traits>& other) const;
    bool operator != (const handle& other) const;
    primitive();
    primitive(const_dnnl_primitive_desc_t c_pd);
    primitive(const primitive_desc& pd);
    const_dnnl_primitive_desc_t get_primitive_desc() const;
    kind get_kind() const;
    void execute(const stream& astream, const std::unordered_map<int, memory>& args) const;

Detailed Documentation

Elementwise unary operation forward propagation primitive.

Methods

eltwise_forward()

Default constructor. Produces an empty object.

eltwise_forward(const primitive_desc& pd)

Constructs an eltwise forward propagation primitive.

Parameters:

pd

Primitive descriptor for an eltwise forward propagation primitive.