Title: word2vec_tensorfow; AttributeError: module 'tensorflow' has no attribute 'placeholder' · Issue #2 · minsuk-heo/python_tutorial · GitHub
Open Graph Title: word2vec_tensorfow; AttributeError: module 'tensorflow' has no attribute 'placeholder' · Issue #2 · minsuk-heo/python_tutorial
X Title: word2vec_tensorfow; AttributeError: module 'tensorflow' has no attribute 'placeholder' · Issue #2 · minsuk-heo/python_tutorial
Description: versions: I am using tensorflow 2; python3 Thank you for the helpful tutorial! I am trying your tutorial code for word2vec but seems there is a version issue. I searched and found out that seems placeholder is no longer supported in Tens...
Open Graph Description: versions: I am using tensorflow 2; python3 Thank you for the helpful tutorial! I am trying your tutorial code for word2vec but seems there is a version issue. I searched and found out that seems pl...
X Description: versions: I am using tensorflow 2; python3 Thank you for the helpful tutorial! I am trying your tutorial code for word2vec but seems there is a version issue. I searched and found out that seems pl...
Opengraph URL: https://github.com/minsuk-heo/python_tutorial/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"word2vec_tensorfow; AttributeError: module 'tensorflow' has no attribute 'placeholder'","articleBody":"versions: I am using tensorflow 2; python3\r\n\r\nThank you for the helpful tutorial! I am trying your tutorial code for word2vec but seems there is a version issue.\r\n\r\nI searched and found out that seems placeholder is no longer supported in TensorFlow v2, could you please update the tutorial code or share a hint on how to fix it? Thanks!\r\n\r\nError is found at: \r\nword2vec_tensorflow -\u003e Defien Tensorflow Graph\r\n`import tensorflow as tf\r\n# making placeholders for X_train and Y_train\r\nx = tf.placeholder(tf.float32, shape=(None, ONE_HOT_DIM))\r\ny_label = tf.placeholder(tf.float32, shape=(None, ONE_HOT_DIM))`\r\n\r\nError message:\r\n`---------------------------------------------------------------------------\r\nAttributeError Traceback (most recent call last)\r\n\u003cipython-input-49-996981840593\u003e in \u003cmodule\u003e\r\n 1 import tensorflow as tf\r\n 2 # making placeholders for X_train and Y_train\r\n----\u003e 3 x = tf.placeholder(tf.float32, shape=(None, ONE_HOT_DIM))\r\n 4 y_label = tf.placeholder(tf.float32, shape=(None, ONE_HOT_DIM))\r\n\r\nAttributeError: module 'tensorflow' has no attribute 'placeholder'`","author":{"url":"https://github.com/ziwenyd","@type":"Person","name":"ziwenyd"},"datePublished":"2020-08-31T11:50:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/python_tutorial/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45c51a4d-6129-0fa6-f4f9-c8fc0c0f67c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4E8:247C68:6C19E4:936EAB:697754F0 |
| html-safe-nonce | 43404c0bb52b2f300ea606fce2bb677af8ab20ecae4c7e1f2b3c26aca0f81894 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEU4OjI0N0M2ODo2QzE5RTQ6OTM2RUFCOjY5Nzc1NEYwIiwidmlzaXRvcl9pZCI6Ijc2MjkwOTUwNzc1OTA1NTM4NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed34d4f2c00f9b4fef5006906f58a482e5878d39fbb2cf1c52d313e66874f60b |
| hovercard-subject-tag | issue:689146604 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/minsuk-heo/python_tutorial/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64163b7f5b992e1ed92d231303c9518bed318659127e134caa9c0d91a1f5a975/minsuk-heo/python_tutorial/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64163b7f5b992e1ed92d231303c9518bed318659127e134caa9c0d91a1f5a975/minsuk-heo/python_tutorial/issues/2 |
| og:image:alt | versions: I am using tensorflow 2; python3 Thank you for the helpful tutorial! I am trying your tutorial code for word2vec but seems there is a version issue. I searched and found out that seems pl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ziwenyd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/minsuk-heo/python_tutorial git https://github.com/minsuk-heo/python_tutorial.git |
| octolytics-dimension-user_id | 14434896 |
| octolytics-dimension-user_login | minsuk-heo |
| octolytics-dimension-repository_id | 110315727 |
| octolytics-dimension-repository_nwo | minsuk-heo/python_tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 110315727 |
| octolytics-dimension-repository_network_root_nwo | minsuk-heo/python_tutorial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width