21 #include "ngraph/except.hpp"
22 #include "ngraph/ngraph_visibility.hpp"
43 void add_in_place_oi_pair(
const struct oi_pair& oi)
45 for (
auto e : m_in_place_oi_pairs)
47 if (e.input == oi.input || e.output == oi.output)
49 throw ngraph_error(
"In_place hint conflicts with an existing entry");
52 m_in_place_oi_pairs.emplace_back(oi);
55 const std::vector<struct oi_pair>& get_in_place_oi_pairs()
const
57 return m_in_place_oi_pairs;
59 bool is_cacheable()
const {
return m_cacheable; }
60 void set_cacheable(
bool val) { m_cacheable = val; }
63 std::vector<struct oi_pair> m_in_place_oi_pairs;
65 bool m_cacheable =
false;
Base error for ngraph runtime errors.
Definition: except.hpp:28
Base class for annotations added to graph ops.
Definition: op_annotations.hpp:39
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Definition: op_annotations.hpp:31