Try the following:
python
>>> import tensorflow as tf
>>> gf = tf.GraphDef()
>>> gf.ParseFromString(open('/your/path/to/graphname.pb','rb').read())
>>> [n.name + '=>' + n.op for n in gf.node if n.op in ( 'Softmax','Placeholder')]
, :
['Mul=>Placeholder', 'final_result=>Softmax']
, node .
, , - ?
:
E/AndroidRuntime(16821): java.lang.IllegalArgumentException: Incompatible
shapes: [1,224,224,3] vs. [32,1,1,2048]
UPDATE: , () , :
[n.name + '=>' + n.op for n in gf.node if n.op in ( 'Softmax','Mul')]
, (re) / op "Mul" "Softmax", / "Placeholder" "Softmax".
BTW, : https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/. memmapped graph - , , memmapped graph android, ...:(
( / android)