Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ngraph/frontend/paddlepaddle/src/decoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class DecoderPDPDProto
float get_float(const std::string& name, float def = 0.) const;
std::string get_str(const std::string& name, const std::string& def = "") const;
bool get_bool (const std::string& name, bool def = false) const;
std::string get_type() const { return op.type(); }

// TODO: Further populate get_XXX methods on demand
ngraph::element::Type get_dtype(const std::string& name, ngraph::element::Type def) const;
Expand Down
2 changes: 2 additions & 0 deletions ngraph/frontend/paddlepaddle/src/node_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class NodeContext

NodeContext (const DecoderPDPDProto& _node, NamedInputs& _name_map) : node(_node), name_map(_name_map) {}

std::string get_op_type() const { return node.get_type(); }

/// Detects if there is at least one input attached with a given name
bool has_ng_input (const std::string& name) const
{
Expand Down