Forums - Unsupported operations

6 posts / 0 new
Last post
Unsupported operations
jtrammell
Join Date: 29 Sep 17
Posts: 5
Posted: Fri, 2017-11-24 19:08

So far I've been able to get the image-classifiers example running and we've all had a blast playing around with it taking pictures of things and seeing what it says. /my next step is to get our own networks installed and I've hit a road block. We are currently working with both inception-v4 and inception-resnet-v2 networks and I have not been able to get the snpe-tensorflow-to-dlc script to succeed on either architecture. I call it thusly:

 

snpe-tensorflow-to-dlc \

    --graph graph_opt.pb \

    --input_dim input 299,299,3 \

    --out_node InceptionV4/Logits/Predictions \

    --dlc inception-v4.dlc

 

And am presented with the following output:

2017-11-24 19:02:47.238671: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:02:47.238690: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:02:47.238708: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:02:47.238715: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:02:47.238731: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:02:47.299022: E tensorflow/stream_executor/cuda/cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_NO_DEVICE
2017-11-24 19:02:47.299060: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:158] retrieving CUDA diagnostic information for host: tyrion
2017-11-24 19:02:47.299066: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:165] hostname: tyrion
2017-11-24 19:02:47.299105: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] libcuda reported version is: 384.90.0
2017-11-24 19:02:47.299131: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:369] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module  384.66  Tue Aug  1 16:02:12 PDT 2017
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
"""
2017-11-24 19:02:47.299152: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:193] kernel reported version is: 384.66.0
2017-11-24 19:02:47.299159: E tensorflow/stream_executor/cuda/cuda_diagnostics.cc:303] kernel version 384.66.0 does not match DSO version 384.90.0 -- cannot find working devices in this configuration
2017-11-24 19:02:59,727 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (InceptionV4/Logits/PreLogitsFlatten) operation(s) not consumed by converter: [u'Shape', u'Slice', u'Slice', u'Prod', u'ExpandDims'].
2017-11-24 19:02:59,727 - 122 - ERROR - Conversion failed: Some nodes in the Tensorflow graph were not resolved to a layer!
 

Similarly if I try to convert an inception-resnet-v2 network:

snpe-tensorflow-to-dlc \

    --graph graph_opt.pb \

    --input_dim input 299,299,3 \

    --out_node InceptionResnetV2/Logits/Predictions \

    --dlc inception-resnet-v2.dlc

I'm met with:

2017-11-24 19:05:56.731835: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:05:56.731854: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:05:56.731858: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:05:56.731861: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:05:56.731864: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-11-24 19:05:56.747961: E tensorflow/stream_executor/cuda/cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_NO_DEVICE
2017-11-24 19:05:56.747989: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:158] retrieving CUDA diagnostic information for host: tyrion
2017-11-24 19:05:56.747995: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:165] hostname: tyrion
2017-11-24 19:05:56.748021: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] libcuda reported version is: 384.90.0
2017-11-24 19:05:56.748039: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:369] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module  384.66  Tue Aug  1 16:02:12 PDT 2017
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
"""
2017-11-24 19:05:56.748054: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:193] kernel reported version is: 384.66.0
2017-11-24 19:05:56.748059: E tensorflow/stream_executor/cuda/cuda_diagnostics.cc:303] kernel version 384.66.0 does not match DSO version 384.90.0 -- cannot find working devices in this configuration
2017-11-24 19:06:04,941 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (InceptionResnetV2/InceptionResnetV2/Repeat/block35_1) operation(s) not consumed by converter: [u'Mul', u'Add'].
2017-11-24 19:06:04,941 - 122 - ERROR - Conversion failed: Some nodes in the Tensorflow graph were not resolved to a layer!
 

Am I doing something wrong? I presume that the CUDA messaging is not important at this stage, but perhaps that is indicative of a deeper problem?

  • Up0
  • Down0
jtrammell
Join Date: 29 Sep 17
Posts: 5
Posted: Sat, 2017-11-25 12:32

A little more detail... Here are the nodes in question from the graph_def that it seems to be clompaining about.

 

inception-v4:

node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Shape"
  op: "Shape"
  input: "InceptionV4/Logits/Dropout_1b/Identity"
  attr {
    key: "T"
    value {
      ty:qpe: DT_FLOAT
    }
  }
  attr {
    key: "out_type"
    value {
      type: DT_INT32
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice/begin"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim {
            size: 1
          }
        }
        int_val: 0
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice/size"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim {
            size: 1
          }
        }
        int_val: 1
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice"
  op: "Slice"
  input: "InceptionV4/Logits/PreLogitsFlatten/Shape"
  input: "InceptionV4/Logits/PreLogitsFlatten/Slice/begin"
  input: "InceptionV4/Logits/PreLogitsFlatten/Slice/size"
  attr {
    key: "Index"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "T"
    value {
      type: DT_INT32
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice_1/begin"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim {
            size: 1
          }
        }
        int_val: 1
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice_1/size"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim {
            size: 1
          }
        }
        int_val: 3
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Slice_1"
  op: "Slice"
  input: "InceptionV4/Logits/PreLogitsFlatten/Shape"
  input: "InceptionV4/Logits/PreLogitsFlatten/Slice_1/begin"
  input: "InceptionV4/Logits/PreLogitsFlatten/Slice_1/size"
  attr {
    key: "Index"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "T"
    value {
      type: DT_INT32
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Const"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
          dim {
            size: 1
          }
        }
        int_val: 0
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/Prod"
  op: "Prod"
  input: "InceptionV4/Logits/PreLogitsFlatten/Slice_1"
  input: "InceptionV4/Logits/PreLogitsFlatten/Const"
  attr {
    key: "T"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "Tidx"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "keep_dims"
    value {
      b: false
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/ExpandDims/dim"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_INT32
        tensor_shape {
        }
        int_val: 0
      }
    }
  }
}
node {
  name: "InceptionV4/Logits/PreLogitsFlatten/ExpandDims"
  op: "ExpandDims"
  input: "InceptionV4/Logits/PreLogitsFlatten/Prod"
  input: "InceptionV4/Logits/PreLogitsFlatten/ExpandDims/dim"
  attr {
    key: "T"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "Tdim"
    value {
      type: DT_INT32
    }
  }
}
 

And from the inception-resnet-v2 graph_def:

node {
  name: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/mul/x"
  op: "Const"
  attr {
    key: "dtype"
    value {
      type: DT_FLOAT
    }
  }
  attr {
    key: "value"
    value {
      tensor {
        dtype: DT_FLOAT
        tensor_shape {
        }
        float_val: 0.170000001788
      }
    }
  }
}
node {
  name: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/mul"
  op: "Mul"
  input: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/mul/x"
  input: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/Conv2d_1x1/BiasAdd"
  attr {
    key: "T"
    value {
      type: DT_FLOAT
    }
  }
}
node {
  name: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/add"
  op: "Add"
  input: "InceptionResnetV2/InceptionResnetV2/Mixed_5b/concat"
  input: "InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/mul"
  attr {
    key: "T"
    value {
      type: DT_FLOAT
    }
  }
}
 

  • Up0
  • Down0
dmarques
Join Date: 15 Sep 17
Posts: 27
Posted: Mon, 2017-11-27 06:31

You may want to upgrate to the latest SDK release and try using --allow_unconsumed_nodes options in the tensorflow-to-dlc tool.

  • Up0
  • Down0
jtrammell
Join Date: 29 Sep 17
Posts: 5
Posted: Mon, 2017-11-27 10:00

Thanks for the prompt response! I downloaded version 1.8.0 (presumably the latest?) and tried adding the allow_unconsumed_nodes flag but it still fails, although with a much more profuse error output this time.

for inception-resnet-v2:

2017-11-27 09:51:46,607 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_1/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_2/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_2/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_3/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_3/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_4/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_4/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_5/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_5/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_6/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_6/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_7/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_7/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_8/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_8/add) not consumed by converter: Add.
2017-11-27 09:51:46,624 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_9/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_9/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_10/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat/block35_10/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_1/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_1/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_2/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_2/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_3/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_3/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_4/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_4/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_5/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_5/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_6/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_6/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_7/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_7/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_8/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_8/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_9/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_9/add) not consumed by converter: Add.
2017-11-27 09:51:46,625 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_10/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_10/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_11/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_11/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_12/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_12/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_13/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_13/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_14/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_14/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_15/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_15/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_16/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_16/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_17/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_17/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_18/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_18/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_19/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_19/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_20/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_1/block17_20/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_1/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_1/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_2/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_2/add) not consumed by converter: Add.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_3/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,626 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_3/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_4/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_4/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_5/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_5/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_6/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_6/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_7/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_7/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_8/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_8/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_9/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Repeat_2/block8_9/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Block8/mul) not consumed by converter: Mul.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/InceptionResnetV2/Block8/add) not consumed by converter: Add.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/Logits/Flatten/Shape) not consumed by converter: Shape.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/Logits/Flatten/Slice) not consumed by converter: Slice.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/Logits/Flatten/Slice_1) not consumed by converter: Slice.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/Logits/Flatten/Prod) not consumed by converter: Prod.
2017-11-27 09:51:46,627 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionResnetV2/Logits/Flatten/ExpandDims) not consumed by converter: ExpandDims.
2017-11-27 09:52:01,683 - 123 - ERROR - Conversion failed: ERROR_TF_LAYER_INPUT_COUNT_ERROR: Layer Concatenation expects 1 input(s), actual 2
 

from inception-v4:

2017-11-27 09:57:08,875 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV4/Logits/PreLogitsFlatten/Shape) not consumed by converter: Shape.
2017-11-27 09:57:08,875 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV4/Logits/PreLogitsFlatten/Slice) not consumed by converter: Slice.
2017-11-27 09:57:08,875 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV4/Logits/PreLogitsFlatten/Slice_1) not consumed by converter: Slice.
2017-11-27 09:57:08,875 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV4/Logits/PreLogitsFlatten/Prod) not consumed by converter: Prod.
2017-11-27 09:57:08,875 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV4/Logits/PreLogitsFlatten/ExpandDims) not consumed by converter: ExpandDims.
2017-11-27 09:57:21,626 - 123 - ERROR - Conversion failed: ERROR_TF_CONCAT_INPUT: Concatenation layer requires at least two inputs.
 

and I went ahead and tried my own inception-v3 assuming that would work since it's in the example but that failed as well:

2017-11-27 09:59:33,864 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV3/Logits/SpatialSqueeze) not consumed by converter: Squeeze.
2017-11-27 09:59:33,864 - 308 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Operation (InceptionV3/Predictions/Shape) not consumed by converter: Shape.
2017-11-27 09:59:39,074 - 123 - ERROR - Conversion failed: ERROR_TF_LAYER_INPUT_COUNT_ERROR: Layer Softmax expects 1 input(s), actual 2
 

  • Up0
  • Down0
dmarques
Join Date: 15 Sep 17
Posts: 27
Posted: Mon, 2017-11-27 10:54

The first two models are not currently supported I suspect because some of the Add/Mul operations have contants as inputs.

SNPE will only convert successfuly if the inputs of an element wise add/mul are actual layers (conv operations are not currently supported)

With regard to the inception-v3 model where is is from and what command line arguments are you using? The SDK documentation has an inception v3 example that you should be able to follow to completion.

  • Up0
  • Down0
jtrammell
Join Date: 29 Sep 17
Posts: 5
Posted: Tue, 2017-11-28 13:04

I managed to get both inception-v3 and inception-v4 networks converted with some tweaks to the layers used.

 

I'm stuck with the inception-resnet-v2 network though. Without support for scalar multiplies and additions, and without support for tiling/repeating, there seems to be no path forward.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.