Unverified Commit 42cc4b82 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

add more order to Node, at least a consistent sort order... (#1551)

parent 5f40d957
......@@ -213,6 +213,8 @@ namespace ngraph
NodeVector get_users() const;
virtual std::shared_ptr<Node> get_default_value() const { return nullptr; }
/// Use instance ids for comparison instead of memory addresses to improve determinism
bool operator<(const Node& other) const { return m_instance_id < other.m_instance_id; }
protected:
void set_output_size(size_t n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment