{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tfjs/issues/755","repository_url":"https://api.github.com/repos/tensorflow/tfjs","labels_url":"https://api.github.com/repos/tensorflow/tfjs/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tfjs/issues/755/comments","events_url":"https://api.github.com/repos/tensorflow/tfjs/issues/755/events","html_url":"https://github.com/tensorflow/tfjs/issues/755","id":366240860,"node_id":"MDU6SXNzdWUzNjYyNDA4NjA=","number":755,"title":"Provided weight data has no target variable: batch_normalization","user":{"login":"rajeev-samalkha","id":26021696,"node_id":"MDQ6VXNlcjI2MDIxNjk2","avatar_url":"https://avatars2.githubusercontent.com/u/26021696?v=4","gravatar_id":"","url":"https://api.github.com/users/rajeev-samalkha","html_url":"https://github.com/rajeev-samalkha","followers_url":"https://api.github.com/users/rajeev-samalkha/followers","following_url":"https://api.github.com/users/rajeev-samalkha/following{/other_user}","gists_url":"https://api.github.com/users/rajeev-samalkha/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeev-samalkha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeev-samalkha/subscriptions","organizations_url":"https://api.github.com/users/rajeev-samalkha/orgs","repos_url":"https://api.github.com/users/rajeev-samalkha/repos","events_url":"https://api.github.com/users/rajeev-samalkha/events{/privacy}","received_events_url":"https://api.github.com/users/rajeev-samalkha/received_events","type":"User","site_admin":false},"labels":[{"id":875269125,"node_id":"MDU6TGFiZWw4NzUyNjkxMjU=","url":"https://api.github.com/repos/tensorflow/tfjs/labels/layers","name":"layers","color":"e899ab","default":false},{"id":856192919,"node_id":"MDU6TGFiZWw4NTYxOTI5MTk=","url":"https://api.github.com/repos/tensorflow/tfjs/labels/question","name":"question","color":"eeeeee","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-03T09:07:54Z","updated_at":"2018-10-24T05:14:24Z","closed_at":null,"author_association":"NONE","body":"To get help from the community, check out our [Google group](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs).\r\n\r\n#### TensorFlow.js version\r\n0.13\r\n#### Browser version\r\nChrome Version 69.0.3497.100\r\n#### Describe the problem or feature request\r\nI converted a Keras model to tfjs using python utility with no errors. But when I try to load the model in tfjs, I get the following error:\r\n\r\n```\r\ntfjs@0.13.0:2 Uncaught (in promise) Error: Provided weight data has no target variable: batch_normalization_1_2/gamma\r\n    at new t (tfjs@0.13.0:2)\r\n    at loadWeightsFromNamedTensorMap (tfjs@0.13.0:2)\r\n    at t.loadWeights (tfjs@0.13.0:2)\r\n    at tfjs@0.13.0:2\r\n    at tfjs@0.13.0:2\r\n    at Object.next (tfjs@0.13.0:2)\r\n    at i (tfjs@0.13.0:2)\r\n```\r\n#### Code to reproduce the bug / link to feature request\r\nRunning it on local machine.\r\nmodel = await tf.loadModel(<path_to_model.json>)"},"comment":{"url":"https://api.github.com/repos/tensorflow/tfjs/issues/comments/432515552","html_url":"https://github.com/tensorflow/tfjs/issues/755#issuecomment-432515552","issue_url":"https://api.github.com/repos/tensorflow/tfjs/issues/755","id":432515552,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjUxNTU1Mg==","user":{"login":"Raza25","id":43875409,"node_id":"MDQ6VXNlcjQzODc1NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/43875409?v=4","gravatar_id":"","url":"https://api.github.com/users/Raza25","html_url":"https://github.com/Raza25","followers_url":"https://api.github.com/users/Raza25/followers","following_url":"https://api.github.com/users/Raza25/following{/other_user}","gists_url":"https://api.github.com/users/Raza25/gists{/gist_id}","starred_url":"https://api.github.com/users/Raza25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raza25/subscriptions","organizations_url":"https://api.github.com/users/Raza25/orgs","repos_url":"https://api.github.com/users/Raza25/repos","events_url":"https://api.github.com/users/Raza25/events{/privacy}","received_events_url":"https://api.github.com/users/Raza25/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T05:14:24Z","updated_at":"2018-10-24T05:14:24Z","author_association":"NONE","body":"I get the same error while loading a keras converted model on browser.\r\nfollowing error pops up\r\n![embeddings_issue](https://user-images.githubusercontent.com/43875409/47407630-9245e600-d775-11e8-9b4f-28c0f1f1292d.PNG)\r\n\r\n\r\nAs for the model weights:\r\n![model_issue_embedding](https://user-images.githubusercontent.com/43875409/47407494-e603ff80-d774-11e8-8faf-ac68793b2ae7.PNG)\r\n\r\nNote: Some of my converted model tend to work fine on browser having embeddings in it, but sometimes this error shows up. @bileschi @davidsoergel kindly post a proper fix for this issue."}}
{"actor":{"display_login":"Raza25"}}