class ngraph::DirectValueAccessor

Overview

#include <attribute_adapter.hpp>

template <typename AT>
class DirectValueAccessor: public ngraph::ValueAccessor
{
public:
    // construction

    DirectValueAccessor(AT& ref);

    // methods

    virtual const AT& get();
    virtual void set(const AT& value);
};

// direct descendants

template <>
class AttributeAdapter<bool>;

template <>
class AttributeAdapter<double>;

template <>
class AttributeAdapter<int64_t>;

template <>
class AttributeAdapter<op::FrameworkNodeAttrs>;

template <>
class AttributeAdapter<op::v5::Loop::SpecialBodyPorts>;

template <>
class AttributeAdapter<std::shared_ptr<Function>>;

template <>
class AttributeAdapter<std::shared_ptr<runtime::AlignedBuffer>>;

template <>
class AttributeAdapter<std::shared_ptr<Variable>>;

template <>
class AttributeAdapter<std::string>;

template <>
class AttributeAdapter<std::vector<double>>;

template <>
class AttributeAdapter<std::vector<float>>;

template <>
class AttributeAdapter<std::vector<int16_t>>;

template <>
class AttributeAdapter<std::vector<int32_t>>;

template <>
class AttributeAdapter<std::vector<int64_t>>;

template <>
class AttributeAdapter<std::vector<int8_t>>;

template <>
class AttributeAdapter<std::vector<std::shared_ptr<ngraph::op::util::SubGraphOp::InputDescription>>>;

template <>
class AttributeAdapter<std::vector<std::shared_ptr<ngraph::op::util::SubGraphOp::OutputDescription>>>;

template <>
class AttributeAdapter<std::vector<std::string>>;

template <>
class AttributeAdapter<std::vector<uint16_t>>;

template <>
class AttributeAdapter<std::vector<uint32_t>>;

template <>
class AttributeAdapter<std::vector<uint64_t>>;

template <>
class AttributeAdapter<std::vector<uint8_t>>;

Inherited Members

public:
    // methods

    virtual const VAT& get() = 0;
    virtual void set(const VAT& value) = 0;

Detailed Documentation

Methods

virtual const AT& get()

Returns the value.

virtual void set(const AT& value)

Sets the value.