{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17501","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17501/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17501/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17501/events","html_url":"https://github.com/tensorflow/tensorflow/issues/17501","id":302994318,"node_id":"MDU6SXNzdWUzMDI5OTQzMTg=","number":17501,"title":"convert result mismatch between command-line  and python_api","user":{"login":"ChiFang","id":16358320,"node_id":"MDQ6VXNlcjE2MzU4MzIw","avatar_url":"https://avatars3.githubusercontent.com/u/16358320?v=4","gravatar_id":"","url":"https://api.github.com/users/ChiFang","html_url":"https://github.com/ChiFang","followers_url":"https://api.github.com/users/ChiFang/followers","following_url":"https://api.github.com/users/ChiFang/following{/other_user}","gists_url":"https://api.github.com/users/ChiFang/gists{/gist_id}","starred_url":"https://api.github.com/users/ChiFang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChiFang/subscriptions","organizations_url":"https://api.github.com/users/ChiFang/orgs","repos_url":"https://api.github.com/users/ChiFang/repos","events_url":"https://api.github.com/users/ChiFang/events{/privacy}","received_events_url":"https://api.github.com/users/ChiFang/received_events","type":"User","site_admin":false},"labels":[{"id":750616506,"node_id":"MDU6TGFiZWw3NTA2MTY1MDY=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite","name":"comp:lite","color":"e99695","default":false},{"id":473172988,"node_id":"MDU6TGFiZWw0NzMxNzI5ODg=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug/performance","name":"type:bug/performance","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"andrehentz","id":25754898,"node_id":"MDQ6VXNlcjI1NzU0ODk4","avatar_url":"https://avatars3.githubusercontent.com/u/25754898?v=4","gravatar_id":"","url":"https://api.github.com/users/andrehentz","html_url":"https://github.com/andrehentz","followers_url":"https://api.github.com/users/andrehentz/followers","following_url":"https://api.github.com/users/andrehentz/following{/other_user}","gists_url":"https://api.github.com/users/andrehentz/gists{/gist_id}","starred_url":"https://api.github.com/users/andrehentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrehentz/subscriptions","organizations_url":"https://api.github.com/users/andrehentz/orgs","repos_url":"https://api.github.com/users/andrehentz/repos","events_url":"https://api.github.com/users/andrehentz/events{/privacy}","received_events_url":"https://api.github.com/users/andrehentz/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrehentz","id":25754898,"node_id":"MDQ6VXNlcjI1NzU0ODk4","avatar_url":"https://avatars3.githubusercontent.com/u/25754898?v=4","gravatar_id":"","url":"https://api.github.com/users/andrehentz","html_url":"https://github.com/andrehentz","followers_url":"https://api.github.com/users/andrehentz/followers","following_url":"https://api.github.com/users/andrehentz/following{/other_user}","gists_url":"https://api.github.com/users/andrehentz/gists{/gist_id}","starred_url":"https://api.github.com/users/andrehentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrehentz/subscriptions","organizations_url":"https://api.github.com/users/andrehentz/orgs","repos_url":"https://api.github.com/users/andrehentz/repos","events_url":"https://api.github.com/users/andrehentz/events{/privacy}","received_events_url":"https://api.github.com/users/andrehentz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-03-07T07:41:49Z","updated_at":"2018-06-10T18:55:16Z","closed_at":null,"author_association":"NONE","body":"### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**:\r\nLinux Ubuntu 16.04\r\n- **TensorFlow installed from (source or binary)**:\r\nbinary: by \"pip3 install --upgrade tensorflow-gpu\"\r\n- **TensorFlow version (use command below)**:\r\ntensorflow-gpu (1.6.0)\r\n- **Python version**: \r\nPython 3.5.2\r\n- **Bazel version (if compiling from source)**: 0.11.0\r\n- **GCC/Compiler version (if compiling from source)**:\r\ngcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609\r\n- **CUDA/cuDNN version**: CUDA 9.0 cuDNN 7\r\n- **GPU model and memory**: Null\r\n- **Exact command to reproduce**:\r\n\r\n### Describe the problem\r\n I save my pre-trained model into .pb file according to [freeze_graph.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/freeze_graph.py) and [optimize_for_inference.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/optimize_for_inference.py)\r\nOnce I covert to .tflite by command-line with following cmd: \r\n> ~/tensorflow/bazel-bin/tensorflow/contrib/lite/toco/toco \\\r\n--input_file=RD_Net_TransConv_fuse.pb \\\r\n--output_file=./RD_Net_TransConv_fuse.tflite \\\r\n--input_format=TENSORFLOW_GRAPHDEF \\\r\n--output_format=TFLITE \\\r\n--inference_type=FLOAT \\\r\n--input_data_types =FLOAT \\\r\n--input_arrays=Placeholder \\\r\n--output_arrays=seq_4/Conv/BiasAdd \\\r\n--input_shapes=1,240,320,3 \\\r\n--logtostderr\r\n\r\nthe error show that \"TransposeConv\" is not supported : \r\n> 2018-03-07 15:07:49.317477: F tensorflow/contrib/lite/toco/tflite/export.cc:304] Some of the operators in the model are not supported by the standard TensorFlow Lite runtime. If you have a custom implementation for them you can disable this error with --allow_custom_ops. Here is a list of operators for which you will need custom implementations: TransposeConv.\r\n\r\nIf I use [python_api](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/toco/g3doc/python_api.md) to convert my tensor into .tflite, it work fine without any error msg.\r\nBut the .tflite can not be used in android....  it will crash when  I want to getOutputName or run\r\n\r\nerror msg in android:\r\n> Can't get Output Names, model error:Invalid handle to Interpreter.\r\n\r\ndoes tensorflow lite support \"TransposeConv\"? I don't see any information in [Compatibility Guide](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/tf_ops_compatibility.md)\r\n\r\nAny suggestion? Thanks~~~\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/396072548","html_url":"https://github.com/tensorflow/tensorflow/issues/17501#issuecomment-396072548","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/17501","id":396072548,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA3MjU0OA==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T18:55:16Z","updated_at":"2018-06-10T18:55:16Z","author_association":"MEMBER","body":"Nagging Assignee @andrehentz: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly."}}
{"actor":{"display_login":"tensorflowbutler"}}