payload: {"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/29574","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/29574/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/29574/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/29574/events","html_url":"https://github.com/tensorflow/tensorflow/issues/29574","id":453916718,"node_id":"MDU6SXNzdWU0NTM5MTY3MTg=","number":29574,"title":"Op type not registered 'swish_f32' in binary running","user":{"login":"a411919924","id":23582167,"node_id":"MDQ6VXNlcjIzNTgyMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/23582167?v=4","gravatar_id":"","url":"https://api.github.com/users/a411919924","html_url":"https://github.com/a411919924","followers_url":"https://api.github.com/users/a411919924/followers","following_url":"https://api.github.com/users/a411919924/following{/other_user}","gists_url":"https://api.github.com/users/a411919924/gists{/gist_id}","starred_url":"https://api.github.com/users/a411919924/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a411919924/subscriptions","organizations_url":"https://api.github.com/users/a411919924/orgs","repos_url":"https://api.github.com/users/a411919924/repos","events_url":"https://api.github.com/users/a411919924/events{/privacy}","received_events_url":"https://api.github.com/users/a411919924/received_events","type":"User","site_admin":false},"labels":[{"id":1268652487,"node_id":"MDU6TGFiZWwxMjY4NjUyNDg3","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/2.0.0-alpha0","name":"2.0.0-alpha0","color":"5319e7","default":false},{"id":386191887,"node_id":"MDU6TGFiZWwzODYxOTE4ODc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"f4b400","default":false}],"state":"closed","locked":false,"assignee":{"login":"achandraa","id":48215593,"node_id":"MDQ6VXNlcjQ4MjE1NTkz","avatar_url":"https://avatars3.githubusercontent.com/u/48215593?v=4","gravatar_id":"","url":"https://api.github.com/users/achandraa","html_url":"https://github.com/achandraa","followers_url":"https://api.github.com/users/achandraa/followers","following_url":"https://api.github.com/users/achandraa/following{/other_user}","gists_url":"https://api.github.com/users/achandraa/gists{/gist_id}","starred_url":"https://api.github.com/users/achandraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achandraa/subscriptions","organizations_url":"https://api.github.com/users/achandraa/orgs","repos_url":"https://api.github.com/users/achandraa/repos","events_url":"https://api.github.com/users/achandraa/events{/privacy}","received_events_url":"https://api.github.com/users/achandraa/received_events","type":"User","site_admin":false},"assignees":[{"login":"achandraa","id":48215593,"node_id":"MDQ6VXNlcjQ4MjE1NTkz","avatar_url":"https://avatars3.githubusercontent.com/u/48215593?v=4","gravatar_id":"","url":"https://api.github.com/users/achandraa","html_url":"https://github.com/achandraa","followers_url":"https://api.github.com/users/achandraa/followers","following_url":"https://api.github.com/users/achandraa/following{/other_user}","gists_url":"https://api.github.com/users/achandraa/gists{/gist_id}","starred_url":"https://api.github.com/users/achandraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achandraa/subscriptions","organizations_url":"https://api.github.com/users/achandraa/orgs","repos_url":"https://api.github.com/users/achandraa/repos","events_url":"https://api.github.com/users/achandraa/events{/privacy}","received_events_url":"https://api.github.com/users/achandraa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2019-06-09T16:54:26Z","updated_at":"2019-06-14T14:32:46Z","closed_at":"2019-06-14T14:32:46Z","author_association":"NONE","body":"**System information**\r\n- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):\r\n- TensorFlow installed from (source or binary):\r\n- TensorFlow version (or github SHA if from source):\r\n\r\n\r\n**Provide the text output from tflite_convert**\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nNotFoundError                             Traceback (most recent call last)\r\n<ipython-input-9-a62a8332a64b> in <module>\r\n     10       verbose=1,\r\n     11     use_multiprocessing=True,\r\n---> 12     workers=4)\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch)\r\n   1513         shuffle=shuffle,\r\n   1514         initial_epoch=initial_epoch,\r\n-> 1515         steps_name='steps_per_epoch')\r\n   1516 \r\n   1517   def evaluate_generator(self,\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training_generator.py in model_iteration(model, data, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch, mode, batch_size, steps_name, **kwargs)\r\n    255 \r\n    256       is_deferred = not model._is_compiled\r\n--> 257       batch_outs = batch_function(*batch_data)\r\n    258       if not isinstance(batch_outs, list):\r\n    259         batch_outs = [batch_outs]\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py in train_on_batch(self, x, y, sample_weight, class_weight, reset_metrics)\r\n   1256         outputs = self.train_function(ins)  # pylint: disable=not-callable\r\n   1257       else:\r\n-> 1258         self._make_fit_function()\r\n   1259         outputs = self._fit_function(ins)  # pylint: disable=not-callable\r\n   1260 \r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py in _make_fit_function(self)\r\n   2175     ]\r\n   2176     self._make_train_function_helper(\r\n-> 2177         '_fit_function', [self.total_loss] + metrics_tensors)\r\n   2178 \r\n   2179   def _make_test_function_helper(self, fn_name, outputs):\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/engine/training.py in _make_train_function_helper(self, fn_name, outputs)\r\n   2160             updates=updates,\r\n   2161             name='train_function',\r\n-> 2162             **self._function_kwargs)\r\n   2163         setattr(self, fn_name, fn)\r\n   2164 \r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/backend.py in function(inputs, outputs, updates, name, **kwargs)\r\n   3241       raise ValueError('Session keyword arguments are not support during '\r\n   3242                        'eager execution. You passed: %s' % (kwargs,))\r\n-> 3243     return EagerExecutionFunction(inputs, outputs, updates=updates, name=name)\r\n   3244 \r\n   3245   if kwargs:\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/backend.py in __init__(self, inputs, outputs, updates, name)\r\n   3162         lifted_map = lift_to_graph.lift_to_graph(\r\n   3163             init_tensors=init_tensors, graph=exec_graph, sources=inputs,\r\n-> 3164             add_sources=True, handle_captures=True, base_graph=source_graph)\r\n   3165 \r\n   3166         inputs = [lifted_map[i] for i in inputs]\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/eager/lift_to_graph.py in lift_to_graph(init_tensors, graph, sources, disallowed_placeholders, add_sources, handle_captures, base_graph)\r\n    313         continue\r\n    314 \r\n--> 315       _copy_non_source(op=op, graph=graph, op_map=op_map)\r\n    316 \r\n    317     return op_map\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/eager/lift_to_graph.py in _copy_non_source(op, graph, op_map)\r\n    158         dtypes=[x.dtype for x in op.outputs],\r\n    159         attrs=op.node_def.attr,\r\n--> 160         name=op.name)\r\n    161   op_map[op] = copied_op\r\n    162   for i, o in enumerate(op.outputs):\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/func_graph.py in create_op(self, op_type, inputs, dtypes, input_types, name, attrs, op_def, compute_shapes, compute_device)\r\n    450     return super(FuncGraph, self).create_op(\r\n    451         op_type, inputs, dtypes, input_types, name, attrs, op_def,\r\n--> 452         compute_device=compute_device)\r\n    453 \r\n    454   def capture(self, tensor, name=None):\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs)\r\n    505                 'in a future version' if date is None else ('after %s' % date),\r\n    506                 instructions)\r\n--> 507       return func(*args, **kwargs)\r\n    508 \r\n    509     doc = _add_deprecated_arg_notice_to_docstring(\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py in create_op(***failed resolving arguments***)\r\n   3477           input_types=input_types,\r\n   3478           original_op=self._default_original_op,\r\n-> 3479           op_def=op_def)\r\n   3480       self._create_op_helper(ret, compute_device=compute_device)\r\n   3481     return ret\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py in __init__(self, node_def, g, inputs, output_types, control_inputs, input_types, original_op, op_def)\r\n   1975     else:\r\n   1976       if op_def is None:\r\n-> 1977         op_def = self._graph._get_op_def(node_def.op)\r\n   1978       # TODO(skyewm): op_def_library.apply_op() flattens the incoming inputs.\r\n   1979       # Refactor so we don't have to do this here.\r\n\r\n/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py in _get_op_def(self, type)\r\n   3864     with c_api_util.tf_buffer() as buf:\r\n   3865       # pylint: disable=protected-access\r\n-> 3866       c_api.TF_GraphGetOpDef(self._c_graph, compat.as_bytes(type), buf)\r\n   3867       # pylint: enable=protected-access\r\n   3868       data = c_api.TF_GetBuffer(buf)\r\n\r\nNotFoundError: Op type not registered 'swish_f32' in binary running on tensorflow-20190607-122214. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.```\r\n\r\nAlso, please include a link to a GraphDef or the model if possible.\r\n\r\n**Any other info / logs**\r\n\r\nMy running environment:\r\nTensorflow 2.0 alpha,\r\nPython 3.5.3\r\non Google Cloud Platform.\r\n\r\nInclude any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/502132464","html_url":"https://github.com/tensorflow/tensorflow/issues/29574#issuecomment-502132464","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/29574","id":502132464,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMjEzMjQ2NA==","user":{"login":"a411919924","id":23582167,"node_id":"MDQ6VXNlcjIzNTgyMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/23582167?v=4","gravatar_id":"","url":"https://api.github.com/users/a411919924","html_url":"https://github.com/a411919924","followers_url":"https://api.github.com/users/a411919924/followers","following_url":"https://api.github.com/users/a411919924/following{/other_user}","gists_url":"https://api.github.com/users/a411919924/gists{/gist_id}","starred_url":"https://api.github.com/users/a411919924/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a411919924/subscriptions","organizations_url":"https://api.github.com/users/a411919924/orgs","repos_url":"https://api.github.com/users/a411919924/repos","events_url":"https://api.github.com/users/a411919924/events{/privacy}","received_events_url":"https://api.github.com/users/a411919924/received_events","type":"User","site_admin":false},"created_at":"2019-06-14T14:32:46Z","updated_at":"2019-06-14T14:32:46Z","author_association":"NONE","body":"> tf.compat.v1.disable_eager_execution() fixed that issue for me but I'm using the Python API for tflite convert.\r\n> \r\n> EDIT: That's not helping at all though, because later I get errors with the tflite converter because it needs to be in eager execution.\r\n\r\nIt finally works for me. Thank you so much!"}}
other: {"actor":{"display_login":"a411919924"}}