struct dnnl::binary

Overview

Elementwise binary operator primitive. More…

#include <dnnl.hpp>

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

    struct desc;
    struct primitive_desc;

    // construction

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

Inherited Members

public:
    // enums

    enum kind;

    // methods

    handle<T, traits>& operator = (const handle<T, traits>&);
    handle<T, traits>& operator = (handle<T, traits>&&);
    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;
    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;
    handle();
    handle();
    handle();
    handle();

Detailed Documentation

Elementwise binary operator primitive.

Construction

binary()

Default constructor. Produces an empty object.

binary(const primitive_desc& pd)

Constructs an elementwise binary operation primitive.

Parameters:

pd

Primitive descriptor for an elementwise binary operation primitive.