ONE - On-device Neural Engine
|
Functions | |
bool | HasAttr (const tensorflow::NodeDef &node, const std::string &attr_name) |
tensorflow::DataType | GetDataTypeAttr (const tensorflow::NodeDef &node, const std::string &attr_name) |
tensorflow::TensorProto * | GetTensorAttr (tensorflow::NodeDef &node, const std::string &attr_name) |
int | GetElementCount (const tensorflow::TensorShapeProto &) |
GetElementCount returns -1 for rank-0 tensor shape. | |
tensorflow::DataType tfkit::tf::GetDataTypeAttr | ( | const tensorflow::NodeDef & | node, |
const std::string & | attr_name | ||
) |
Definition at line 58 of file Support.cpp.
References HasAttr().
int tfkit::tf::GetElementCount | ( | const tensorflow::TensorShapeProto & | shape | ) |
GetElementCount returns -1 for rank-0 tensor shape.
Definition at line 74 of file Support.cpp.
tensorflow::TensorProto * tfkit::tf::GetTensorAttr | ( | tensorflow::NodeDef & | node, |
const std::string & | attr_name | ||
) |
Definition at line 66 of file Support.cpp.
References HasAttr().
bool tfkit::tf::HasAttr | ( | const tensorflow::NodeDef & | node, |
const std::string & | attr_name | ||
) |
Definition at line 53 of file Support.cpp.
Referenced by GetDataTypeAttr(), and GetTensorAttr().