mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-25 22:26:24 +00:00
Added emotion ferplus support (#1752)
Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
This commit is contained in:
parent
94d9161166
commit
9523977cc2
1 changed files with 7 additions and 2 deletions
|
|
@ -180,7 +180,9 @@ bool IsOpSupported(std::string name) {
|
|||
"Unsqueeze",
|
||||
"ImageScaler",
|
||||
"LeakyRelu",
|
||||
"GlobalMaxPool"};
|
||||
"GlobalMaxPool",
|
||||
"Div",
|
||||
"Sub"};
|
||||
|
||||
auto iter = supported_ops.find(name);
|
||||
return iter != supported_ops.end();
|
||||
|
|
@ -237,7 +239,10 @@ void CheckGraphSupported(const onnxruntime::GraphViewer& graph_viewer, std::stri
|
|||
|
||||
//Zero dimension check
|
||||
for (size_t i = 0; i < node_inputs.size(); i++) {
|
||||
if (node_inputs[i]->Shape() != nullptr) {
|
||||
|
||||
auto name = node_inputs[i]->Name();
|
||||
auto it = initializers.find(name);
|
||||
if(it == initializers.end() && node_inputs[i]->Shape() != nullptr){
|
||||
if (node_inputs[i]->Shape()->dim_size() == 0) {
|
||||
throw "Node_input is zero dimension";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue