GraphElements
#include <poplar/GraphElements.hpp>
-
namespace poplar
Poplar classes and functions.
Typedefs
Functions
-
inline bool operator==(const ComputeSet &lhs, const ComputeSet &rhs)
-
inline bool operator==(const FunctionBuffer &lhs, const FunctionBuffer &rhs)
-
class ComputeSet
- #include <GraphElements.hpp>
A reference to a compute set within a graph.
This type provides a way to address compute sets within a graph.
Public Functions
-
inline ComputeSet()
-
inline ComputeSet(unsigned id)
-
inline unsigned getId() const
Private Members
-
unsigned computeset_id
-
inline ComputeSet()
-
class FieldRef
- #include <GraphElements.hpp>
A reference to a field within a vertex instance.
This type provides a way to address fields (inputs or internal state) within a vertex. FieldRef’s are normally obtained using
VertexRef::operator[](StringRef fieldName)
, for example:VertexRef vertex = graph.addVertex(...); FieldRef input = vertex["input"]; graph.connect(input, ...);
A FieldRef can also be indexed, for example:
FieldRef input_5 = vertex["input"][5];
This is used when a field is a list of regions, for example a
Vector<Input<Vector<...>>> or an Input<VectorList<...>>
.Public Functions
-
inline FieldRef()
-
inline FieldRef operator[](std::size_t index) const
Access an element of a vector field.
Subscript a vector field to access the element at position
index
.- Parameters
index – The subscript of the field
- Returns
A reference to the field.
-
inline bool isIndexed() const
Private Functions
-
FieldRef(VertexRef vertex, StringRef fieldName)
FieldRef constructor from vertex id and field name.
Construct a FieldRef out of a vertex id and the name of the field.
Friends
- friend class VertexRef
-
inline FieldRef()
-
class Function
- #include <GraphElements.hpp>
A reference to a function stored within a graph.
Private Members
-
unsigned function_id
-
unsigned function_id
-
class FunctionBuffer
- #include <GraphElements.hpp>
A reference to a function buffer stored within a graph.
Public Functions
-
inline FunctionBuffer()
-
inline explicit FunctionBuffer(unsigned id)
-
inline unsigned getId() const
Private Members
-
unsigned function_buffer_id
-
inline FunctionBuffer()
-
class HostFunction
- #include <GraphElements.hpp>
A reference to a function in the host.
Private Members
-
unsigned function_id
-
unsigned function_id
-
class VertexRef
- #include <GraphElements.hpp>
A reference to a vertex within a graph.
This type provides a way to address vertices within a graph.
Public Functions
-
inline VertexRef()
Private Functions
Friends
- friend class core::GraphBuilder
- friend class Graph
- friend class FieldRef
-
inline VertexRef()
-
namespace core
-
inline bool operator==(const ComputeSet &lhs, const ComputeSet &rhs)