|
const DiscreteTypeInfo & | get_type_info () const |
|
| Function (const NodeVector &results, const ParameterVector ¶meters, const std::string &name="") |
|
| Function (const OutputVector &results, const ParameterVector ¶meters, const std::string &name="") |
|
| Function (const std::shared_ptr< Node > &result, const ParameterVector ¶meters, const std::string &name="") |
|
| Function (const ResultVector &results, const ParameterVector ¶meters, const std::string &name="") |
|
| Function (const ResultVector &results, const SinkVector &sinks, const ParameterVector ¶meters, const std::string &name="") |
|
| Function (const OutputVector &results, const SinkVector &sinks, const ParameterVector ¶meters, const std::string &name="") |
|
size_t | get_output_size () const |
| Return the number of outputs for this function.
|
|
std::shared_ptr< Node > | get_output_op (size_t i) const |
| Return the op that generates output i.
|
|
Output< Node > | output (size_t i) const |
|
const element::Type & | get_output_element_type (size_t i) const |
| Return the element type of output i.
|
|
const Shape & | get_output_shape (size_t i) const |
| Return the shape of element i.
|
|
const PartialShape & | get_output_partial_shape (size_t i) const |
| Return the partial shape of element i.
|
|
std::shared_ptr< Node > | get_result () const |
| Check that there is a single result and return it.
|
|
const std::string & | get_name () const |
| Get the unique name of the function. More...
|
|
void | set_friendly_name (const std::string &name) |
| Sets a friendly name for a function. This does not overwrite the unique name of the function and is retrieved via get_friendly_name(). Used mainly for debugging. More...
|
|
const std::string & | get_friendly_name () const |
| Gets the friendly name for a function. If no friendly name has been set via set_friendly_name then the function's unique name is returned. More...
|
|
std::vector< std::shared_ptr< Node > > | get_ops () const |
|
std::vector< std::shared_ptr< Node > > | get_ordered_ops () const |
|
void | map_unordered_ops (std::function< void(Node *)> f) const |
|
void | replace_node (std::shared_ptr< Node > old, std::shared_ptr< Node > repl) |
|
void | validate_nodes_and_infer_types () const |
|
size_t | get_graph_size () const |
| Returns the sum of the size of all nodes in the graph plus the size of all constant data. This has little value beyond comparing the relative size of graphs and should not be considered the actual memory consumption of a graph.
|
|
bool | is_dynamic () const |
| Returns true if any of the op's defined in the function contains partial shape.
|
|
void | replace_parameter (size_t parameter_index, const std::shared_ptr< op::Parameter > ¶meter) |
| Replace the parameter_index th parameter of the function with parameter . More...
|
|
void | set_topological_sort (topological_sort_t) |
|
virtual bool | visit_attributes (AttributeVisitor &visitor) |
|
const ParameterVector & | get_parameters () const |
| Return the function parameters.
|
|
const ResultVector & | get_results () const |
| Return a list of function's outputs.
|
|
int64_t | get_parameter_index (const std::shared_ptr< op::Parameter > ¶meter) const |
| Index for parameter, or -1.
|
|
int64_t | get_result_index (const Output< Node > &value) const |
| Index for value or result referencing it, or -1.
|
|
bool | evaluate (const HostTensorVector &output_tensors, const HostTensorVector &input_tensors) const |
| Evaluate the function on inputs, putting results in outputs. More...
|
|
const SinkVector & | get_sinks () const |
| Return a list of function's sinks.
|
|
void | add_sinks (const SinkVector &sinks) |
| Add new sink nodes to the list. Method doesn't validate graph, it should be done manually after all changes. More...
|
|
void | remove_sink (const std::shared_ptr< op::Sink > &sink) |
| Delete sink node from the list of sinks. Method doesn't delete node from graph. More...
|
|
void | add_results (const ResultVector &results) |
| Add new Result nodes to the list. Method doesn't validate graph, it should be done manually after all changes. More...
|
|
void | remove_result (const std::shared_ptr< op::Result > &result) |
| Delete Result node from the list of results. Method will not delete node from graph. More...
|
|
void | add_parameters (const ParameterVector ¶ms) |
| Add new Parameter nodes to the list. More...
|
|
void | remove_parameter (const std::shared_ptr< op::Parameter > ¶m) |
| Delete Parameter node from the list of parameters. Method will not delete node from graph. You need to replace Parameter with other operation manually. Attention: Indexing of parameters can be changed. More...
|
|