url
stringlengths
63
63
repository_url
stringclasses
1 value
labels_url
stringlengths
77
77
comments_url
stringlengths
72
72
events_url
stringlengths
70
70
html_url
stringlengths
51
53
id
int64
1.57B
2.35B
node_id
stringlengths
18
19
number
int64
59.5k
69.6k
title
stringlengths
1
554
user
dict
labels
listlengths
0
8
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
listlengths
0
8
milestone
null
comments
sequencelengths
0
30
created_at
timestamp[s]
updated_at
timestamp[s]
closed_at
timestamp[s]
author_association
stringclasses
4 values
active_lock_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
body
stringlengths
1
65.4k
reactions
dict
timeline_url
stringlengths
72
72
performed_via_github_app
null
state_reason
stringclasses
3 values
is_pull_request
bool
2 classes
https://api.github.com/repos/tensorflow/tensorflow/issues/60932
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60932/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60932/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60932/events
https://github.com/tensorflow/tensorflow/issues/60932
1,764,910,344
I_kwDOArmXAs5pMmUI
60,932
get_file raises exception if the content-length is unknown
{ "login": "freemant2000", "id": 1174319, "node_id": "MDQ6VXNlcjExNzQzMTk=", "avatar_url": "https://avatars.githubusercontent.com/u/1174319?v=4", "gravatar_id": "", "url": "https://api.github.com/users/freemant2000", "html_url": "https://github.com/freemant2000", "followers_url": "https://api.github.com/users/freemant2000/followers", "following_url": "https://api.github.com/users/freemant2000/following{/other_user}", "gists_url": "https://api.github.com/users/freemant2000/gists{/gist_id}", "starred_url": "https://api.github.com/users/freemant2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/freemant2000/subscriptions", "organizations_url": "https://api.github.com/users/freemant2000/orgs", "repos_url": "https://api.github.com/users/freemant2000/repos", "events_url": "https://api.github.com/users/freemant2000/events{/privacy}", "received_events_url": "https://api.github.com/users/freemant2000/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "It seems the bug can be fixed by changing the code in the DLProgbar class in data_utils.py from:\r\n\r\n```python\r\n def __call__(self, block_num, block_size, total_size):\r\n if not self.progbar:\r\n if total_size == -1:\r\n total_size = None\r\n self.progbar = Progbar(total_size)\r\n```\r\nto:\r\n```python\r\n def __call__(self, block_num, block_size, total_size):\r\n if total_size == -1:\r\n total_size = None\r\n if not self.progbar:\r\n self.progbar = Progbar(total_size)\r\n```\r\n", "The crash is caused by the fact that total_size is -1 but the progbar has been created so it isn't turned into None. But the code later assumes only None but not -1 means size unknown.", "@freemant2000,\r\nI tried to execute the code in an alternative approach and **tf.keras.utils.get_file** working as expected & executed the code without any issue/error. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/2a8f050485f2640a22ed5e13ce77f1e9/untitled1211.ipynb).\r\n\r\nAlso it was mentioned above to modify the code, but the code was working without any issues. Could you please provide any unit test case for the statement mentioned. It will be easy to analyse and debug the issue. Thank you!", "As shown in the colab tests, it fails on http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data but works on some other URLs because the former doesn't include a Content-Length header in the HTTP response, which causes the code to fail.", "I have made a unit test demonstrating the problem. Please find the files attached.\r\n[DLProgbar-unit-test.zip](https://github.com/tensorflow/tensorflow/files/11832255/DLProgbar-unit-test.zip)\r\n", "Hi, \r\n\r\nI was able to execute the code in Tf-nightly without any issues, please find the attached Gist [here](https://gist.github.com/sachinprasadhs/02ecff6555b025e0b3aef0ef4e6dec8b) for reference. Thanks!\r\n\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60932\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60932\">No</a>\n" ]
2023-06-20T08:27:18
2023-08-02T01:49:49
2023-08-02T01:49:46
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.11.0 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04.2 LTS ### Mobile device _No response_ ### Python version 3.10.6 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Calling get_file on a URL that doesn't indicate the content-length causes an exception. ### Standalone code to reproduce the issue ```shell import tensorflow as tf p=tf.keras.utils.get_file(fname="auto-mpg.csv", origin="http://archive.ics.uci.edu/ml/"+ "machine-learning-databases/auto-mpg/auto-mpg.data") print(p) ``` ### Relevant log output ```shell Downloading data from http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data 8192/Unknown - 0s 0us/stepTraceback (most recent call last): File "/home/kent/env-ml/src/f3.py", line 3, in <module> p=tf.keras.utils.get_file(fname="auto-mpg.csv", File "/home/kent/env-ml/lib/python3.10/site-packages/keras/utils/data_utils.py", line 300, in get_file urlretrieve(origin, fpath, DLProgbar()) File "/home/kent/env-ml/lib/python3.10/site-packages/keras/utils/data_utils.py", line 86, in urlretrieve for chunk in chunk_read(response, reporthook=reporthook): File "/home/kent/env-ml/lib/python3.10/site-packages/keras/utils/data_utils.py", line 78, in chunk_read reporthook(count, chunk_size, total_size) File "/home/kent/env-ml/lib/python3.10/site-packages/keras/utils/data_utils.py", line 294, in __call__ self.progbar.update(self.progbar.target) File "/home/kent/env-ml/lib/python3.10/site-packages/keras/utils/generic_utils.py", line 252, in update bar = "%7d/Unknown" % current TypeError: %d format: a real number is required, not NoneType ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60932/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60932/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60931
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60931/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60931/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60931/events
https://github.com/tensorflow/tensorflow/pull/60931
1,764,808,500
PR_kwDOArmXAs5TaErY
60,931
Fixed the broken link
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-20T07:22:06
2023-08-08T14:43:39
2023-06-21T06:40:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60931", "html_url": "https://github.com/tensorflow/tensorflow/pull/60931", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60931.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60931.patch", "merged_at": "2023-06-21T06:40:08" }
I have changed the broken link address for xla_gpu_codegen from https://www.tensorflow.org/mlir/xla_gpu_codegen to https://www.tensorflow.org/mlir/xla_gpu_codegen?hl=zh-cn in TF documentation.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60931/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60931/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60930
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60930/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60930/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60930/events
https://github.com/tensorflow/tensorflow/issues/60930
1,764,570,881
I_kwDOArmXAs5pLTcB
60,930
The repository '@llvm_zlib' could not be resolved and referenced by '@llvm-project//llvm:Support'
{ "login": "BealZephyr", "id": 116792034, "node_id": "U_kgDOBvYa4g", "avatar_url": "https://avatars.githubusercontent.com/u/116792034?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BealZephyr", "html_url": "https://github.com/BealZephyr", "followers_url": "https://api.github.com/users/BealZephyr/followers", "following_url": "https://api.github.com/users/BealZephyr/following{/other_user}", "gists_url": "https://api.github.com/users/BealZephyr/gists{/gist_id}", "starred_url": "https://api.github.com/users/BealZephyr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BealZephyr/subscriptions", "organizations_url": "https://api.github.com/users/BealZephyr/orgs", "repos_url": "https://api.github.com/users/BealZephyr/repos", "events_url": "https://api.github.com/users/BealZephyr/events{/privacy}", "received_events_url": "https://api.github.com/users/BealZephyr/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @BealZephyr ,\r\n\r\nThanks for reporting the issue. The problem might be related to `zlib` version. To confirm that could you try build with TF2.10 version and confirm whether it works ?\r\n\r\nAlternatively please replace the below code in master branch\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/workspace2.bzl#LL578C1-L585C1\r\nwith \r\nhttps://github.com/tensorflow/tensorflow/blob/r2.10/tensorflow/workspace2.bzl#L564-L571 \r\n\r\nand also the below line from master branch\r\nhttps://github.com/tensorflow/tensorflow/blob/master/third_party/png.BUILD#LL64C1\r\nto \r\nhttps://github.com/tensorflow/tensorflow/blob/r2.10/third_party/png.BUILD#L64\r\n\r\nAfter the above changes try to build again and let us know the outcome.\r\n\r\nThanks!", "Hi @SuryanarayanaY ,\r\n\r\nThank you for your prompt response. I followed your recommendations and tried to build with [TF2.10](https://github.com/tensorflow/tensorflow/tree/r2.10), but it still failed. The error message appears as follows:\r\n\r\n```\r\nERROR: /workdir2/tensorflow/tensorflow/compiler/mlir/hlo/BUILD:2091:11: no such target '@llvm-project//mlir:AsmParser': target 'AsmParser' not declared in package 'mlir' (did you mean 'Parser'?) defined by /root/.cache/bazel/_bazel_root/1bd8bd6e381aed66bea8b87fef9055ba/external/llvm-project/mlir/BUILD.bazel and referenced by '//tensorflow/compiler/mlir/hlo:propagate_static_shapes_to_kernel'\r\nERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted:\r\nINFO: Elapsed time: 0.493s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (2 packages loaded, 0 targets configured)\r\n```\r\nI also tried to build with [master](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir) branch by replacing workspace2.bzl and png.BUILD, and I encountered the following error:\r\n\r\n```\r\nERROR: /root/.cache/bazel/_bazel_root/1bd8bd6e381aed66bea8b87fef9055ba/external/llvm-project/llvm/BUILD.bazel:184:11: no such package '@llvm_zstd//': The repository '@llvm_zstd' could not be resolved: Repository '@llvm_zstd' is not defined and referenced by '@llvm-project//llvm:Support'\r\nWARNING: Download from https://golang.org/dl/?mode=json&include=all failed: class java.io.IOException connect timed out\r\nERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted:\r\nINFO: Elapsed time: 0.302s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (1 packages loaded, 0 targets configured)\r\n currently loading: tensorflow/lite/schema\r\n Fetching repository @stablehlo; starting\r\n```\r\nI tried a lot, but it didn't work. .Can you take a look at it for me?", "I just want to mention that I had the same problem as @BealZephyr and the suggested change (which I see are already implmented on the main branch) did not help. ", "HI, Same problem as the OP. In my case, the error message is as follows: \r\n\r\n``` \r\n no such package '@llvm_zlib//': The repository '@llvm_zlib' could not be resolved: Repository '@llvm_zlib' is not defined and referenced by '@llvm-project//llvm:Support'\r\nERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted:\r\n\r\n```", "Related to #62384 ", "> ```\r\n> no such package '@llvm_zlib//': The repository '@llvm_zlib' could not be resolved: Repository '@llvm_zlib' is not defined and referenced by '@llvm-project//llvm:Support'\r\n> ERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted:\r\n> ```\r\n\r\nI am getting the same error.\r\n\r\nSince tensorflow is compiled with `clang-17`. I thought if I checkout the tag `llvmorg-17.0.6` in `llvm-project`, it might work. Still no luck. \r\n\r\nHow do we do this?", "This could be a possible workaround?\r\n\r\nhttps://github.com/tensorflow/tensorflow/issues/69367#issuecomment-2155693927" ]
2023-06-20T03:50:49
2024-06-07T23:33:56
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version master ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 18.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version 6.1.0 ### GCC/Compiler version 7.5.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? tf-opt Build failure! ### Standalone code to reproduce the issue ```shell build MLIR: -G Ninja ../llvm \ -DLLVM_BUILD_EXAMPLES=ON \ -DLLVM_ENABLE_PROJECTS=mlir \ -DLLVM_BUILD_EXAMPLES=ON \ -DLLVM_TARGETS_TO_BUILD="X86" \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_ASSERTIONS=ON\ -DCMAKE_C_COMPILER=/home/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang\ -DCMAKE_CXX_COMPILER=/home/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ \ -DLLVM_ENABLE_ZLIB=ON\ -DLLVM_ENABLE_ZLIB=ON\ -DLLVM_ENABLE_ZSTD=ON bazel build: bazel build --override_repository="llvm-raw=${LLVM_SRC}" \ -c opt tensorflow/compiler/mlir:tf-opt``` ### Relevant log output ```shell ERROR: /root/.cache/bazel/_bazel_root/58adfe0c0193ce259b2b32549c3d3a4f/external/llvm-project/llvm/BUILD.bazel:184:11: no such package '@llvm_zlib//': The repository '@llvm_zlib' could not be resolved: Repository '@llvm_zlib' is not defined and referenced by '@llvm-project//llvm:Support' ERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted: INFO: Elapsed time: 2.104s INFO: 0 processes. FAILED: Build did NOT complete successfully (198 packages loaded, 3560 targets configured) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60930/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60930/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60929
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60929/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60929/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60929/events
https://github.com/tensorflow/tensorflow/issues/60929
1,764,516,786
I_kwDOArmXAs5pLGOy
60,929
`Bias` fails to broadcast in the context of `matmul` in tf lite model
{ "login": "YaoJiayi", "id": 82156730, "node_id": "MDQ6VXNlcjgyMTU2NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/82156730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YaoJiayi", "html_url": "https://github.com/YaoJiayi", "followers_url": "https://api.github.com/users/YaoJiayi/followers", "following_url": "https://api.github.com/users/YaoJiayi/following{/other_user}", "gists_url": "https://api.github.com/users/YaoJiayi/gists{/gist_id}", "starred_url": "https://api.github.com/users/YaoJiayi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YaoJiayi/subscriptions", "organizations_url": "https://api.github.com/users/YaoJiayi/orgs", "repos_url": "https://api.github.com/users/YaoJiayi/repos", "events_url": "https://api.github.com/users/YaoJiayi/events{/privacy}", "received_events_url": "https://api.github.com/users/YaoJiayi/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "miaout17", "id": 22063, "node_id": "MDQ6VXNlcjIyMDYz", "avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miaout17", "html_url": "https://github.com/miaout17", "followers_url": "https://api.github.com/users/miaout17/followers", "following_url": "https://api.github.com/users/miaout17/following{/other_user}", "gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}", "starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miaout17/subscriptions", "organizations_url": "https://api.github.com/users/miaout17/orgs", "repos_url": "https://api.github.com/users/miaout17/repos", "events_url": "https://api.github.com/users/miaout17/events{/privacy}", "received_events_url": "https://api.github.com/users/miaout17/received_events", "type": "User", "site_admin": false }
[ { "login": "miaout17", "id": 22063, "node_id": "MDQ6VXNlcjIyMDYz", "avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miaout17", "html_url": "https://github.com/miaout17", "followers_url": "https://api.github.com/users/miaout17/followers", "following_url": "https://api.github.com/users/miaout17/following{/other_user}", "gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}", "starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miaout17/subscriptions", "organizations_url": "https://api.github.com/users/miaout17/orgs", "repos_url": "https://api.github.com/users/miaout17/repos", "events_url": "https://api.github.com/users/miaout17/events{/privacy}", "received_events_url": "https://api.github.com/users/miaout17/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "I was able reproduce this issue. Please find the [gist](https://colab.research.google.com/gist/pjpratik/98e2a454aafb91de2aa202bd1b7d9b2f/60929.ipynb).\r\n\r\n@pkgoogle Could you please check if it is intended behaviour.\r\n\r\nThanks.", "Hello,\r\n\r\nbroadcasting is working for some simpler cases: [gist](https://colab.sandbox.google.com/gist/pkgoogle/35a12ccd0f2fca2ae8892b50db4260cd/60929.ipynb)\r\n\r\nSo this appears to be a legitimate bug.\r\n\r\n@miaout17, can you please take a look? Thanks.", "Any update on this?" ]
2023-06-20T02:32:43
2024-02-21T15:27:27
null
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.14.0-dev20230602 ### 2. Code This is the minimized code to reproduce the issue: ```python import tensorflow as tf import numpy as np x1 = tf.constant([1., 2.], shape=[1, 2]) class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() self.w = tf.Variable([[3., 4.], [5., 6.]]) self.b = tf.Variable([3.]) @tf.function(input_signature=[tf.TensorSpec(x1.shape, x1.dtype)]) def call(self, x): return tf.matmul(x, self.w) + self.b m = Model() print('Keras mode output: ', m(x1).numpy()) converter = tf.lite.TFLiteConverter.from_keras_model(m) tflite_model = converter.convert() def _evaluateTFLiteModel(tflite_model, input_data): interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for i in range(len(input_data)): interpreter.set_tensor(input_details[i]['index'], input_data[i]) interpreter.invoke() output_data = [interpreter.get_tensor(output_details[i]['index']) for i in range(len(output_details))] return output_data print('Lite mode output: ', _evaluateTFLiteModel(tflite_model,[x1])[0]) ``` ### 3. Failure after conversion Output: ``` Keras mode output: [[16. 19.]] Lite mode output: RuntimeError: tensorflow/lite/kernels/fully_connected.cc:360 NumElements(bias) != SizeOfDimension(filter, 0) (1 != 2)Node number 0 (FULLY_CONNECTED) failed to prepare.Failed to apply the default TensorFlow Lite delegate indexed at 0. ``` Conversion Failure: - During conversion, the model fails due to the following check at `tensorflow/lite/kernels/fully_connected.cc:360` ```cpp if (bias) { TF_LITE_ENSURE_EQ(context, NumElements(bias), SizeOfDimension(filter, 0)); } ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60929/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60929/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60926
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60926/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60926/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60926/events
https://github.com/tensorflow/tensorflow/issues/60926
1,764,107,005
I_kwDOArmXAs5pJiL9
60,926
FFT produces wrong results when using multiple GPUs with MirroredStrategy
{ "login": "mmjamm", "id": 137107555, "node_id": "U_kgDOCCwYYw", "avatar_url": "https://avatars.githubusercontent.com/u/137107555?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mmjamm", "html_url": "https://github.com/mmjamm", "followers_url": "https://api.github.com/users/mmjamm/followers", "following_url": "https://api.github.com/users/mmjamm/following{/other_user}", "gists_url": "https://api.github.com/users/mmjamm/gists{/gist_id}", "starred_url": "https://api.github.com/users/mmjamm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mmjamm/subscriptions", "organizations_url": "https://api.github.com/users/mmjamm/orgs", "repos_url": "https://api.github.com/users/mmjamm/repos", "events_url": "https://api.github.com/users/mmjamm/events{/privacy}", "received_events_url": "https://api.github.com/users/mmjamm/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "cantonios", "id": 2538739, "node_id": "MDQ6VXNlcjI1Mzg3Mzk=", "avatar_url": "https://avatars.githubusercontent.com/u/2538739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cantonios", "html_url": "https://github.com/cantonios", "followers_url": "https://api.github.com/users/cantonios/followers", "following_url": "https://api.github.com/users/cantonios/following{/other_user}", "gists_url": "https://api.github.com/users/cantonios/gists{/gist_id}", "starred_url": "https://api.github.com/users/cantonios/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cantonios/subscriptions", "organizations_url": "https://api.github.com/users/cantonios/orgs", "repos_url": "https://api.github.com/users/cantonios/repos", "events_url": "https://api.github.com/users/cantonios/events{/privacy}", "received_events_url": "https://api.github.com/users/cantonios/received_events", "type": "User", "site_admin": false }
[ { "login": "cantonios", "id": 2538739, "node_id": "MDQ6VXNlcjI1Mzg3Mzk=", "avatar_url": "https://avatars.githubusercontent.com/u/2538739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cantonios", "html_url": "https://github.com/cantonios", "followers_url": "https://api.github.com/users/cantonios/followers", "following_url": "https://api.github.com/users/cantonios/following{/other_user}", "gists_url": "https://api.github.com/users/cantonios/gists{/gist_id}", "starred_url": "https://api.github.com/users/cantonios/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cantonios/subscriptions", "organizations_url": "https://api.github.com/users/cantonios/orgs", "repos_url": "https://api.github.com/users/cantonios/repos", "events_url": "https://api.github.com/users/cantonios/events{/privacy}", "received_events_url": "https://api.github.com/users/cantonios/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "We are seeing similar issue recently with TF2.12, and it could be reproduced with this short script in a multi-gpu setup (we reproduced this on a machine with 2 A100 gpu, CUDA11.8, cuDNN8.6):\r\n\r\n```\r\nimport numpy as np\r\nimport tensorflow as tf\r\n\r\n# tf.debugging.set_log_device_placement(True)\r\n\r\nprint(\"multi gpu mirrored strategy test sanity check:\")\r\n\r\ndef run_fft(img):\r\n print(tf.signal.fft2d(tf.experimental.numpy.copy(img)))\r\n\r\nstrategy = tf.distribute.MirroredStrategy()\r\nrand_mat = tf.random.uniform(\r\n (1, 1, 686, 686),\r\n minval=0.0,\r\n maxval=1.0,\r\n dtype=tf.dtypes.float32,\r\n seed=None\r\n )\r\nimg = tf.cast(rand_mat, tf.complex64)\r\nwith strategy.scope():\r\n strategy.run(run_fft, args=(img,))\r\n```\r\nOutput with TF2.9:\r\n```\r\ntf.Tensor(\r\n[[[[ 2.35175906e+05 +0.j -1.30122070e+02 +71.79061j\r\n 2.00236359e+02 -40.830986j ... 2.86872749e+01-174.89594j\r\n 2.00236313e+02 +40.831j -1.30122101e+02 -71.790565j]\r\n [ 2.59338074e+01 -47.23604j 1.37966949e+02 +27.436068j\r\n 1.20167496e+02+118.6681j ... 1.09129379e+02 -69.504425j\r\n 9.90038986e+01+118.647736j -6.46898956e+01 -98.40455j ]\r\n [ 1.74128876e+02+181.25378j -2.27663452e+02 -70.84499j\r\n -3.25569305e+01+143.9032j ... 1.96747189e+01-331.84482j\r\n 8.72258377e+01+154.79916j 7.57820816e+01 -84.29112j ]\r\n ...\r\n [-8.93064423e+01 -94.69147j 2.13672241e+02+246.61185j\r\n 2.80917282e+01-143.79309j ... 2.39895905e+02 +28.519115j\r\n 9.76210938e+01 -32.177147j 5.52456627e+01-292.4319j ]\r\n [ 1.74128815e+02-181.2538j 7.57820969e+01 +84.29112j\r\n 8.72257385e+01-154.79922j ... -1.00665627e+02 -92.76081j\r\n -3.25569763e+01-143.90318j -2.27663406e+02 +70.8449j ]\r\n [ 2.59337730e+01 +47.23597j -6.46899033e+01 +98.40452j\r\n 9.90038757e+01-118.64778j ... -2.73922150e+02+190.94734j\r\n 1.20167503e+02-118.66812j 1.37966995e+02 -27.436005j]]]], shape=(1, 1, 686, 686), dtype=complex64)\r\ntf.Tensor(\r\n[[[[ 2.35175906e+05 +0.j -1.30122070e+02 +71.79061j\r\n 2.00236359e+02 -40.830986j ... 2.86872749e+01-174.89594j\r\n 2.00236313e+02 +40.831j -1.30122101e+02 -71.790565j]\r\n [ 2.59338074e+01 -47.23604j 1.37966949e+02 +27.436068j\r\n 1.20167496e+02+118.6681j ... 1.09129379e+02 -69.504425j\r\n 9.90038986e+01+118.647736j -6.46898956e+01 -98.40455j ]\r\n [ 1.74128876e+02+181.25378j -2.27663452e+02 -70.84499j\r\n -3.25569305e+01+143.9032j ... 1.96747189e+01-331.84482j\r\n 8.72258377e+01+154.79916j 7.57820816e+01 -84.29112j ]\r\n ...\r\n [-8.93064423e+01 -94.69147j 2.13672241e+02+246.61185j\r\n 2.80917282e+01-143.79309j ... 2.39895905e+02 +28.519115j\r\n 9.76210938e+01 -32.177147j 5.52456627e+01-292.4319j ]\r\n [ 1.74128815e+02-181.2538j 7.57820969e+01 +84.29112j\r\n 8.72257385e+01-154.79922j ... -1.00665627e+02 -92.76081j\r\n -3.25569763e+01-143.90318j -2.27663406e+02 +70.8449j ]\r\n [ 2.59337730e+01 +47.23597j -6.46899033e+01 +98.40452j\r\n 9.90038757e+01-118.64778j ... -2.73922150e+02+190.94734j\r\n 1.20167503e+02-118.66812j 1.37966995e+02 -27.436005j]]]], shape=(1, 1, 686, 686), dtype=complex64)\r\n```\r\n\r\nOutput with TF2.12:\r\n```\r\ntf.Tensor(\r\n[[[[ 2.3510438e+05 +0.j -2.3397424e+02 +95.00578j\r\n -2.8460379e+02 +96.456604j ... 3.8885651e+00+184.90929j\r\n -2.8460379e+02 -96.45657j -2.3397423e+02 -95.00578j ]\r\n [ 4.0683159e+01-196.26071j -3.3500740e+01+253.18457j\r\n 1.2614692e+02+251.45973j ... 1.1127013e+02 +73.44855j\r\n -9.9558403e+01+301.1387j -3.7669452e+02+258.1033j ]\r\n [-2.9365808e+02 -26.070122j 1.1248355e+02+219.34619j\r\n -4.5030090e+01-103.50034j ... 6.4451477e+01-142.80096j\r\n -2.9005927e+02 -39.51029j -1.2654387e+02 +66.92355j ]\r\n ...\r\n [-5.9005920e+01-109.54649j -2.5984564e+02 -8.701363j\r\n -1.3211296e+02 -64.48026j ... 1.5030142e+02+232.03638j\r\n -2.1768060e+02 -23.536972j -4.0744392e+01-186.61447j ]\r\n [-2.9365802e+02 +26.070091j -1.2654389e+02 -66.92351j\r\n -2.9005920e+02 +39.51022j ... 1.3489523e+02 -29.27546j\r\n -4.5030064e+01+103.50032j 1.1248353e+02-219.34612j ]\r\n [ 4.0683189e+01+196.26067j -3.7669446e+02-258.1033j\r\n -9.9558449e+01-301.1387j ... 9.9753399e+00 +51.120373j\r\n 1.2614685e+02-251.45963j -3.3500755e+01-253.18451j ]]]], shape=(1, 1, 686, 686), dtype=complex64)\r\ntf.Tensor(\r\n[[[[0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]\r\n [0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]\r\n [0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]\r\n ...\r\n [0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]\r\n [0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]\r\n [0.+0.j 0.+0.j 0.+0.j ... 0.+0.j 0.+0.j 0.+0.j]]]], shape=(1, 1, 686, 686), dtype=complex64)\r\n\r\n```", "@sachinprasadhs any update here? ", "@reedwm is there any update for this issue? Thanks!", "@hubingallin started looking into this issue.", "A bisect shows 877e6ecbd43957d8e7313efb61e962149f6231cb (cl/505171308) as the culrpit. I'm guessing the issue is that the FFT plan cache does not include the device in the cache key (probably cufftHandle is associated with the current context's device, or maybe even a stream). So running the same FFT on multiple devices would reuse the cufftHandle\r\n\r\n@cantonios can you fix this?", "Looks like @reedwm was right, it's because the `cufftHandle` is created on one device, cached, then attempted to be used on another physical device. We can add the device ID to the plan cache key to address this. The fix should be out soon.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60926\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60926\">No</a>\n" ]
2023-06-19T19:28:28
2023-07-19T18:33:45
2023-07-19T18:33:42
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2.12.0 2.14.0-dev20230619 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 18.04 ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8.0 / 8.6.0.163 ### GPU model and memory _No response_ ### Current Behaviour? Using TensorFlow FFT in a Keras model will produce incorrect results when using MirroredStrategy and multiple GPUs. This is not an accuracy issue. The results of consecutive calls seem to be either correct or garbage. I created a test Keras model that has one layer that does FFT. There is also a reference model using a DFT layer that is used to verify that incorrect behavior only happens when using tf.signal.fft. Attached is a test application that runs both models in different combinations of MirroredStrategy/default strategy and eager/graph execution. MirroredStrategy and graph execution is the combination that produces the error. At least two GPUs are required to reproduce the problem. The output MAE loss is around 6.5, which translates to 650% error. (The absolute value of each entry in the correct output is 1.0.) I think it's not a user error, but if it is, there should be an error or warning instead of incorrect results. I was able to reproduce the issue with all TF fft variants (tf.signal.fft, tf.signal.rfft, tf.signal.stft, tf.signal.fft2d) ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np from scipy.linalg import dft from math import sqrt # Layer that does tf.signal.fft operation class FFTLayer(tf.keras.layers.Layer): def call(self, x): fx = tf.signal.fft(x) return fx # Layer that returns same results as tf.signal.fft op, but # uses slower direct computation of DFT, implemented as matrix multiply. class MatrixDFTLayer(tf.keras.layers.Layer): def __init__(self): super().__init__() self.dft = tf.cast(dft(1024), tf.complex64) def call(self, x): fx = self.dft @ tf.transpose(x) return tf.transpose(fx) def create_model(use_mirrored_strategy: bool = True, run_eagerly: bool = True, layer_to_use: tf.keras.layers.Layer = FFTLayer) -> None: print(f"\ncreate model with: use_mirrored_strategy: {use_mirrored_strategy}, ", f"run_eagerly: {run_eagerly}, ", f"layer_to_use: {layer_to_use}") if use_mirrored_strategy: distribution_strategy = tf.distribute.MirroredStrategy() else: distribution_strategy = tf.distribute.get_strategy() with distribution_strategy.scope(): ins = tf.keras.layers.Input([1024], dtype=tf.complex64) x = layer_to_use()(ins) model = tf.keras.Model(inputs=ins, outputs=x) model.compile( loss=tf.keras.losses.MeanAbsoluteError(), run_eagerly=run_eagerly ) return model def create_data(fft_size, batch_size, num_steps): num_examples = num_steps * batch_size # y data is a complex vector of all (1/sqrt(2), (1/sqrt(2)j) train_y = np.ones([fft_size], np.float32) train_y = (1/sqrt(2))*train_y + (1/sqrt(2))*1j*train_y # abs mean is 1 -> MAE magnitude should be compared to 1 print("train_y mean: ", tf.reduce_mean(tf.abs(train_y))) # use inverse transform to create input data # fft(train_x) will produce train_y train_x = tf.signal.ifft(train_y) # clone data to get larger training set train_y = train_y[tf.newaxis, ...] train_x = train_x[tf.newaxis, ...] train_x = tf.tile(train_x, [num_examples, 1]) train_y = tf.tile(train_y, [num_examples, 1]) return train_x, train_y fft_size = 1024 batch_size = 9 num_steps = 100 train_x, train_y = create_data(fft_size, batch_size, num_steps) # Test cases with MatrixDFTLayer # These are all ok, MAE close to 0.0 # ok model = create_model(use_mirrored_strategy=False, run_eagerly=False, layer_to_use=MatrixDFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") # ok model = create_model(use_mirrored_strategy=False, run_eagerly=True, layer_to_use=MatrixDFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") # ok model = create_model(use_mirrored_strategy=True, run_eagerly=False, layer_to_use=MatrixDFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") # Test Cases using TF FFT. These fail when using MirroredStrategy. # ok model = create_model(use_mirrored_strategy=False, run_eagerly=False, layer_to_use=FFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") # ok model = create_model(use_mirrored_strategy=False, run_eagerly=True, layer_to_use=FFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") # fail, model = create_model(use_mirrored_strategy=True, run_eagerly=False,layer_to_use= FFTLayer) loss = model.evaluate(train_x, train_y, batch_size=batch_size, verbose=0) print(f"loss: {loss}") ``` ### Relevant log output ```shell train_y mean: tf.Tensor(1.0, shape=(), dtype=float32) create model with: use_mirrored_strategy: False, run_eagerly: False, layer_to_use: <class '__main__.MatrixDFTLayer'> loss: 0.0 create model with: use_mirrored_strategy: False, run_eagerly: True, layer_to_use: <class '__main__.MatrixDFTLayer'> loss: 0.0 create model with: use_mirrored_strategy: True, run_eagerly: False, layer_to_use: <class '__main__.MatrixDFTLayer'> loss: 0.0 create model with: use_mirrored_strategy: False, run_eagerly: False, layer_to_use: <class '__main__.FFTLayer'> loss: 0.0 create model with: use_mirrored_strategy: False, run_eagerly: True, layer_to_use: <class '__main__.FFTLayer'> loss: 0.0 create model with: use_mirrored_strategy: True, run_eagerly: False, layer_to_use: <class '__main__.FFTLayer'> loss: 6.451958656311035 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60926/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60926/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60925
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60925/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60925/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60925/events
https://github.com/tensorflow/tensorflow/issues/60925
1,763,974,588
I_kwDOArmXAs5pJB28
60,925
`Unpack` and `concat` wrongly transformed into `reshape` in tflite converter
{ "login": "YaoJiayi", "id": 82156730, "node_id": "MDQ6VXNlcjgyMTU2NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/82156730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YaoJiayi", "html_url": "https://github.com/YaoJiayi", "followers_url": "https://api.github.com/users/YaoJiayi/followers", "following_url": "https://api.github.com/users/YaoJiayi/following{/other_user}", "gists_url": "https://api.github.com/users/YaoJiayi/gists{/gist_id}", "starred_url": "https://api.github.com/users/YaoJiayi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YaoJiayi/subscriptions", "organizations_url": "https://api.github.com/users/YaoJiayi/orgs", "repos_url": "https://api.github.com/users/YaoJiayi/repos", "events_url": "https://api.github.com/users/YaoJiayi/events{/privacy}", "received_events_url": "https://api.github.com/users/YaoJiayi/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" } ]
open
false
{ "login": "arfaian", "id": 1106365, "node_id": "MDQ6VXNlcjExMDYzNjU=", "avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arfaian", "html_url": "https://github.com/arfaian", "followers_url": "https://api.github.com/users/arfaian/followers", "following_url": "https://api.github.com/users/arfaian/following{/other_user}", "gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}", "starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arfaian/subscriptions", "organizations_url": "https://api.github.com/users/arfaian/orgs", "repos_url": "https://api.github.com/users/arfaian/repos", "events_url": "https://api.github.com/users/arfaian/events{/privacy}", "received_events_url": "https://api.github.com/users/arfaian/received_events", "type": "User", "site_admin": false }
[ { "login": "arfaian", "id": 1106365, "node_id": "MDQ6VXNlcjExMDYzNjU=", "avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arfaian", "html_url": "https://github.com/arfaian", "followers_url": "https://api.github.com/users/arfaian/followers", "following_url": "https://api.github.com/users/arfaian/following{/other_user}", "gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}", "starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arfaian/subscriptions", "organizations_url": "https://api.github.com/users/arfaian/orgs", "repos_url": "https://api.github.com/users/arfaian/repos", "events_url": "https://api.github.com/users/arfaian/events{/privacy}", "received_events_url": "https://api.github.com/users/arfaian/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "I am able to replicate on tf-nightly consistently, here is the [gist](https://colab.sandbox.google.com/gist/pkgoogle/87b4aa9dda67f8bdead474d0bf56476d/60925.ipynb)\r\n\r\nunsure if the reshape is incorrect, but output should be the same after conversion.\r\n\r\nHi, @arfaian can you please take a look?" ]
2023-06-19T18:02:40
2023-06-22T19:10:08
null
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.14.0-dev20230602 ### 2. Code This is the minimized code to reproduce the issue: ```python import tensorflow as tf import numpy as np x1 = tf.constant([1., 2., 3., 4.], shape=[2, 2, 1]) class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() @tf.function(input_signature=[tf.TensorSpec(x1.shape, x1.dtype)]) def call(self, x): unpack_op = tf.raw_ops.Unpack(value=x,num=2,axis=0) return tf.concat(unpack_op, -1) m = Model() m(x1) print('Keras mode output: ', m(x1).numpy()) converter = tf.lite.TFLiteConverter.from_keras_model(m) tflite_model = converter.convert() def _evaluateTFLiteModel(tflite_model, input_data): interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for i in range(len(input_data)): interpreter.set_tensor(input_details[i]['index'], input_data[i]) interpreter.invoke() output_data = [interpreter.get_tensor(output_details[i]['index']) for i in range(len(output_details))] return output_data print('Lite mode output: ', _evaluateTFLiteModel(tflite_model,[x1])[0]) tf.lite.experimental.Analyzer.analyze(model_content=tflite_model) #Output IR ``` ### 3. Failure after conversion Output: ``` Keras mode output: [[1. 3.] [2. 4.]] Lite mode output: [[1. 2.] [3. 4.]] ``` Lite IR: ``` Subgraph#0 main(T#0) -> [T#2] Op#0 RESHAPE(T#0, T#1[2, 2]) -> [T#2] Tensors of Subgraph#0 T#0(serving_default_args_0:0) shape:[2, 2, 1], type:FLOAT32 T#1(concat) shape:[2], type:INT32 RO 8 bytes, buffer: 2, data:[2, 2] T#2(PartitionedCall:0) shape:[2, 2], type:FLOAT32 ``` Model produces wrong results: - Using ```tf.lite.experimental.Analyzer.analyze```, we can see the entire calculation is wrongly transformed into a single ```RESHAPE``` operator.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60925/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60925/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60924
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60924/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60924/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60924/events
https://github.com/tensorflow/tensorflow/pull/60924
1,763,771,064
PR_kwDOArmXAs5TWofw
60,924
ignore broken content when using tf.data.Dataset.load
{ "login": "Nov11", "id": 1181278, "node_id": "MDQ6VXNlcjExODEyNzg=", "avatar_url": "https://avatars.githubusercontent.com/u/1181278?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nov11", "html_url": "https://github.com/Nov11", "followers_url": "https://api.github.com/users/Nov11/followers", "following_url": "https://api.github.com/users/Nov11/following{/other_user}", "gists_url": "https://api.github.com/users/Nov11/gists{/gist_id}", "starred_url": "https://api.github.com/users/Nov11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Nov11/subscriptions", "organizations_url": "https://api.github.com/users/Nov11/orgs", "repos_url": "https://api.github.com/users/Nov11/repos", "events_url": "https://api.github.com/users/Nov11/events{/privacy}", "received_events_url": "https://api.github.com/users/Nov11/received_events", "type": "User", "site_admin": false }
[ { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @rohan100jain Can you please review this PR ? Thank you!", "Hi @rohan100jain Can you please review this PR ? Thank you!", "Hi @aaudiber Can you please review this PR ? Thank you!", "Hi @aaudiber Can you please review this PR ? Thank you!", "Hi @aaudiber Can you please review this PR ? Thank you!", "Hi @Nov11 Can you please resolve conflicts? Thank you!", "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.", "This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further." ]
2023-06-19T15:28:43
2024-05-25T01:49:12
2024-05-25T01:49:00
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60924", "html_url": "https://github.com/tensorflow/tensorflow/pull/60924", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60924.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60924.patch", "merged_at": null }
Background: Error occurs usually means correct offset of next record cannot be determined. When chaining with ignore_errors to avoid single corrupted record abort whole processing, as reader doesn't advance to next file, then processing will be stuck a busy loop reading the broken record indefinitely. Changes: Moving on to next file if one read error shows and log errors.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60924/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60924/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60923
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60923/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60923/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60923/events
https://github.com/tensorflow/tensorflow/issues/60923
1,763,730,224
I_kwDOArmXAs5pIGMw
60,923
JIT compilation failed error when running the pix2pix template on GPU
{ "login": "Erida-Bendo", "id": 127302774, "node_id": "U_kgDOB5Z8dg", "avatar_url": "https://avatars.githubusercontent.com/u/127302774?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Erida-Bendo", "html_url": "https://github.com/Erida-Bendo", "followers_url": "https://api.github.com/users/Erida-Bendo/followers", "following_url": "https://api.github.com/users/Erida-Bendo/following{/other_user}", "gists_url": "https://api.github.com/users/Erida-Bendo/gists{/gist_id}", "starred_url": "https://api.github.com/users/Erida-Bendo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Erida-Bendo/subscriptions", "organizations_url": "https://api.github.com/users/Erida-Bendo/orgs", "repos_url": "https://api.github.com/users/Erida-Bendo/repos", "events_url": "https://api.github.com/users/Erida-Bendo/events{/privacy}", "received_events_url": "https://api.github.com/users/Erida-Bendo/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 4511033337, "node_id": "LA_kwDOArmXAs8AAAABDODn-Q", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10", "name": "TF 2.10", "color": "C15088", "default": false, "description": "" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Erida-Bendo ,\r\n\r\nIt seems the issue is related to Jupyter notebook environment. I can able to execute the code on google colab successfully without error and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/7b3fd146e2d519119de447994f25997e/pix2pix.ipynb) for reference.\r\n\r\nWe are not officially supporting Jupyter notebook instructions. You may refer the similar issues from #60790 and SO [link1](https://stackoverflow.com/questions/76101948/tensorflow-gpu-recognized-in-the-terminal-but-not-in-the-jupyter-notebook).\r\n", "Hi @SuryanarayanaY, thank you for your reply.\r\nDifferently from the attached issues, my jupyter notebook does recognize GPU. The error only appears when calling the 'fit' function, the rest of the notebook runs without issues.\r\nDo you maybe have some suggestions on what could be some steps I could try for tackling the issue?\r\nThanks :)", "@Erida-Bendo , Could you tried installing `conda install nb_conda_kernels` and let us know.\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60923\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60923\">No</a>\n" ]
2023-06-19T15:04:50
2023-07-12T02:08:36
2023-07-12T02:08:33
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.10.1 ### Custom Code No ### OS Platform and Distribution Windows 10 ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cudatoolkit=11.2 cudnn=8.1.0 ### GPU model and memory NVIDIA Quadro M4000 8GB ### Current Behaviour? I receive this error when I run the [pix2pix 1](https://www.tensorflow.org/tutorials/generative/pix2pix) template in a jupyter notebook on tensorflow GPU: ![image](https://github.com/tensorflow/tensorflow/assets/127302774/23962358-9ee9-4a57-8892-f3bbe99e483d) When running only with CPU, no error appears though. ### Standalone code to reproduce the issue ```shell This is the fit function, where the error appears: def fit(train_ds, test_ds, steps): example_input, example_target = next(iter(test_ds.take(1))) start = time.time() for step, (input_image, target) in train_ds.repeat().take(steps).enumerate(): if (step) % 1000 == 0: display.clear_output(wait=True) if step != 0: print(f'Time taken for 1000 steps: {time.time()-start:.2f} sec\n') start = time.time() generate_images(generator, example_input, example_target) print(f"Step: {step//1000}k") train_step(input_image, target, step) # Training step if (step+1) % 10 == 0: print('.', end='', flush=True) # Save (checkpoint) the model every 5k steps if (step + 1) % 5000 == 0: checkpoint.save(file_prefix=checkpoint_prefix) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60923/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60923/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60922
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60922/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60922/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60922/events
https://github.com/tensorflow/tensorflow/issues/60922
1,763,699,005
I_kwDOArmXAs5pH-k9
60,922
Broken build due to LLVM
{ "login": "Ganesh-Devdas", "id": 86997622, "node_id": "MDQ6VXNlcjg2OTk3NjIy", "avatar_url": "https://avatars.githubusercontent.com/u/86997622?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ganesh-Devdas", "html_url": "https://github.com/Ganesh-Devdas", "followers_url": "https://api.github.com/users/Ganesh-Devdas/followers", "following_url": "https://api.github.com/users/Ganesh-Devdas/following{/other_user}", "gists_url": "https://api.github.com/users/Ganesh-Devdas/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ganesh-Devdas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ganesh-Devdas/subscriptions", "organizations_url": "https://api.github.com/users/Ganesh-Devdas/orgs", "repos_url": "https://api.github.com/users/Ganesh-Devdas/repos", "events_url": "https://api.github.com/users/Ganesh-Devdas/events{/privacy}", "received_events_url": "https://api.github.com/users/Ganesh-Devdas/received_events", "type": "User", "site_admin": false }
[ { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1222092379, "node_id": "MDU6TGFiZWwxMjIyMDkyMzc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:bazel", "name": "subtype:bazel", "color": "b619ea", "default": false, "description": "Bazel related Build_Installation issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Note that the issue is not the dependencies, but an error in LLVM\r\n\r\n```\r\nERROR: /home/...../.cache/bazel/_bazel_root/9c8aaa3c6704dd9093a3ba260ef8cc3f/external/llvm-project/llvm/BUILD.bazel:356:11: Compiling llvm/lib/TableGen/TableGenBackendSkeleton.cpp failed: undeclared inclusion(s) in rule '@llvm-project//llvm:TableGen':\r\nthis rule is missing dependency declarations for the following files included by 'llvm/lib/TableGen/TableGenBackendSkeleton.cpp':\r\n 'bazel-out/k8-opt/bin/external/llvm-project/llvm/Demangle.cppmap'\r\n 'bazel-out/k8-opt/bin/external/llvm_terminfo/terminfo.cppmap'\r\n 'bazel-out/k8-opt/bin/external/llvm_zlib/zlib.cppmap'\r\n```\r\n\r\nProject dependencies are specified as coming from multiple URLs (the upstream and the mirror). Bazel tries both and reports failure when the first attempt fails, but then look at the second URL and downloads the file from there. The build will be broken much faster if the dependency cannot be downloaded from _both_ upstream and the mirror.", "I'm getting the same error while trying to build tensorflow 2.13 (CPU build)\r\nINFO: Found 1 target...\r\nERROR: /root/.cache/bazel/_bazel_root/129f64c1bf7a2ba048cf317d8c31c367/external/llvm-project/llvm/BUILD.bazel:605:10: Compiling llvm/utils/TableGen/Attributes.cpp [for host] failed: undeclared inclusion(s) in rule '@llvm-project//llvm:llvm-tblgen':\r\nthis rule is missing dependency declarations for the following files included by 'llvm/utils/TableGen/Attributes.cpp':\r\n 'bazel-out/host/bin/external/llvm-project/llvm/Demangle.cppmap'\r\n 'bazel-out/host/bin/external/llvm_terminfo/terminfo.cppmap'\r\n 'bazel-out/host/bin/external/llvm_zlib/zlib.cppmap'\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 57.973s, Critical Path: 13.61s\r\nINFO: 355 processes: 159 internal, 196 local.\r\nFAILED: Build did NOT complete successfully", "This is a nearly daily occurrence. You can wait until a fix lands or try building either from a stable release branch (`r2.13` for example), or if you want from the main branch, trying to find a commit from before a \"LLVM integrate\" one.\r\n\r\nThough now with the XLA and TSL separation, this might also be harder to do, you'd need to keep all of these in sync.", "Also, closing this one, since the original issue has been resolved.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60922\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60922\">No</a>\n" ]
2023-06-19T14:47:30
2023-08-21T18:04:35
2023-08-21T18:04:33
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code No ### OS Platform and Distribution Debian Bookworm plus Clang/LLVM 17.0.0 (experimental) ### Mobile device not applicable ### Python version 3.11.4 ### Bazel version 5.3.0 - as per original configuration ### GCC/Compiler version GCC 12.2.0 / Clang 16.0.6 / Clang 17.0.0 ### CUDA/cuDNN version NO ### GPU model and memory nothing to do with that ### Current Behaviour? Compilation fails due to: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/659147817805d17c7be2d60bd7bbca7e780f9c82.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found ### Standalone code to reproduce the issue ```shell export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 export PATH=/usr/lib/llvm-17/bin:${JAVA_HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Failure occurs for all compiler mentioned above: Commands/examples: CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow:tensorflow_cc 2>&1 | tee ../build-tensorflow_cc.log CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow:tensorflow_framework 2>&1 | tee ../build-tensorflow_framework.log CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow/tools/pip_package:build_pip_package 2>&1 | tee ../build-tensorflow_py3.log ``` I have also cleaned bazel cache directory and checked urls( not available also 404) ### Relevant log output ```shell 1). CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow:tensorflow_cc 2>&1 | tee ../build-tensorflow_cc.log Starting local Bazel server and connecting to it... INFO: Options provided by the client: Inherited 'common' options: --isatty=0 --terminal_columns=80 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3.11/dist-packages --python_path=/usr/bin/python3 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:tpu in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=with_tpu_support=true INFO: Found applicable config definition build:linux in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes INFO: Found applicable config definition build:dynamic_kernels in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS Loading: Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Loading: 0 packages loaded WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow:tensorflow_cc (1 packages loaded, 0 targets configured) Analyzing: target //tensorflow:tensorflow_cc (34 packages loaded, 15 targets configured) Analyzing: target //tensorflow:tensorflow_cc (34 packages loaded, 15 targets configured) Analyzing: target //tensorflow:tensorflow_cc (34 packages loaded, 15 targets configured) Analyzing: target //tensorflow:tensorflow_cc (95 packages loaded, 215 targets configured) Analyzing: target //tensorflow:tensorflow_cc (424 packages loaded, 24010 targets configured) WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/659147817805d17c7be2d60bd7bbca7e780f9c82.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow:tensorflow_cc (427 packages loaded, 25063 targets configured) WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Analyzed target //tensorflow:tensorflow_cc (428 packages loaded, 26822 targets configured). INFO: Found 1 target... [0 / 7,736] [Prepa] Writing file tensorflow/libtensorflow_cc.so.2.12.0-2.params ... (4 actions, 0 running) [277 / 9,815] Compiling llvm/lib/Support/Signals.cpp; 4s local ... (8 actions, 7 running) ERROR: /home/...../.cache/bazel/_bazel_root/9c8aaa3c6704dd9093a3ba260ef8cc3f/external/llvm-project/llvm/BUILD.bazel:356:11: Compiling llvm/lib/TableGen/TableGenBackendSkeleton.cpp failed: undeclared inclusion(s) in rule '@llvm-project//llvm:TableGen': this rule is missing dependency declarations for the following files included by 'llvm/lib/TableGen/TableGenBackendSkeleton.cpp': 'bazel-out/k8-opt/bin/external/llvm-project/llvm/Demangle.cppmap' 'bazel-out/k8-opt/bin/external/llvm_terminfo/terminfo.cppmap' 'bazel-out/k8-opt/bin/external/llvm_zlib/zlib.cppmap' Target //tensorflow:tensorflow_cc failed to build INFO: Elapsed time: 213.824s, Critical Path: 16.79s INFO: 299 processes: 259 internal, 40 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully 2). CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow:tensorflow_framework 2>&1 | tee ../build-tensorflow_framework.log INFO: Options provided by the client: Inherited 'common' options: --isatty=0 --terminal_columns=80 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3.11/dist-packages --python_path=/usr/bin/python3 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:tpu in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=with_tpu_support=true INFO: Found applicable config definition build:linux in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes INFO: Found applicable config definition build:dynamic_kernels in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS Loading: Loading: 0 packages loaded WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow:tensorflow_framework (0 packages loaded, 0 targets configured) WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Analyzed target //tensorflow:tensorflow_framework (0 packages loaded, 1 target configured). INFO: Found 1 target... [3 / 204] [Prepa] Writing script tensorflow/tsl/platform/status.cppmap ... (2 actions, 0 running) [13 / 1,949] Compiling src/google/protobuf/compiler/cpp/extension.cc; 1s local ... (8 actions, 7 running) [13 / 1,949] Compiling src/google/protobuf/compiler/cpp/extension.cc; 2s local ... (8 actions running) [18 / 1,949] Compiling src/google/protobuf/compiler/java/message.cc; 3s local ... (8 actions running) [20 / 1,949] Compiling src/google/protobuf/compiler/java/message.cc; 4s local ... (8 actions running) [21 / 1,949] Compiling src/google/protobuf/compiler/cpp/parse_function_generator.cc; 2s local ... (8 actions running) [24 / 1,949] Compiling src/google/protobuf/compiler/cpp/parse_function_generator.cc; 3s local ... (8 actions running) [26 / 1,949] Compiling src/google/protobuf/compiler/cpp/parse_function_generator.cc; 4s local ... (8 actions running) [27 / 1,949] Compiling src/google/protobuf/compiler/cpp/parse_function_generator.cc; 6s local ... (8 actions running) [29 / 1,949] Compiling src/google/protobuf/compiler/cpp/parse_function_generator.cc; 7s local ... (8 actions running) [31 / 1,949] Compiling src/google/protobuf/compiler/php/php_generator.cc; 6s local ... (8 actions running) [35 / 1,949] Compiling src/google/protobuf/compiler/php/php_generator.cc; 8s local ... (8 actions running) [37 / 1,949] Compiling src/google/protobuf/compiler/php/php_generator.cc; 10s local ... (8 actions running) [47 / 1,949] Compiling src/google/protobuf/stubs/substitute.cc; 1s local ... (8 actions running) [54 / 1,949] Compiling src/google/protobuf/util/field_mask_util.cc; 3s local ... (8 actions running) [67 / 1,949] Compiling src/google/protobuf/util/message_differencer.cc; 4s local ... (8 actions, 7 running) [83 / 1,949] Compiling src/google/protobuf/compiler/cpp/enum.cc; 4s local ... (8 actions, 7 running) [93 / 1,949] Compiling src/google/protobuf/compiler/cpp/message_field.cc; 3s local ... (8 actions, 7 running) [104 / 1,949] Compiling src/google/protobuf/compiler/cpp/message.cc; 6s local ... (8 actions, 7 running) [122 / 1,949] Compiling src/google/protobuf/compiler/cpp/message.cc; 12s local ... (8 actions, 7 running) [141 / 1,949] Compiling src/google/protobuf/wire_format.cc; 4s local ... (8 actions, 7 running) [161 / 1,949] Compiling src/google/protobuf/descriptor.cc; 6s local ... (8 actions, 7 running) [176 / 1,949] Compiling src/google/protobuf/descriptor.cc; 16s local ... (8 actions, 7 running) [217 / 2,179] Compiling src/google/protobuf/compiler/java/extension.cc; 4s local ... (8 actions, 7 running) ERROR: /home/...../.cache/bazel/_bazel_root/9c8aaa3c6704dd9093a3ba260ef8cc3f/external/llvm-project/llvm/BUILD.bazel:593:11: Compiling llvm/utils/TableGen/Attributes.cpp failed: undeclared inclusion(s) in rule '@llvm-project//llvm:tblgen': this rule is missing dependency declarations for the following files included by 'llvm/utils/TableGen/Attributes.cpp': 'bazel-out/k8-opt/bin/external/llvm-project/llvm/Demangle.cppmap' 'bazel-out/k8-opt/bin/external/llvm_terminfo/terminfo.cppmap' 'bazel-out/k8-opt/bin/external/llvm_zlib/zlib.cppmap' Target //tensorflow:tensorflow_framework failed to build INFO: Elapsed time: 92.924s, Critical Path: 31.68s INFO: 257 processes: 43 internal, 214 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully 3). CC=/usr/lib/llvm-17/bin/clang CXX=/usr/lib/llvm-16/bin/clang bazel-5.3.0 build --config=tpu --verbose_failures //tensorflow/tools/pip_package:build_pip_package 2>&1 | tee ../build-tensorflow_py3.log INFO: Options provided by the client: Inherited 'common' options: --isatty=0 --terminal_columns=80 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3.11/dist-packages --python_path=/usr/bin/python3 INFO: Reading rc options for 'build' from /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:tpu in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=with_tpu_support=true INFO: Found applicable config definition build:linux in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes INFO: Found applicable config definition build:dynamic_kernels in file /home/...../libtensorflow-dev/tensorflow-2.12.0/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS Loading: Loading: 0 packages loaded WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured) WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow/tools/pip_package:build_pip_package (66 packages loaded, 992 targets configured) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (153 packages loaded, 5342 targets configured) WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/659147817805d17c7be2d60bd7bbca7e780f9c82.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found Analyzing: target //tensorflow/tools/pip_package:build_pip_package (158 packages loaded, 6276 targets configured) INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (161 packages loaded, 7843 targets configured). INFO: Found 1 target... [0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt [199 / 8,018] Executing genrule @local_config_python//:python_include; 0s local ... (8 actions, 7 running) [228 / 8,216] Executing genrule @local_config_python//:python_include; 2s local ... (8 actions running) [232 / 8,216] Compiling llvm/utils/TableGen/AsmMatcherEmitter.cpp; 3s local ... (8 actions, 7 running) [232 / 8,216] Compiling llvm/utils/TableGen/AsmMatcherEmitter.cpp; 5s local ... (8 actions running) ERROR: /home/...../.cache/bazel/_bazel_root/9c8aaa3c6704dd9093a3ba260ef8cc3f/external/llvm-project/llvm/BUILD.bazel:593:11: Compiling llvm/utils/TableGen/AsmWriterInst.cpp failed: undeclared inclusion(s) in rule '@llvm-project//llvm:tblgen': this rule is missing dependency declarations for the following files included by 'llvm/utils/TableGen/AsmWriterInst.cpp': 'bazel-out/k8-opt/bin/external/llvm-project/llvm/Demangle.cppmap' 'bazel-out/k8-opt/bin/external/llvm_terminfo/terminfo.cppmap' 'bazel-out/k8-opt/bin/external/llvm_zlib/zlib.cppmap' Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 11.675s, Critical Path: 6.79s INFO: 240 processes: 83 internal, 157 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60922/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60922/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60921
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60921/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60921/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60921/events
https://github.com/tensorflow/tensorflow/issues/60921
1,763,640,897
I_kwDOArmXAs5pHwZB
60,921
Some parameters are missing type descriptions
{ "login": "cheyennee", "id": 45327670, "node_id": "MDQ6VXNlcjQ1MzI3Njcw", "avatar_url": "https://avatars.githubusercontent.com/u/45327670?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheyennee", "html_url": "https://github.com/cheyennee", "followers_url": "https://api.github.com/users/cheyennee/followers", "following_url": "https://api.github.com/users/cheyennee/following{/other_user}", "gists_url": "https://api.github.com/users/cheyennee/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheyennee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheyennee/subscriptions", "organizations_url": "https://api.github.com/users/cheyennee/orgs", "repos_url": "https://api.github.com/users/cheyennee/repos", "events_url": "https://api.github.com/users/cheyennee/events{/privacy}", "received_events_url": "https://api.github.com/users/cheyennee/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@cheyennee,\r\nFor some of the API's which were mentioned above, I can see the description is available on the official document. Could you please be more specific where the parameters are missing type descriptions. It will be easy to analyse the issue. \r\n\r\nEg:\r\n\r\nhttps://www.tensorflow.org/api_docs/python/tf/keras/metrics/RootMeanSquaredError\r\n![image](https://github.com/tensorflow/tensorflow/assets/81610181/90d6b272-674a-4ecf-bb03-a7be2dc8bf02)\r\n\r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60921\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60921\">No</a>\n" ]
2023-06-19T14:12:15
2023-07-14T15:00:48
2023-07-06T02:09:49
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.12.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 15"> <link id=Main-File rel=Main-File href="file:///C:/Users/pigpi/AppData/Local/Temp/msohtmlclip1/01/clip.htm"> <link rel=File-List href="file:///C:/Users/pigpi/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml"> <style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} .font5 {color:windowtext; font-size:9.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:等线; mso-generic-font-family:auto; mso-font-charset:134;} tr {mso-height-source:auto; mso-ruby-visibility:none;} col {mso-width-source:auto; mso-ruby-visibility:none;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:等线; mso-generic-font-family:auto; mso-font-charset:134; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} ruby {ruby-align:left;} rt {color:windowtext; font-size:9.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:等线; mso-generic-font-family:auto; mso-font-charset:134; mso-char-type:none; display:none;} --> </style> </head> <body link="#0563C1" vlink="#954F72"> API | lack of type desciption params -- | -- tf.sparse.bincount | values tf.keras.layers.Input | tensor tf.keras.applications.DenseNet121 | input_tensor tf.math.add_n | inputs tf.keras.applications.MobileNetV2 | input_tensor tf.device | device_name tf.keras.regularizers.get | identifier tf.metrics.RootMeanSquaredError | metrics tf.expand_dims | input tf.keras.applications.DenseNet201 | input_tensor tf.signal.frame | signal tf.losses.mean_squared_error | y_true 、 y_pred tf.losses.cosine_similarity | y_true 、 y_pred tf.keras.metrics.binary_accuracy | y_true 、 y_pred tf.keras.losses.logcosh | y_true 、 y_pred tf.keras.applications.EfficientNetB5 | input_tensor tf.metrics.binary_accuracy | y_true 、 y_pred tf.data.experimental.assert_cardinality | expected_cardinality tf.keras.metrics.sparse_top_k_categorical_accuracy | y_true 、 y_pred tf.losses.squared_hinge | y_true 、 y_pred tf.keras.utils.pack_x_y_sample_weight | x、y、sample_weight tf.keras.activations.softplus | x tf.nn.depth_to_space | input tf.gather_nd | params tf.zeros_like | input tf.keras.applications.EfficientNetB2 | input_tensor tf.keras.metrics.MeanAbsoluteError | metrics tf.stack | values tf.ensure_shape | x tf.roll | input tf.keras.activations.gelu | x tf.linalg.set_diag | input、diagonal、k tf.math.bincount | arr、weights tf.concat | values tf.keras.applications.EfficientNetB6 | input_tensor tf.keras.losses.mean_squared_error | y_true 、 y_pred tf.random.categorical | logits tf.keras.backend.is_keras_tensor | x tf.keras.activations.tanh | x tf.pad | tensor tf.keras.initializers.identity | gain tf.keras.applications.EfficientNetB0 | input_tensor tf.repeat | input tf.image.convert_image_dtype | image tf.split | value tf.keras.utils.to_categorical | y tf.scatter_nd | updates tf.keras.layers.concatenate | input tf.linalg.banded_triangular_solve | bands、rhs tf.ones_like | input tf.nest.flatten | structure tf.keras.activations.linear | x tf.linalg.tensor_diag_part | input tf.image.pad_to_bounding_box | image tf.config.set_visible_devices | devices tf.size | input tf.image.resize | images tf.tile | input tf.keras.applications.VGG16 | input_tensor tf.keras.metrics.top_k_categorical_accuracy | y_true 、 y_pred tf.initializers.identity | gain tf.image.stateless_random_brightness | image tf.ragged.range | starts、limits、deltas tf.reshape | tensor tf.losses.logcosh | y_true 、 y_pred tf.keras.applications.ResNet50V2 | input_tensor tf.nn.moments | x tf.keras.applications.EfficientNetB4 | input_tensor tf.image.adjust_jpeg_quality | image tf.keras.losses.sparse_categorical_crossentropy | y_true 、 y_pred tf.control_dependencies | control_inputs tf.image.grayscale_to_rgb | images tf.image.rgb_to_yiq | images tf.keras.applications.EfficientNetB3 | input_tensor tf.ragged.boolean_mask | data、mask tf.image.random_hue | image tf.image.adjust_gamma | image tf.is_tensor | x tf.keras.initializers.orthogonal | gain tf.math.polyval | coeffs、x tf.io.serialize_tensor | tensor tf.image.stateless_random_saturation | image tf.one_hot | indices tf.linalg.diag_part | input、padding_value、 tf.image.adjust_saturation | image tf.boolean_mask | tensor、mask tf.transpose | a tf.image.flip_up_down | image tf.keras.losses.binary_crossentropy | y_true 、 y_pred tf.broadcast_to | input tf.image.stateless_random_crop | value tf.losses.mean_absolute_percentage_error | y_true 、 y_pred tf.image.stateless_random_flip_left_right | image tf.image.random_flip_up_down | image tf.keras.activations.exponential | x tf.keras.applications.Xception | input_tensor tf.identity | input tf.gather | params tf.keras.applications.InceptionV3 | input_tensor tf.keras.layers.Masking | mask_value tf.losses.kullback_leibler_divergence | y_true 、 y_pred tf.linalg.band_part | input tf.keras.losses.cosine_similarity | y_true 、 y_pred tf.image.random_contrast | image tf.image.transpose | image tf.stop_gradient | input tf.strings.bytes_split | input tf.random.stateless_parameterized_truncated_normal | means、stddevs、minvals、maxvals tf.keras.losses.mean_absolute_error | y_true 、 y_pred tf.image.stateless_random_hue | image tf.keras.applications.DenseNet169 | input_tensor tf.keras.losses.categorical_crossentropy | y_true 、 y_pred tf.nn.embedding_lookup | params tf.math.reduce_variance | input_tensor tf.keras.utils.unpack_x_y_sample_weight | data tf.nn.l2_normalize | x tf.keras.losses.categorical_hinge | y_true 、 y_pred tf.keras.applications.EfficientNetB1 | input_tensor tf.keras.constraints.get | identifier tf.initializers.orthogonal | gain tf.divide | x、y tf.math.top_k | input tf.keras.losses.kullback_leibler_divergence | y_true 、 y_pred tf.image.stateless_random_jpeg_quality | image tf.keras.losses.mean_absolute_percentage_error | y_true 、 y_pred tf.keras.applications.EfficientNetB7 | input_tensor tf.clip_by_value | t tf.type_spec_from_value | value tf.losses.mean_squared_logarithmic_error | y_true 、 y_pred tf.tensor_scatter_nd_update | tensor、indices tf.equal | x、y tf.image.rgb_to_grayscale | images tf.image.stateless_random_contrast | image tf.image.rgb_to_hsv | images tf.convert_to_tensor | value tf.losses.sparse_categorical_crossentropy | y_true 、 y_pred tf.keras.activations.sigmoid | x tf.slice | input_ tf.image.adjust_hue | image tf.math.argmax | input tf.reverse_sequence | input tf.losses.categorical_crossentropy | y_true 、 y_pred tf.keras.losses.squared_hinge | y_true 、 y_pred tf.squeeze | input tf.math.equal | x、y tf.math.divide | x、y tf.unstack | value tf.keras.applications.MobileNet | input_tensor tf.keras.applications.ResNet152V2 | input_tensor tf.keras.activations.softsign | x tf.keras.applications.NASNetMobile | input_tensor tf.keras.activations.swish | x tf.metrics.categorical_accuracy | y_true 、 y_pred tf.keras.metrics.sparse_categorical_accuracy | y_true 、 y_pred tf.metrics.sparse_top_k_categorical_accuracy | y_true 、 y_pred tf.losses.mean_absolute_error | y_true 、 y_pred tf.losses.binary_crossentropy | y_true 、 y_pred tf.keras.applications.ResNet50 | input_tensor tf.image.random_jpeg_quality | image、min_jpeg_quality、max_jpeg_quality tf.keras.activations.hard_sigmoid | x tf.image.flip_left_right | image tf.keras.applications.ResNet101V2 | input_tensor tf.nn.batch_normalization | x、mean、variance、offset、scale tf.math.reduce_min | input_tensor tf.keras.applications.ResNet101 | input_tensor tf.math.not_equal | x、y tf.image.rot90 | image tf.keras.applications.VGG19 | input_tensor tf.image.stateless_random_flip_up_down | image tf.keras.applications.MobileNetV3Large | input_tensor tf.keras.applications.ResNet152 | input_tensor tf.keras.metrics.categorical_accuracy | y_true 、 y_pred tf.sparse.cross | inputs tf.keras.losses.mean_squared_logarithmic_error | y_true 、 y_pred tf.image.random_flip_left_right | image </body> </html> ### Standalone code to reproduce the issue ```shell Many parameters are not for any type of value, so the allowed types should be clearly marked in the document. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60921/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60921/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60920
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60920/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60920/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60920/events
https://github.com/tensorflow/tensorflow/issues/60920
1,763,364,776
I_kwDOArmXAs5pGs-o
60,920
F1 score error on multi class data
{ "login": "Glfrey", "id": 33197909, "node_id": "MDQ6VXNlcjMzMTk3OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/33197909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Glfrey", "html_url": "https://github.com/Glfrey", "followers_url": "https://api.github.com/users/Glfrey/followers", "following_url": "https://api.github.com/users/Glfrey/following{/other_user}", "gists_url": "https://api.github.com/users/Glfrey/gists{/gist_id}", "starred_url": "https://api.github.com/users/Glfrey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Glfrey/subscriptions", "organizations_url": "https://api.github.com/users/Glfrey/orgs", "repos_url": "https://api.github.com/users/Glfrey/repos", "events_url": "https://api.github.com/users/Glfrey/events{/privacy}", "received_events_url": "https://api.github.com/users/Glfrey/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Glfrey ,\r\n\r\nThanks for reporting. Unfortunately the attached drive file can't accessible for me. Could you please provide the access. I request you to provide colab gist for ease of access with a minimal code snippet which can help us to look into the issue.\r\n\r\nThanks!", "Hi @SuryanarayanaY,\r\n\r\nThanks for your rapid response. I've transferred it over to colab here's the link https://colab.research.google.com/drive/1CoKr7DNBT3VDqSQlUAPfZPH0pYlj1-cq?usp=sharing\r\n\r\n", "> Note: This API is new and only available via pip install tf-nightly.\r\n\r\nhttps://www.tensorflow.org/api_docs/python/tf/keras/metrics/F1Score", "@DenisVorotyntsev Yes I'm aware, my tests were with the nightly builds but thank you for sharing. ", "@Glfrey, the error you mentioned in the first post doesn't match the error in the notebook, which confused me. \r\n\r\nI looked into F1, and it seems it required input to be one-hot-encoded to make the metric work. I made a conversion to ohe in the [notebook](https://colab.research.google.com/drive/1HRLJBvKhwAUAoKkZxMF7csh_GG3M9w9Y?usp=sharing) and it works. I also added a custom metric class that converts labels to ohe on the fly, which could lead to less memory consumption. ", "@DenisVorotyntsev huh, that's weird. I'm definitely on the nightly build at the moment I just checked. Either way, you're absolutely right. I completely overlooked the requirement for one-hot-encoding. My conversion to that representation of my labels has enabled it to work, so thank you very much!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60920\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60920\">No</a>\n" ]
2023-06-19T11:45:23
2023-06-21T13:48:20
2023-06-21T13:48:17
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version v1.12.1-95639-g08bd7e1a8e5 2.14.0-dev20230618 ### Custom Code Yes ### OS Platform and Distribution OS Ventura 13.0.1 ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Implementing the F1 score available in the nightly builds on multi-class data such as below: ``` model.compile(optimizer='adam', loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True), metrics= tf.keras.metrics.F1Score()) history = model.fit(train_images, train_labels, epochs=10, validation_data=(test_images, test_labels)) ``` triggers the following error: ``` Epoch 1/10 --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[8], line 5 1 model.compile(optimizer='adam', 2 loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True), 3 metrics= tf.keras.metrics.F1Score()) ----> 5 history = model.fit(train_images, train_labels, epochs=10, 6 validation_data=(test_images, test_labels)) File /opt/homebrew/lib/python3.8/site-packages/keras/src/utils/traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs) 67 filtered_tb = _process_traceback_frames(e.__traceback__) 68 # To get the full stack trace, call: 69 # `tf.debugging.disable_traceback_filtering()` ---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tb File /var/folders/f5/mkqkf_0d42qcsqc37hd_y0hm0000gn/T/__autograph_generated_fileb8tcgui2.py:15, in outer_factory.<locals>.inner_factory.<locals>.tf__train_function(iterator) 13 try: 14 do_return = True ---> 15 retval_ = ag__.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope) 16 except: 17 do_return = False ValueError: in user code: File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/training.py", line 1338, in train_function * return step_function(self, iterator) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/training.py", line 1322, in step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/training.py", line 1303, in run_step ** outputs = model.train_step(data) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/training.py", line 1085, in train_step return self.compute_metrics(x, y, y_pred, sample_weight) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/training.py", line 1179, in compute_metrics self.compiled_metrics.update_state(y, y_pred, sample_weight) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/engine/compile_utils.py", line 605, in update_state metric_obj.update_state(y_t, y_p, sample_weight=mask) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/utils/metrics_utils.py", line 77, in decorated update_op = update_state_fn(*args, **kwargs) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/metrics/base_metric.py", line 140, in update_state_fn return ag_update_state(*args, **kwargs) File "/opt/homebrew/lib/python3.8/site-packages/keras/src/metrics/f_score_metrics.py", line 176, in update_state ** y_true = tf.convert_to_tensor(y_true, dtype=self.dtype) ValueError: Tensor conversion requested dtype float32 for Tensor with dtype uint8: <tf.Tensor 'IteratorGetNext:1' shape=(None, 1) dtype=uint8> ``` I've tried with multiple multi-class datasets and the same error is returned. The F1 score page says it should work with multi-class data https://www.tensorflow.org/api_docs/python/tf/keras/metrics/F1Score. Is there something I've missed regarding its implementation for multi-class data (such as somewhere to specify the number of classes?) or is this a bug? ### Standalone code to reproduce the issue ```shell Here is a Jupyter notebook with some example data from https://www.tensorflow.org/tutorials/images/cnn https://drive.google.com/file/d/1tExJ80AktA87EmsExOPEMWsevoiQz4VX/view?usp=share_link ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60920/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60920/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60918
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60918/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60918/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60918/events
https://github.com/tensorflow/tensorflow/issues/60918
1,763,233,026
I_kwDOArmXAs5pGM0C
60,918
NUMA and libcusolver.so.11 ISSUE
{ "login": "nourama30", "id": 104873724, "node_id": "U_kgDOBkA-_A", "avatar_url": "https://avatars.githubusercontent.com/u/104873724?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nourama30", "html_url": "https://github.com/nourama30", "followers_url": "https://api.github.com/users/nourama30/followers", "following_url": "https://api.github.com/users/nourama30/following{/other_user}", "gists_url": "https://api.github.com/users/nourama30/gists{/gist_id}", "starred_url": "https://api.github.com/users/nourama30/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nourama30/subscriptions", "organizations_url": "https://api.github.com/users/nourama30/orgs", "repos_url": "https://api.github.com/users/nourama30/repos", "events_url": "https://api.github.com/users/nourama30/events{/privacy}", "received_events_url": "https://api.github.com/users/nourama30/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 3797168204, "node_id": "LA_kwDOArmXAs7iVDBM", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8", "name": "TF 2.8", "color": "5DC9D0", "default": false, "description": "" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@nourama30,\r\nCould you please try to follow the below steps mentioned:\r\n\r\nEdit ./etc/conda/activate.d/env_vars.sh as follows:\r\n\r\n```\r\n#!/bin/sh\r\n\r\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib\r\n```\r\n\r\nEdit ./etc/conda/deactivate.d/env_vars.sh as follows:\r\n\r\n```\r\n#!/bin/sh\r\n\r\nunset LD_LIBRARY_PATH\r\n```\r\n\r\nhttps://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#macos-and-linux\r\n\r\nAlso Could you please refer this documentation [source](https://www.tensorflow.org/install/pip#linux:~:text=your%20conda%20environment.-,export%20LD_LIBRARY_PATH%3D%24LD_LIBRARY_PATH%3A%24CONDA_PREFIX/lib/,CONDA_PREFIX/lib/%27%20%3E%20%24CONDA_PREFIX/etc/conda/activate,-.d/).\r\n\r\n`export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/`\r\n\r\nand Could you please try to install latest stable tensorflow v2.12 and let us know if you are facing same issue. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60918\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60918\">No</a>\n" ]
2023-06-19T10:23:48
2023-07-06T02:09:54
2023-07-06T02:09:51
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.8.0 ### Custom Code Yes ### OS Platform and Distribution Amazon Linux 2 ### Mobile device Other Linux x86_64 ### Python version 3.9 ### Bazel version 4.2.1 ### GCC/Compiler version 7.3.1 ### CUDA/cuDNN version 11.2 ### GPU model and memory NVIDIA ### Current Behaviour? I'm using a ready template launch from AMI catalog on Amazon, which is AWS Deep Learning AMI GPU TensorFlow 2.8.0 (Amazon Linux 2) Built with AWS optimized TensorFlow, NVIDIA CUDA, cuDNN, NCCL, GPU Driver, Docker, NVIDIA-Docker and EFA support. Platform: Other LinuxArchitecture: x86_64 Root device type: ebs Virtualization: hvm ENA enabled: Yes. and my application is dockerized which uses version tensorflow 2.8.0 When i wanted to activate the GPU , I got errors, like : **W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file or directory** I checked is this file exists , and it does exits. i have exported in the env to ensure it will work. but still the same issue. ### Standalone code to reproduce the issue ```shell I'm using ECS on AWS. so everytime i stop the task and launch again but the issue persists. I'm using instance type g4dn x large ``` ### Relevant log output ```shell Skipping registering GPU devices... 2023-06-11 22:24:17.218609: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. 2023-06-11 22:24:17.218523: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file or directory 2023-06-11 22:24:17.217687: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60918/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60918/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60917
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60917/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60917/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60917/events
https://github.com/tensorflow/tensorflow/issues/60917
1,762,777,947
I_kwDOArmXAs5pEdtb
60,917
Tensorboard histogram onehot operation causing ResourceExhauseError: OOM
{ "login": "vrunm", "id": 97465624, "node_id": "U_kgDOBc81GA", "avatar_url": "https://avatars.githubusercontent.com/u/97465624?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vrunm", "html_url": "https://github.com/vrunm", "followers_url": "https://api.github.com/users/vrunm/followers", "following_url": "https://api.github.com/users/vrunm/following{/other_user}", "gists_url": "https://api.github.com/users/vrunm/gists{/gist_id}", "starred_url": "https://api.github.com/users/vrunm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vrunm/subscriptions", "organizations_url": "https://api.github.com/users/vrunm/orgs", "repos_url": "https://api.github.com/users/vrunm/repos", "events_url": "https://api.github.com/users/vrunm/events{/privacy}", "received_events_url": "https://api.github.com/users/vrunm/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 3797168204, "node_id": "LA_kwDOArmXAs7iVDBM", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8", "name": "TF 2.8", "color": "5DC9D0", "default": false, "description": "" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @vrunm ,\r\n\r\nThe issue seems related to Memory resources and not problem with Tensorflow. If using one hot encoding it creates a very large sparse tensor which may require higher memory resources. As you have set `histogram_freq=1` it will create additional computations for weight histograms of each layer which needs higher memory resources. \r\n\r\nYou may try setting `histogram_freq=0` and check if the problem still exists then we need to check your code which is causing the large tensor computations.If no problem then its clear case of Higher memory requirement due to Histogram computations .\r\n\r\nThanks!\r\n", "The problem still exists with `histogram_freq=0`. I will look into making the code having large tensor computations.", "If the problem exists with histogram_freq=0 then the problem might be related to memory intensive computations due to higher input tensors.With large input tensors this is expected behaviour. However providing the code snippet shall confirm the same.", "Setting histogram_freq=0 did solve the problem to some extent, but I am still surprised by the very high memory requirements for the histogram computations. ", "@vrunm ,\r\n\r\nSetting `histogram_freq=1` needs storage of all weights into memory and for Larger models the weights are more and takes more memory as well. As you are using VGG16 model which has 138 million parameters which itself takes higher memory resource to store them. Any additional computations like histograms will add more load on memory.\r\n\r\nThanks!\r\n\r\n", "For these kind of computations what should be the value of histogram_freq? It worked for VGG16 but for models like ResNet and EfficientNet it did not work. What should be the value for those models?", "Hi @vrunm ,\r\n\r\nIt's all depends upon the Inputs sizes and Memory resources available. OOM errors are depends upon the input sizes and the Memory resources. Tensorflow can't have control on this. It has to be taken care by the users. \r\n\r\nMay be you can reduce `batch_size` in model.fit which is by default 32(you may try batch_size=16) . Also use the below code before importing Tensorflow in your code block.This may help if the OOM is due to Memory fragmentation.\r\n\r\n```\r\nimport os\r\nos.environ[‘TF_GPU_ALLOCATOR’] = ‘cuda_malloc_async’\r\n```\r\n", "I tried using a smaller batch size and using the above code but still ran into this error. I am also experimenting with smaller CNN networks to reduce memory computations and also make the model train faster.", "Hi @vrunm ,\r\n\r\nCould you please confirm the `batch_size` you used and let us knothe error. Maybe you can check with smaller networks since one_hot encoding is a large Tensor and may cause OOM error.", "I had tried using a batch size of 16 and 8 and still ran into this error.", "Could you please update the issue thread here https://github.com/keras-team/tf-keras/issues/168", "Sure will update it there.", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60917\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60917\">No</a>\n" ]
2023-06-19T05:35:02
2023-09-22T18:09:09
2023-08-25T01:47:52
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.8 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I'm trying to train a VGG16 model. I'm using a sample dataset of 4000 300x300 images in 14 classes, and running my code on a Google VM using an Nvidia L4 GPU with 20gb of memory. I am running python 3.7, tf version 2.11, and cuda version 12.1. My data is stored in GCS. When I run the model with the following TensorBoard callback: `tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1)` I get this error at the end of the first epoch: ``` 2023-06-14 19:51:21.248476: W tensorflow/tsl/framework/bfc_allocator.cc:479] Allocator (mklcpu) ran out of memory trying to allocate 22.97GiB (rounded to 24662507520)requested by op OneHot If the cause is memory fragmentation maybe the environment variable 'TF_GPU_ALLOCATOR=cuda_malloc_async' will improve the situation. ResourceExhaustedError: {{function_node _wrapped__OneHot_device/job:localhost/replica:0/task:0/device:CPU:0}} OOM when allocating tensor with shape[102760448,30] and type double on /job:localhost/replica:0/task:0/device:CPU:0 by allocator mklcpu [Op:OneHot] ``` The error traces back to the tensorboard histogram object: ``` -------------------------------------------------------------------------- ResourceExhaustedError Traceback (most recent call last) /var/tmp/ipykernel_5723/1753739100.py in <module> 1 # Fit model ----> 2 history = model.fit(train_ds, validation_data=val_ds, epochs=5, callbacks=[tensorboard_callback]) /opt/conda/lib/python3.7/site-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs) 68 # To get the full stack trace, call: 69 # `tf.debugging.disable_traceback_filtering()` ---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tb /opt/conda/lib/python3.7/site-packages/tensorboard/plugins/histogram/summary_v2.py in histogram(name, data, step, buckets, description) 198 tensor=lazy_tensor, 199 step=step, --> 200 metadata=summary_metadata, 201 ) 202 /opt/conda/lib/python3.7/site-packages/tensorboard/util/lazy_tensor_creator.py in __call__(self) 64 elif self._tensor is None: 65 self._tensor = _CALL_IN_PROGRESS_SENTINEL ---> 66 self._tensor = self._tensor_callable() 67 return self._tensor 68 /opt/conda/lib/python3.7/site-packages/tensorboard/plugins/histogram/summary_v2.py in lazy_tensor() 192 @lazy_tensor_creator.LazyTensorCreator 193 def lazy_tensor(): --> 194 return _buckets(data, buckets) 195 196 return tf.summary.write( /opt/conda/lib/python3.7/site-packages/tensorboard/plugins/histogram/summary_v2.py in _buckets(data, bucket_count) 291 ) 292 --> 293 return tf.cond(is_empty, when_empty, when_nonempty) /opt/conda/lib/python3.7/site-packages/tensorboard/plugins/histogram/summary_v2.py in when_nonempty() 288 289 return tf.cond( --> 290 has_single_value, when_single_value, when_multiple_values 291 ) 292 /opt/conda/lib/python3.7/site-packages/tensorboard/plugins/histogram/summary_v2.py in when_multiple_values() 257 # See https://github.com/tensorflow/tensorflow/issues/51419 for details. 258 one_hots = tf.one_hot( --> 259 clamped_indices, depth=bucket_count, dtype=tf.float64 260 ) 261 bucket_counts = tf.cast( ResourceExhaustedError: {{function_node __wrapped__OneHot_device_/job:localhost/replica:0/task:0/device:CPU:0}} OOM when allocating tensor with shape[102760448,30] and type double on /job:localhost/replica:0/task:0/device:CPU:0 by allocator mklcpu [Op:OneHot] ``` Interestingly it seems to be calling tf.one_hot and blowing up the gpu memory with a massive tensor regardless of whether I train the model with integer labels and spare categorical cross entropy or if I train it with one hot labels and cross entropy. I don't really understand what the tensor contains because its dimensions neither relate to the number of training examples or classes that I am using. ### Standalone code to reproduce the issue ```shell tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1) I get this error at the end of the first epoch: 2023-06-14 19:51:21.248476: W tensorflow/tsl/framework/bfc_allocator.cc:479] Allocator (mklcpu) ran out of memory trying to allocate 22.97GiB (rounded to 24662507520)requested by op OneHot If the cause is memory fragmentation maybe the environment variable 'TF_GPU_ALLOCATOR=cuda_malloc_async' will improve the situation. ResourceExhaustedError: {{function_node _wrapped__OneHot_device/job:localhost/replica:0/task:0/device:CPU:0}} OOM when allocating tensor with shape[102760448,30] and type double on /job:localhost/replica:0/task:0/device:CPU:0 by allocator mklcpu [Op:OneHot] ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60917/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60917/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60916
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60916/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60916/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60916/events
https://github.com/tensorflow/tensorflow/issues/60916
1,762,493,219
I_kwDOArmXAs5pDYMj
60,916
Uncaught exception in ZMQStream callback when running your example notebooks using latest or nightly docker image
{ "login": "deepcoder", "id": 1409547, "node_id": "MDQ6VXNlcjE0MDk1NDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1409547?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepcoder", "html_url": "https://github.com/deepcoder", "followers_url": "https://api.github.com/users/deepcoder/followers", "following_url": "https://api.github.com/users/deepcoder/following{/other_user}", "gists_url": "https://api.github.com/users/deepcoder/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepcoder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepcoder/subscriptions", "organizations_url": "https://api.github.com/users/deepcoder/orgs", "repos_url": "https://api.github.com/users/deepcoder/repos", "events_url": "https://api.github.com/users/deepcoder/events{/privacy}", "received_events_url": "https://api.github.com/users/deepcoder/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@deepcoder \r\nIn order to expedite the trouble-shooting process, please provide the example code snippet to reproduce the issue reported here. Thank you!", "As I stated in my opening post, running any of the example programs that you provide in the Tensorflow CUDA docker image caused the failures referencing the ZMQStream message. In terms of helping you further with this, unfortunately for that, I have moved on to another docker image I found on Docker Hub that provides recent Tensorflow 2 version, cuda support and so far is working fine for me. ", "Hi, \r\n\r\nThanks for reporting the issue.\r\n\r\nFeel free to close the issue if the issue is resolved in the latest docker version.\r\n\r\nFor our latest docker images, please follow https://hub.docker.com/r/tensorflow/tensorflow/tags", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60916\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60916\">No</a>\n" ]
2023-06-18T22:44:17
2023-07-30T01:52:16
2023-07-30T01:52:14
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version v2.12.0-rc1-12-g0db597d0d75 2.12.0 ### Custom Code No ### OS Platform and Distribution Linux gpu02 6.2.11-2-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.11-2 (2023-05-10T09:13Z) x86_64 x86_64 x86_64 GNU/Linux ### Mobile device _No response_ ### Python version python3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Occurs when running any of your example notebooks: ``` [E 22:36:50.295 NotebookApp] Uncaught exception in ZMQStream callback Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback return callback(self, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply super()._on_zmq_reply(stream, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply self.write_message(msg, binary=isinstance(msg, bytes)) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 339, in write_message return self.ws_connection.write_message(message, binary=binary) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1086, in write_message fut = self._write_frame(True, opcode, message, flags=flags) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1061, in _write_frame return self.stream.write(frame) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 546, in write self._handle_write() File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 976, in _handle_write self._write_buffer.advance(num_bytes) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 182, in advance assert 0 < size <= self._size AssertionError [E 22:36:50.297 NotebookApp] Uncaught exception in zmqstream callback Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 634, in _handle_events self._handle_recv() File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 663, in _handle_recv self._run_callback(callback, msg) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback return callback(self, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply super()._on_zmq_reply(stream, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply self.write_message(msg, binary=isinstance(msg, bytes)) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 339, in write_message return self.ws_connection.write_message(message, binary=binary) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1086, in write_message fut = self._write_frame(True, opcode, message, flags=flags) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1061, in _write_frame return self.stream.write(frame) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 546, in write self._handle_write() File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 976, in _handle_write self._write_buffer.advance(num_bytes) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 182, in advance assert 0 < size <= self._size AssertionError Exception in callback BaseAsyncIOLoop._handle_events(33, 1) handle: <Handle BaseAsyncIOLoop._handle_events(33, 1)> Traceback (most recent call last): File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.8/dist-packages/tornado/platform/asyncio.py", line 206, in _handle_events handler_func(fileobj, events) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 634, in _handle_events self._handle_recv() File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 663, in _handle_recv self._run_callback(callback, msg) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 584, in _run_callback f = callback(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/zmq/eventloop/zmqstream.py", line 308, in stream_callback return callback(self, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/services/kernels/handlers.py", line 572, in _on_zmq_reply super()._on_zmq_reply(stream, msg) File "/usr/local/lib/python3.8/dist-packages/notebook/base/zmqhandlers.py", line 256, in _on_zmq_reply self.write_message(msg, binary=isinstance(msg, bytes)) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 339, in write_message return self.ws_connection.write_message(message, binary=binary) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1086, in write_message fut = self._write_frame(True, opcode, message, flags=flags) File "/usr/local/lib/python3.8/dist-packages/tornado/websocket.py", line 1061, in _write_frame return self.stream.write(frame) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 546, in write self._handle_write() File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 976, in _handle_write self._write_buffer.advance(num_bytes) File "/usr/local/lib/python3.8/dist-packages/tornado/iostream.py", line 182, in advance assert 0 < size <= self._size AssertionError ``` ### Standalone code to reproduce the issue ```shell Run any of your Jupyter example in your docker image. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60916/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60916/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60915
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60915/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60915/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60915/events
https://github.com/tensorflow/tensorflow/issues/60915
1,762,443,456
I_kwDOArmXAs5pDMDA
60,915
Building tf-opt steps with prerequisites
{ "login": "AviadCo", "id": 12224702, "node_id": "MDQ6VXNlcjEyMjI0NzAy", "avatar_url": "https://avatars.githubusercontent.com/u/12224702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AviadCo", "html_url": "https://github.com/AviadCo", "followers_url": "https://api.github.com/users/AviadCo/followers", "following_url": "https://api.github.com/users/AviadCo/following{/other_user}", "gists_url": "https://api.github.com/users/AviadCo/gists{/gist_id}", "starred_url": "https://api.github.com/users/AviadCo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AviadCo/subscriptions", "organizations_url": "https://api.github.com/users/AviadCo/orgs", "repos_url": "https://api.github.com/users/AviadCo/repos", "events_url": "https://api.github.com/users/AviadCo/events{/privacy}", "received_events_url": "https://api.github.com/users/AviadCo/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @AviadCo \r\n\r\nCan you try with latest stable version `r2.13` and let us know if you still face the error?\r\n\r\nAlso, try `bazel clean --expunge` before executing `bazel build -c opt tensorflow/compiler/mlir:tf-opt`\r\n\r\nThere is no such docker build as of now for the `tf-opt` binary.\r\n\r\nThanks.", "Hi @pjpratik , thanks for the response!\r\nAfter moving to branch `r2.13` I manage to build tf-opt with the following change:\r\nin `tensorflow/tensorflow.bzl`:\r\n```\r\n@@ -939,7 +939,8 @@ def _create_symlink(src, dest, visibility = None):\r\n outs = [src],\r\n srcs = [dest],\r\n output_to_bindir = 1,\r\n- cmd = \"ln -sf $$(realpath --relative-to=$(RULEDIR) $<) $@\",\r\n+ cmd = \"ln -sf $$(basename $<) $@\",\r\n```\r\n\r\nAt least for me the symbolic link is refering to not existing path when running with `ln -sf $$(realpath --relative-to=$(RULEDIR) $<) $@`", "Moreover, when I ran the lit tests using:\r\n`bazel test --override_repository=\"llvm-raw=${LLVM_SRC}\" -c opt -t //tensorflow/compiler/mlir/... --spawn_strategy=sandboxed -j 60`\r\nWhere `${LLVM_SRC}` was defined to my llvm-project clone, I had to remove some references to `\"@llvm-project//mlir:run_lit.sh\"` in filegroups in the following files:\r\n```\r\n/tensorflow/compiler/mlir/lite/stablehlo/tests/BUILD\r\n/tensorflow/compiler/mlir/quantization/stablehlo/tests/BUILD\r\n/tensorflow/compiler/mlir/quantization/tensorflow/tests/BUILD\r\n/tensorflow/compiler/mlir/tfr/BUILD\r\n/tensorflow/compiler/mlir/tools/kernel_gen/tests/BUILD\r\n/tensorflow/compiler/mlir/tools/kernel_gen/tests/tf_to_kernel/BUILD\r\n```", "Hi @AviadCo \r\n\r\nThanks for the fix. Please feel free to create a PR for the same. \r\n\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "> tensorflow/tensorflow.bzl\r\n\r\n\r\n\r\n> Hi @pjpratik , thanks for the response! After moving to branch `r2.13` I manage to build tf-opt with the following change: in `tensorflow/tensorflow.bzl`:\r\n> \r\n> ```\r\n> @@ -939,7 +939,8 @@ def _create_symlink(src, dest, visibility = None):\r\n> outs = [src],\r\n> srcs = [dest],\r\n> output_to_bindir = 1,\r\n> - cmd = \"ln -sf $$(realpath --relative-to=$(RULEDIR) $<) $@\",\r\n> + cmd = \"ln -sf $$(basename $<) $@\",\r\n> ```\r\n> \r\n> At least for me the symbolic link is refering to not existing path when running with `ln -sf $$(realpath --relative-to=$(RULEDIR) $<) $@`\r\n\r\nWorked for me with the latest `nightly` branch, thanks!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60915\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60915\">No</a>\n" ]
2023-06-18T20:11:34
2023-09-12T12:18:08
2023-09-12T12:18:05
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.12 ### Custom Code Yes ### OS Platform and Distribution Linux Ubunto 18.04 ### Mobile device _No response_ ### Python version _No response_ ### Bazel version 6.1.2 ### GCC/Compiler version 9.2.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I am trying to build tf-opt binary on branch v2.12 without any changes and gets different compilation errors. The command for compilation I use: `bazel build -c opt tensorflow/compiler/mlir:tf-opt` Can you share some prerequites for building and debugging `tf-opt` binary (for debug/release mode). I would appriciate if there is docker builder I can use to it instead of changing my envrioment. Thanks, Aviad ### Standalone code to reproduce the issue ```shell ERROR: /localdrive/users/aviadco/community/tensorflow/tensorflow/lite/experimental/acceleration/configuration/BUILD:36:8: Executing genrule //tensorflow/lite/experimental/acceleration/configuration:configuration_schema failed: (Exit 1): bash failed: error executing command (from target //tensorflow/lite/experimental/acceleration/configuration:configuration_schema) /bin/bash -c ... (remaining 1 argument skipped) bazel-out/k8-opt-exec-50AE0418/bin/external/flatbuffers/flatc: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by bazel-out/k8-opt-exec-50AE0418/bin/external/flatbuffers/flatc) ERROR: /localdrive/users/aviadco/community/tensorflow/tensorflow/lite/schema/BUILD:184:22: Generating flatbuffer files for conversion_metadata_fbs_srcs: //tensorflow/lite/schema:conversion_metadata_fbs_srcs failed: (Exit 1): bash failed: error executing command (from target //tensorflow/lite/schema:conversion_metadata_fbs_srcs) /bin/bash -c ... (remaining 1 argument skipped) bazel-out/k8-opt-exec-50AE0418/bin/external/flatbuffers/flatc: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by bazel-out/k8-opt-exec-50AE0418/bin/external/flatbuffers/flatc) Target //tensorflow/compiler/mlir:tf-opt failed to build ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60915/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60915/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60913
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60913/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60913/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60913/events
https://github.com/tensorflow/tensorflow/issues/60913
1,762,219,963
I_kwDOArmXAs5pCVe7
60,913
Loaded runtime CuDNN library: 8.5.0 but source was compiled with: 8.6.0. - even in TF 2.12 and last update of cuda drivers
{ "login": "gg4u", "id": 284214, "node_id": "MDQ6VXNlcjI4NDIxNA==", "avatar_url": "https://avatars.githubusercontent.com/u/284214?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gg4u", "html_url": "https://github.com/gg4u", "followers_url": "https://api.github.com/users/gg4u/followers", "following_url": "https://api.github.com/users/gg4u/following{/other_user}", "gists_url": "https://api.github.com/users/gg4u/gists{/gist_id}", "starred_url": "https://api.github.com/users/gg4u/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gg4u/subscriptions", "organizations_url": "https://api.github.com/users/gg4u/orgs", "repos_url": "https://api.github.com/users/gg4u/repos", "events_url": "https://api.github.com/users/gg4u/events{/privacy}", "received_events_url": "https://api.github.com/users/gg4u/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "@gg4u I was able to run this official [example code](https://keras.io/examples/generative/vq_vae/) on colab as you can see [here](https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/generative/ipynb/vq_vae.ipynb). Please make sure that you are using compatible versions for build configurations. Please let us know the cuda version you used ?\r\nThank you!", "I got the same error...any solutions yet? I tried to reinstall cudnn, nvidia driver, and cuda but didn't help at all.", "I am also facing same error tried uninstalling and reinstalling cuda and cudnn, downgraded tensorflow and tried. nothing is working. Please help to close this issue. I am facing this issue from 2 weeks\r\n`Loaded runtime CuDNN library: 8.5.0 but source was compiled with: 8.6.0. CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.\r\n2023-06-27 12:07:13.521171: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at conv_ops_fused_impl.h:625 : UNIMPLEMENTED: DNN library is not found.`", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60913\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60913\">No</a>\n", "@Gnanendra18 @Jerry-UtopiaCompression Could you please let us know if you are still facing the issue?\r\nThank you!", "Hi,\r\nI got the same issue.\r\nThe problem was due to the fact the version of the package `nvidia-cudnn-cu11` was 8.5.0.\r\nThis package should be upgraded (`pip install -U nvidia-cudnn-cu11`).", "@znacer that did the trick indeed! I've got 8.6.0 actually installed as a ubuntu package but the python package takes priority. That was an old one and needed updating.", "I'm in Docker linux and have no idea how to push this forward, I tried upgrade cudnn and tf, downgraded tf, changed docker image from 11 to 12, only thing I found strange, that in TF compatibility matrix there is no CUDNN 8.5 , so have no idea which version of TF i should take.", "@zba Hi Alexey, \r\n\r\nIt is well tricky. What I ended up with is doing this in my `dockerfile`\r\n\r\n`RUN pip install -v --default-timeout=120 --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118`\r\n\r\nand this in my `requirements.txt`\r\n\r\n`nvidia-cudnn-cu11==8.6.*`\r\n\r\nFor the `dockerfile` the only thing that matters is (I think)\r\n\r\n`RUN pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118`\r\n\r\nand you could also do\r\n\r\n`RUN pip install nvidia-cudnn-cu11==8.6.* --extra-index-url https://download.pytorch.org/whl/cu118`\r\n\r\nI hope this works for you. Let us know!\r\n\r\nEdit: This was using `FROM tensorflow/tensorflow:2.14.0-gpu` as my base image. I think it was installing PyTorch that bungled it.", "> RUN pip install nvidia-cudnn-cu11==8.6.* --extra-index-url https://download.pytorch.org/whl/cu118\r\n\r\nHi, thank you, it works, fyi my base image nvidia/cuda:11.8.0-devel-ubuntu22.04 ", "Hi,\r\nI got the same error. \r\nubuntu 22.04 , cuda version 12.2 , cudnn 8.8.1, I got the error in tensorflow version 2.15.0 as per documentation cuda 12.2 is supported for tenserflow 2.15.0\r\nI haven't done any changes for cuda version\r\nJust downgraded tenserflow with cuda and cudnn using the command \"pip install tensorflow[and-cuda]==2.14.0\" so the issue has sorted\r\n", "Got the same error with tensorflow 2.15. Fixed it downgrading to 2.14, tf 2.15 installer is broken. It seems that can't recognize nvidia-cudnn-cu11==8.9.4.* installed with pip." ]
2023-06-18T10:08:55
2024-03-19T06:05:22
2023-07-12T02:08:35
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 22. ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8/8 ### GPU model and memory _No response_ ### Current Behaviour? Running a tutorial from Keras official blog with TF 2.12 and with updated drivers in Cuda, but : ``` 2023-06-18 11:49:15.576607: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:417] Loaded runtime CuDNN library: 8.5.0 but source was compiled with: 8.6.0. CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration. 2023-06-18 11:49:15.578580: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at conv_ops_fused_impl.h:625 : UNIMPLEMENTED: DNN library is not found. 2023-06-18 11:49:15.578631: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNIMPLEMENTED: DNN library is not found. ``` TF and cuda correctly installed as per : https://www.tensorflow.org/install/pip I tried to downgrade TF, but won't work because dependencies (tensorflow-probability and protobuf will fail) ### Standalone code to reproduce the issue ```shell Cannot reproduce a tutorial from official Keras blog: https://keras.io/examples/generative/vq_vae/ 2023-06-18 11:49:15.576607: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:417] Loaded runtime CuDNN library: 8.5.0 but source was compiled with: 8.6.0. I could not solve this error, for TF is updated ( 2.12.0 ) and installed from pip as showed on https://www.tensorflow.org/install/pip , cuda as well ypdated. Don't know how to solve: import tensorflow.python.platform.build_info as build print(build.build_info) OrderedDict([('cpu_compiler', '/dt9/usr/bin/gcc'), ('cuda_compute_capabilities', ['sm_35', 'sm_50', 'sm_60', 'sm_70', 'sm_75', 'compute_80']), ('cuda_version', '11.8'), ('cudnn_version', '8'), ('is_cuda_build', True), ('is_rocm_build', False), ('is_tensorrt_build', True)]) ``` ``` ### Relevant log output ```shell 2023-06-18 11:49:15.576607: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:417] Loaded runtime CuDNN library: 8.5.0 but source was compiled with: 8.6.0. CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration. 2023-06-18 11:49:15.578580: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at conv_ops_fused_impl.h:625 : UNIMPLEMENTED: DNN library is not found. 2023-06-18 11:49:15.578631: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNIMPLEMENTED: DNN library is not found. [[{{node vq_vae/encoder/conv2d_24/Relu}}]] --------------------------------------------------------------------------- UnimplementedError Traceback (most recent call last) Cell In[18], line 3 1 vqvae_trainer = VQVAETrainer(data_variance, latent_dim=16, num_embeddings=128) 2 vqvae_trainer.compile(optimizer=keras.optimizers.Adam()) ----> 3 vqvae_trainer.fit(x_train_scaled, epochs=30, batch_size=128) File /data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs) 67 filtered_tb = _process_traceback_frames(e.__traceback__) 68 # To get the full stack trace, call: 69 # `tf.debugging.disable_traceback_filtering()` ---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tb File /data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/tensorflow/python/eager/execute.py:52, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name) 50 try: 51 ctx.ensure_initialized() ---> 52 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, 53 inputs, attrs, num_outputs) 54 except core._NotOkStatusException as e: 55 if name is not None: UnimplementedError: Graph execution error: Detected at node 'vq_vae/encoder/conv2d_24/Relu' defined at (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel_launcher.py", line 17, in <module> app.launch_new_instance() File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/traitlets/config/application.py", line 1043, in launch_instance app.start() File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 725, in start self.io_loop.start() File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/tornado/platform/asyncio.py", line 195, in start self.asyncio_loop.run_forever() File "/usr/lib/python3.10/asyncio/base_events.py", line 600, in run_forever self._run_once() File "/usr/lib/python3.10/asyncio/base_events.py", line 1896, in _run_once handle._run() File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 513, in dispatch_queue await self.process_one() File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 502, in process_one await dispatch(*args) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 409, in dispatch_shell await result File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 729, in execute_request reply_content = await reply_content File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/ipkernel.py", line 422, in do_execute res = shell.run_cell( File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/ipykernel/zmqshell.py", line 540, in run_cell return super().run_cell(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3009, in run_cell result = self._run_cell( File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3064, in _run_cell result = runner(coro) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner coro.send(None) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3269, in run_cell_async has_raised = await self.run_ast_nodes(code_ast.body, cell_name, File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3448, in run_ast_nodes if await self.run_code(code, result, async_=asy): File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "/tmp/ipykernel_953075/2751485705.py", line 3, in <module> vqvae_trainer.fit(x_train_scaled, epochs=30, batch_size=128) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 1685, in fit tmp_logs = self.train_function(iterator) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 1284, in train_function return step_function(self, iterator) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 1268, in step_function outputs = model.distribute_strategy.run(run_step, args=(data,)) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 1249, in run_step outputs = model.train_step(data) File "/tmp/ipykernel_953075/2697647477.py", line 27, in train_step reconstructions = self.vqvae(x) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 558, in __call__ return super().__call__(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/base_layer.py", line 1145, in __call__ outputs = call_fn(inputs, *args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 96, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/functional.py", line 512, in call return self._run_internal_graph(inputs, training=training, mask=mask) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/functional.py", line 669, in _run_internal_graph outputs = node.layer(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/training.py", line 558, in __call__ return super().__call__(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/base_layer.py", line 1145, in __call__ outputs = call_fn(inputs, *args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 96, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/functional.py", line 512, in call return self._run_internal_graph(inputs, training=training, mask=mask) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/functional.py", line 669, in _run_internal_graph outputs = node.layer(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/engine/base_layer.py", line 1145, in __call__ outputs = call_fn(inputs, *args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 96, in error_handler return fn(*args, **kwargs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/layers/convolutional/base_conv.py", line 321, in call return self.activation(outputs) File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/activations.py", line 317, in relu return backend.relu( File "/data0/home/h21/luas6629/dummy/lib/python3.10/site-packages/keras/backend.py", line 5396, in relu x = tf.nn.relu(x) Node: 'vq_vae/encoder/conv2d_24/Relu' DNN library is not found. [[{{node vq_vae/encoder/conv2d_24/Relu}}]] [Op:__inference_train_function_4158] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60913/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60913/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60912
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60912/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60912/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60912/events
https://github.com/tensorflow/tensorflow/issues/60912
1,762,212,038
I_kwDOArmXAs5pCTjG
60,912
Add support for IO optimization
{ "login": "dentiny", "id": 26985418, "node_id": "MDQ6VXNlcjI2OTg1NDE4", "avatar_url": "https://avatars.githubusercontent.com/u/26985418?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dentiny", "html_url": "https://github.com/dentiny", "followers_url": "https://api.github.com/users/dentiny/followers", "following_url": "https://api.github.com/users/dentiny/following{/other_user}", "gists_url": "https://api.github.com/users/dentiny/gists{/gist_id}", "starred_url": "https://api.github.com/users/dentiny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dentiny/subscriptions", "organizations_url": "https://api.github.com/users/dentiny/orgs", "repos_url": "https://api.github.com/users/dentiny/repos", "events_url": "https://api.github.com/users/dentiny/events{/privacy}", "received_events_url": "https://api.github.com/users/dentiny/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@sachinprasadhs Any response?", "@dentiny , The request has been filed internally, once any new update is available, I will update it here. Thank you." ]
2023-06-18T09:52:32
2023-08-07T21:28:09
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.12 ### Custom Code Yes ### OS Platform and Distribution Ubuntu ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Tensorflow's internal gcs filesystem's performance is really bad, a few optimizations we could so: - Leverage multi-curl instead of easy-curl to avoid TCP connections created every single request; - Explicitly use HTTP/2 instead of HTTP/1.1 for IO multiplexing; - Leverage more compression algorithm, like LZ4, ZSTD, etc; - Adopt zero-copy interface for input stream interface; - Reduce unnecessary mem allocation in gcs filesystem. ### Standalone code to reproduce the issue ```shell Left a few optimization suggestions. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60912/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60912/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60911
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60911/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60911/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60911/events
https://github.com/tensorflow/tensorflow/issues/60911
1,762,159,669
I_kwDOArmXAs5pCGw1
60,911
{ "login": "Ale0098", "id": 117576177, "node_id": "U_kgDOBwIR8Q", "avatar_url": "https://avatars.githubusercontent.com/u/117576177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ale0098", "html_url": "https://github.com/Ale0098", "followers_url": "https://api.github.com/users/Ale0098/followers", "following_url": "https://api.github.com/users/Ale0098/following{/other_user}", "gists_url": "https://api.github.com/users/Ale0098/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ale0098/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ale0098/subscriptions", "organizations_url": "https://api.github.com/users/Ale0098/orgs", "repos_url": "https://api.github.com/users/Ale0098/repos", "events_url": "https://api.github.com/users/Ale0098/events{/privacy}", "received_events_url": "https://api.github.com/users/Ale0098/received_events", "type": "User", "site_admin": false }
[ { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Please don't spam!" ]
2023-06-18T07:30:43
2023-06-18T13:40:39
2023-06-18T13:40:38
NONE
spam
null
null
**System information** - Android Device information (use `adb shell getprop ro.build.fingerprint` if possible): - TensorFlow Lite in Play Services SDK version (found in `build.gradle`): - Google Play Services version (`Settings` > `Apps` > `Google Play Services` > `App details`): **Standalone code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to or attach code demonstrating the problem. **Any other info / logs** Include 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.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60911/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60911/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60910
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60910/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60910/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60910/events
https://github.com/tensorflow/tensorflow/issues/60910
1,762,159,312
I_kwDOArmXAs5pCGrQ
60,910
{ "login": "Ale0098", "id": 117576177, "node_id": "U_kgDOBwIR8Q", "avatar_url": "https://avatars.githubusercontent.com/u/117576177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ale0098", "html_url": "https://github.com/Ale0098", "followers_url": "https://api.github.com/users/Ale0098/followers", "following_url": "https://api.github.com/users/Ale0098/following{/other_user}", "gists_url": "https://api.github.com/users/Ale0098/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ale0098/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ale0098/subscriptions", "organizations_url": "https://api.github.com/users/Ale0098/orgs", "repos_url": "https://api.github.com/users/Ale0098/repos", "events_url": "https://api.github.com/users/Ale0098/events{/privacy}", "received_events_url": "https://api.github.com/users/Ale0098/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "Please don't spam!", "Please don't spam!" ]
2023-06-18T07:29:16
2023-06-18T13:40:49
2023-06-18T13:40:48
NONE
spam
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): - TensorFlow installed from (source or binary): - TensorFlow version (or github SHA if from source): **Provide the text output from tflite_convert** ``` # Copy and paste here ``` **Standalone code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Colab/Jupyter/any notebook. Also, please include a link to a GraphDef or the model if possible. **Any other info / logs** Include 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.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60910/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60910/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60907
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60907/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60907/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60907/events
https://github.com/tensorflow/tensorflow/issues/60907
1,761,990,349
I_kwDOArmXAs5pBdbN
60,907
Typo in docs transfer_learning.ipynb
{ "login": "kentmchenry", "id": 830301, "node_id": "MDQ6VXNlcjgzMDMwMQ==", "avatar_url": "https://avatars.githubusercontent.com/u/830301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kentmchenry", "html_url": "https://github.com/kentmchenry", "followers_url": "https://api.github.com/users/kentmchenry/followers", "following_url": "https://api.github.com/users/kentmchenry/following{/other_user}", "gists_url": "https://api.github.com/users/kentmchenry/gists{/gist_id}", "starred_url": "https://api.github.com/users/kentmchenry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kentmchenry/subscriptions", "organizations_url": "https://api.github.com/users/kentmchenry/orgs", "repos_url": "https://api.github.com/users/kentmchenry/repos", "events_url": "https://api.github.com/users/kentmchenry/events{/privacy}", "received_events_url": "https://api.github.com/users/kentmchenry/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "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, "description": "Status - Awaiting response from author" }, { "id": 1178505529, "node_id": "MDU6TGFiZWwxMTc4NTA1NTI5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/prtype:bugfix", "name": "prtype:bugfix", "color": "159b2e", "default": false, "description": "PR to fix a bug" }, { "id": 3911105852, "node_id": "LA_kwDOArmXAs7pHr08", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20PR%20merge", "name": "awaiting PR merge", "color": "4080bf", "default": false, "description": "awaiting PR merge" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Can I work on this issue?\r\n", "Hi @kentmchenry ,\r\n\r\nThanks for your observation and I believe you are right. `Model.fit` is meant for training on the inputs for certain epochs. The second reference of model.fit should be actually replaced with model.call .\r\n\r\nIf you are willing to contribute PR please feel free to do. Thanks!", "@SuryanarayanaY working it...", "@SuryanarayanaY PR is here: https://github.com/tensorflow/docs/pull/2236", "Hi @kentmchenry ,\r\n\r\nThanks for the PR. I can see the changes also approved by Engg team. Thanks for reporting and also for PR.", "Welcome, glad I could help", "@kentmchenry ,\r\n\r\nThe PR has been merged now. Could we mark it as resolved now. Thanks!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60907\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60907\">No</a>\n" ]
2023-06-17T20:40:59
2023-07-21T07:12:21
2023-07-21T07:12:19
NONE
null
null
null
It seems there is a typo in https://www.tensorflow.org/tutorials/images/transfer_learning In the augmentation section there is a Note as follows: **Typo** `Note: These layers are active only during training, when you call [Model.fit](https://www.tensorflow.org/api_docs/python/tf/keras/Model#fit). They are inactive when the model is used in inference mode in [Model.evaluate](https://www.tensorflow.org/api_docs/python/tf/keras/Model#evaluate) or [Model.fit](https://www.tensorflow.org/api_docs/python/tf/keras/Model#fit).` If I understand correctly the **second** reference to `Model.fit` is not intended or correct and should be changed to `Model.call` as follows: **Correction** `Note: These layers are active only during training, when you call [Model.fit](https://www.tensorflow.org/api_docs/python/tf/keras/Model#fit). They are inactive when the model is used in inference mode in [Model.evaluate](https://www.tensorflow.org/api_docs/python/tf/keras/Model#evaluate) or [Model.call](https://www.tensorflow.org/api_docs/python/tf/keras/Model#call).` I'm willing to help with a pull request if confirmed.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60907/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60907/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60906
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60906/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60906/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60906/events
https://github.com/tensorflow/tensorflow/issues/60906
1,761,642,385
I_kwDOArmXAs5pAIeR
60,906
Errors when custom gradients are being used in TPU
{ "login": "abhaskumarsinha", "id": 31654395, "node_id": "MDQ6VXNlcjMxNjU0Mzk1", "avatar_url": "https://avatars.githubusercontent.com/u/31654395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhaskumarsinha", "html_url": "https://github.com/abhaskumarsinha", "followers_url": "https://api.github.com/users/abhaskumarsinha/followers", "following_url": "https://api.github.com/users/abhaskumarsinha/following{/other_user}", "gists_url": "https://api.github.com/users/abhaskumarsinha/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhaskumarsinha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhaskumarsinha/subscriptions", "organizations_url": "https://api.github.com/users/abhaskumarsinha/orgs", "repos_url": "https://api.github.com/users/abhaskumarsinha/repos", "events_url": "https://api.github.com/users/abhaskumarsinha/events{/privacy}", "received_events_url": "https://api.github.com/users/abhaskumarsinha/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@abhaskumarsinha Thank you for raising the issue. \r\nIn order to expedite the trouble-shooting process, please provide the complete code snippet to reproduce the issue reported here. Thank you!!", "Hello @sushreebarsa Apologies for the late reply.\r\n\r\nThank you for looking into the issue. A sample reproducible code is given below:\r\n```\r\nimport tensorflow as tf\r\nimport numpy as np\r\nimport os\r\n\r\ntpu = tf.distribute.cluster_resolver.TPUClusterResolver()\r\ntf.config.experimental_connect_to_cluster(tpu)\r\ntf.tpu.experimental.initialize_tpu_system(tpu)\r\nstrategy = tf.distribute.TPUStrategy(tpu)\r\n\r\n# Generate random training data\r\nnum_samples = 1000\r\ninput_dim = 10\r\noutput_dim = 1\r\n\r\nx_train = np.random.random((num_samples, input_dim))\r\ny_train = np.random.random((num_samples, output_dim))\r\n\r\n# Convert the training data into TensorFlow datasets\r\nbatch_size = 32\r\ntrain_dataset = tf.data.Dataset.from_tensor_slices((x_train, y_train)).batch(batch_size).repeat()\r\n\r\n# Custom training loop\r\nepochs = 10\r\n\r\nwith strategy.scope():\r\n # Define the model\r\n model = tf.keras.Sequential([\r\n tf.keras.layers.Dense(32, activation='relu', input_shape=(input_dim,)),\r\n tf.keras.layers.Dense(output_dim)\r\n ])\r\n\r\n # Define the loss function\r\n loss_object = tf.keras.losses.MeanSquaredError(reduction=tf.keras.losses.Reduction.NONE)\r\n\r\n # Define the optimizer\r\n optimizer = tf.keras.optimizers.Adam()\r\n\r\n\r\n for epoch in range(epochs):\r\n for inputs, labels in train_dataset:\r\n with tf.GradientTape() as tape:\r\n predictions = model(inputs, training=True)\r\n loss = loss_object(labels, predictions)\r\n gradients = tape.gradient(loss, model.trainable_variables)\r\n\r\n\r\n # Create custom gradients\r\n\r\n grads = []\r\n for g in gradients:\r\n grads += [tf.ones((tf.shape(g)))]\r\n\r\n optimizer.apply_gradients(zip(grads, model.trainable_variables))\r\n```\r\n\r\nHere's a reproducible Colab Link: https://colab.research.google.com/drive/1yj7pGuFS-Ottf1eM9ua3a_cCf3VdoU0Z?usp=sharing\r\n\r\nPlease look into the issue and update us with any possible solution (even temporarily) to deal with the issue.\r\n\r\nThank You.", "@abhaskumarsinha I was able to replicate the issue in TF v[2.12](https://colab.research.google.com/gist/sushreebarsa/c44e879509f73128a791c9957fe16306/60906.ipynb), [v2.13](https://colab.research.google.com/gist/sushreebarsa/c495b13f6eeb80c1408d7f96f94dbb91/60906.ipynb#scrollTo=AHBpLHNWX6kS) and faced **TypeError** in [tf-nightly](https://colab.research.google.com/gist/sushreebarsa/91e477da76917eba3668cf87a94ac49e/60906.ipynb#scrollTo=4DiN9Sz7X_KB). Please find the gist here. Could you please confirm the same? Thank you!", "Hello @sushreebarsa \r\n\r\nYes. I think the issue here is common for 2.12/13. I'm not sure about tf-nightly (for some reason I can't use them on my device due to some custom configurations, so I can confirm the same thing on Google Colab) but those modules certainly need a check. Thank you.", "@abhaskumarsinha Thank you for the response!\r\n@sachinprasadhs Could you please take a look at this issue?\r\nThank you!" ]
2023-06-17T04:52:55
2023-07-17T20:14:46
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version v2.12.0-rc1-12-g0db597d0d75 2.12.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? When writing custom gradient modules in TensorFlow (not using tf.GradientTape()) and applying it using an existing optimizer causes errors. I don't see any visible difference in tf.GradientShape() gradients and custom ones. ### Standalone code to reproduce the issue ```shell with strategy.scope(): with tf.GradientTape() as tape: model = ... #using any model loss = ... #using any loss function here loss_n = loss(y_batch, model(x_batch)) grads = tape.gradient(loss_n, model.trainable_weights) new_grads = [] for g in grads: new_grads += [tf.ones((tf.shape(g)))] optimizer.apply_gradients(zip(new_grads, model.trainable_weights)) #error here ``` ``` ### Relevant log output ```shell Should be similar to below: AttributeError Traceback (most recent call last) <ipython-input-25-c9f1f22a039f> in <cell line: 1>() 50 grads = tape.gradient(l, model.trainable_weights) 51 c = grads[0] ---> 52 opt.apply_gradients(zip(grads, model.trainable_weights)) 53 print('Loss this batch: ' + closure().numpy()) 54 opt.next_steps() 2 frames /usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py in apply_gradients(self, grads_and_vars, name, skip_gradients_aggregation, **kwargs) 1171 ) 1172 if not skip_gradients_aggregation and experimental_aggregate_gradients: -> 1173 grads_and_vars = self.aggregate_gradients(grads_and_vars) 1174 return super().apply_gradients(grads_and_vars, name=name) 1175 /usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py in aggregate_gradients(self, grads_and_vars) 1137 List of (gradient, variable) pairs. 1138 """ -> 1139 return optimizer_utils.all_reduce_sum_gradients(grads_and_vars) 1140 1141 def apply_gradients( /usr/local/lib/python3.10/dist-packages/keras/optimizers/utils.py in all_reduce_sum_gradients(grads_and_vars) 40 else: 41 # TODO(b/183257003): Remove this branch ---> 42 reduced = tf.distribute.get_replica_context().merge_call( 43 _all_reduce_sum_fn, args=(filtered_grads_and_vars,) 44 ) AttributeError: 'NoneType' object has no attribute 'merge_call' ``` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60906/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60906/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60905
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60905/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60905/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60905/events
https://github.com/tensorflow/tensorflow/issues/60905
1,761,619,423
I_kwDOArmXAs5pAC3f
60,905
tf.keras.metrics.Precision treats label as binary?
{ "login": "minkooseo", "id": 1971170, "node_id": "MDQ6VXNlcjE5NzExNzA=", "avatar_url": "https://avatars.githubusercontent.com/u/1971170?v=4", "gravatar_id": "", "url": "https://api.github.com/users/minkooseo", "html_url": "https://github.com/minkooseo", "followers_url": "https://api.github.com/users/minkooseo/followers", "following_url": "https://api.github.com/users/minkooseo/following{/other_user}", "gists_url": "https://api.github.com/users/minkooseo/gists{/gist_id}", "starred_url": "https://api.github.com/users/minkooseo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minkooseo/subscriptions", "organizations_url": "https://api.github.com/users/minkooseo/orgs", "repos_url": "https://api.github.com/users/minkooseo/repos", "events_url": "https://api.github.com/users/minkooseo/events{/privacy}", "received_events_url": "https://api.github.com/users/minkooseo/received_events", "type": "User", "site_admin": false }
[ { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 2012480497, "node_id": "MDU6TGFiZWwyMDEyNDgwNDk3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-feature", "name": "type:docs-feature", "color": "159b2e", "default": false, "description": "Doc issues for new feature, or clarifications about functionality" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@minkooseo,\r\nThank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). \r\n\r\nCould you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).\r\nTo know more please refer:\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\nThank you!\r\n", "Ok. I will." ]
2023-06-17T03:43:54
2023-06-19T09:46:25
2023-06-19T09:46:25
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2.14.0-dev20230611 ### Custom Code Yes ### OS Platform and Distribution Linux ### Mobile device NA ### Python version 3.11.3 ### Bazel version NA ### GCC/Compiler version NA ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? tf.keras.metrics.Precision is returning precision assuming the label is binary? It looks so to me. See: ``` In [4]: m = tf.keras.metrics.Precision() ...: m.update_state([0, 1, 2, 3], [0, 1, 2, 2]) ...: m.result().numpy() Out[4]: 1.0 In [5]: import tensorflow as tf In [6]: m = tf.keras.metrics.Precision() ...: m.update_state([0, 1, 2, 3], [0, 1, 2, 2]) ...: m.result().numpy() Out[6]: 1.0 In [7]: tf.__version__ Out[7]: '2.14.0-dev20230611' In [8]: m = tf.keras.metrics.Precision() ...: m.update_state([0, 5, 3, 3], [0, 1, 2, 2]) ...: m.result().numpy() Out[8]: 1.0 ``` Above shouldn't be 1.0 if labels are treated as non binary. It appears to me that 0s are treated as 0 while non zeros are treated as 1. But nowhere in the doc mentions this behavior. I can't find categorical precision or similar either. Please update doc to explain this behavior. ### Standalone code to reproduce the issue ```shell See above. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60905/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60905/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60904
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60904/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60904/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60904/events
https://github.com/tensorflow/tensorflow/pull/60904
1,761,205,781
PR_kwDOArmXAs5TOMIR
60,904
"correction for TpuExecute_FreeTpuEmbeddingMemoryAllocations "
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-16T19:29:20
2023-06-16T23:01:56
2023-06-16T19:39:23
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60904", "html_url": "https://github.com/tensorflow/tensorflow/pull/60904", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60904.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60904.patch", "merged_at": "2023-06-16T19:39:23" }
…memory allocations, and stash them inside the runtime while TPUExecute is being invoked. These temporary device memory allocations are cleared at the end of TPUExecute. PiperOrigin-RevId: 540156433
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60904/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60904/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60903
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60903/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60903/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60903/events
https://github.com/tensorflow/tensorflow/issues/60903
1,760,784,527
I_kwDOArmXAs5o83CP
60,903
lossing too much accuracy
{ "login": "TayyabaZainab0807", "id": 36931312, "node_id": "MDQ6VXNlcjM2OTMxMzEy", "avatar_url": "https://avatars.githubusercontent.com/u/36931312?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TayyabaZainab0807", "html_url": "https://github.com/TayyabaZainab0807", "followers_url": "https://api.github.com/users/TayyabaZainab0807/followers", "following_url": "https://api.github.com/users/TayyabaZainab0807/following{/other_user}", "gists_url": "https://api.github.com/users/TayyabaZainab0807/gists{/gist_id}", "starred_url": "https://api.github.com/users/TayyabaZainab0807/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TayyabaZainab0807/subscriptions", "organizations_url": "https://api.github.com/users/TayyabaZainab0807/orgs", "repos_url": "https://api.github.com/users/TayyabaZainab0807/repos", "events_url": "https://api.github.com/users/TayyabaZainab0807/events{/privacy}", "received_events_url": "https://api.github.com/users/TayyabaZainab0807/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "I have noticed that When i train just for 1 epoch and quantize it to int8, I lose 2-3% but when I train for more epoch I lose more then 30%. Why is the case.", "Hi @TayyabaZainab0807 \r\n\r\nCould you please provide the standalone code to reproduce the issue?\r\n\r\nThe quantization aware training is supposed to give better model accuracy than post training quantization. Please refer to [document](https://www.tensorflow.org/model_optimization/guide/quantization/training) for QAT and let us know if it helps.\r\n\r\nThanks.", "Hello @TayyabaZainab0807 \r\n\r\nCould you please try to use OPTIMIZE_FOR_SIZE while optimization and use the data type of float for input and output to get the better accuracy. \r\nAnd also, try this :\r\n def generate_representative_dataset():\r\n for i in range(x_train.shape[0]):\r\n print(i, end=\"\\r\")\r\n yield [tf.expand_dims(x_train[i], axis=0)]\r\n\r\n\r\nI am not sure about this, But you can try this once \r\n", "> Hi @TayyabaZainab0807\r\n> \r\n> Could you please provide the standalone code to reproduce the issue?\r\n> \r\n> The quantization aware training is supposed to give better model accuracy than post training quantization. Please refer to [document](https://www.tensorflow.org/model_optimization/guide/quantization/training) for QAT and let us know if it helps.\r\n> \r\n> Thanks.\r\n\r\nThank you for your reply.\r\nHere is a colab notebook:\r\nhttps://colab.research.google.com/drive/1iw4vJKyMuFTnOY6hyDFj2PJ2ZhBJlWDE?usp=sharing\r\n\r\n\r\nThis are the results for my trail. I get different accuracy every time, the difference in accuracy can be from 1% - more then 50%:\r\nTesting X_test_results_quantized.csv\r\nTP= 145\r\nTN= 1039\r\nFP= 0\r\nFN= 1316\r\naccuracy: 0.4736\r\n\r\n\r\nTesting X_test_results_normal.csv\r\nTP= 1441\r\nTN= 1028\r\nFP= 11\r\nFN= 20\r\naccuracy: 0.9876", "\r\n> OPTIMIZE_FOR_SIZE\r\n\r\n@netra2109 Thanks for your reply. I removed the int input and outputs but still face the same challenge. I didn't understand what you meant by OPTIMIZE_FOR_SIZE.\r\n\r\nDoes this go somewhere here?\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]", "\r\n@TayyabaZainab0807 \r\n\r\nyeah, adjust the optimizations if needed. \r\n converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]\r\n\r\n", "> @TayyabaZainab0807\r\n> \r\n> yeah, adjust the optimizations if needed. converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]\r\n\r\nOPTIMIZE_FOR_SIZE also didn't work for me, still got 44% accuracy.", "Hi @TayyabaZainab0807 \r\n\r\nThe issue with your code is not initialising the interpreter while testing the samples in the loop. \r\n\r\nPlease find the [gist](https://colab.research.google.com/gist/pjpratik/e8926a25ac83179fb29717dc1657608f/60903.ipynb) which obtained `98.04%` accuracy on the converted quantized tflite model.\r\n\r\nThanks.", "It seems to work now..Thank you very much. Is there any documentation on this? I would like to read a bit into that.", "Hi @TayyabaZainab0807 \r\n\r\nGlad it worked. Please check the [documentation](https://www.tensorflow.org/lite/guide/inference#running_a_model) on steps involved in running a model in TFLite.\r\n\r\nPlease feel free to close the issue since it is resolved.\r\n\r\nThanks.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60903\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60903\">No</a>\n", "Hello, \r\n\r\nThank you for your input on this. I am facing exactly the same issue (working with MobilenetV3 on int8 quantisation and observing big accuracy drop / kind of random results depending on a particular attempt - both with PTQ and QAT). The proposed solution did not work, may I please double check if it solved the issues in case of @TayyabaZainab0807 ? Any chance you could please elaborate why it is required to call the following on every iteration? I thought it would be okay to call it only once before the cycle? @pjpratik \r\n`interpreter = tf.lite.Interpreter(model_path='keras_lstm/model_int8.tflite')\r\n interpreter.allocate_tensors()` \r\n\r\nThank you very much." ]
2023-06-16T14:44:21
2023-07-01T13:54:49
2023-06-26T09:34:47
NONE
null
null
null
I have a model composed of some tf.keras.layers.Conv1D and custom Upsampling1DLayer and CustomCropping1D layer: The model produces correct results after training but when I convert it to tflite with int8 quantization, my accuracy drops by more than 50%. I am unable to understand why is that? and how can I avoid this much loss. def tflite_conversion(model): run_model = tf.function(lambda x: model(x)) concrete_func = run_model.get_concrete_function(tf.TensorSpec([1,6000,3], model.inputs[0].dtype)) MODEL_DIR = "keras_lstm" model.save(MODEL_DIR, save_format="tf", signatures=concrete_func) converter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR) Choice="_int8" converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.inference_input_type = tf.int8 # or tf.uint8 converter.inference_output_type = tf.int8 # or tf.uint8 converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8,tf.lite.OpsSet.TFLITE_BUILTINS] #converter.experimental_select_user_tf_ops = [Upscaling1D] def generate_representative_dataset(): for i in range(int(x_train.shape[0]/100)): print(i,end="\r") yield [tf.expand_dims(x_train[i], axis=0)] converter.representative_dataset = generate_representative_dataset tflite_model = converter.convert() open("keras_lstm/model"+Choice+".tflite", "wb").write(tflite_model) return tflite_model
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60903/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60903/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60902
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60902/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60902/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60902/events
https://github.com/tensorflow/tensorflow/issues/60902
1,760,580,777
I_kwDOArmXAs5o8FSp
60,902
Flutter - "Select Tensorflow Ops" not working
{ "login": "galaturka", "id": 35394185, "node_id": "MDQ6VXNlcjM1Mzk0MTg1", "avatar_url": "https://avatars.githubusercontent.com/u/35394185?v=4", "gravatar_id": "", "url": "https://api.github.com/users/galaturka", "html_url": "https://github.com/galaturka", "followers_url": "https://api.github.com/users/galaturka/followers", "following_url": "https://api.github.com/users/galaturka/following{/other_user}", "gists_url": "https://api.github.com/users/galaturka/gists{/gist_id}", "starred_url": "https://api.github.com/users/galaturka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/galaturka/subscriptions", "organizations_url": "https://api.github.com/users/galaturka/orgs", "repos_url": "https://api.github.com/users/galaturka/repos", "events_url": "https://api.github.com/users/galaturka/events{/privacy}", "received_events_url": "https://api.github.com/users/galaturka/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2477739347, "node_id": "MDU6TGFiZWwyNDc3NzM5MzQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.4", "name": "TF 2.4", "color": "5319e7", "default": false, "description": "for issues related to TF 2.4" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "@galaturka Thank you for opening this issue. You are using an older version of TF which is not actively supported. Could you please provide the entire tflite model to debug the issue if that persists in the newer version?\r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "@galaturka I experience the problem. Are you able to figure this out yet?", "Hi @galaturka \r\n\r\nCan you try with latest nightly snapshot and see if you are still facing the issue?\r\n\r\n```\r\ndependencies {\r\n implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'\r\n // This dependency adds the necessary TF op support.\r\n implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'\r\n}\r\n```\r\nThanks.", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60902\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60902\">No</a>\n", "Hi @galaturka were you able to resolve this issue? i am currently facing it.\r\n" ]
2023-06-16T12:50:34
2023-11-03T13:31:23
2023-07-27T01:49:59
NONE
null
null
null
**System information** - OS Platform and Distribution : Windows 11 - Flutter version : 3.7.12 - TensorFlow installed from (source or binary): tflite_flutter 0.10.1 (https://pub.dev/packages/tflite_flutter) - TensorFlow version (or github SHA if from source): 2.4.1 (implementation 'org.tensorflow:tensorflow-lite:2.4.1') --> in build.gradle Hello, I try to implement Google Android autocomplete project (https://github.com/tensorflow/examples/tree/master/lite/examples/generative_ai/android) on **flutter**. Here is the detailed project implementation website(https://codelabs.developers.google.com/kerasnlp-tflite#0 ) for reference. ### I created .tflite file using below given codes : @tf.function def generate(prompt, max_length): return gpt2_lm.generate(prompt, max_length) concrete_func = generate.get_concrete_function(tf.TensorSpec([], tf.string), 100) gpt2_lm.jit_compile = False converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func], gpt2_lm) converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops. tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops. ] converter.allow_custom_ops = True converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.target_spec.experimental_select_user_tf_ops = ["UnsortedSegmentJoin", "UpperBound"] converter._experimental_guarantee_all_funcs_one_use = True quant_generate_tflite = converter.convert() ### Then I tried to implement generated .tflite model in flutter using **tflite_flutter** package as below(focussed) : import 'package:tflite_flutter/tflite_flutter.dart'; final String MODEL_PATH = 'assets/autocomplete.tflite'; void loadModel() async { try { print('Loading model...'); _interpreter = await Interpreter.fromAsset(MODEL_PATH); print('Model loaded'); } on Exception catch (e) { print('Error while loading model: $e'); } } ### On build.gradle file in android folder, I made some arrangements as below : aaptOptions { noCompress 'tflite' noCompress 'lite' } dependencies { implementation 'org.tensorflow:tensorflow-lite:2.4.1' implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:2.12.0' } ### During debugging, I get this error message : E/tflite (31048): Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select E/tflite (31048): Node number 2 (FlexMutableHashTableV2) failed to prepare. After a bit of investigation and having a double-check on android example application by google, I realized that there are libraries already builded with an .aar file extension. Then I copied android version of this file (https://storage.googleapis.com/download.tensorflow.org/models/tflite/generativeai/tensorflow-lite-select-tf-ops.aar) into my flutter android folder under app/libs. I also updated my build.gradle dependencies by adding implementation "(fileTree(dir: "libs", include: ["*.aar"]))". ### Program UI starts without any issue, but still I get this "Select TensorFlow op(s) error : E/tflite (31048): Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select Could you please support me on this topic ? Maybe there is a missing function for interpreter in tflite_flutter package compared to native android ones. If necessary, I can share my flutter project. Thanks in advance. Gorkem
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60902/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60902/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60901
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60901/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60901/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60901/events
https://github.com/tensorflow/tensorflow/issues/60901
1,760,580,104
I_kwDOArmXAs5o8FII
60,901
TF 2 building from source fails
{ "login": "bergentruckung", "id": 15092622, "node_id": "MDQ6VXNlcjE1MDkyNjIy", "avatar_url": "https://avatars.githubusercontent.com/u/15092622?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bergentruckung", "html_url": "https://github.com/bergentruckung", "followers_url": "https://api.github.com/users/bergentruckung/followers", "following_url": "https://api.github.com/users/bergentruckung/following{/other_user}", "gists_url": "https://api.github.com/users/bergentruckung/gists{/gist_id}", "starred_url": "https://api.github.com/users/bergentruckung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bergentruckung/subscriptions", "organizations_url": "https://api.github.com/users/bergentruckung/orgs", "repos_url": "https://api.github.com/users/bergentruckung/repos", "events_url": "https://api.github.com/users/bergentruckung/events{/privacy}", "received_events_url": "https://api.github.com/users/bergentruckung/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 1222092379, "node_id": "MDU6TGFiZWwxMjIyMDkyMzc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:bazel", "name": "subtype:bazel", "color": "b619ea", "default": false, "description": "Bazel related Build_Installation issues" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@bergentruckung,\r\nHave you tried the above query after trying the **bazel clean --expunge** command. Could you try once and try repeating the above steps. And also make sure you follow the steps mentioned [here](https://www.tensorflow.org/install/source).\r\n\r\nAlso usually users get this error `PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: `unable to find valid certification path to requested target due to the system firewall. The system firewall restricts the application to connect to external systems. The firewall requires a valid certificate to allow access to the external systems.\r\n\r\nCould you please confirm, whether you're installing [Bazel](https://bazel.build/install) normally or via Bazelisk because [Bazelisk](https://github.com/bazelbuild/bazelisk) is an easy way to install Bazel and automatically downloads the correct Bazel version for TensorFlow and if you're using Bazelisk then please download manually and please follow below steps:\r\n\r\n1. wget https://github.com/bazelbuild/bazelisk/releases/download/v1.16.0/bazelisk-darwin-arm64 (If you get any error with respect to certificate then you can use this command wget --no-check-certificate https://github.com/bazelbuild/bazelisk/releases/download/v1.16.0/bazelisk-darwin-arm64\r\n\r\n2. `chmod +x bazelisk-darwin-arm64`\r\n\r\n3. `sudo mv bazelisk-darwin-arm64 /usr/local/bin/bazel`\r\n\r\nAfter that please try to run the below steps:\r\n\r\n```\r\n1. whereis bazel\r\n2. whereis bazelisk\r\n```\r\nAlso https://bazel.build/install/compile-source#bootstrap-unix.\r\nplease try to comment out 'for' statement and rebuild a binary version of bazel:\r\nhttps://github.com/bazelbuild/bazel/blob/master/src/main/cpp/blaze.cc#L1015\r\nThen use this to build tensorflow. Thank you!", "Thanks, @tilakrayal.\r\n>Have you tried the above query after trying the bazel clean --expunge command. Could you try once and try repeating the above steps. And also make sure you follow the steps mentioned [here](https://www.tensorflow.org/install/source).\r\n\r\nYes, I've tried after running `bazel clean --expunge` as well. Also, I've been following the exact same docs that you linked.\r\n\r\n>Also usually users get this error PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target due to the system firewall. The system firewall restricts the application to connect to external systems. The firewall requires a valid certificate to allow access to the external systems.\r\n\r\nWhat can I do to bypass this? What's the cert that is causing the problem? Since the error seems to indicate a java application (I'm guessing bazel?), is it possible to add the required cert to its java keystore/cert bundle?\r\n\r\n>Could you please confirm, whether you're installing [Bazel](https://bazel.build/install) normally or via [Bazelisk](https://github.com/bazelbuild/bazelisk) because Bazelisk is an easy way to install Bazel and automatically downloads the correct Bazel version for TensorFlow and if you're using Bazelisk then please download manually and please follow below steps:\r\n\r\nYes, I'm using `bazelisk` to install the correct version of `bazel`.", "@tilakrayal, were you able to check this?", "Any updates here?", "@sachinprasadhs, any updates here?" ]
2023-06-16T12:50:06
2023-07-10T10:56:42
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version Commit hash: cd8247b47bd5ba25b26752b55ea54b52e5574183 ### Custom Code No ### OS Platform and Distribution Redhat Enterprise Linux 8.7 ### Mobile device _No response_ ### Python version 3.10.4 ### Bazel version 5.4.0 (same as what's there in .bazelversion) ### GCC/Compiler version clang 17.0.0 ### CUDA/cuDNN version CUDA 12.1, cuDNN 8.9.0 ### GPU model and memory H100 ### Current Behaviour? Hello, I'm unable to build TF from source on CUDA 12.1. It tries to download a bunch of things, but that's failing with the attached error. Please let me know what I can do to build it correctly. Thanks in advance. ### Standalone code to reproduce the issue ```shell * ./configure (and provide details) * bazel --output_user_root=/var/tmp/bazel_cache/ build //tensorflow/tools/pip_package:build_pip_package --config=v2 --config=nogcp --verbose_failures ``` ### Relevant log output ```shell Build fails with the following: WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz failed: class javax.net.ssl.SSLHandshakeException PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target WARNING: Download from https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz failed: class javax.net.ssl.SSLHandshakeException PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ERROR: An error occurred during the fetch of repository 'llvm-raw': Traceback (most recent call last): File "/var/tmp/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz, https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz] to /var/tmp/bazel_cache/3f833e193dcf224ba1dfd4cfcb9a9327/external/llvm-raw/temp9475963496497572483/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ERROR: /var/tmp/tensorflow/WORKSPACE:11:14: fetching _tf_http_archive rule //external:llvm-raw: Traceback (most recent call last): File "/var/tmp/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz, https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz] to /var/tmp/bazel_cache/3f833e193dcf224ba1dfd4cfcb9a9327/external/llvm-raw/temp9475963496497572483/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ``` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60901/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60901/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60900
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60900/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60900/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60900/events
https://github.com/tensorflow/tensorflow/issues/60900
1,760,530,203
I_kwDOArmXAs5o748b
60,900
tf.test.gpu_device_name() leads to soft lockup and unusable system
{ "login": "mjugl", "id": 120371336, "node_id": "U_kgDOByy4iA", "avatar_url": "https://avatars.githubusercontent.com/u/120371336?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mjugl", "html_url": "https://github.com/mjugl", "followers_url": "https://api.github.com/users/mjugl/followers", "following_url": "https://api.github.com/users/mjugl/following{/other_user}", "gists_url": "https://api.github.com/users/mjugl/gists{/gist_id}", "starred_url": "https://api.github.com/users/mjugl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mjugl/subscriptions", "organizations_url": "https://api.github.com/users/mjugl/orgs", "repos_url": "https://api.github.com/users/mjugl/repos", "events_url": "https://api.github.com/users/mjugl/events{/privacy}", "received_events_url": "https://api.github.com/users/mjugl/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @mjugl ,\r\n\r\nI think the problem is not with Tensorflow.I tested the same code in colab and it executes fine.[Gist](https://colab.research.google.com/gist/SuryanarayanaY/39ae6bc8ded874147e9ef57171a6111f/60900.ipynb) attached for reference.\r\n\r\nI request you to please refer the attached pip instructions guide to check the Hardware requirements and GPU setup process. I have seen from the attached logs GPU was not enabled which may be causing the problem.Please verify the GPU steps and confirm the same. \r\n\r\nComing to GPU drivers you can check the Nvidia website for compatible GPU driver for your GPU.Also Tensorflow tested configurations for CUDA and cuDNN can be found [here](https://www.tensorflow.org/install/source#gpu).\r\n\r\nThanks!", "Hi @SuryanarayanaY,\r\n\r\n> I have seen from the attached logs GPU was not enabled which may be causing the problem.Please verify the GPU steps and confirm the same.\r\n\r\nI reinstalled the graphics drivers and verified they work. `nvidia-smi` reports that the GPU is indeed active. I'm also fairly confident the graphics drivers were correctly installed before. Unfortunately, I can only provide a screenshot of the CLI for now.\r\n\r\n![Screenshot_20230619_114937](https://github.com/tensorflow/tensorflow/assets/120371336/63f317c0-1cd1-4ba8-b0af-bccfb8204e09)\r\n\r\n> Also Tensorflow tested configurations for CUDA and cuDNN can be found [here](https://www.tensorflow.org/install/source#gpu).\r\n\r\nGood point. I found that we're running CUDA 11.4 which is not officially tested with TF 2.12. After the graphics driver re-installation I set up a fresh Tensorflow install as shown in the docs, this time with TF 2.11. I'm getting the same soft lockup (and an unresponsive server) when performing the \"Verify install\" step.\r\n\r\n![Screenshot_20230619_120227](https://github.com/tensorflow/tensorflow/assets/120371336/b60984c6-54e7-4227-b42e-8f704dae2c97)\r\n\r\nYou can also see that it is being shown in the process list of the `nvidia-smi` screenshot above.", "Okay I just verified that this issue is not unique to Tensorflow. I ran the bandwidth test from the CUDA samples repository and found it also leads to a CPU soft lockup. So I can confirm that this is likely not an issue with Tensorflow.\r\n\r\nOn the other hand, I've no idea where to go from here. The issue persists and I've no idea what to look for next.", "Hi @mjugl ,\r\n\r\nI am also quite confident that the issue might be related to your own environment as it is not replicable from our side. I have tried it on GCP VM and also can get desired result as per logs attached below.\r\n\r\n```\r\n(bazel) suryanarayanay@surya-ubuntu20:~$ python3 -c \"import tensorflow as tf; print(tf.test.gpu_device_name())\"\r\n2023-06-28 05:24:05.535235: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-28 05:24:06.474920: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-06-28 05:24:09.452020: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:09.499115: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:09.500874: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:11.554723: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:11.556761: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:11.558432: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:24:11.560108: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Created device /device:GPU:0 with 13623 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:04.0, compute capability: 7.5\r\n/device:GPU:0\r\n(bazel) suryanarayanay@surya-ubuntu20:~$ python3 -c \"import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))\"\r\n2023-06-28 05:26:39.033522: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-28 05:26:39.988490: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-06-28 05:26:42.978403: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:43.025696: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:43.027424: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:43.029879: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:43.031511: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:43.033072: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:44.111462: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:44.113411: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:44.115093: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-06-28 05:26:44.116645: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13623 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:04.0, compute capability: 7.5\r\ntf.Tensor(1441.14, shape=(), dtype=float32)\r\n(bazel) suryanarayanay@surya-ubuntu20:~$ \r\n```\r\n\r\nThe issue is specific to your own environment which I even don't have a clue on this.I believe the issue might be related to OS. I am attaching few references from Internet for similar issues which are related to OS.Please refer [link1](https://askubuntu.com/questions/1264859/watchdog-bug-soft-lockup-cpu6-stuck-for-23s) and [link2](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1989521). \r\n\r\nPlease refer the above links and maybe you can get more help from internet community. As the issues is not relevant to TF can we mark it as closed. \r\n\r\nThanks!", "Hi, thanks for investigating this further. The issue has been resolved and it didn't have anything to do with Tensorflow in the end.\r\n\r\nFor anyone who might see this in the future: our IT department forgot to inform us that the licensing process to access the GPU has changed very recently and that we needed to make some modification to our guest VM. The most likely explanation is that the GPU slows down after extended unlicensed use and probably stops working entirely, leading to the lockup we experienced.\r\n\r\nWe haven't encountered this issue since we reconfigured our guest VM. Again thanks so much for taking the time to investigate even though this really was an issue on our behalf.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60900\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60900\">No</a>\n" ]
2023-06-16T12:20:44
2023-06-28T06:47:14
2023-06-28T06:47:10
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8.16 (Conda 11.4) ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.4 ### GPU model and memory NVIDIA T4 ### Current Behaviour? We found that running `tf.test.gpu_device_name()` leads to a soft lockup and an unresponsive system. I apologise in advance, I don't know much about Tensorflow. But several of my co-workers do and I'm in charge of maintaining infrastructure. We have a virtual server for compute-intensive tasks where we train models and work with large datasets. Yesterday at about 7 local time I found that I couldn't SSH into the server so I had to wait for IT to forcibly restart the server. At around 13 local time the server was back up and I looked through the kernel logs to find that there was a soft lockup kernel bug. This means that the server was still running, but some process wasn't releasing the CPU for more than 20 seconds, which meant that no other process could fulfill its tasks. Not even half an hour later and the server locked up again. I got a message from a co-worker who suspected that they were at fault for the server locking up because they started running a very compute-intensive Python script on the server last night. They opened a Python shell and typed in these two lines and watched the server lock up in real time. ```py import tensorflow as tf print('Default GPU Device{}'.format(tf.test.gpu_device_name())) ``` I provided the relevant log output below. It required another hard reset from IT to get the server back into a working state. After the server restarted again I had another look at the kernel logs and found that the reported errors were the same, which means I have reason to believe that running `tf.test.gpu_device_name()` consistently leads to a soft lockup on our infrastructure. As mentioned previously, we run our computations on a virtual server. The hypervisor is VMWare. We're running on a Nvidia T4 GPU with Nvidia drivers in version 470.63.01. These drivers were provided to us by IT. Installing another version, for some reason, isn't possible and I prefer not to mess with that. The co-worker installed Tensorflow in a Conda environment using Pip. Since we're running on a virtual server, we depend on IT in case things go very wrong. This means our means of reproducing this issue are somewhat limited. If the server locks up, we have to wait up to a couple hours for our service desk to escalate this issue enough so that IT restarts the server. We cannot afford downtimes like these since we rely on the server for our computations. I'm happy to provide any logs from previous runs but if possible I would like to not share them on GitHub in their entirety since they might contain confidential info. ### Standalone code to reproduce the issue ```shell import tensorflow as tf print('Default GPU Device {}'.format(tf.test.gpu_device_name())) ``` ### Relevant log output ```shell # Output from running the function in a Python shell $ python3 Python 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. import tensorflow as tf 2023-06-15 13:34:49.940226: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used. 2023-06-15 13:34:50.367115: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used. 2023-06-15 13:34:50.368678: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-06-15 13:34:52.102738: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT >>> print('Default GPU Device{}'.format(tf.test.gpu_device_name())) 2023-06-15 13:35:05.586532: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-06-15 13:35:05.587485: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... Message from syslogd@s050009088 at Jun 15 13:35:32 ... kernel:[ 176.957689] watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [python3:4167] # Output from journalctl Jun 15 13:35:05 s050009088 kernel: nvidia-uvm: Loaded the UVM driver, major device number 238. Jun 15 13:35:05 s050009088 kernel: ------------[ cut here ]------------ Jun 15 13:35:05 s050009088 kernel: Trying to vfree() nonexistent vm area (00000000f9521180) Jun 15 13:35:05 s050009088 kernel: WARNING: CPU: 6 PID: 4167 at mm/vmalloc.c:2245 __vunmap+0x1ff/0x210 Jun 15 13:35:05 s050009088 kernel: Modules linked in: nvidia_uvm(OE) veth xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter bpfilter br_netfilter bridge stp llc aufs overlay vmw_vsock_vmci_transport vsock dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua binfmt_misc nvidia_drm(POE) nvidia_modeset(POE) intel_rapl_msr nvidia(POE) vmw_balloon intel_rapl_common input_leds intel_powerclamp joydev rapl serio_raw vmw_vmci mac_hid sch_fq_codel msr ramoops reed_solomon efi_pstore ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear vmwgfx crct10dif_pclmul crc32_pclmul ttm ghash_clmulni_intel drm_kms_helper syscopyarea aesni_intel sysfillrect crypto_simd sysimgblt mptspi cryptd fb_sys_fops glue_helper psmouse mptscsih drm mptbase ahci i2c_piix4 vmxnet3 scsi_transport_spi Jun 15 13:35:05 s050009088 kernel: libahci pata_acpi Jun 15 13:35:05 s050009088 kernel: CPU: 6 PID: 4167 Comm: python3 Tainted: P OE 5.4.0-150-generic #167-Ubuntu Jun 15 13:35:05 s050009088 kernel: Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 Jun 15 13:35:05 s050009088 kernel: RIP: 0010:__vunmap+0x1ff/0x210 Jun 15 13:35:05 s050009088 kernel: Code: ff e8 d5 fc ff ff eb bf 48 89 fe 48 c7 c7 a0 6d b8 8e e8 36 ba 82 00 0f 0b eb b4 4c 89 ee 48 c7 c7 c8 6d b8 8e e8 23 ba 82 00 <0f> 0b eb a1 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f 44 00 00 Jun 15 13:35:05 s050009088 kernel: RSP: 0018:ffffab66c32b7c00 EFLAGS: 00010286 Jun 15 13:35:05 s050009088 kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000006 Jun 15 13:35:05 s050009088 kernel: RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff8ce3bfb9c8c0 Jun 15 13:35:05 s050009088 kernel: RBP: ffffab66c32b7c28 R08: 00000000000006d2 R09: 286565726676206f Jun 15 13:35:05 s050009088 kernel: R10: 286565726676206f R11: 6978656e6f6e2029 R12: 0000000000000000 Jun 15 13:35:05 s050009088 kernel: R13: ffff8ce22c348000 R14: ffff8ce22c349000 R15: 0000000000000027 Jun 15 13:35:05 s050009088 kernel: FS: 00007fbf935e3180(0000) GS:ffff8ce3bfb80000(0000) knlGS:0000000000000000 Jun 15 13:35:05 s050009088 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jun 15 13:35:05 s050009088 kernel: CR2: 000000000435c3d0 CR3: 0000001e50400001 CR4: 00000000003606e0 Jun 15 13:35:05 s050009088 kernel: Call Trace: Jun 15 13:35:05 s050009088 kernel: __vfree+0x22/0x60 Jun 15 13:35:05 s050009088 kernel: vfree+0x2c/0x40 Jun 15 13:35:05 s050009088 kernel: os_free_mem+0x1b/0x30 [nvidia] Jun 15 13:35:05 s050009088 kernel: os_unlock_user_pages+0x6c/0xa0 [nvidia] Jun 15 13:35:05 s050009088 kernel: _nv000647rm+0xdc/0x160 [nvidia] Jun 15 13:35:05 s050009088 kernel: WARNING: kernel stack frame pointer at 0000000068b18731 in python3:4167 has bad value 00000000f3874266 Jun 15 13:35:05 s050009088 kernel: unwind stack type:0 next_sp:0000000000000000 mask:0x2 graph_idx:0 Jun 15 13:35:05 s050009088 kernel: 00000000c0e190e6: ffffab66c32b7c40 (0xffffab66c32b7c40) Jun 15 13:35:05 s050009088 kernel: 0000000074c2bd79: ffffffff8da6e972 (__vfree+0x22/0x60) Jun 15 13:35:05 s050009088 kernel: 00000000ea3bef41: 0000000000000200 (0x200) Jun 15 13:35:05 s050009088 kernel: 00000000d32e6150: ffffab66c32b7c58 (0xffffab66c32b7c58) Jun 15 13:35:05 s050009088 kernel: 00000000e4c2b257: ffffffff8da6e9dc (vfree+0x2c/0x40) Jun 15 13:35:05 s050009088 kernel: 000000008b622c26: ffff8ce22c348000 (0xffff8ce22c348000) Jun 15 13:35:05 s050009088 kernel: 00000000b443bda0: ffffab66c32b7c68 (0xffffab66c32b7c68) Jun 15 13:35:05 s050009088 kernel: 0000000004f89fc7: ffffffffc068ccdb (os_free_mem+0x1b/0x30 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 0000000058382150: ffffab66c32b7c98 (0xffffab66c32b7c98) Jun 15 13:35:05 s050009088 kernel: 000000007fb1b873: ffffffffc068edfc (os_unlock_user_pages+0x6c/0xa0 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 00000000629b0f28: ffff8ce395ff60c8 (0xffff8ce395ff60c8) Jun 15 13:35:05 s050009088 kernel: 000000003a4ac7ef: 0000010004400000 (0x10004400000) Jun 15 13:35:05 s050009088 kernel: 000000005e9a76c9: 0000000000000200 (0x200) Jun 15 13:35:05 s050009088 kernel: 000000005fe4a88b: 00000000aa000000 (0xaa000000) Jun 15 13:35:05 s050009088 kernel: 0000000068b18731: ffff8ce3b3e92fb0 (0xffff8ce3b3e92fb0) Jun 15 13:35:05 s050009088 kernel: 00000000bd345bcf: ffffffffc101e8dc (_nv000647rm+0xdc/0x160 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 0000000089f90db7: ffff8ce395ff60c8 (0xffff8ce395ff60c8) Jun 15 13:35:05 s050009088 kernel: 00000000c99c1977: ffff8ce39726c0c0 (0xffff8ce39726c0c0) Jun 15 13:35:05 s050009088 kernel: 000000009060a662: 0000000000000008 (0x8) Jun 15 13:35:05 s050009088 kernel: 0000000043ee1352: ffffffffc101f3a3 (_nv000723rm+0xa43/0xa90 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 0000000064b64c73: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 0000000030c878cd: ffff8ce3b35bc000 (0xffff8ce3b35bc000) Jun 15 13:35:05 s050009088 kernel: 00000000e60fac70: ffffffffc101f316 (_nv000723rm+0x9b6/0xa90 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 0000000065747b0c: ffff8ce3b3e90000 (0xffff8ce3b3e90000) Jun 15 13:35:05 s050009088 kernel: 0000000063da2df1: ffff8ce3a658b800 (0xffff8ce3a658b800) Jun 15 13:35:05 s050009088 kernel: 0000000008c0ac4e: ffffab66c32b7e48 (0xffffab66c32b7e48) Jun 15 13:35:05 s050009088 kernel: 0000000057ee515b: ffff8ce3b35b9400 (0xffff8ce3b35b9400) Jun 15 13:35:05 s050009088 kernel: 000000006c5468b7: 0000000000000027 (0x27) Jun 15 13:35:05 s050009088 kernel: 0000000065281df3: ffffffffc1025204 (rm_ioctl+0x54/0xb0 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 00000000b419e233: 000000388da5fdb5 (0x388da5fdb5) Jun 15 13:35:05 s050009088 kernel: 000000006f1b29a3: ffff8ce39726c0c0 (0xffff8ce39726c0c0) Jun 15 13:35:05 s050009088 kernel: 00000000465f1196: 8000000000000027 (0x8000000000000027) Jun 15 13:35:05 s050009088 kernel: 0000000024eadd83: 0000000000001047 (0x1047) Jun 15 13:35:05 s050009088 kernel: 00000000e74dc1ab: 00000000000007e9 (0x7e9) Jun 15 13:35:05 s050009088 kernel: 00000000f6d262ce: 003d08dcf6746300 (0x3d08dcf6746300) Jun 15 13:35:05 s050009088 kernel: 00000000400760c5: 003d08dde4df8b00 (0x3d08dde4df8b00) Jun 15 13:35:05 s050009088 kernel: 00000000c7874ca7: 003d08e3f2980f00 (0x3d08e3f2980f00) Jun 15 13:35:05 s050009088 kernel: 00000000946d2608: 003d08dd6da9f700 (0x3d08dd6da9f700) Jun 15 13:35:05 s050009088 kernel: 000000007a9cecb7: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 000000000e6b2400: 0000000000000200 (0x200) Jun 15 13:35:05 s050009088 kernel: 0000000022df682d: 0000002000000006 (0x2000000006) Jun 15 13:35:05 s050009088 kernel: 0000000005972aee: 0000000000001047 (0x1047) Jun 15 13:35:05 s050009088 kernel: 00000000f3ab8670: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 0000000043395ee6: 0000000000000001 (0x1) Jun 15 13:35:05 s050009088 kernel: 0000000090b81e91: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 00000000ce75a231: ffff8ce39726c0c0 (0xffff8ce39726c0c0) Jun 15 13:35:05 s050009088 kernel: 00000000336aa9c4: 0000000000000038 (0x38) Jun 15 13:35:05 s050009088 kernel: 0000000016e174a9: ffff8ce3b35b9400 (0xffff8ce3b35b9400) Jun 15 13:35:05 s050009088 kernel: 00000000c453e6ee: ffff8ce3a658b800 (0xffff8ce3a658b800) Jun 15 13:35:05 s050009088 kernel: 00000000ca8fc06a: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 0000000027388a61: ffffffffc068268f (nvidia_ioctl+0x66f/0x880 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 000000001f100b3c: ffff8ce3b3e90000 (0xffff8ce3b3e90000) Jun 15 13:35:05 s050009088 kernel: 00000000d70e2948: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 000000009e15ae1f: ffff8ce3b35b9498 (0xffff8ce3b35b9498) Jun 15 13:35:05 s050009088 kernel: 000000002d53d487: 00007ffd00000027 (0x7ffd00000027) Jun 15 13:35:05 s050009088 kernel: 000000002ea37e99: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 00000000723c86e7: 0000000000000003 (0x3) Jun 15 13:35:05 s050009088 kernel: 000000004b070af4: 3c5520dc9b31e900 (0x3c5520dc9b31e900) Jun 15 13:35:05 s050009088 kernel: 00000000260adce7: ffff8ce3a37b1e01 (0xffff8ce3a37b1e01) Jun 15 13:35:05 s050009088 kernel: 00000000f3ab64dd: ffff8ce3a37b1e00 (0xffff8ce3a37b1e00) Jun 15 13:35:05 s050009088 kernel: 000000009250db0d: ffff8ce3a46feaa0 (0xffff8ce3a46feaa0) Jun 15 13:35:05 s050009088 kernel: 000000001a439626: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 00000000d28c869f: ffff8ce3a37b1e00 (0xffff8ce3a37b1e00) Jun 15 13:35:05 s050009088 kernel: 00000000264cc6e1: ffffab66c32b7e58 (0xffffab66c32b7e58) Jun 15 13:35:05 s050009088 kernel: 00000000c9cdb9ef: ffffffffc069191b (nvidia_frontend_unlocked_ioctl+0x3b/0x50 [nvidia]) Jun 15 13:35:05 s050009088 kernel: 00000000dc15a7de: ffffab66c32b7ed8 (0xffffab66c32b7ed8) Jun 15 13:35:05 s050009088 kernel: 000000009b8c3053: ffffffff8dae8e77 (do_vfs_ioctl+0x407/0x670) Jun 15 13:35:05 s050009088 kernel: 00000000f2d02675: 0000010004400000 (0x10004400000) Jun 15 13:35:05 s050009088 kernel: 00000000c52e1241: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 0000000027ba7e88: ffffab66c32b7e78 (0xffffab66c32b7e78) Jun 15 13:35:05 s050009088 kernel: 00000000aaf3e429: ffffab66c32b7e78 (0xffffab66c32b7e78) Jun 15 13:35:05 s050009088 kernel: 00000000fd0b1f6d: 3c5520dc9b31e900 (0x3c5520dc9b31e900) Jun 15 13:35:05 s050009088 kernel: 0000000051d890d1: 0000000000000031 (0x31) Jun 15 13:35:05 s050009088 kernel: 000000001e5b54d6: 0000000000200000 (0x200000) Jun 15 13:35:05 s050009088 kernel: 00000000bf7d038a: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 00000000a021b6f5: 3c5520dc9b31e900 (0x3c5520dc9b31e900) Jun 15 13:35:05 s050009088 kernel: 00000000382d5bbd: ffff8ce3a37b1e01 (0xffff8ce3a37b1e01) Jun 15 13:35:05 s050009088 kernel: 000000005691996c: 0000000000000006 (0x6) Jun 15 13:35:05 s050009088 kernel: 000000002b0a9fae: 00000000c0384627 (0xc0384627) Jun 15 13:35:05 s050009088 kernel: 00000000ed0791ed: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 00000000944e63ee: ffff8ce3a37b1e00 (0xffff8ce3a37b1e00) Jun 15 13:35:05 s050009088 kernel: 00000000b8133399: ffffab66c32b7f18 (0xffffab66c32b7f18) Jun 15 13:35:05 s050009088 kernel: 000000006b019d54: ffffffff8dae9147 (ksys_ioctl+0x67/0x90) Jun 15 13:35:05 s050009088 kernel: 0000000025959ce7: 3c5520dc9b31e900 (0x3c5520dc9b31e900) Jun 15 13:35:05 s050009088 kernel: 0000000019e92101: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 000000002801fc84: ffffab66c32b7f58 (0xffffab66c32b7f58) Jun 15 13:35:05 s050009088 kernel: 0000000060185eb1: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 000000007c1db1b7: ffffab66c32b7f28 (0xffffab66c32b7f28) Jun 15 13:35:05 s050009088 kernel: 0000000084b8d84e: ffffffff8dae918a (__x64_sys_ioctl+0x1a/0x20) Jun 15 13:35:05 s050009088 kernel: 000000009b8e8f5f: ffffab66c32b7f48 (0xffffab66c32b7f48) Jun 15 13:35:05 s050009088 kernel: 00000000f2da7b14: ffffffff8d804fd7 (do_syscall_64+0x57/0x190) Jun 15 13:35:05 s050009088 kernel: 00000000942f1f70: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 00000000f56a3750: ffffffff8e4000a4 (entry_SYSCALL_64_after_hwframe+0x5c/0xc1) Jun 15 13:35:05 s050009088 kernel: 0000000018f467fe: 00007ffd116ceed0 (0x7ffd116ceed0) Jun 15 13:35:05 s050009088 kernel: 00000000831b89bf: 00000000648af769 (0x648af769) Jun 15 13:35:05 s050009088 kernel: 000000000597aba6: 00007ffd116cef88 (0x7ffd116cef88) Jun 15 13:35:05 s050009088 kernel: 00000000a139f77e: 0000000000000006 (0x6) Jun 15 13:35:05 s050009088 kernel: 000000006612db4e: 00000000c0384627 (0xc0384627) Jun 15 13:35:05 s050009088 kernel: 00000000ab55bfe9: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 000000000b644430: 0000000000000246 (0x246) Jun 15 13:35:05 s050009088 kernel: 00000000d2d8779b: 0000000000000000 ... Jun 15 13:35:05 s050009088 kernel: 00000000725ab6b6: 00007ffd116cef88 (0x7ffd116cef88) Jun 15 13:35:05 s050009088 kernel: 000000000399d500: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 00000000c0a877c1: ffffffffffffffda (0xffffffffffffffda) Jun 15 13:35:05 s050009088 kernel: 00000000fb645881: 00007fbf936f83ab (0x7fbf936f83ab) Jun 15 13:35:05 s050009088 kernel: 00000000f6cd2602: 00007ffd116cef60 (0x7ffd116cef60) Jun 15 13:35:05 s050009088 kernel: 000000006fc36d91: 00000000c0384627 (0xc0384627) Jun 15 13:35:05 s050009088 kernel: 00000000e5058b78: 0000000000000006 (0x6) Jun 15 13:35:05 s050009088 kernel: 000000002777ac42: 0000000000000010 (0x10) Jun 15 13:35:05 s050009088 kernel: 00000000d68cb82a: 00007fbf936f83ab (0x7fbf936f83ab) Jun 15 13:35:05 s050009088 kernel: 0000000077e7b064: 0000000000000033 (0x33) Jun 15 13:35:05 s050009088 kernel: 0000000037ef3830: 0000000000000246 (0x246) Jun 15 13:35:05 s050009088 kernel: 00000000fcba1669: 00007ffd116ceec8 (0x7ffd116ceec8) Jun 15 13:35:05 s050009088 kernel: 00000000ea0caaa1: 000000000000002b (0x2b) Jun 15 13:35:05 s050009088 kernel: ? _nv000723rm+0xa43/0xa90 [nvidia] Jun 15 13:35:05 s050009088 kernel: ? _nv000723rm+0x9b6/0xa90 [nvidia] Jun 15 13:35:05 s050009088 kernel: ? rm_ioctl+0x54/0xb0 [nvidia] Jun 15 13:35:05 s050009088 kernel: ? nvidia_ioctl+0x66f/0x880 [nvidia] Jun 15 13:35:05 s050009088 kernel: ? nvidia_frontend_unlocked_ioctl+0x3b/0x50 [nvidia] Jun 15 13:35:05 s050009088 kernel: ? do_vfs_ioctl+0x407/0x670 Jun 15 13:35:05 s050009088 kernel: ? ksys_ioctl+0x67/0x90 Jun 15 13:35:05 s050009088 kernel: ? __x64_sys_ioctl+0x1a/0x20 Jun 15 13:35:05 s050009088 kernel: ? do_syscall_64+0x57/0x190 Jun 15 13:35:05 s050009088 kernel: ? entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Jun 15 13:35:05 s050009088 kernel: ---[ end trace be1a4a9ea080b7b8 ]--- ## The following logs are then repeatedly printed, leading to the soft lockup Jun 15 13:35:05 s050009088 kernel: BUG: Bad page state in process python3 pfn:1e301a6 Jun 15 13:35:05 s050009088 kernel: page:ffffd052f8c06980 refcount:0 mapcount:0 mapping:ffff8ce230f6e0d8 index:0x1 Jun 15 13:35:05 s050009088 kernel: shmem_aops name:"dev/zero" Jun 15 13:35:05 s050009088 kernel: flags: 0x17ffffc0000000() Jun 15 13:35:05 s050009088 kernel: raw: 0017ffffc0000000 dead000000000100 dead000000000122 ffff8ce230f6e0d8 Jun 15 13:35:05 s050009088 kernel: raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 Jun 15 13:35:05 s050009088 kernel: page dumped because: non-NULL mapping Jun 15 13:35:05 s050009088 kernel: Modules linked in: nvidia_uvm(OE) veth xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_addrtype iptable_filter bpfilter br_netfilter bridge stp llc aufs overlay vmw_vsock_vmci_transport vsock dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua binfmt_misc nvidia_drm(POE) nvidia_modeset(POE) intel_rapl_msr nvidia(POE) vmw_balloon intel_rapl_common input_leds intel_powerclamp joydev rapl serio_raw vmw_vmci mac_hid sch_fq_codel msr ramoops reed_solomon efi_pstore ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear vmwgfx crct10dif_pclmul crc32_pclmul ttm ghash_clmulni_intel drm_kms_helper syscopyarea aesni_intel sysfillrect crypto_simd sysimgblt mptspi cryptd fb_sys_fops glue_helper psmouse mptscsih drm mptbase ahci i2c_piix4 vmxnet3 scsi_transport_spi Jun 15 13:35:05 s050009088 kernel: libahci pata_acpi Jun 15 13:35:05 s050009088 kernel: CPU: 6 PID: 4167 Comm: python3 Tainted: P W OE 5.4.0-150-generic #167-Ubuntu Jun 15 13:35:05 s050009088 kernel: Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 Jun 15 13:35:05 s050009088 kernel: Call Trace: Jun 15 13:35:05 s050009088 kernel: dump_stack+0x6d/0x8b Jun 15 13:35:05 s050009088 kernel: bad_page.cold+0x80/0xb1 Jun 15 13:35:05 s050009088 kernel: free_pages_check_bad+0x5f/0x70 Jun 15 13:35:05 s050009088 kernel: free_pcppages_bulk+0x186/0x6b0 Jun 15 13:35:05 s050009088 kernel: free_unref_page_commit+0xb6/0xd0 Jun 15 13:35:05 s050009088 kernel: free_unref_page_list+0x107/0x190 Jun 15 13:35:05 s050009088 kernel: release_pages+0x38d/0x400 Jun 15 13:35:05 s050009088 kernel: free_pages_and_swap_cache+0xb9/0xd0 Jun 15 13:35:05 s050009088 kernel: tlb_flush_mmu+0x3a/0x140 Jun 15 13:35:05 s050009088 kernel: zap_pte_range.isra.0+0x563/0x860 Jun 15 13:35:05 s050009088 kernel: ? __warn+0x9d/0xe0 Jun 15 13:35:05 s050009088 kernel: unmap_page_range+0x2e6/0x560 Jun 15 13:35:05 s050009088 kernel: unmap_single_vma+0x7f/0xf0 Jun 15 13:35:05 s050009088 kernel: unmap_vmas+0x79/0xf0 Jun 15 13:35:05 s050009088 kernel: unmap_region+0xbc/0x160 Jun 15 13:35:05 s050009088 kernel: __do_munmap+0x2aa/0x500 Jun 15 13:35:05 s050009088 kernel: mmap_region+0x248/0x650 Jun 15 13:35:05 s050009088 kernel: do_mmap+0x3b4/0x5c0 Jun 15 13:35:05 s050009088 kernel: vm_mmap_pgoff+0xcb/0x120 Jun 15 13:35:05 s050009088 kernel: ksys_mmap_pgoff+0x125/0x2b0 Jun 15 13:35:05 s050009088 kernel: ? fput+0x13/0x20 Jun 15 13:35:05 s050009088 kernel: ? ksys_ioctl+0x77/0x90 Jun 15 13:35:05 s050009088 kernel: __x64_sys_mmap+0x33/0x40 Jun 15 13:35:05 s050009088 kernel: do_syscall_64+0x57/0x190 Jun 15 13:35:05 s050009088 kernel: entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Jun 15 13:35:05 s050009088 kernel: RIP: 0033:0x7fbf936fc8e6 Jun 15 13:35:05 s050009088 kernel: Code: 00 00 00 00 f3 0f 1e fa 41 f7 c1 ff 0f 00 00 75 2b 55 48 89 fd 53 89 cb 48 85 ff 74 37 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 62 5b 5d c3 0f 1f 80 00 00 00 00 48 8b 05 71 Jun 15 13:35:05 s050009088 kernel: RSP: 002b:00007ffd116cf078 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 Jun 15 13:35:05 s050009088 kernel: RAX: ffffffffffffffda RBX: 0000000000000032 RCX: 00007fbf936fc8e6 Jun 15 13:35:05 s050009088 kernel: RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000010004400000 Jun 15 13:35:05 s050009088 kernel: RBP: 0000010004400000 R08: 00000000ffffffff R09: 0000000000000000 Jun 15 13:35:05 s050009088 kernel: R10: 0000000000000032 R11: 0000000000000206 R12: 00000000044be5e0 Jun 15 13:35:05 s050009088 kernel: R13: 0000000000000001 R14: 00000000047d97c0 R15: 000000000430b450 ## Eventually the watchdog reports the soft lockup ## Checking the PID against the one from the process that ran `tf.test.gpu_device_name()` shows that it must've caused this lockup Jun 15 13:46:45 s050009088 kernel: watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [python3:4167] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60900/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60900/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60899
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60899/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60899/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60899/events
https://github.com/tensorflow/tensorflow/pull/60899
1,760,309,568
PR_kwDOArmXAs5TLHSf
60,899
[Linaro:ARM_CI] Fix running nonpip tests
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-16T10:00:15
2023-06-21T14:00:53
2023-06-21T03:42:23
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60899", "html_url": "https://github.com/tensorflow/tensorflow/pull/60899", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60899.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60899.patch", "merged_at": "2023-06-21T03:42:23" }
Need to set defaults for auditwheel platform and project name
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60899/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60899/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60898
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60898/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60898/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60898/events
https://github.com/tensorflow/tensorflow/pull/60898
1,760,263,932
PR_kwDOArmXAs5TK9Xw
60,898
[tosa] legalize matmul with quantized output
{ "login": "psunn", "id": 55463253, "node_id": "MDQ6VXNlcjU1NDYzMjUz", "avatar_url": "https://avatars.githubusercontent.com/u/55463253?v=4", "gravatar_id": "", "url": "https://api.github.com/users/psunn", "html_url": "https://github.com/psunn", "followers_url": "https://api.github.com/users/psunn/followers", "following_url": "https://api.github.com/users/psunn/following{/other_user}", "gists_url": "https://api.github.com/users/psunn/gists{/gist_id}", "starred_url": "https://api.github.com/users/psunn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/psunn/subscriptions", "organizations_url": "https://api.github.com/users/psunn/orgs", "repos_url": "https://api.github.com/users/psunn/repos", "events_url": "https://api.github.com/users/psunn/events{/privacy}", "received_events_url": "https://api.github.com/users/psunn/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @jpienaar and @rsuderman, please could you help to review when you have time.\r\nThank you!" ]
2023-06-16T09:28:43
2023-07-31T20:01:29
2023-07-31T19:17:53
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60898", "html_url": "https://github.com/tensorflow/tensorflow/pull/60898", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60898.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60898.patch", "merged_at": "2023-07-31T19:17:53" }
This commit updates the quantized matmul operation to produce the correct quantized output.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60898/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60898/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60897
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60897/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60897/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60897/events
https://github.com/tensorflow/tensorflow/issues/60897
1,760,211,257
I_kwDOArmXAs5o6rE5
60,897
Build Issue with Native TF-2.12
{ "login": "Alavandar08", "id": 86424477, "node_id": "MDQ6VXNlcjg2NDI0NDc3", "avatar_url": "https://avatars.githubusercontent.com/u/86424477?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Alavandar08", "html_url": "https://github.com/Alavandar08", "followers_url": "https://api.github.com/users/Alavandar08/followers", "following_url": "https://api.github.com/users/Alavandar08/following{/other_user}", "gists_url": "https://api.github.com/users/Alavandar08/gists{/gist_id}", "starred_url": "https://api.github.com/users/Alavandar08/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Alavandar08/subscriptions", "organizations_url": "https://api.github.com/users/Alavandar08/orgs", "repos_url": "https://api.github.com/users/Alavandar08/repos", "events_url": "https://api.github.com/users/Alavandar08/events{/privacy}", "received_events_url": "https://api.github.com/users/Alavandar08/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Alavandar08! Could you please have a look at this [link](https://www.tensorflow.org/install/source#tested_build_configurations) and make sure the compatible versions are matching yours? Please let us know the exact command you have used so that we could replicate the error reported here. \r\nThank you!", "Hi @sushreebarsa I have tried the compatible versions provided with in the [link](https://www.tensorflow.org/install/source#cpu). Still I am observing the same issue as mentioned above.\r\n\r\ncommand I used to build TF from source:\r\n1. Installing prerequisites (Env, bazel version etc.,)\r\n2. Configuring the Build: ./configure\r\n3. Building the package: bazel build //tensorflow/tools/pip_package:build_pip_package\r\n\r\nI have created a [PR](https://github.com/tensorflow/tensorflow/pull/60874) to revert specific commit [60872](https://github.com/tensorflow/tensorflow/pull/60872) (After reverting commit in local, I was able to build the package).\r\n\r\nPlease let me know the fix for the above issue.\r\n\r\nThank you!", "As mentioned in the previous comment.\r\n\r\nFor the above PR that got merged master had failed through CI phase\r\n![image](https://github.com/tensorflow/tensorflow/assets/86424477/3ffa6bf9-183b-41a2-87f8-31270836bb09)\r\n\r\nEven in CI we are observing the same error\r\n![image](https://github.com/tensorflow/tensorflow/assets/86424477/877feba3-2321-4b09-b6fe-00421d8ef839)\r\n", "I am also facing the same issue. Not able to build the tensorflow in linux. If i checkout the commit id 76addf724a4, build goes through.", "@penpornk ", "Hi @Alavandar08 ,\r\n\r\nThe proposed PR by you has been closed as there won't be any fresh release of Tf2.12. This seems to be resolved in TF2.13 onwards. Could you please check with latest version and let us know if this is still a problem.\r\n\r\nThanks!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60897\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60897\">No</a>\n" ]
2023-06-16T08:53:15
2023-08-06T01:48:41
2023-08-06T01:48:35
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version TF 2.12 ### Custom Code No ### OS Platform and Distribution Ubuntu 20.04.5 LTS ### Mobile device _No response_ ### Python version 3.8 ### Bazel version 6.2.1 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? While Building with Latest master build is getting failed. **Error Message:** error: no match for 'operator=' (operand types are 'absl::lts_20220623::Status' and 'tsl::Status') Observing this Build failure after [PR 60872](https://github.com/tensorflow/tensorflow/pull/60872) got merged. **Note:** 1. Build is successful if we checkout previous commit(Commit ID: 76addf724a4794222e780542180dc32747d04aa2). 2. With this PR we also observed Jobs Failure at the same place. ### Standalone code to reproduce the issue ```shell Build the TF 2.12 from source - https://www.tensorflow.org/install/source ``` ### Relevant log output ```shell ERROR: /workspace/tensorflow/tsl/platform/cloud/BUILD:76:11: Compiling tensorflow/tsl/platform/cloud/gcs_dns_cache.cc failed: (Exit 1): gcc failed: error executing command (cd /tmpfs/bazel_output/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow && \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/.cache/bazelisk/downloads/bazelbuild/bazel-5.3.0-linux-arm64/bin:/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ *** \ /dt10/usr/bin/gcc -MD -MF bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.d '-frandom-seed=bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -iquote . -iquote bazel-out/aarch64-opt-exec-50AE0418/bin -iquote external/eigen_archive -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/eigen_archive -iquote external/com_google_absl -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/nsync -iquote external/snappy -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/snappy -iquote external/double_conversion -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/double_conversion -iquote external/com_google_protobuf -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_protobuf -iquote external/com_googlesource_code_re2 -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_googlesource_code_re2 -isystem third_party/eigen3/mkl_include -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/nsync/public -isystem external/com_google_protobuf/src -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_protobuf/src -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -no-canonical-prefixes -fno-canonical-system-headers -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -g0 -w -g0 '-std=c++17' -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DTENSORFLOW_USE_XLA=1' -DINTEL_MKL '-DDNNL_AARCH64_USE_ACL=1' -pthread '--sysroot=/dt10' -c tensorflow/tsl/platform/cloud/gcs_dns_cache.cc -o bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.o) # Configuration: 58aa5ccf3b98e321b76e39d46a74a06fde2c1ab0c3daeef1eee98dcf7771095c # Execution platform: @local_execution_config_platform//:platform tensorflow/tsl/platform/cloud/gcs_dns_cache.cc: In lambda function: tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:113:38: error: no match for 'operator=' (operand types are 'absl::lts_20220623::Status' and 'tsl::Status') 113 | return_status = OkStatus(); | ^ In file included from ./tensorflow/tsl/platform/status.h:28, from ./tensorflow/tsl/platform/errors.h:28, from ./tensorflow/tsl/platform/env.h:27, from ./tensorflow/tsl/platform/cloud/http_request.h:23, from ./tensorflow/tsl/platform/cloud/gcs_dns_cache.h:21, from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:16: external/com_google_absl/absl/status/status.h:764:16: note: candidate: 'absl::lts_20220623::Status& absl::lts_20220623::Status::operator=(const absl::lts_20220623::Status&)' 764 | inline Status& Status::operator=(const Status& x) { | ^~~~~~ external/com_google_absl/absl/status/status.h:764:48: note: no known conversion for argument 1 from 'tsl::Status' to 'const absl::lts_20220623::Status&' 764 | inline Status& Status::operator=(const Status& x) { | ~~~~~~~~~~~~~~^ external/com_google_absl/absl/status/status.h:778:16: note: candidate: 'absl::lts_20220623::Status& absl::lts_20220623::Status::operator=(absl::lts_20220623::Status&&)' 778 | inline Status& Status::operator=(Status&& x) { | ^~~~~~ external/com_google_absl/absl/status/status.h:778:43: note: no known conversion for argument 1 from 'tsl::Status' to 'absl::lts_20220623::Status&&' 778 | inline Status& Status::operator=(Status&& x) { | ~~~~~~~~~^ tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:178:36: error: no matching function for call to 'tsl::Status::Status(absl::lts_20220623::Status&)' 178 | return Status(return_status); | ^ In file included from ./tensorflow/tsl/platform/errors.h:28, from ./tensorflow/tsl/platform/env.h:27, from ./tensorflow/tsl/platform/cloud/http_request.h:23, from ./tensorflow/tsl/platform/cloud/gcs_dns_cache.h:21, from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:16: ./tensorflow/tsl/platform/status.h:309:8: note: candidate: 'tsl::Status::Status(tsl::Status&&, tsl::SourceLocation)' 309 | inline Status::Status(Status&& s, SourceLocation loc) noexcept | ^~~~~~ ./tensorflow/tsl/platform/status.h:309:32: note: no known conversion for argument 1 from 'absl::lts_20220623::Status' to 'tsl::Status&&' 309 | inline Status::Status(Status&& s, SourceLocation loc) noexcept | ~~~~~~~~~^ ./tensorflow/tsl/platform/status.h:296:8: note: candidate: 'tsl::Status::Status(const tsl::Status&)' 296 | inline Status::Status(const Status& s) | ^~~~~~ ./tensorflow/tsl/platform/status.h:296:37: note: no known conversion for argument 1 from 'absl::lts_20220623::Status' to 'const tsl::Status&' 296 | inline Status::Status(const Status& s) | ~~~~~~~~~~~~~~^ ./tensorflow/tsl/platform/status.h:71:3: note: candidate: 'tsl::Status::Status(tsl::error::Code, absl::lts_20220623::string_view, tsl::SourceLocation)' 71 | Status(tsl::error::Code code, absl::string_view msg, | ^~~~~~ ./tensorflow/tsl/platform/status.h:71:3: note: candidate expects 3 arguments, 1 provided ./tensorflow/tsl/platform/status.h:66:3: note: candidate: 'tsl::Status::Status()' 66 | Status() {} | ^~~~~~ ./tensorflow/tsl/platform/status.h:66:3: note: candidate expects 0 arguments, 1 provided tensorflow/tsl/platform/cloud/gcs_dns_cache.cc: In static member function 'static std::vector<std::__cxx11::basic_string<char> > tsl::GcsDnsCache::ResolveName(const string&)': tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:180:18: error: no matching function for call to 'tsl::RetryingUtils::CallWithRetries(tsl::GcsDnsCache::ResolveName(const string&)::<lambda()>, tsl::RetryConfig&)' 180 | retryConfig); | ^ In file included from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:23: ./tensorflow/tsl/platform/retrying_utils.h:54:17: note: candidate: 'static tsl::Status tsl::RetryingUtils::CallWithRetries(const std::function<tsl::Status()>&, const tsl::RetryConfig&)' 54 | static Status CallWithRetries(const std::function<Status()>& f, | ^~~~~~~~~~~~~~~ ./tensorflow/tsl/platform/retrying_utils.h:54:64: note: no known conversion for argument 1 from 'tsl::GcsDnsCache::ResolveName(const string&)::<lambda()>' to 'const std::function<tsl::Status()>&' 54 | static Status CallWithRetries(const std::function<Status()>& f, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ./tensorflow/tsl/platform/retrying_utils.h:58:17: note: candidate: 'static tsl::Status tsl::RetryingUtils::CallWithRetries(const std::function<tsl::Status()>&, const std::function<void(long int)>&, const tsl::RetryConfig&)' 58 | static Status CallWithRetries(const std::function<Status()>& f, | ^~~~~~~~~~~~~~~ ./tensorflow/tsl/platform/retrying_utils.h:58:17: note: candidate expects 3 arguments, 2 provided Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 183.056s, Critical Path: 62.90s INFO: 10119 processes: 4350 internal, 5769 local. FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60897/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60897/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60896
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60896/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60896/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60896/events
https://github.com/tensorflow/tensorflow/issues/60896
1,760,134,545
I_kwDOArmXAs5o6YWR
60,896
test
{ "login": "InfocuspSamyakVora", "id": 109658368, "node_id": "U_kgDOBolBAA", "avatar_url": "https://avatars.githubusercontent.com/u/109658368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/InfocuspSamyakVora", "html_url": "https://github.com/InfocuspSamyakVora", "followers_url": "https://api.github.com/users/InfocuspSamyakVora/followers", "following_url": "https://api.github.com/users/InfocuspSamyakVora/following{/other_user}", "gists_url": "https://api.github.com/users/InfocuspSamyakVora/gists{/gist_id}", "starred_url": "https://api.github.com/users/InfocuspSamyakVora/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/InfocuspSamyakVora/subscriptions", "organizations_url": "https://api.github.com/users/InfocuspSamyakVora/orgs", "repos_url": "https://api.github.com/users/InfocuspSamyakVora/repos", "events_url": "https://api.github.com/users/InfocuspSamyakVora/events{/privacy}", "received_events_url": "https://api.github.com/users/InfocuspSamyakVora/received_events", "type": "User", "site_admin": false }
[ { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" } ]
closed
true
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "Please don't spam" ]
2023-06-16T07:58:46
2023-06-16T10:56:04
2023-06-16T07:59:24
NONE
spam
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): - TensorFlow installation (pip package or built from source): - TensorFlow library (version, if pip package or github SHA, if built from source): ### 2. Code Provide code to help us reproduce your issues using one of the following options: #### Option A: Reference colab notebooks 1) Reference [TensorFlow Model Colab](https://colab.research.google.com/gist/ymodak/e96a4270b953201d5362c61c1e8b78aa/tensorflow-datasets.ipynb?authuser=1): Demonstrate how to build your TF model. 2) Reference [TensorFlow Lite Model Colab](https://colab.research.google.com/gist/ymodak/0dfeb28255e189c5c48d9093f296e9a8/tensorflow-lite-debugger-colab.ipynb): Demonstrate how to convert your TF model to a TF Lite model (with quantization, if used) and run TFLite Inference (if possible). ``` (You can paste links or attach files by dragging & dropping them below) - Provide links to your updated versions of the above two colab notebooks. - Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model. ``` #### Option B: Paste your code here or provide a link to a custom end-to-end colab ``` (You can paste links or attach files by dragging & dropping them below) - Include code to invoke the TFLite Converter Python API and the errors. - Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model. ``` ### 3. Failure after conversion If the conversion is successful, but the generated model is wrong, then state what is wrong: - Model produces wrong results and/or has lesser accuracy. - Model produces correct results, but it is slower than expected. ### 4. (optional) RNN conversion support If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title. ### 5. (optional) Any other info / logs Include 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.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60896/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60896/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60895
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60895/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60895/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60895/events
https://github.com/tensorflow/tensorflow/issues/60895
1,760,118,120
I_kwDOArmXAs5o6UVo
60,895
TF throws: "'visible_device_list' listed an invalid Device id" when using non-GPU PluggableDevices
{ "login": "mergian", "id": 23471913, "node_id": "MDQ6VXNlcjIzNDcxOTEz", "avatar_url": "https://avatars.githubusercontent.com/u/23471913?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mergian", "html_url": "https://github.com/mergian", "followers_url": "https://api.github.com/users/mergian/followers", "following_url": "https://api.github.com/users/mergian/following{/other_user}", "gists_url": "https://api.github.com/users/mergian/gists{/gist_id}", "starred_url": "https://api.github.com/users/mergian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mergian/subscriptions", "organizations_url": "https://api.github.com/users/mergian/orgs", "repos_url": "https://api.github.com/users/mergian/repos", "events_url": "https://api.github.com/users/mergian/events{/privacy}", "received_events_url": "https://api.github.com/users/mergian/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @mergian ,\r\n\r\nThanks for reporting. I think reproduction of this issue needs non-NVIDIA GPUs,If I am not wrong. I am assuming that you have non-GPU pluggable devices which are actually identified as GPU by TF which is the problem,right?\r\n\r\nI did refer some resources [gpu-plugins ](https://www.tensorflow.org/install/gpu_plugins) and [pluggable-device-for-tensorflow.md](https://github.com/tensorflow/community/blob/master/rfcs/20200624-pluggable-device-for-tensorflow.md).As per my understanding from here if the pluggable device registered as GPU then it shall be added to GPU list and implementation done accordingly. \r\n\r\nAs per my understanding there might be non GPU pluggable devices also which can be usable by TF. At least this is my understanding from the `.readme` file attached earlier in this comment and correct me if I am wrong. In Your proposed code all the devices which are not registered as GPU will be ignored right.I think in that case we need to check for more. Please share your thoughts .", "Dear @SuryanarayanaY \r\n\r\nyes you are correct.\r\n\r\nOur PluggableDevice plugin adds non-GPU devices. The code that I marked however assumes all PluggableDevices to be GPUs, therefore the `visible_devices` list will be populated with invalid ids, which then later cause errors when being checked internally.\r\n\r\nMy proposal is, that for this particular code pice, that looks for TensorFlow-Native-GPUs and PluggableDevice-GPUs and combines them, to check if the `.device_type` is really `GPU`.\r\n\r\nIf needed it should be possible to create a fake PluggableDevice-Plugin, that creates non existing devices. Then you could reproduce this error even without having our devices available. But I think could take some hours to do so.", "Hi @mergian ,\r\n\r\nThanks for confirmation. With your proposal only PluggableDevice-GPUs can be detectable y TF. I doubt whether this implementation only limited to GPUs as .[readme](https://github.com/tensorflow/community/blob/master/rfcs/20200624-pluggable-device-for-tensorflow.md) talks about more than GPU type devices and I may be wrong also here. I would like to hear from dev team on this.But I feel there is some cases not covered in implementation.\r\n\r\nThanks!\r\n\r\n", "No. My bugfix aims at supporting also other PluggableDevice types. Currently, when you mix GPUs and Non-GPUs, you'll get the above mentioned error, as within this GPU specific initialization function, it's not properly distinguishing between GPUs and other device types, and therefore initializes this \"gpu_options\" data structure with invalid values.\r\n\r\nI build a demonstrator for this. Here is a fake PluggableDevice, that creates 2 \"NO_GPU\" devices.\r\n\r\n```cpp\r\n#include <tensorflow/c/experimental/stream_executor/stream_executor.h>\r\n\r\nstatic void get_device_count(const SP_Platform* platform, int* device_count, TF_Status* status) {\r\n\t*device_count = 2;\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void create_device(const SP_Platform* platform, SE_CreateDeviceParams* params, TF_Status* status) {\r\n\tparams->device->device_handle\t= 0;\r\n\tparams->device->hardware_name\t= \"TEST DEVICE\";\r\n\tparams->device->device_vendor\t= \"SOME VENDOR\";\r\n\tparams->device->pci_bus_id\t\t= \"0000:00:00.0\";\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic int32_t get_numa_node(const SP_Device* device) {\r\n\treturn device->ordinal;\r\n}\r\n\r\nstatic int64_t get_memory_bandwidth(const SP_Device* device) {\r\n\treturn -1;\r\n}\r\n\r\nstatic double get_gflops(const SP_Device* device) {\r\n\treturn -1;\r\n}\r\n\r\nstatic void create_device_fns(const SP_Platform* platform, SE_CreateDeviceFnsParams* params, TF_Status* status) {\r\n\tparams->device_fns->get_gflops\t\t\t\t= &get_gflops;\r\n\tparams->device_fns->get_memory_bandwidth\t= &get_memory_bandwidth;\r\n\tparams->device_fns->get_numa_node\t\t\t= &get_numa_node;\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic uint64_t nanoseconds(SP_Timer timer) {\r\n\treturn 0;\r\n}\r\n\r\nstatic void destroy_device(const SP_Platform* platform, SP_Device* device) {\r\n}\r\n\r\nstatic void destroy_device_fns(const SP_Platform* platform, SP_DeviceFns* device_fns) {\r\n}\r\n\r\nstatic void destroy_platform(SP_Platform* platform) {\r\n}\r\n\r\nstatic void destroy_platform_fns(SP_PlatformFns* platform_fns) {\r\n}\r\n\r\nstatic void destroy_stream_executor(const SP_Platform* platform, SP_StreamExecutor* stream_executor) {\r\n}\r\n\r\nstatic void destroy_timer_fns(const SP_Platform* platform, SP_TimerFns* timer_fns) {\r\n}\r\n\r\nstatic void destroy_event(const SP_Device* device, SP_Event event) {\r\n}\r\n\r\nstatic void record_event_helper(SP_Event event) {\r\n}\r\n\r\nstatic void create_event(const SP_Device* device, SP_Event* event, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void create_timer_fns(const SP_Platform* platform, SP_TimerFns* timer, TF_Status* status) {\r\n\ttimer->nanoseconds = &nanoseconds;\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic SE_EventStatus get_event_status(const SP_Device* device, SP_Event event) {\t\r\n\treturn SE_EventStatus();\r\n}\r\n\r\nstatic void record_event(const SP_Device* device, SP_Stream stream, SP_Event event, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void wait_for_event(const SP_Device* const device, SP_Stream stream, SP_Event event, TF_Status* const status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void allocate(const SP_Device* device, uint64_t size, int64_t memory_space, SP_DeviceMemoryBase* mem) {\r\n}\r\n\r\nstatic void deallocate(const SP_Device* device, SP_DeviceMemoryBase* memory) {\r\n}\r\n\r\nstatic void* host_memory_allocate(const SP_Device* device, uint64_t size) {\r\n\treturn 0;\r\n}\r\n\r\nstatic void host_memory_deallocate(const SP_Device* device, void* ptr) {\r\n}\r\n\r\nstatic TF_Bool get_allocator_stats(const SP_Device* device, SP_AllocatorStats* stats) {\r\n\treturn 1;\r\n}\r\n\r\nstatic TF_Bool device_memory_usage(const SP_Device* device, int64_t* free, int64_t* total) {\r\n\treturn 1;\r\n}\r\n\r\nstatic void create_stream(const SP_Device* device, SP_Stream* stream, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void destroy_stream(const SP_Device* device, SP_Stream stream) {\r\n}\r\n\r\nstatic void create_stream_dependency(const SP_Device* device, SP_Stream dependent, SP_Stream other, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void get_stream_status(const SP_Device* device, SP_Stream stream, TF_Status* status) {\r\n}\r\n\r\nstatic void memcpy_dtoh(const SP_Device* device, SP_Stream stream, void* host_dst, const SP_DeviceMemoryBase* device_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void memcpy_htod(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* device_dst, const void* host_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void memcpy_dtod(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* device_dst, const SP_DeviceMemoryBase* device_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void sync_memcpy_dtoh(const SP_Device* device, void* host_dst, const SP_DeviceMemoryBase* device_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void sync_memcpy_htod(const SP_Device* device, SP_DeviceMemoryBase* device_dst, const void* host_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void sync_memcpy_dtod(const SP_Device* device, SP_DeviceMemoryBase* device_dst, const SP_DeviceMemoryBase* device_src, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void block_host_for_event(const SP_Device* device, SP_Event event, TF_Status* status) {\r\n}\r\n\r\nstatic void block_host_until_done(const SP_Device* device, SP_Stream stream, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void synchronize_all_activity(const SP_Device* device, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic TF_Bool host_callback(const SP_Device* device, SP_Stream stream, SE_StatusCallbackFn callback_fn, void* callback_arg) {\r\n\treturn true;\r\n}\r\n\r\nstatic void create_timer(const SP_Device* device, SP_Timer* timer, TF_Status* status) {\r\n}\r\n\r\nstatic void destroy_timer(const SP_Device* device, SP_Timer timer) {\r\n}\r\n\r\nstatic void start_timer(const SP_Device* device, SP_Stream stream, SP_Timer timer, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void stop_timer(const SP_Device* device, SP_Stream stream, SP_Timer timer, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void mem_zero(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* location, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void memset8(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* location, uint8_t pattern, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nstatic void memset32(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* location, uint32_t pattern, uint64_t size, TF_Status* status) {\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nvoid create_stream_executor(const SP_Platform* platform, SE_CreateStreamExecutorParams* params, TF_Status* status) {\r\n\tparams->stream_executor->allocate\t\t\t\t\t= &allocate;\r\n\tparams->stream_executor->block_host_for_event\t\t= &block_host_for_event;\r\n\tparams->stream_executor->block_host_until_done\t\t= &block_host_until_done;\r\n\tparams->stream_executor->create_event\t\t\t\t= &create_event;\r\n\tparams->stream_executor->create_stream\t\t\t\t= &create_stream;\r\n\tparams->stream_executor->create_stream_dependency\t= &create_stream_dependency;\r\n\tparams->stream_executor->create_timer\t\t\t\t= &create_timer;\r\n\tparams->stream_executor->deallocate\t\t\t\t\t= &deallocate;\r\n\tparams->stream_executor->destroy_event\t\t\t\t= &destroy_event;\r\n\tparams->stream_executor->destroy_stream\t\t\t\t= &destroy_stream;\r\n\tparams->stream_executor->destroy_timer\t\t\t\t= &destroy_timer;\r\n\tparams->stream_executor->device_memory_usage\t\t= &device_memory_usage;\r\n\tparams->stream_executor->get_allocator_stats\t\t= &get_allocator_stats;\r\n\tparams->stream_executor->get_event_status\t\t\t= &get_event_status;\r\n\tparams->stream_executor->get_stream_status\t\t\t= &get_stream_status;\r\n\tparams->stream_executor->host_callback\t\t\t\t= &host_callback;\r\n\tparams->stream_executor->host_memory_allocate\t\t= &host_memory_allocate;\r\n\tparams->stream_executor->host_memory_deallocate\t\t= &host_memory_deallocate;\r\n\tparams->stream_executor->memcpy_dtod\t\t\t\t= &memcpy_dtod;\r\n\tparams->stream_executor->memcpy_dtoh\t\t\t\t= &memcpy_dtoh;\r\n\tparams->stream_executor->memcpy_htod\t\t\t\t= &memcpy_htod;\r\n\tparams->stream_executor->record_event\t\t\t\t= &record_event;\r\n\tparams->stream_executor->start_timer\t\t\t\t= &start_timer;\r\n\tparams->stream_executor->stop_timer\t\t\t\t\t= &stop_timer;\r\n\tparams->stream_executor->sync_memcpy_dtod\t\t\t= &sync_memcpy_dtod;\r\n\tparams->stream_executor->sync_memcpy_dtoh\t\t\t= &sync_memcpy_dtoh;\r\n\tparams->stream_executor->sync_memcpy_htod\t\t\t= &sync_memcpy_htod;\r\n\tparams->stream_executor->synchronize_all_activity\t= &synchronize_all_activity;\r\n\tparams->stream_executor->wait_for_event\t\t\t\t= &wait_for_event;\r\n\tparams->stream_executor->mem_zero\t\t\t\t\t= &mem_zero;\r\n\tparams->stream_executor->memset\t\t\t\t\t\t= &memset8;\r\n\tparams->stream_executor->memset32\t\t\t\t\t= &memset32;\r\n\tTF_SetStatus(status, TF_OK,\t\"\");\r\n}\r\n\r\nextern \"C\" void SE_InitPlugin(SE_PlatformRegistrationParams* params, TF_Status* status) {\r\n\tparams->destroy_platform\t\t\t\t\t\t= &destroy_platform;\r\n\tparams->destroy_platform_fns\t\t\t\t\t= &destroy_platform_fns;\r\n\r\n\tparams->platform->name\t\t\t\t\t\t\t= \"SOME_PLATFORM_NAME\";\r\n\tparams->platform->type\t\t\t\t\t\t\t= \"NO_GPU\";\r\n\tparams->platform->supports_unified_memory\t\t= 0;\r\n\tparams->platform->use_bfc_allocator\t\t\t\t= 0;\r\n\tparams->platform->force_memory_growth\t\t\t= 0;\r\n\r\n\tparams->platform_fns->create_device\t\t\t\t= &create_device;\r\n\tparams->platform_fns->create_device_fns\t\t\t= &create_device_fns;\r\n\tparams->platform_fns->create_stream_executor\t= &create_stream_executor;\r\n\tparams->platform_fns->create_timer_fns\t\t\t= &create_timer_fns;\r\n\tparams->platform_fns->destroy_device\t\t\t= &destroy_device;\r\n\tparams->platform_fns->destroy_device_fns\t\t= &destroy_device_fns;\r\n\tparams->platform_fns->destroy_stream_executor\t= &destroy_stream_executor;\r\n\tparams->platform_fns->destroy_timer_fns\t\t\t= &destroy_timer_fns;\r\n\tparams->platform_fns->get_device_count\t\t\t= &get_device_count;\r\n}\r\n\r\nextern \"C\" void TF_InitKernel(void) {\r\n}\r\n```\r\n\r\nYou can trigger the compilation + error using this:\r\n```bash\r\n#!/bin/bash\r\n\r\npython_path=$(python3 -m site --user-site)\r\n\r\ng++ -I $python_path/tensorflow/include -fpic -c pluggable.cpp -o pluggable.o\r\ng++ -shared -L $python_path/tensorflow/ -l:libtensorflow_framework.so.2 pluggable.o -o $python_path/tensorflow-plugins/liberror.so\r\n\r\npython3 -c \"import tensorflow as tf; print('', *tf.config.list_physical_devices(), '', sep='\\n'); tf.device('/GPU:0')\"\r\n```\r\n\r\nI get the output:\r\n```\r\n2023-06-19 09:15:25.980567: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-19 09:15:27.181142: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n\r\nPhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')\r\nPhysicalDevice(name='/physical_device:NO_GPU:0', device_type='NO_GPU')\r\nPhysicalDevice(name='/physical_device:NO_GPU:1', device_type='NO_GPU')\r\nPhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')\r\n\r\nTraceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\n File \"/.../.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py\", line 5577, in device_v2\r\n return device(device_name)\r\n File \"/.../.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py\", line 5526, in device\r\n return context.device(device_name_or_function)\r\n File \"/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py\", line 2348, in device\r\n ensure_initialized()\r\n File \"/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py\", line 2143, in ensure_initialized\r\n context().ensure_initialized()\r\n File \"/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py\", line 583, in ensure_initialized\r\n context_handle = pywrap_tfe.TFE_NewContext(opts)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: 'visible_device_list' listed an invalid Device id '2' but visible device count is 2\r\n```\r\n\r\nWith my proposed bugfix, the GPU device correctly gets selected:\r\n```\r\n2023-06-19 09:17:32.876242: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-19 09:17:36.355710: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n\r\nPhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')\r\nPhysicalDevice(name='/physical_device:NO_GPU:0', device_type='NO_GPU')\r\nPhysicalDevice(name='/physical_device:NO_GPU:1', device_type='NO_GPU')\r\nPhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')\r\n\r\n2023-06-19 09:17:38.938987: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform NO_GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.\r\n2023-06-19 09:17:38.939062: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:NO_GPU:0 with 0 MB memory) -> physical PluggableDevice (device: 0, name: SOME_PLATFORM_NAME, pci bus id: <undefined>)\r\n2023-06-19 09:17:39.512542: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 7371 MB memory: -> device: 0, name: Quadro P4000, pci bus id: 0000:65:00.0, compute capability: 6.1\r\n```\r\n" ]
2023-06-16T07:46:52
2023-06-19T07:18:21
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Linux CentOS ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8 ### GPU model and memory _No response_ ### Current Behaviour? When using PluggableDevice API together with GPU devices, TF crashes with `tensorflow.python.framework.errors_impl.InvalidArgumentError: 'visible_device_list' listed an invalid Device id '2' but visible device count is 2` when calling `tf.device('/GPU:0')` **For reproducing the error, it is necessary to have a PluggableDevice Plugin loaded and to have GPUs within the same system!!!** Here the list of devices within my system: ```python3 # tf.config.list_physical_devices() [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:VE:0', device_type='VE'), PhysicalDevice(name='/physical_device:VE:1', device_type='VE'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')] ``` I traced down the error to be thrown here. It gets thrown in https://github.com/tensorflow/tensorflow/blob/e32f5b90ec16e88b23be8a5189e52ea9a420e999/tensorflow/tsl/framework/device_id_utils.cc#L46 However, it is caused by wrong values stored in the gpu_options, which get initialized here: https://github.com/tensorflow/tensorflow/blob/0db597d0d758aba578783b5bf46c889700a45085/tensorflow/python/eager/context.py#L1206 The list of gpu_devices and ALL pluggable_devices get combined, even if they are not of the same device_type. So the list of `compatible_devices` will be: ``` [ PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU'), PhysicalDevice(name='/physical_device:VE:0', device_type='VE'), PhysicalDevice(name='/physical_device:VE:1', device_type='VE') ] ``` This causes the `visible_device_list` to be `['0', '1', '2']`, which contains invalid GPU device indices. These then get passed to `ParseVisibleDeviceList`, which throws this error. To fix this error, it suffices to change this line: https://github.com/tensorflow/tensorflow/blob/0db597d0d758aba578783b5bf46c889700a45085/tensorflow/python/eager/context.py#L1216 and replace it to: ```python if dev not in gpu_devices and dev.device_type == "GPU": ``` This way, the list of `compatible_devices` will only populated with other GPUs, not with any other device types. ### Standalone code to reproduce the issue ```shell import tensorflow as tf print(*tf.config.list_physical_devices(), sep='\n') tf.device('/GPU:0') ``` ### Relevant log output ```shell PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU') PhysicalDevice(name='/physical_device:VE:0', device_type='VE') PhysicalDevice(name='/physical_device:VE:1', device_type='VE') PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU') Traceback (most recent call last): File "<string>", line 1, in <module> File "/.../.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 5577, in device_v2 return device(device_name) File "/.../.local/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 5526, in device return context.device(device_name_or_function) File "/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 2348, in device ensure_initialized() File "/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 2143, in ensure_initialized context().ensure_initialized() File "/.../.local/lib/python3.8/site-packages/tensorflow/python/eager/context.py", line 583, in ensure_initialized context_handle = pywrap_tfe.TFE_NewContext(opts) tensorflow.python.framework.errors_impl.InvalidArgumentError: 'visible_device_list' listed an invalid Device id '2' but visible device count is 2 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60895/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60895/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60894
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60894/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60894/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60894/events
https://github.com/tensorflow/tensorflow/pull/60894
1,760,050,028
PR_kwDOArmXAs5TKPJA
60,894
[ROCm] Support of hipblaslt
{ "login": "ekuznetsov139", "id": 12205429, "node_id": "MDQ6VXNlcjEyMjA1NDI5", "avatar_url": "https://avatars.githubusercontent.com/u/12205429?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ekuznetsov139", "html_url": "https://github.com/ekuznetsov139", "followers_url": "https://api.github.com/users/ekuznetsov139/followers", "following_url": "https://api.github.com/users/ekuznetsov139/following{/other_user}", "gists_url": "https://api.github.com/users/ekuznetsov139/gists{/gist_id}", "starred_url": "https://api.github.com/users/ekuznetsov139/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ekuznetsov139/subscriptions", "organizations_url": "https://api.github.com/users/ekuznetsov139/orgs", "repos_url": "https://api.github.com/users/ekuznetsov139/repos", "events_url": "https://api.github.com/users/ekuznetsov139/events{/privacy}", "received_events_url": "https://api.github.com/users/ekuznetsov139/received_events", "type": "User", "site_admin": false }
[ { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@akuegel would you review our hipblas_lt PR, please? Thanks in advance!", "@ekuznetsov139 Not sure whether you saw my review comments? I got asked by @i-chaochen about this PR, but I think this now needs the changes from your side until I can approve it.", "> @ekuznetsov139 Not sure whether you saw my review comments? I got asked by @i-chaochen about this PR, but I think this now needs the changes from your side until I can approve it.\r\n\r\nHi @akuegel Thanks for the feedback. I am going to split this big PR to smaller ones due to some upstream changes. And I will do the changes based on your feedback as well.\r\n\r\nWe're going to push it to XLA first (https://github.com/openxla/xla/pull/3953). Thanks in advance!", "Hi @ekuznetsov139 Can you please rebase your branch and resolve conflicts? Thank you!", "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.", "This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further." ]
2023-06-16T07:03:41
2023-09-30T01:47:02
2023-09-30T01:46:57
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60894", "html_url": "https://github.com/tensorflow/tensorflow/pull/60894", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60894.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60894.patch", "merged_at": null }
This PR: * Enables detection of hipblaslt. Hooks it up in place of cublaslt when available. * Enables the _FusedMatMul op for ROCm and routes it to hipblaslt. * Fixes certain #includes due to their deprecation in ROCm 5.6.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60894/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60894/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60893
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60893/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60893/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60893/events
https://github.com/tensorflow/tensorflow/issues/60893
1,759,986,958
I_kwDOArmXAs5o50UO
60,893
I can't link the libtensorflowlite_flex.so file in my C++ TFLite code on Android.
{ "login": "woojinn8", "id": 22662343, "node_id": "MDQ6VXNlcjIyNjYyMzQz", "avatar_url": "https://avatars.githubusercontent.com/u/22662343?v=4", "gravatar_id": "", "url": "https://api.github.com/users/woojinn8", "html_url": "https://github.com/woojinn8", "followers_url": "https://api.github.com/users/woojinn8/followers", "following_url": "https://api.github.com/users/woojinn8/following{/other_user}", "gists_url": "https://api.github.com/users/woojinn8/gists{/gist_id}", "starred_url": "https://api.github.com/users/woojinn8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/woojinn8/subscriptions", "organizations_url": "https://api.github.com/users/woojinn8/orgs", "repos_url": "https://api.github.com/users/woojinn8/repos", "events_url": "https://api.github.com/users/woojinn8/events{/privacy}", "received_events_url": "https://api.github.com/users/woojinn8/received_events", "type": "User", "site_admin": false }
[ { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2915920098, "node_id": "MDU6TGFiZWwyOTE1OTIwMDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-flex", "name": "comp:lite-flex", "color": "2E0DFE", "default": false, "description": "" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @woojinn8, thanks for reporting your issue. Help me understand your environment a little bit better, are you building for Android on a linux system? Are you testing your model on a linux system or an android system? Have you reviewed this link? https://www.tensorflow.org/lite/guide/ops_select If you are testing your converted model on android please follow the instructions there, otherwise I think you are testing on a linux system from the context of everything. Have you tried enabling SELECT_TF_OPS before conversion?\r\n\r\nexample:\r\n```python\r\nimport tensorflow as tf\r\n\r\nconverter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)\r\nconverter.target_spec.supported_ops = [\r\n tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.\r\n tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.\r\n]\r\ntflite_model = converter.convert()\r\nopen(\"converted_model.tflite\", \"wb\").write(tflite_model)\r\n```", "> Hi @woojinn8, thanks for reporting your issue. Help me understand your environment a little bit better, are you building for Android on a linux system? Are you testing your model on a linux system or an android system? Have you reviewed this link? https://www.tensorflow.org/lite/guide/ops_select If you are testing your converted model on android please follow the instructions there, otherwise I think you are testing on a linux system from the context of everything. Have you tried enabling SELECT_TF_OPS before conversion?\r\n> \r\n> example:\r\n> \r\n> ```python\r\n> import tensorflow as tf\r\n> \r\n> converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)\r\n> converter.target_spec.supported_ops = [\r\n> tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.\r\n> tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.\r\n> ]\r\n> tflite_model = converter.convert()\r\n> open(\"converted_model.tflite\", \"wb\").write(tflite_model)\r\n> ```\r\n\r\nThank you so much for reply. \r\nTo explain in more detail, \r\n1) I build my code building for Android on a linux system\r\n2) And I testing my model on android system\r\n -> I copied the built executable file to an ARM core embedded device with Android 8.1 installed and excute.\r\n3) I also read about ops_select page. So, I used the exact same code you provided as a example for conversion and successfully converted my TF model to a TFLite model.\r\n -> I enable \"tf.lite.OpsSet.TFLITE_BUILTINS\" & \"tf.lite.OpsSet.SELECT_TF_OPS\" when i convert.\r\n \r\nIn this environment, I am still encountering the following error message.\r\n```\r\nERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For Android, it can be resolved by adding...\r\nERROR: Node number 1348 (FlexErf) failed to prepare.\r\nI am unable to identify the cause of the issue. I would greatly appreciate it if someone could help me.\r\n```\r\n", "Hi @woojinn8, Thanks for the information, have you followed these instructions? https://www.tensorflow.org/lite/guide/ops_select#android_aar did you build a custom aar or did you use the big one here? https://central.sonatype.com/artifact/org.tensorflow/tensorflow-lite-select-tf-ops/2.12.0\r\n\r\nThis should be how you link the flex ops on android as stated on the documentation:\r\n\r\n```java\r\ndependencies {\r\n implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'\r\n // This dependency adds the necessary TF op support.\r\n implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'\r\n}\r\n```", "> Hi @woojinn8, Thanks for the information, have you followed these instructions? https://www.tensorflow.org/lite/guide/ops_select#android_aar did you build a custom aar or did you use the big one here? https://central.sonatype.com/artifact/org.tensorflow/tensorflow-lite-select-tf-ops/2.12.0\r\n> \r\n> This should be how you link the flex ops on android as stated on the documentation:\r\n> \r\n> ```java\r\n> dependencies {\r\n> implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'\r\n> // This dependency adds the necessary TF op support.\r\n> implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'\r\n> }\r\n> ```\r\nHi @pkgoogle Thanks to reply.\r\n\r\nI kindly request your understanding as I am not familiar with Android and Java, so even if my questions may be incorrect, I would appreciate your patience and understanding.\r\nThe information you have shown is understood as the settings required for using Select TensorFlow operators when creating an Android application using Java.\r\n\r\nWhat I want to do is similar to [this link](https://github.com/tensorflow/tensorflow/issues/55536), but the difference is that the link runs on Ubuntu, whereas I want to run it on Android.\r\n\r\nIn my case, I provide a .so library file which built in C for android OS. And I want users to use it either in C or in Java using JNI. \r\nIn this case, do I still need the setup you described? If so, linking the \"libtensorflowlite_flex.so\" file in a sample implemented in C is not possible?.\r\n", "Hi @woojinn8, no worries, it seems I misidentified your workflow previously, you are using C++ with JNI to use C++/tflite on Android, is that correct? Are you doing this entirely outside of Android studio? If so, I recommend you try adjusting your workflow to use Android Studio, as package/linking issues are better managed there. Here's a very simple Android Project which uses JNI to call C++ code, perhaps you can use it as a skeleton to get what you started working: [HelloWorldJNI.zip](https://github.com/tensorflow/tensorflow/files/11873357/HelloWorldJNI.zip). Let me know if that helps or if you run into issues trying out this workflow.\r\n", "Thank you @pkgoogle Thank you for advice. I'll try to use Android Studio.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60893\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60893\">No</a>\n" ]
2023-06-16T06:11:43
2023-07-03T05:04:06
2023-07-03T05:04:04
NONE
null
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Android - TensorFlow installed from (source or binary): from source - TensorFlow version (or github SHA if from source): v2.12.0 I am trying to load a Swin Transformer model using the Flex delegate in TFLite code implemented in C++. After writing the sample code, I built it separately for Ubuntu and Android. While the model loading and execution work fine on Ubuntu, the model doesn't even load on Android. When converting the model file, I received a message instructing me to use the flex delegate as follows ``` WARNING:absl:Found untraced functions such as gen_tensor_dict while saving (showing 1 of 1). These functions will not be directly callable after loading. 2023-06-16 10:53:45.770323: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:364] Ignored output_format. 2023-06-16 10:53:45.770352: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:367] Ignored drop_control_dependency. 2023-06-16 10:53:45.770982: I tensorflow/cc/saved_model/reader.cc:45] Reading SavedModel from: backbone-0001 2023-06-16 10:53:45.809957: I tensorflow/cc/saved_model/reader.cc:89] Reading meta graph with tags { serve } 2023-06-16 10:53:45.809990: I tensorflow/cc/saved_model/reader.cc:130] Reading SavedModel debug info (if present) from: backbone-0001 2023-06-16 10:53:45.941381: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:353] MLIR V1 optimization pass is not enabled 2023-06-16 10:53:45.950274: I tensorflow/cc/saved_model/loader.cc:231] Restoring SavedModel bundle. 2023-06-16 10:53:46.286516: I tensorflow/cc/saved_model/loader.cc:215] Running initialization op on SavedModel bundle at path: backbone-0001 2023-06-16 10:53:46.500467: I tensorflow/cc/saved_model/loader.cc:314] SavedModel load for tags { serve }; Status: success: OK. Took 729486 microseconds. 2023-06-16 10:53:47.137098: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:269] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable. 2023-06-16 10:53:52.096510: W tensorflow/compiler/mlir/lite/flatbuffer_export.cc:2051] TFLite interpreter needs to link Flex delegate in order to run the model since it contains the following Select TFop(s): Flex ops: FlexErf Details: tf.Erf(tensor<1x196x1536xf32>) -> (tensor<1x196x1536xf32>) : {device = ""} tf.Erf(tensor<1x3136x384xf32>) -> (tensor<1x3136x384xf32>) : {device = ""} tf.Erf(tensor<1x49x3072xf32>) -> (tensor<1x49x3072xf32>) : {device = ""} tf.Erf(tensor<1x784x768xf32>) -> (tensor<1x784x768xf32>) : {device = ""} See instructions: https://www.tensorflow.org/lite/guide/ops_select 2023-06-16 10:53:52.096741: I tensorflow/compiler/mlir/lite/flatbuffer_export.cc:2116] Estimated count of arithmetic ops: 11.927 G ops, equivalently 5.963 G MACs Process finished with exit code 0 ``` So, I build flex delegate, and link libtensorflowlite_flex.so file to my execute file. I built the TFLite for Android using the following commands: ``` bazel build -c opt --config=android_arm64 --define=tflite_convert_with_select_tf_ops=true --define=with_select_tf_ops=true //tensorflow/lite/c:libtensorflowlite_c.so bazel build -c opt --config=android_arm64 --config=monolithic --define=tflite_convert_with_select_tf_ops=true --define=with_select_tf_ops=true //tensorflow/lite/delegates/flex:libtensorflowlite_flex.so ``` However, when I try to run the sample code on Android, I receive an error message similar to what I would get if the Flex delegate was not linked: ``` ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For Android, it can be resolved by adding... ERROR: Node number 1348 (FlexErf) failed to prepare. I am unable to identify the cause of the issue. I would greatly appreciate it if someone could help me. ``` Of course, I have added the build option "--no-as-needed" and confirmed through the "readelf" command that the built file is linking the libtensorflowlite_flex.so file. Here is my CMake file ``` cmake_minimum_required(VERSION 3.10) project(tflite_flex_test C CXX) set(ATTRIBUTE PRIVATE) set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed ${CMAKE_EXE_LINKER_FLAGS}") # TFLite Path Setting set(TFLITE_INC ${CMAKE_CURRENT_LIST_DIR}/3rdparty/tflite) set(TFLITE_LIB ${CMAKE_CURRENT_LIST_DIR}/3rdparty/tflite/libtensorflowlite_c.so) set(TFLITE_FLEX_LIB ${CMAKE_CURRENT_LIST_DIR}/3rdparty/tflite/libtensorflowlite_flex.so) # OpenCV Path Setting set(OPENCV_PATH ${CMAKE_CURRENT_LIST_DIR}/3rdparty/opencv_android) set(OPENCV_INC ${OPENCV_PATH}/sdk/native/jni/include) set(OpenCV_LIBS ${OPENCV_PATH}/sdk/native/libs/arm64-v8a) add_executable(tflite_flex_test ${CMAKE_CURRENT_LIST_DIR}/tflite_flex_test.cpp ) # For TFLite target_include_directories(tflite_flex_test ${ATTRIBUTE} ${TFLITE_INC}) target_link_libraries(tflite_flex_test ${TFLITE_LIB} ${TFLITE_FLEX_LIB}) # For OpenCV target_include_directories(tflite_flex_test ${ATTRIBUTE} ${OPENCV_INC}) target_link_libraries(tflite_flex_test ${OpenCV_LIBS}/libopencv_core.so ${OpenCV_LIBS}/libopencv_features2d.so ${OpenCV_LIBS}/libopencv_highgui.so ${OpenCV_LIBS}/libopencv_imgproc.so ${OpenCV_LIBS}/libopencv_photo.so ${OpenCV_LIBS}/libopencv_video.so ) target_link_libraries(tflite_flex_test EGL GLESv2 GLESv3 ) find_library(ANDROID_LOG_LIB log) target_link_libraries(tflite_flex_test log) ``` My code and weight file can download at [this link](https://drive.google.com/file/d/1Bim05zY07IvCmBWrUQvuqoFxzL7uXjwf/view?usp=sharing) -> Just run "sh build_android.sh" than you can build my code. I am unable to identify the cause of the issue. I would greatly appreciate it if someone could help me.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60893/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60893/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60892
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60892/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60892/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60892/events
https://github.com/tensorflow/tensorflow/issues/60892
1,759,927,858
I_kwDOArmXAs5o5l4y
60,892
`softplus` outputs `inf` for large inputs after converting to lite model
{ "login": "YaoJiayi", "id": 82156730, "node_id": "MDQ6VXNlcjgyMTU2NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/82156730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YaoJiayi", "html_url": "https://github.com/YaoJiayi", "followers_url": "https://api.github.com/users/YaoJiayi/followers", "following_url": "https://api.github.com/users/YaoJiayi/following{/other_user}", "gists_url": "https://api.github.com/users/YaoJiayi/gists{/gist_id}", "starred_url": "https://api.github.com/users/YaoJiayi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YaoJiayi/subscriptions", "organizations_url": "https://api.github.com/users/YaoJiayi/orgs", "repos_url": "https://api.github.com/users/YaoJiayi/repos", "events_url": "https://api.github.com/users/YaoJiayi/events{/privacy}", "received_events_url": "https://api.github.com/users/YaoJiayi/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "vamsimanchala", "id": 110555921, "node_id": "U_kgDOBpbzEQ", "avatar_url": "https://avatars.githubusercontent.com/u/110555921?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vamsimanchala", "html_url": "https://github.com/vamsimanchala", "followers_url": "https://api.github.com/users/vamsimanchala/followers", "following_url": "https://api.github.com/users/vamsimanchala/following{/other_user}", "gists_url": "https://api.github.com/users/vamsimanchala/gists{/gist_id}", "starred_url": "https://api.github.com/users/vamsimanchala/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vamsimanchala/subscriptions", "organizations_url": "https://api.github.com/users/vamsimanchala/orgs", "repos_url": "https://api.github.com/users/vamsimanchala/repos", "events_url": "https://api.github.com/users/vamsimanchala/events{/privacy}", "received_events_url": "https://api.github.com/users/vamsimanchala/received_events", "type": "User", "site_admin": false }
[ { "login": "vamsimanchala", "id": 110555921, "node_id": "U_kgDOBpbzEQ", "avatar_url": "https://avatars.githubusercontent.com/u/110555921?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vamsimanchala", "html_url": "https://github.com/vamsimanchala", "followers_url": "https://api.github.com/users/vamsimanchala/followers", "following_url": "https://api.github.com/users/vamsimanchala/following{/other_user}", "gists_url": "https://api.github.com/users/vamsimanchala/gists{/gist_id}", "starred_url": "https://api.github.com/users/vamsimanchala/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vamsimanchala/subscriptions", "organizations_url": "https://api.github.com/users/vamsimanchala/orgs", "repos_url": "https://api.github.com/users/vamsimanchala/repos", "events_url": "https://api.github.com/users/vamsimanchala/events{/privacy}", "received_events_url": "https://api.github.com/users/vamsimanchala/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @YaoJiayi \r\n\r\nI was able to reproduce this issue. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/5adbb5fe6d6eaae645b5f2862c14f097/60892.ipynb).\r\n\r\n@pkgoogle Could you please look into this issue? \r\n\r\nThanks.", "I tried the flex op option just in case it converts better:\r\n\r\n[gist](https://colab.sandbox.google.com/gist/pkgoogle/54790a01e7daf4faafc424143a934380/60892.ipynb)\r\n\r\nIt is likely the conversion doesn't account properly for softplus having an out of bounds intermediary value.\r\n\r\nHi @haozha111, can you please take a look? Thanks.", "Just adding info:\r\n\r\nTensorflow performs this approximation/optimization here:\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/softplus_op.h#32\r\n```c++\r\nstruct Softplus {\r\n // Computes Softplus activation.\r\n //\r\n // features: any shape.\r\n // activations: same shape as \"features\".\r\n void operator()(const Device& d, typename TTypes<T>::ConstTensor features,\r\n typename TTypes<T>::Tensor activations) {\r\n // Choose a threshold on x below which exp(x) may underflow\r\n // when added to 1, but for which exp(x) is always within epsilon of the\r\n // true softplus(x). Offset of 2 from machine epsilon checked\r\n // experimentally for float16, float32, float64. Checked against\r\n // softplus implemented with numpy's log1p and numpy's logaddexp.\r\n static const T threshold =\r\n Eigen::numext::log(Eigen::NumTraits<T>::epsilon()) + T(2);\r\n // Value above which exp(x) may overflow, but softplus(x) == x\r\n // is within machine epsilon.\r\n auto too_large = features > features.constant(-threshold);\r\n // Value below which exp(x) may underflow, but softplus(x) == exp(x)\r\n // is within machine epsilon.\r\n auto too_small = features < features.constant(threshold);\r\n auto features_exp = features.exp();\r\n activations.device(d) = too_large.select(\r\n features, // softplus(x) ~= x for x large\r\n too_small.select(features_exp, // softplus(x) ~= exp(x) for x small\r\n features_exp.log1p()));\r\n }\r\n};\r\n```", "I am having the same problem here with Convolutional layers with softplus activation function at the end of the network as a regressor model. For prediction with lower values, the converted model turns out nicely. Here is examples of [[predicted]] [label]\r\n```\r\n[[87.694496]] [83]\r\n[[79.957184]] [80]\r\n[[71.28555]] [70]\r\n[[72.062096]] [70]\r\n[[71.2224]] [70]\r\n```\r\nHowever, for the prediction of higher values, a different converted model cannot handle this problem. See examples:\r\n```\r\n[[inf]] [125]\r\n[[inf]] [124]\r\n[[inf]] [140]\r\n[[inf]] [135]\r\n[[inf]] [138]\r\n```" ]
2023-06-16T05:05:57
2023-08-22T06:18:34
null
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.14.0-dev20230602 ### 2. Code This is the minimized code to reproduce the issue: ```python import tensorflow as tf import numpy as np x1 = tf.constant([100., 100.], shape=[1, 2]) class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() @tf.function(input_signature=[tf.TensorSpec(x1.shape, x1.dtype)]) def call(self, x): return tf.math.softplus(x) # Initializing the model m = Model() m(x1) print('Keras mode output: ', m(x1)) converter = tf.lite.TFLiteConverter.from_keras_model(m) tflite_model = converter.convert() def _evaluateTFLiteModel(tflite_model, input_data): interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for i in range(len(input_data)): interpreter.set_tensor(input_details[i]['index'], input_data[i]) interpreter.invoke() output_data = [interpreter.get_tensor(output_details[i]['index']) for i in range(len(output_details))] return output_data print('Lite mode output: ', _evaluateTFLiteModel(tflite_model,[x1])[0]) ``` ### 3. Failure after conversion Output: ``` Keras mode output: tf.Tensor([[100. 100.]], shape=(1, 2), dtype=float32) Lite mode output: [[inf inf]] ``` Model produces wrong results: - The original model will produce `[[100, 100]]`, which is the same as the input tensor `x1` - After converting to tflite, the model may compute `softplus(x) = log(exp(x) + 1)` by first computing `exp`, which causes overflow `[[inf, inf]]`
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60892/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60892/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60891
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60891/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60891/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60891/events
https://github.com/tensorflow/tensorflow/pull/60891
1,759,652,405
PR_kwDOArmXAs5TI9KK
60,891
Optional supported_types argument for quantization with lite.TFLiteConverter
{ "login": "alexrosen45", "id": 64982042, "node_id": "MDQ6VXNlcjY0OTgyMDQy", "avatar_url": "https://avatars.githubusercontent.com/u/64982042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alexrosen45", "html_url": "https://github.com/alexrosen45", "followers_url": "https://api.github.com/users/alexrosen45/followers", "following_url": "https://api.github.com/users/alexrosen45/following{/other_user}", "gists_url": "https://api.github.com/users/alexrosen45/gists{/gist_id}", "starred_url": "https://api.github.com/users/alexrosen45/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexrosen45/subscriptions", "organizations_url": "https://api.github.com/users/alexrosen45/orgs", "repos_url": "https://api.github.com/users/alexrosen45/repos", "events_url": "https://api.github.com/users/alexrosen45/events{/privacy}", "received_events_url": "https://api.github.com/users/alexrosen45/received_events", "type": "User", "site_admin": false }
[ { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@alexrosen45 thanks for your efforts on https://github.com/tensorflow/tensorflow/issues/60884 , it was nice to see your reasoning, even if I was well aware of where and how the problem was happening. However what you propose is not a solution to the problem. I was aware of the parameter you suggested to change and did not use it for a very good reason. In effect, by setting converter.target_spec.supported_types = [tf.int8] as you suggest, you are telling the converter to ignore the fact that we want 16-8 quantization and and forcing it to quantize at int8 only. This should not be set automatically or checked in the manner you proposed.", "@DerryFitz I see, thanks for clarifying. Running\r\n```\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ninp = tf.keras.Input([1, 1], batch_size = 1, name = \"input_0\")\r\nx = tf.keras.layers.LSTM(inp.shape[2], return_sequences = True)(inp)\r\nmodel_lstm = tf.keras.Model(inputs=inp, outputs=x)\r\n\r\n# pick some representative dataset\r\nrep_data = tf.data.Dataset.from_tensor_slices(np.float32(np.random.random_sample((10,1,1,1))))\r\n\r\ndef representative_dataset():\r\n for data in rep_data:\r\n yield [data]\r\n\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model_lstm)\r\nconverter.representative_dataset = representative_dataset\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\nconverter.target_spec.supported_ops = [tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8]\r\ntflite_model = converter.convert()\r\n\r\n# allocate tensors\r\ninterpreter = tf.lite.Interpreter(model_content=tflite_model)\r\ninterpreter.allocate_tensors()\r\n```\r\nwhich should accomplish what you want to do gives ```RuntimeError: Quantization to 16x8-bit not yet supported for op: 'UNIDIRECTIONAL_SEQUENCE_LSTM'```, a better error message than before. This should be addressed in a separate PR. I'm going to keep this PR open anyways because a supported types argument seems cleaner, and I'll get on support for 16-8 quantization for LSTMs soon.", "Hi @JunyoungLim Can you please review this PR ? Thank you!", "Hi @JunyoungLim Can you please review this PR ? Thank you!", "Hi @terryheo Can you please review this PR ? Thank you!", "Hi @rascani Can you please review this PR ? Thank you!", "Hi @rascani Can you please review this PR ? Thank you!", "Hi @alexrosen45 Can you please resolve conflicts? Thank you!", "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.", "This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further." ]
2023-06-15T23:01:55
2024-04-07T01:48:54
2024-04-07T01:48:43
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60891", "html_url": "https://github.com/tensorflow/tensorflow/pull/60891", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60891.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60891.patch", "merged_at": null }
This is a fix for issue https://github.com/tensorflow/tensorflow/issues/60884. If we initialize some ```TFLiteConverter``` object ```converter = tf.lite.TFLiteConverter.from_keras_model(model)```, then in order to customize quantization, we must first change our converter's supported types. For example, before running ``` converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS, tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8 ] ``` we must run ```converter.target_spec.supported_types = [tf.int8]```. This behaviour is clunky and the extra line goes undocumented. The proposed changes allow us to omit ```converter.target_spec.supported_types = [tf.int8]``` and simply change our ```supported_types``` during the initialization of our converter: ```converter = tf.lite.TFLiteConverter.from_keras_model(model, supported_types=[tf.int8])```.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60891/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60891/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60890
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60890/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60890/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60890/events
https://github.com/tensorflow/tensorflow/issues/60890
1,759,533,487
I_kwDOArmXAs5o4Fmv
60,890
Spurious(?) type inference failed warning for flattened tf.data.Dataset with a RaggedTensor
{ "login": "chrisc36", "id": 1463280, "node_id": "MDQ6VXNlcjE0NjMyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/1463280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chrisc36", "html_url": "https://github.com/chrisc36", "followers_url": "https://api.github.com/users/chrisc36/followers", "following_url": "https://api.github.com/users/chrisc36/following{/other_user}", "gists_url": "https://api.github.com/users/chrisc36/gists{/gist_id}", "starred_url": "https://api.github.com/users/chrisc36/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisc36/subscriptions", "organizations_url": "https://api.github.com/users/chrisc36/orgs", "repos_url": "https://api.github.com/users/chrisc36/repos", "events_url": "https://api.github.com/users/chrisc36/events{/privacy}", "received_events_url": "https://api.github.com/users/chrisc36/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @chrisc36 ,\r\n\r\nI have replicated the same behaviour on Mac M1 and logs attached below for reference.\r\n\r\n```\r\n(tf-metal) suryanarayanay-macbookpro:~ suryanarayanay$ python Downloads/60890.py\r\n2.14.0-dev20230515\r\nMetal device set to: Apple M1 Pro\r\n\r\nsystemMemory: 16.00 GB\r\nmaxCacheSize: 5.33 GB\r\n\r\n2023-06-16 12:29:47.379748: W tensorflow/core/common_runtime/type_inference.cc:339] Type inference failed. This indicates an invalid graph that escaped type checking. Error message: INVALID_ARGUMENT: type mismatch for node 'TensorSliceDataset': expected a subtype of:\r\ntype_id: TFT_PRODUCT\r\nargs {\r\n type_id: TFT_DATASET\r\n args {\r\n type_id: TFT_PRODUCT\r\n args {\r\n type_id: TFT_TENSOR\r\n args {\r\n type_id: TFT_LEGACY_VARIANT\r\n }\r\n }\r\n args {\r\n type_id: TFT_TENSOR\r\n args {\r\n type_id: TFT_FLOAT\r\n }\r\n }\r\n }\r\n}\r\n\r\n got:\r\ntype_id: TFT_PRODUCT\r\nargs {\r\n type_id: TFT_DATASET\r\n args {\r\n type_id: TFT_PRODUCT\r\n args {\r\n type_id: TFT_RAGGED\r\n args {\r\n type_id: TFT_STRING\r\n }\r\n }\r\n args {\r\n }\r\n }\r\n}\r\n\r\n \r\n\twhile updating its output type.\r\n{'labels': array([b'a', b'b'], dtype=object), 'vals': 0.1, 'other': array([0.1, 0.2], dtype=float32)}\r\n{'labels': array([b'a'], dtype=object), 'vals': 0.2, 'other': array([0.1, 0.2], dtype=float32)}\r\n(tf-metal) suryanarayanay-macbookpro:~ suryanarayanay$ \r\n```\r\nIf the issue is specific to Mac M1 then this should be handled by the Apple team itself. Let me check the same code on Linux and confirm the same.\r\n\r\nThanks!", "@chrisc36 ,\r\n\r\nThe same behaviour reflected in Linux Environment also as per logs below. Needs to dig more to confirm the behaviour.\r\n\r\n```\r\n(tf) suryanarayanay@surya-ubuntu22-cuda-test:~$ python 60890.py\r\n2023-06-16 08:54:44.652393: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n2023-06-16 08:54:45.563585: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:7704] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\r\n2023-06-16 08:54:45.563639: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\r\n2023-06-16 08:54:45.565976: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1520] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\r\n2023-06-16 08:54:45.980611: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-16 08:54:47.800431: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2.14.0-dev20230523\r\n2023-06-16 08:54:52.254785: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 38238 MB memory: -> device: 0, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:04.0, compute capability: 8.0\r\n2023-06-16 08:54:53.029857: I tensorflow/core/common_runtime/executor.cc:1210] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_2' with dtype float and shape [2]\r\n [[{{node Placeholder/_2}}]]\r\n2023-06-16 08:54:53.056549: W tensorflow/core/common_runtime/type_inference.cc:339] Type inference failed. This indicates an invalid graph that escaped type checking. Error message: INVALID_ARGUMENT: type mismatch for node 'TensorSliceDataset': expected a subtype of:\r\ntype_id: TFT_PRODUCT\r\nargs {\r\n type_id: TFT_DATASET\r\n args {\r\n type_id: TFT_PRODUCT\r\n args {\r\n type_id: TFT_TENSOR\r\n args {\r\n type_id: TFT_LEGACY_VARIANT\r\n }\r\n }\r\n args {\r\n type_id: TFT_TENSOR\r\n args {\r\n type_id: TFT_FLOAT\r\n }\r\n }\r\n }\r\n}\r\n\r\n got:\r\ntype_id: TFT_PRODUCT\r\nargs {\r\n type_id: TFT_DATASET\r\n args {\r\n type_id: TFT_PRODUCT\r\n args {\r\n type_id: TFT_RAGGED\r\n args {\r\n type_id: TFT_STRING\r\n }\r\n }\r\n args {\r\n }\r\n }\r\n}\r\n\r\n \r\n while updating its output type.\r\n{'labels': array([b'a', b'b'], dtype=object), 'vals': 0.1, 'other': array([0.1, 0.2], dtype=float32)}\r\n{'labels': array([b'a'], dtype=object), 'vals': 0.2, 'other': array([0.1, 0.2], dtype=float32)}\r\n(tf) suryanarayanay@surya-ubuntu22-cuda-test:~$ \r\n```\r\n", "Thanks for looking into this, I am also seeing this on linux machines.\r\n\r\nFrom my perspective It would be great if we could get confirmation that this warning can be safely ignored, otherwise it is really just annoyance." ]
2023-06-15T20:54:26
2023-06-23T13:44:34
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Mac OS ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? As far as I can tell the code still runs as expected, but a seemly spurious warning is still issued. The issue is pretty niche, removing the `_merge` function or the `vals` part to the initial dataset will make the error go away. This occurs on 2.11, 2.12, and nightly on mac. ### Standalone code to reproduce the issue ```shell import tensorflow as tf labels = tf.ragged.constant([["a", "b"], ["a"]]) vals = tf.constant([0.1, 0.2]) ds = tf.data.Dataset.from_tensors(dict(labels=labels, vals=vals, other=vals)) parts = ["labels", "vals"] def _flatten(ex): flat_ds = tf.data.Dataset.from_tensor_slices({k: ex[k] for k in parts}) def _merge(_flat_ex): _flat_ex["other"] = tf.constant([0.1, 0.2]) return _flat_ex return flat_ds.map(_merge) ds = ds.flat_map(_flatten) for ex in ds.as_numpy_iterator(): print(ex) ``` ### Relevant log output ```shell 2023-06-15 13:44:43.909272: W tensorflow/core/common_runtime/type_inference.cc:339] Type inference failed. This indicates an invalid graph that escaped type checking. Error message: INVALID_ARGUMENT: type mismatch for node 'TensorSliceDataset': expected a subtype of: type_id: TFT_PRODUCT args { type_id: TFT_DATASET args { type_id: TFT_PRODUCT args { type_id: TFT_TENSOR args { type_id: TFT_LEGACY_VARIANT } } args { type_id: TFT_TENSOR args { type_id: TFT_FLOAT } } } } got: type_id: TFT_PRODUCT args { type_id: TFT_DATASET args { type_id: TFT_PRODUCT args { type_id: TFT_RAGGED args { type_id: TFT_STRING } } args { } } } while updating its output type. {'labels': array([b'a', b'b'], dtype=object), 'vals': 0.1, 'other': array([0.1, 0.2], dtype=float32)} {'labels': array([b'a'], dtype=object), 'vals': 0.2, 'other': array([0.1, 0.2], dtype=float32)} ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60890/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60890/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60889
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60889/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60889/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60889/events
https://github.com/tensorflow/tensorflow/pull/60889
1,759,499,709
PR_kwDOArmXAs5TIcP4
60,889
r2.13 cherry-pick: 6c2bd21fb32 "Fix TPUExecute for TPUEmbedding"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T20:23:19
2023-06-16T10:56:43
2023-06-15T22:44:40
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60889", "html_url": "https://github.com/tensorflow/tensorflow/pull/60889", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60889.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60889.patch", "merged_at": "2023-06-15T22:44:40" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/6c2bd21fb32e2a3b16d6a9ca2fd661acb196fd7f
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60889/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60889/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60888
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60888/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60888/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60888/events
https://github.com/tensorflow/tensorflow/pull/60888
1,759,349,335
PR_kwDOArmXAs5TH8Q4
60,888
r2.13 cherry-pick: Fix TPUExecute for TPU embedding operations. Create temporary device …
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T18:32:46
2023-06-16T10:56:40
2023-06-15T22:55:36
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60888", "html_url": "https://github.com/tensorflow/tensorflow/pull/60888", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60888.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60888.patch", "merged_at": "2023-06-15T22:55:36" }
…memory allocations, and stash them inside the runtime while TPUExecute is being invoked. These temporary device memory allocations are cleared at the end of TPUExecute. PiperOrigin-RevId: 540156433
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60888/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60888/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60887
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60887/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60887/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60887/events
https://github.com/tensorflow/tensorflow/pull/60887
1,759,266,441
PR_kwDOArmXAs5THqOl
60,887
r2.13 cherry-pick: 7a0fa5541fd "* Fix memory free error in tpu_execute.cc when there are zero addresses returned by TpuEmbedding. * Adding VLOGs to tpu_execute.cc for improving debugging."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T17:29:05
2023-06-16T10:56:47
2023-06-15T22:44:22
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60887", "html_url": "https://github.com/tensorflow/tensorflow/pull/60887", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60887.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60887.patch", "merged_at": "2023-06-15T22:44:22" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/7a0fa5541fdeb67cba9ae2ef13a7dd507da58f76
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60887/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60887/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60886
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60886/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60886/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60886/events
https://github.com/tensorflow/tensorflow/issues/60886
1,759,259,043
I_kwDOArmXAs5o3Cmj
60,886
Cannot upgrade to tensorflow-gpu==2.12.0 on Windows
{ "login": "lmocsi", "id": 64848347, "node_id": "MDQ6VXNlcjY0ODQ4MzQ3", "avatar_url": "https://avatars.githubusercontent.com/u/64848347?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lmocsi", "html_url": "https://github.com/lmocsi", "followers_url": "https://api.github.com/users/lmocsi/followers", "following_url": "https://api.github.com/users/lmocsi/following{/other_user}", "gists_url": "https://api.github.com/users/lmocsi/gists{/gist_id}", "starred_url": "https://api.github.com/users/lmocsi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lmocsi/subscriptions", "organizations_url": "https://api.github.com/users/lmocsi/orgs", "repos_url": "https://api.github.com/users/lmocsi/repos", "events_url": "https://api.github.com/users/lmocsi/events{/privacy}", "received_events_url": "https://api.github.com/users/lmocsi/received_events", "type": "User", "site_admin": false }
[ { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1188421838, "node_id": "MDU6TGFiZWwxMTg4NDIxODM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows", "name": "subtype:windows", "color": "b619ea", "default": false, "description": "Windows Build/Installation Issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "Please consult the first paragraph of [TF 2.12 release notes](https://github.com/tensorflow/tensorflow/releases/tag/v2.12.0):\r\n\r\n> Removed redundant packages tensorflow-gpu and tf-nightly-gpu. These packages were removed and replaced with packages that direct users to switch to tensorflow or tf-nightly respectively. Since TensorFlow 2.1, the only difference between these two sets of packages was their names, so there is no loss of functionality or GPU support. See https://pypi.org/project/tensorflow-gpu for more details.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60886\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60886\">No</a>\n" ]
2023-06-15T17:22:55
2023-06-16T11:46:35
2023-06-16T10:57:53
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version v2.12.0-rc1-12-g0db597d0d75 2.12.0 ### Custom Code No ### OS Platform and Distribution Windows 11 ### Mobile device - ### Python version 3.9.13 ### Bazel version - ### GCC/Compiler version - ### CUDA/cuDNN version - ### GPU model and memory - ### Current Behaviour? I expected, that tensorflow-gpu will be installed without errors. ### Standalone code to reproduce the issue ```shell pip install --upgrade tensorflow-gpu (setuptools is on recent version: 67.8.0) ``` ### Relevant log output ```shell Requirement already satisfied: tensorflow-gpu in c:\program files\python39\lib\site-packages (2.10.1) Collecting tensorflow-gpu Using cached tensorflow-gpu-2.12.0.tar.gz (2.6 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [39 lines of output] Traceback (most recent call last): File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\requirements.py", line 35, in __init__ parsed = parse_requirement(requirement_string) File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 64, in parse_requirement return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES)) File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 82, in _parse_requirement url, specifier, marker = _parse_requirement_details(tokenizer) File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 126, in _parse_requirement_details marker = _parse_requirement_marker( File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 147, in _parse_requirement_marker tokenizer.raise_syntax_error( File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\_tokenizer.py", line 163, in raise_syntax_error raise ParserSyntaxError( setuptools.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier) python_version>"3.7" ^ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\xxx\AppData\Local\Temp\pip-install-mj0co7hm\tensorflow-gpu_ef0b590776dc4ddb9a9f3a965b7c38af\setup.py", line 40, in <module> setuptools.setup() File "C:\Program Files\Python39\lib\site-packages\setuptools\__init__.py", line 106, in setup _install_setup_requires(attrs) File "C:\Program Files\Python39\lib\site-packages\setuptools\__init__.py", line 77, in _install_setup_requires dist.parse_config_files(ignore_option_errors=True) File "C:\Program Files\Python39\lib\site-packages\setuptools\dist.py", line 910, in parse_config_files self._finalize_requires() File "C:\Program Files\Python39\lib\site-packages\setuptools\dist.py", line 607, in _finalize_requires self._move_install_requirements_markers() File "C:\Program Files\Python39\lib\site-packages\setuptools\dist.py", line 647, in _move_install_requirements_markers inst_reqs = list(_reqs.parse(spec_inst_reqs)) File "C:\Program Files\Python39\lib\site-packages\setuptools\_vendor\packaging\requirements.py", line 37, in __init__ raise InvalidRequirement(str(e)) from e setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier) python_version>"3.7" ^ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60886/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60886/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60885
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60885/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60885/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60885/events
https://github.com/tensorflow/tensorflow/pull/60885
1,759,081,217
PR_kwDOArmXAs5THCDk
60,885
[Linaro:ARM_CI] Stop running pip tests on AARCH64
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-15T15:25:53
2023-08-22T14:08:37
2023-06-16T01:16:20
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60885", "html_url": "https://github.com/tensorflow/tensorflow/pull/60885", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60885.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60885.patch", "merged_at": "2023-06-16T01:16:19" }
pip tests are no longer supported so stop running them on AARCH64, run the python tests instead.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60885/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60885/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60884
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60884/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60884/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60884/events
https://github.com/tensorflow/tensorflow/issues/60884
1,759,049,870
I_kwDOArmXAs5o2PiO
60,884
Model containing LSTM does not run after conversion using ACTIVATIONS_INT16_WEIGHTS_INT8 quantization
{ "login": "DerryFitz", "id": 22909607, "node_id": "MDQ6VXNlcjIyOTA5NjA3", "avatar_url": "https://avatars.githubusercontent.com/u/22909607?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DerryFitz", "html_url": "https://github.com/DerryFitz", "followers_url": "https://api.github.com/users/DerryFitz/followers", "following_url": "https://api.github.com/users/DerryFitz/following{/other_user}", "gists_url": "https://api.github.com/users/DerryFitz/gists{/gist_id}", "starred_url": "https://api.github.com/users/DerryFitz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DerryFitz/subscriptions", "organizations_url": "https://api.github.com/users/DerryFitz/orgs", "repos_url": "https://api.github.com/users/DerryFitz/repos", "events_url": "https://api.github.com/users/DerryFitz/events{/privacy}", "received_events_url": "https://api.github.com/users/DerryFitz/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 2671351731, "node_id": "MDU6TGFiZWwyNjcxMzUxNzMx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ModelOptimizationToolkit", "name": "ModelOptimizationToolkit", "color": "BFD629", "default": false, "description": "TF Model Optimization Toolkit" } ]
open
false
{ "login": "zichuan-wei", "id": 10928342, "node_id": "MDQ6VXNlcjEwOTI4MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/10928342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zichuan-wei", "html_url": "https://github.com/zichuan-wei", "followers_url": "https://api.github.com/users/zichuan-wei/followers", "following_url": "https://api.github.com/users/zichuan-wei/following{/other_user}", "gists_url": "https://api.github.com/users/zichuan-wei/gists{/gist_id}", "starred_url": "https://api.github.com/users/zichuan-wei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zichuan-wei/subscriptions", "organizations_url": "https://api.github.com/users/zichuan-wei/orgs", "repos_url": "https://api.github.com/users/zichuan-wei/repos", "events_url": "https://api.github.com/users/zichuan-wei/events{/privacy}", "received_events_url": "https://api.github.com/users/zichuan-wei/received_events", "type": "User", "site_admin": false }
[ { "login": "zichuan-wei", "id": 10928342, "node_id": "MDQ6VXNlcjEwOTI4MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/10928342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zichuan-wei", "html_url": "https://github.com/zichuan-wei", "followers_url": "https://api.github.com/users/zichuan-wei/followers", "following_url": "https://api.github.com/users/zichuan-wei/following{/other_user}", "gists_url": "https://api.github.com/users/zichuan-wei/gists{/gist_id}", "starred_url": "https://api.github.com/users/zichuan-wei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zichuan-wei/subscriptions", "organizations_url": "https://api.github.com/users/zichuan-wei/orgs", "repos_url": "https://api.github.com/users/zichuan-wei/repos", "events_url": "https://api.github.com/users/zichuan-wei/events{/privacy}", "received_events_url": "https://api.github.com/users/zichuan-wei/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }, { "login": "LakshmiKalaKadali", "id": 149650845, "node_id": "U_kgDOCOt9nQ", "avatar_url": "https://avatars.githubusercontent.com/u/149650845?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LakshmiKalaKadali", "html_url": "https://github.com/LakshmiKalaKadali", "followers_url": "https://api.github.com/users/LakshmiKalaKadali/followers", "following_url": "https://api.github.com/users/LakshmiKalaKadali/following{/other_user}", "gists_url": "https://api.github.com/users/LakshmiKalaKadali/gists{/gist_id}", "starred_url": "https://api.github.com/users/LakshmiKalaKadali/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LakshmiKalaKadali/subscriptions", "organizations_url": "https://api.github.com/users/LakshmiKalaKadali/orgs", "repos_url": "https://api.github.com/users/LakshmiKalaKadali/repos", "events_url": "https://api.github.com/users/LakshmiKalaKadali/events{/privacy}", "received_events_url": "https://api.github.com/users/LakshmiKalaKadali/received_events", "type": "User", "site_admin": false } ]
null
[ "I reproduced the error on Ubuntu with Python 3.8. Here's a snippet of what you were trying to do (without quantization) which runs fine:\r\n```\r\nimport tensorflow as tf\r\n\r\ninp = tf.keras.Input([1, 1], batch_size = 1, name = \"input_0\")\r\nx = tf.keras.layers.LSTM(inp.shape[2], return_sequences = True)(inp)\r\nmodel_lstm = tf.keras.Model(inputs=inp, outputs=x)\r\n\r\n# convert the model to TFLite\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model_lstm)\r\ntflite_model = converter.convert()\r\n\r\n# allocate tensors\r\ninterpreter = tf.lite.Interpreter(model_content=tflite_model)\r\ninterpreter.allocate_tensors()\r\n```", "Adding onto this, we can get close to what you were trying to do before using the following script\r\n```\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ninp = tf.keras.Input([1, 1], batch_size = 1, name = \"input_0\")\r\nx = tf.keras.layers.LSTM(inp.shape[2], return_sequences = True)(inp)\r\nmodel_lstm = tf.keras.Model(inputs=inp, outputs=x)\r\n\r\n# pick some representative dataset\r\nrep_data = tf.data.Dataset.from_tensor_slices(np.float32(np.random.random_sample((10,1,1,1))))\r\n\r\ndef representative_dataset():\r\n for data in rep_data:\r\n yield [data]\r\n\r\n# convert model to TFLite with representative dataset\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model_lstm)\r\nconverter.representative_dataset = representative_dataset\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\ntflite_model = converter.convert()\r\n\r\n# allocate tensors\r\ninterpreter = tf.lite.Interpreter(model_content=tflite_model)\r\ninterpreter.allocate_tensors()\r\n```\r\nBut, we can see that your error occurs when trying to replace ```tflite_model = converter.convert()``` with an extra step\r\n```\r\nconverter.target_spec.supported_ops = [\r\n tf.lite.OpsSet.TFLITE_BUILTINS,\r\n tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8\r\n]\r\ntflite_model = converter.convert()\r\n```\r\nSo, it seems that TF Lite is encountering an issue when trying to apply the operation set ```EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8``` to your LSTM model. In particular, it seems to fail to prepare the LSTM layer (```UNIDIRECTIONAL_SEQUENCE_LSTM``` operation in your error message) when this operation set is used. For now, you can try using full integer or float quantization, and I'll try to see if this is a simple fix only pertaining to this specific kind of quantization.", "Here are some comments from whomever implemented ```EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8``` in the ```OpsSet``` class.\r\n\r\nConvert model using only TensorFlow Lite operations with quantized int8\r\n weights, int16 activations and int64 bias.\r\n Specifying this will throw an error for operations that do not yet have\r\n quantized implementations.\r\n This quantization mode may be used in models for super-resolution,\r\n audio signal processing or image de-noising. It improves accuracy\r\n significantly, but only slightly increases the model size.\r\n WARNING: These ops are currently experimental and have not yet been\r\n finalized.\r\n They are only compatible with CPU execution, and have not been optimized for\r\n production.", "@DerryFitz I have found a fix. Try adding ```converter.target_spec.supported_types = [tf.int8]```. For example,\r\n```\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ninp = tf.keras.Input([1, 1], batch_size = 1, name = \"input_0\")\r\nx = tf.keras.layers.LSTM(inp.shape[2], return_sequences = True)(inp)\r\nmodel_lstm = tf.keras.Model(inputs=inp, outputs=x)\r\n\r\n# pick some representative dataset\r\nrep_data = tf.data.Dataset.from_tensor_slices(np.float32(np.random.random_sample((10,1,1,1))))\r\n\r\ndef representative_dataset():\r\n for data in rep_data:\r\n yield [data]\r\n\r\n# convert model to TFLite with representative dataset\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model_lstm)\r\nconverter.representative_dataset = representative_dataset\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\nconverter.target_spec.supported_types = [tf.int8]\r\nconverter.target_spec.supported_ops = [\r\n tf.lite.OpsSet.TFLITE_BUILTINS,\r\n tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8\r\n]\r\ntflite_model = converter.convert()\r\n\r\n# allocate tensors\r\ninterpreter = tf.lite.Interpreter(model_content=tflite_model)\r\ninterpreter.allocate_tensors()\r\n```\r\nPerhaps this should be implemented for you automatically, seeing as you couldn't find this documented anywhere.", "@alexrosen45 thanks for your efforts on this, it was nice to see your reasoning, even if I was well aware of where and how the problem was happening. However what you propose is not a solution to the problem. I was aware of the parameter you suggested to change and did not use it for a very good reason. In effect, by setting converter.target_spec.supported_types = [tf.int8] as you suggest, you are telling the converter to ignore the fact that we want 16-8 quantization and and forcing it to quantize at int8 only. ", "Hi @DerryFitz \r\n\r\nI was able to reproduce this issue. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/aa003c553efb3d9446deced37ff02d3b/60884.ipynb).\r\n\r\nThe similar issues on support for LSTM on 16x8 quantization is being tracked here [#55267](https://github.com/tensorflow/tensorflow/issues/55267), [#59626](https://github.com/tensorflow/tensorflow/issues/59626)\r\n\r\n@pkgoogle Can you please look into this. Thank you.", "I was also able to reproduce using the same gist, seems like a legitimate bug.\r\n\r\nHi @zichuan-wei, can you please take a look?", "Hi @DerryFitz , \r\n\r\nwe're wondering if you may be able to resolve your issue by using [AI-Edge-Torch](https://github.com/google-ai-edge/ai-edge-torch), you can find more information here: [googleblog](https://developers.googleblog.com/en/ai-edge-torch-high-performance-inference-of-pytorch-models-on-mobile-devices/).\r\n\r\nI have actually created a simple script for converting an LSTM model here:\r\n```\r\nimport torch\r\nimport torchvision\r\nimport ai_edge_torch\r\n\r\nrnn = torch.nn.LSTM(10, 20, 2)\r\nsample_inputs = (torch.randn(5, 3, 10),)\r\n\r\nedge_model = ai_edge_torch.convert(rnn.eval(), sample_inputs)\r\nedge_model.export(\"rnn.tflite\")\r\n```\r\nIf you want to, you can actually try visualizing the result in [model-explorer](https://github.com/google-ai-edge/model-explorer) as well.\r\n\r\nPlease try them out and let us know if this resolves your issue. If you still need further help, feel free to open a new issue at the respective repos." ]
2023-06-15T15:11:18
2024-06-12T06:33:26
null
NONE
null
null
null
### System information Linux OpenSuse Tumbleweed - TensorFlow installation : pip - TensorFlow library : Tf-nightly, occurs on earlier versions too ### Code Converting a model containing an LSTM to a TFlite model quantized with int 16 activations and int8 weights results in an error when trying to allocate tensors to run the model subsequently. ``` import tensorflow as tf import numpy as np inp = tf.keras.Input([10,20], batch_size = 1, name = "input_0") x = tf.keras.layers.LSTM(inp.shape[2], return_sequences = True)(inp) model_lstm = tf.keras.Model(inputs=inp, outputs=x) rep_data = tf.data.Dataset.from_tensor_slices(np.float32(np.random.random_sample((10,1,10,20)))) def representative_dataset(): for data in rep_data: yield { "input_0": data, } converter = tf.lite.TFLiteConverter.from_keras_model(model_lstm) converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS, #comment line below to run at int 8 tf.lite.OpsSet.EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8 ] converter.representative_dataset = representative_dataset calibrated_model = converter.convert() interpreter = tf.lite.Interpreter(model_content = calibrated_model) interpreter.allocate_tensors() ``` ### Failure after conversion As noted above, the interpreter fails to allocate tensors for the the converted model ### Any other info / logs Here is the traceback of the error: --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[48], line 2 1 interpreter = tf.lite.Interpreter(model_content = calibrated_model) ----> 2 interpreter.allocate_tensors() File ~/anaconda3/envs/tfnight/lib/python3.9/site-packages/tensorflow/lite/python/interpreter.py:531, in Interpreter.allocate_tensors(self) 529 def allocate_tensors(self): 530 self._ensure_safe() --> 531 return self._interpreter.AllocateTensors() RuntimeError: tensorflow/lite/kernels/unidirectional_sequence_lstm.cc:965 output_state != nullptr was not true.Node number 1 (UNIDIRECTIONAL_SEQUENCE_LSTM) failed to prepare.Failed to apply the default TensorFlow Lite delegate indexed at 0.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60884/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60884/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60883
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60883/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60883/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60883/events
https://github.com/tensorflow/tensorflow/issues/60883
1,758,762,940
I_kwDOArmXAs5o1Je8
60,883
Unnecessary memcopies between CPU and GPU when using tf.function
{ "login": "mergian", "id": 23471913, "node_id": "MDQ6VXNlcjIzNDcxOTEz", "avatar_url": "https://avatars.githubusercontent.com/u/23471913?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mergian", "html_url": "https://github.com/mergian", "followers_url": "https://api.github.com/users/mergian/followers", "following_url": "https://api.github.com/users/mergian/following{/other_user}", "gists_url": "https://api.github.com/users/mergian/gists{/gist_id}", "starred_url": "https://api.github.com/users/mergian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mergian/subscriptions", "organizations_url": "https://api.github.com/users/mergian/orgs", "repos_url": "https://api.github.com/users/mergian/repos", "events_url": "https://api.github.com/users/mergian/events{/privacy}", "received_events_url": "https://api.github.com/users/mergian/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @mergian ,\r\n\r\nThanks for reporting. I tried to replicate the issue with the provided code snippet but getting error. Could you please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/e9750c420ce8d0a08521e217e1e7f918/60883.ipynb) and confirm if something is missing. Thanks.\r\n\r\n", "Hey @SuryanarayanaY \r\n\r\nYes, you need to replace the `MODE` with a number `0`, `1`, `2`, or `3` to reproduce the different test cases I mention above. So:\r\n```bash\r\n!nvprof --print-gpu-trace --openacc-profiling off python3 error.py 0\r\n!nvprof --print-gpu-trace --openacc-profiling off python3 error.py 1\r\n!nvprof --print-gpu-trace --openacc-profiling off python3 error.py 2\r\n!nvprof --print-gpu-trace --openacc-profiling off python3 error.py 3\r\n```", "Hi @mergian ,\r\n\r\nThanks for inputs. I have replicated the reported behaviour and attaching [gist](https://colab.research.google.com/gist/SuryanarayanaY/0ae66b486a0e666486d003f262cd56fc/60883_r1.ipynb) for reference.\r\n\r\nThough initial checks seems there are lot of memory copies but need to dig more to confirm if they are really needed or not .\r\n\r\nThanks!" ]
2023-06-15T12:51:29
2023-06-23T13:48:14
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Linux CentOS ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8 ### GPU model and memory _No response_ ### Current Behaviour? We recognized that TensorFlow creates unnecessary copies between CPU and GPU. To reproduce, save the code below as `error.py` and execute it using `nvprof --print-gpu-trace --openacc-profiling off python3 error.py MODE`, with mode being 0, 1, 2 or 3. Here what we have observed, I simplyfied the profiler output and commented inline: ## Mode 0 (generates input on GPU, runs model on GPU using tf.function): ```python Size Name ## RANDOM NUMBER GENERATION ## 8B [CUDA memcpy HtoD] 1.0039KB [CUDA memset] - void tensorflow::functor::FillPhiloxRandomKernelLaunch... 8B [CUDA memcpy HtoD] 8B [CUDA memcpy DtoH] 8B [CUDA memcpy HtoD] 4B [CUDA memcpy HtoD] 8B [CUDA memcpy HtoD] ## HERE THE COMPUTATION STARTS 18.375MB [CUDA memcpy DtoH] ## TF copies data to CPU 18.375MB [CUDA memcpy HtoD] ## 1. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [928] 8B [CUDA memcpy DtoD] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 2. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [963] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 3. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [997] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 4. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1031] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 5. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1063] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 6. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1099] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 7. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1133] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 8. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1167] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 9. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1201] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 10. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1235] - void Eigen::internal::EigenMetaKernel... ## Merging of all results into a single Tensor and ten copies back to host 30B [CUDA memcpy HtoD] - void tensorflow::functor::ColumnReduceMax16ColumnsKernel... - void tensorflow::functor::BlockReduceKernel... 1B [CUDA memcpy DtoH] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 183.75MB [CUDA memcpy DtoH] ``` So we see that TF copies the data, that is already on the GPU to the CPU, and then in every iteration copies back to GPU, instead of just using the data that is already on the GPU. ## Mode 1 (generates input on CPU, runs model on GPU using tf.function): ```python Size Name 8B [CUDA memcpy HtoD] 1.0039KB [CUDA memset] 8B [CUDA memcpy HtoD] 8B [CUDA memcpy DtoH] 8B [CUDA memcpy HtoD] 4B [CUDA memcpy HtoD] 8B [CUDA memcpy HtoD] ## HERE THE COMPUTATION STARTS 18.375MB [CUDA memcpy HtoD] ## 1. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [911] 8B [CUDA memcpy DtoD] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 2. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [946] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 3. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [980] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 4. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1012] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 5. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1046] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 6. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1080] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 7. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1116] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 8. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1150] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 9. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1184] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy HtoD] ## 10. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1218] - void Eigen::internal::EigenMetaKernel... ## Merging of all results into a single Tensor and ten copies back to host 30B [CUDA memcpy HtoD] - void tensorflow::functor::ColumnReduceMax16ColumnsKernel... - void tensorflow::functor::BlockReduceKernel... 1B [CUDA memcpy DtoH] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 18.375MB [CUDA memcpy DtoD] 183.75MB [CUDA memcpy DtoH] ``` Nearly identical to Mode 0, but here it is actually expected that the data gets copied over from CPU to GPU in every iteration. ## Mode 2 (generates input on GPU, runs model on GPU using tf.function): ```python Size Name ## RANDOM NUMBER GENERATION ## 8B [CUDA memcpy HtoD] 1.0039KB [CUDA memset] - void tensorflow::functor::FillPhiloxRandomKernelLaunch... ## HERE THE COMPUTATION STARTS 18.375MB [CUDA memcpy DtoH] ## TF copies data to CPU 4B [CUDA memcpy HtoD] 8B [CUDA memcpy HtoD] 18.375MB [CUDA memcpy HtoD] ## 1. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [907] 8B [CUDA memcpy DtoD] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 1. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 2. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [991] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 2. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 3. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1076] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 3. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 4. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1161] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 4. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 5. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1246] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 5. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 6. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1333] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 6. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 7. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1420] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 7. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 8. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1509] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 8. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 9. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1594] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 9. TF copies result to CPU 18.375MB [CUDA memcpy HtoD] ## 10. TF copies data to GPU - Mul_GPU_DT_FLOAT_DT_FLOAT_kernel [1679] - void Eigen::internal::EigenMetaKernel... 18.375MB [CUDA memcpy DtoH] ## 10. TF copies result to CPU ``` Similar to mode 0, but here the results get immediatly copied back to the host. ## Mode 3 (generates input on GPU, runs model on GPU using eager mode): ```python Size Name ## RANDOM NUMBER GENERATION ## 8B [CUDA memcpy HtoD] 1.0039KB [CUDA memset] - void tensorflow::functor::FillPhiloxRandomKernelLaunch... ## HERE THE COMPUTATION STARTS - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [806] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [810] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [814] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [818] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [822] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [826] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [830] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [834] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [838] - AddV2_GPU_DT_FLOAT_DT_FLOAT_kernel [842] ``` In this case no uncessary memcopies occur, data is kept on GPU all the time. ## Summary When we use `model.predict(...)` or `model.predict_on_batch()` (or any other of these Keras.Model functions that use `tf.function`), then the input data ALWAYS gets copied to the host first, and then in every iteration back to the GPU. This causes an significant performance penalty. I have not been able to find any documentation about this behavior, if it is intended, or a way to prevent this to happen. Here also the `tf.debugging.set_log_device_placement(True)` output. I think the line `input: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0` indicates that for whatever reason the `tf.function`'s input is expected to be on the CPU. ```python 2023-06-15 14:44:14.959681: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op _EagerConst in device /job:localhost/replica:0/task:0/device:GPU:0 resource_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960017: I tensorflow/core/common_runtime/placer.cc:114] resource_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 VarHandleOp: (VarHandleOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960041: I tensorflow/core/common_runtime/placer.cc:114] VarHandleOp: (VarHandleOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960475: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:CPU:0 resource: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960895: I tensorflow/core/common_runtime/placer.cc:114] resource: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 value: (_DeviceArg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960922: I tensorflow/core/common_runtime/placer.cc:114] value: (_DeviceArg): /job:localhost/replica:0/task:0/device:CPU:0 AssignVariableOp: (AssignVariableOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.960945: I tensorflow/core/common_runtime/placer.cc:114] AssignVariableOp: (AssignVariableOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.961429: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.963362: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op _EagerConst in device /job:localhost/replica:0/task:0/device:GPU:0 components_0: (_DeviceArg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.963837: I tensorflow/core/common_runtime/placer.cc:114] components_0: (_DeviceArg): /job:localhost/replica:0/task:0/device:CPU:0 TensorDataset: (TensorDataset): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.963872: I tensorflow/core/common_runtime/placer.cc:114] TensorDataset: (TensorDataset): /job:localhost/replica:0/task:0/device:CPU:0 handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.963889: I tensorflow/core/common_runtime/placer.cc:114] handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.964369: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op TensorDataset in device /job:localhost/replica:0/task:0/device:CPU:0 input__dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.980981: I tensorflow/core/common_runtime/placer.cc:114] input__dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 FlatMapDataset: (FlatMapDataset): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.981006: I tensorflow/core/common_runtime/placer.cc:114] FlatMapDataset: (FlatMapDataset): /job:localhost/replica:0/task:0/device:CPU:0 handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.981024: I tensorflow/core/common_runtime/placer.cc:114] handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.982115: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op FlatMapDataset in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.982841: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op _EagerConst in device /job:localhost/replica:0/task:0/device:GPU:0 input__dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.983325: I tensorflow/core/common_runtime/placer.cc:114] input__dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 buffer__size: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.983348: I tensorflow/core/common_runtime/placer.cc:114] buffer__size: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 PrefetchDataset: (PrefetchDataset): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.983387: I tensorflow/core/common_runtime/placer.cc:114] PrefetchDataset: (PrefetchDataset): /job:localhost/replica:0/task:0/device:CPU:0 handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.983403: I tensorflow/core/common_runtime/placer.cc:114] handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.984096: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op PrefetchDataset in device /job:localhost/replica:0/task:0/device:CPU:0 resource: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.984658: I tensorflow/core/common_runtime/placer.cc:114] resource: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 ReadVariableOp: (ReadVariableOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.984692: I tensorflow/core/common_runtime/placer.cc:114] ReadVariableOp: (ReadVariableOp): /job:localhost/replica:0/task:0/device:CPU:0 value_RetVal: (_DeviceRetval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.984710: I tensorflow/core/common_runtime/placer.cc:114] value_RetVal: (_DeviceRetval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.985212: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op ReadVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 input: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.985724: I tensorflow/core/common_runtime/placer.cc:114] input: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.985761: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:GPU:0 output_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.985778: I tensorflow/core/common_runtime/placer.cc:114] output_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.986346: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op Identity in device /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.986722: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op ReadVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.986812: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op Identity in device /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.988278: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op _EagerConst in device /job:localhost/replica:0/task:0/device:GPU:0 resource: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.988585: I tensorflow/core/common_runtime/placer.cc:114] resource: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 value: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.988624: I tensorflow/core/common_runtime/placer.cc:114] value: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 AssignVariableOp: (AssignVariableOp): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.988643: I tensorflow/core/common_runtime/placer.cc:114] AssignVariableOp: (AssignVariableOp): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.989152: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.989472: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op ReadVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.989562: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op Identity in device /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:14.989661: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op ReadVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.989731: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op Identity in device /job:localhost/replica:0/task:0/device:GPU:0 handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.990139: I tensorflow/core/common_runtime/placer.cc:114] handle_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 AnonymousIteratorV3: (AnonymousIteratorV3): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.990173: I tensorflow/core/common_runtime/placer.cc:114] AnonymousIteratorV3: (AnonymousIteratorV3): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.990613: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op AnonymousIteratorV3 in device /job:localhost/replica:0/task:0/device:CPU:0 dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.990976: I tensorflow/core/common_runtime/placer.cc:114] dataset: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 iterator: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.990998: I tensorflow/core/common_runtime/placer.cc:114] iterator: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 MakeIterator: (MakeIterator): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.991016: I tensorflow/core/common_runtime/placer.cc:114] MakeIterator: (MakeIterator): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.991473: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op MakeIterator in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:14.992481: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype int32 [[{{node Placeholder/_0}}]] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.002874: I tensorflow/core/common_runtime/placer.cc:114] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 GeneratorDataset: (GeneratorDataset): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.002917: I tensorflow/core/common_runtime/placer.cc:114] GeneratorDataset: (GeneratorDataset): /job:localhost/replica:0/task:0/device:CPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.002935: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.002966: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.002983: I tensorflow/core/common_runtime/placer.cc:114] FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.003007: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.007846: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op AnonymousIteratorV3 in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.007991: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op MakeIterator in device /job:localhost/replica:0/task:0/device:CPU:0 args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011294: I tensorflow/core/common_runtime/placer.cc:114] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 GeneratorDataset: (GeneratorDataset): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011320: I tensorflow/core/common_runtime/placer.cc:114] GeneratorDataset: (GeneratorDataset): /job:localhost/replica:0/task:0/device:CPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011339: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011355: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011373: I tensorflow/core/common_runtime/placer.cc:114] FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.011389: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.018501: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op ReadVariableOp in device /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.018640: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op Identity in device /job:localhost/replica:0/task:0/device:GPU:0 iterator: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.046638: I tensorflow/core/common_runtime/placer.cc:114] iterator: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 assignaddvariableop_resource: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046661: I tensorflow/core/common_runtime/placer.cc:114] assignaddvariableop_resource: (_Arg): /job:localhost/replica:0/task:0/device:GPU:0 IteratorGetNext: (IteratorGetNext): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.046678: I tensorflow/core/common_runtime/placer.cc:114] IteratorGetNext: (IteratorGetNext): /job:localhost/replica:0/task:0/device:CPU:0 model/tf.__operators__.add/AddV2: (AddV2): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046695: I tensorflow/core/common_runtime/placer.cc:114] model/tf.__operators__.add/AddV2: (AddV2): /job:localhost/replica:0/task:0/device:GPU:0 AssignAddVariableOp: (AssignAddVariableOp): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046711: I tensorflow/core/common_runtime/placer.cc:114] AssignAddVariableOp: (AssignAddVariableOp): /job:localhost/replica:0/task:0/device:GPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046726: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:GPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046759: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:GPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046783: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:GPU:0 Const: (Const): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.046798: I tensorflow/core/common_runtime/placer.cc:114] Const: (Const): /job:localhost/replica:0/task:0/device:GPU:0 2023-06-15 14:44:15.051534: I tensorflow/core/common_runtime/eager/execute.cc:1525] Executing op __inference_predict_function_68 in device /job:localhost/replica:0/task:0/device:GPU:0 args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054027: I tensorflow/core/common_runtime/placer.cc:114] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054141: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054201: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054272: I tensorflow/core/common_runtime/placer.cc:114] FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054342: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.054415: I tensorflow/core/common_runtime/placer.cc:114] PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061278: I tensorflow/core/common_runtime/placer.cc:114] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061356: I tensorflow/core/common_runtime/placer.cc:114] PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061419: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061476: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061556: I tensorflow/core/common_runtime/placer.cc:114] FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.061612: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.067674: I tensorflow/core/common_runtime/placer.cc:114] args_0: (_Arg): /job:localhost/replica:0/task:0/device:CPU:0 PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.067767: I tensorflow/core/common_runtime/placer.cc:114] PyFunc: (PyFunc): /job:localhost/replica:0/task:0/device:CPU:0 NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.067834: I tensorflow/core/common_runtime/placer.cc:114] NoOp: (NoOp): /job:localhost/replica:0/task:0/device:CPU:0 Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.067905: I tensorflow/core/common_runtime/placer.cc:114] Identity: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.067969: I tensorflow/core/common_runtime/placer.cc:114] FakeSink0: (Identity): /job:localhost/replica:0/task:0/device:CPU:0 identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 2023-06-15 14:44:15.068020: I tensorflow/core/common_runtime/placer.cc:114] identity_RetVal: (_Retval): /job:localhost/replica:0/task:0/device:CPU:0 ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import sys assert len(sys.argv) == 2, "needs to be run as `python3 error.py MODE`" mode = int(sys.argv[1]) inp = tf.keras.Input((3, 224, 224)) out = inp + inp model = tf.keras.Model(inp, out) class Sequence(tf.keras.utils.Sequence): def __init__(self, x): self.x = x def __len__(self): return 10 def __getitem__(self, idx): return self.x with tf.device('/GPU:0' if mode != 1 else '/CPU:0'): data = tf.random.uniform((32, 3, 224, 224)) with tf.device('/GPU:0'): if mode == 2: for _ in range(10): model.predict_on_batch(data) elif mode == 3: for _ in range(10): model(data) else: seq = Sequence(data) model.predict(seq) ``` ### Relevant log output ```shell see above ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60883/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60883/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60882
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60882/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60882/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60882/events
https://github.com/tensorflow/tensorflow/pull/60882
1,758,619,071
PR_kwDOArmXAs5TFeeR
60,882
[LInaro:ARM_CI] Fix use of TF_PYTHON_VERSION for new usage
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "pip tests are no longer supported" ]
2023-06-15T11:25:30
2023-08-22T14:13:35
2023-06-15T14:17:13
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60882", "html_url": "https://github.com/tensorflow/tensorflow/pull/60882", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60882.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60882.patch", "merged_at": null }
For hermetic python, TF_PYTHON_VERSION is being used but with different semantics so update usage to match.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60882/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60882/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60881
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60881/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60881/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60881/events
https://github.com/tensorflow/tensorflow/pull/60881
1,758,546,115
PR_kwDOArmXAs5TFOTo
60,881
Fix mistype in the mixed_bfloat16 policy type
{ "login": "antnsi", "id": 15607374, "node_id": "MDQ6VXNlcjE1NjA3Mzc0", "avatar_url": "https://avatars.githubusercontent.com/u/15607374?v=4", "gravatar_id": "", "url": "https://api.github.com/users/antnsi", "html_url": "https://github.com/antnsi", "followers_url": "https://api.github.com/users/antnsi/followers", "following_url": "https://api.github.com/users/antnsi/following{/other_user}", "gists_url": "https://api.github.com/users/antnsi/gists{/gist_id}", "starred_url": "https://api.github.com/users/antnsi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/antnsi/subscriptions", "organizations_url": "https://api.github.com/users/antnsi/orgs", "repos_url": "https://api.github.com/users/antnsi/repos", "events_url": "https://api.github.com/users/antnsi/events{/privacy}", "received_events_url": "https://api.github.com/users/antnsi/received_events", "type": "User", "site_admin": false }
[ { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60881/checks?check_run_id=14286428921) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request.", "Hi @antnsi It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.\r\n@fchollet, @qlzh727" ]
2023-06-15T10:42:53
2023-07-17T06:46:30
2023-06-15T14:52:28
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60881", "html_url": "https://github.com/tensorflow/tensorflow/pull/60881", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60881.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60881.patch", "merged_at": null }
Resolves https://github.com/tensorflow/tensorflow/issues/60878
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60881/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60881/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60880
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60880/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60880/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60880/events
https://github.com/tensorflow/tensorflow/issues/60880
1,758,507,621
I_kwDOArmXAs5o0LJl
60,880
Tensorflow-Quantum Module Import Error
{ "login": "liv4unix", "id": 28710551, "node_id": "MDQ6VXNlcjI4NzEwNTUx", "avatar_url": "https://avatars.githubusercontent.com/u/28710551?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liv4unix", "html_url": "https://github.com/liv4unix", "followers_url": "https://api.github.com/users/liv4unix/followers", "following_url": "https://api.github.com/users/liv4unix/following{/other_user}", "gists_url": "https://api.github.com/users/liv4unix/gists{/gist_id}", "starred_url": "https://api.github.com/users/liv4unix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liv4unix/subscriptions", "organizations_url": "https://api.github.com/users/liv4unix/orgs", "repos_url": "https://api.github.com/users/liv4unix/repos", "events_url": "https://api.github.com/users/liv4unix/events{/privacy}", "received_events_url": "https://api.github.com/users/liv4unix/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
open
false
{ "login": "MichaelBroughton", "id": 2791105, "node_id": "MDQ6VXNlcjI3OTExMDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2791105?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MichaelBroughton", "html_url": "https://github.com/MichaelBroughton", "followers_url": "https://api.github.com/users/MichaelBroughton/followers", "following_url": "https://api.github.com/users/MichaelBroughton/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelBroughton/gists{/gist_id}", "starred_url": "https://api.github.com/users/MichaelBroughton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelBroughton/subscriptions", "organizations_url": "https://api.github.com/users/MichaelBroughton/orgs", "repos_url": "https://api.github.com/users/MichaelBroughton/repos", "events_url": "https://api.github.com/users/MichaelBroughton/events{/privacy}", "received_events_url": "https://api.github.com/users/MichaelBroughton/received_events", "type": "User", "site_admin": false }
[ { "login": "MichaelBroughton", "id": 2791105, "node_id": "MDQ6VXNlcjI3OTExMDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2791105?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MichaelBroughton", "html_url": "https://github.com/MichaelBroughton", "followers_url": "https://api.github.com/users/MichaelBroughton/followers", "following_url": "https://api.github.com/users/MichaelBroughton/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelBroughton/gists{/gist_id}", "starred_url": "https://api.github.com/users/MichaelBroughton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelBroughton/subscriptions", "organizations_url": "https://api.github.com/users/MichaelBroughton/orgs", "repos_url": "https://api.github.com/users/MichaelBroughton/repos", "events_url": "https://api.github.com/users/MichaelBroughton/events{/privacy}", "received_events_url": "https://api.github.com/users/MichaelBroughton/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Tried again using last night's nightly ... same exact error as above when trying to import TFQ. Also, the quantum scripts (/scripts/test_all.sh) all failed --- output is included below:\r\n\r\nTesting All Bazel py_test and cc_tests.\r\nLoading: \r\nLoading: 0 packages loaded\r\nAnalyzing: 130 targets (0 packages loaded, 0 targets configured)\r\nWARNING: /root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/external/local_config_tf/BUILD:9259:8: target 'libtensorflow_framework.so' is both a rule and a file; please choose another name for the rule\r\nWARNING: /root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/external/local_config_tf/BUILD:9269:8: target 'test_log_pb2.py' is both a rule and a file; please choose another name for the rule\r\nDEBUG: Rule 'qsim' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = \"a975f83605bb5240b65cff20847b0e9173549951267f96d69b852c6bd941a676\"\r\nDEBUG: Repository qsim instantiated at:\r\n /content/quantum/WORKSPACE:35:13: in <toplevel>\r\nRepository rule http_archive defined at:\r\n /root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel>\r\nINFO: Analyzed 130 targets (0 packages loaded, 0 targets configured).\r\nINFO: Found 83 targets and 47 test targets...\r\n[2 / 17] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (7 actions, 3 running)\r\n[10 / 25] Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 1s local ... (8 actions running)\r\n[11 / 25] Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 3s local ... (8 actions, 7 running)\r\n[17 / 28] Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 4s local ... (8 actions running)\r\n[18 / 29] Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 10s local ... (8 actions, 7 running)\r\n[18 / 29] Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 12s local ... (8 actions running)\r\n[18 / 29] 1 / 47 tests; Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc; 15s local ... (8 actions running)\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc:\r\nIn file included from tensorflow_quantum/core/ops/tfq_calculate_unitary_op.cc:32:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\n[31 / 46] 2 / 47 tests; Compiling tensorflow_quantum/core/ops/tfq_adj_grad_op.cc; 18s local ... (8 actions, 7 running)\r\n[32 / 46] 2 / 47 tests; Compiling tensorflow_quantum/core/ops/tfq_adj_grad_op.cc; 21s local ... (8 actions running)\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc: In member function 'void tfq::TfqSimulateSamplesOp::ComputeLarge(const std::vector<int>&, int, int, const std::vector<std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > > >&, tensorflow::OpKernelContext*, tensorflow::TTypes<signed char, 3>::Tensor*)':\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:157:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 157 | for (int i = 0; i < fused_circuits.size(); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:166:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 166 | for (int j = 0; j < fused_circuits[i].size(); j++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:175:22: warning: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]\r\n 175 | while (q_ind < nq) {\r\n | ~~~~~~^~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:182:22: warning: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'const int' [-Wsign-compare]\r\n 182 | while (q_ind < max_num_qubits) {\r\n | ~~~~~~^~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc: In lambda function:\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:222:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 222 | for (int j = 0; j < fused_circuits[i].size(); j++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:231:24: warning: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]\r\n 231 | while (q_ind < nq) {\r\n | ~~~~~~^~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:238:24: warning: comparison of integer expressions of different signedness: 'uint64_t' {aka 'long unsigned int'} and 'const int' [-Wsign-compare]\r\n 238 | while (q_ind < max_num_qubits) {\r\n | ~~~~~~^~~~~~~~~~~~~~~~\r\nIn file included from tensorflow_quantum/core/ops/tfq_simulate_samples_op.cc:38:\r\n./tensorflow_quantum/core/src/util_qsim.h: At global scope:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_simulate_state_op.cc:\r\nIn file included from tensorflow_quantum/core/ops/tfq_simulate_state_op.cc:33:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_simulate_expectation_op.cc:\r\nIn file included from tensorflow_quantum/core/ops/tfq_simulate_expectation_op.cc:34:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc: In member function 'void tfq::TfqSimulateSampledExpectationOp::ComputeLarge(const std::vector<int>&, const std::vector<std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > > >&, const std::vector<std::vector<tfq::proto::PauliSum> >&, const std::vector<std::vector<int> >&, tensorflow::OpKernelContext*, tensorflow::TTypes<float, 1>::Matrix*)':\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:178:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 178 | for (int i = 0; i < fused_circuits.size(); i++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:191:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 191 | for (int j = 0; j < fused_circuits[i].size(); j++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:194:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<tfq::proto::PauliSum>::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 194 | for (int j = 0; j < pauli_sums[i].size(); j++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc: In lambda function:\r\ntensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:276:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<qsim::GateFused<qsim::Gate<float, qsim::Cirq::GateKind> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\r\n 276 | for (int j = 0; j < fused_circuits[cur_batch_index].size(); j++) {\r\n | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from tensorflow_quantum/core/ops/tfq_simulate_sampled_expectation_op.cc:37:\r\n./tensorflow_quantum/core/src/util_qsim.h: At global scope:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\n[37 / 47] 2 / 47 tests; Compiling tensorflow_quantum/core/ops/tfq_adj_grad_op.cc; 24s local ... (8 actions running)\r\nINFO: From Compiling tensorflow_quantum/core/ops/tfq_adj_grad_op.cc:\r\nIn file included from tensorflow_quantum/core/ops/tfq_adj_grad_op.cc:35:\r\n./tensorflow_quantum/core/src/util_qsim.h:496:13: warning: 'void tfq::BalanceTrajectory(const int&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 496 | static void BalanceTrajectory(const int& num_samples, const int& num_threads,\r\n | ^~~~~~~~~~~~~~~~~\r\n./tensorflow_quantum/core/src/util_qsim.h:450:13: warning: 'void tfq::BalanceTrajectory(const std::vector<std::vector<int> >&, const int&, std::vector<std::vector<int> >*)' defined but not used [-Wunused-function]\r\n 450 | static void BalanceTrajectory(const std::vector<std::vector<int>>& num_samples,\r\n | ^~~~~~~~~~~~~~~~~\r\nFAIL: //tensorflow_quantum/python/layers/high_level:noisy_pqc_test (see /root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/execroot/__main__/bazel-out/k8-opt/testlogs/tensorflow_quantum/python/layers/high_level/noisy_pqc_test/test.log)\r\nERROR: /content/quantum/tensorflow_quantum/python/layers/high_level/BUILD:100:8: Testing //tensorflow_quantum/python/layers/high_level:noisy_pqc_test failed: Test failed, aborting\r\nERROR: Test failed, aborting\r\nINFO: Elapsed time: 27.041s, Critical Path: 26.23s\r\nINFO: 46 processes: 30 internal, 16 local.\r\nINFO: Build completed, 1 test FAILED, 46 total actions\r\nINFO: Build completed, 1 test FAILED, 46 total actions\r\nTesting failed, please correct errors before proceeding.\r\n{==================== Test output for //tensorflow_quantum/python/layers/high_level:noisy_pqc_test:\r\nTraceback (most recent call last):\r\n File \"/root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/execroot/__main__/bazel-out/k8-opt/bin/tensorflow_quantum/python/layers/high_level/noisy_pqc_test.runfiles/__main__/tensorflow_quantum/python/layers/high_level/noisy_pqc_test.py\", line 30, in <module>\r\n from tensorflow_quantum.python.layers.high_level import noisy_pqc\r\n File \"/root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/execroot/__main__/bazel-out/k8-opt/bin/tensorflow_quantum/python/layers/high_level/noisy_pqc_test.runfiles/__main__/tensorflow_quantum/python/layers/high_level/noisy_pqc.py\", line 25, in <module>\r\n from tensorflow_quantum.python.layers.circuit_construction import elementary\r\n File \"/root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/execroot/__main__/bazel-out/k8-opt/bin/tensorflow_quantum/python/layers/high_level/noisy_pqc_test.runfiles/__main__/tensorflow_quantum/python/layers/circuit_construction/elementary.py\", line 24, in <module>\r\n class AddCircuit(tf.keras.layers.Layer):\r\n File \"/usr/local/lib/python3.10/dist-packages/tensorflow/python/util/lazy_loader.py\", line 58, in __getattr__\r\n module = self._load()\r\n File \"/usr/local/lib/python3.10/dist-packages/tensorflow/python/util/lazy_loader.py\", line 41, in _load\r\n module = importlib.import_module(self.__name__)\r\n File \"/usr/lib/python3.10/importlib/__init__.py\", line 126, in import_module\r\n return _bootstrap._gcd_import(name[level:], package, level)\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/__init__.py\", line 21, in <module>\r\n from keras import models\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/models/__init__.py\", line 18, in <module>\r\n from keras.engine.functional import Functional\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/engine/functional.py\", line 26, in <module>\r\n from keras import backend\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/backend.py\", line 35, in <module>\r\n from keras.engine import keras_tensor\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/engine/keras_tensor.py\", line 19, in <module>\r\n from keras.utils import object_identity\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/utils/__init__.py\", line 53, in <module>\r\n from keras.utils.feature_space import FeatureSpace\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/utils/feature_space.py\", line 20, in <module>\r\n from keras.engine import base_layer\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/engine/base_layer.py\", line 44, in <module>\r\n from keras.saving.legacy.saved_model import layer_serialization\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/saving/legacy/saved_model/layer_serialization.py\", line 23, in <module>\r\n from keras.saving.legacy.saved_model import save_impl\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/saving/legacy/saved_model/save_impl.py\", line 34, in <module>\r\n from keras.saving.legacy.saved_model import load as keras_load\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/saving/legacy/saved_model/load.py\", line 29, in <module>\r\n from keras.protobuf import saved_metadata_pb2\r\n File \"/usr/local/lib/python3.10/dist-packages/keras/protobuf/saved_metadata_pb2.py\", line 5, in <module>\r\n from google.protobuf.internal import builder as _builder\r\nImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.10/dist-packages/google/protobuf/internal/__init__.py)\r\n================================================================================\r\n//tensorflow_quantum/core/ops:batch_util_test NO STATUS\r\n//tensorflow_quantum/core/ops:circuit_execution_ops_test NO STATUS\r\n//tensorflow_quantum/core/ops:cirq_ops_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_adj_grad_op_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_ps_util_ops_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_simulate_ops_gpu_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_simulate_ops_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_unitary_op_test NO STATUS\r\n//tensorflow_quantum/core/ops:tfq_utility_ops_test NO STATUS\r\n//tensorflow_quantum/core/ops/math_ops:fidelity_op_test NO STATUS\r\n//tensorflow_quantum/core/ops/math_ops:inner_product_grad_test NO STATUS\r\n//tensorflow_quantum/core/ops/math_ops:inner_product_op_test NO STATUS\r\n//tensorflow_quantum/core/ops/math_ops:simulate_mps_test NO STATUS\r\n//tensorflow_quantum/core/ops/noise:noisy_expectation_op_test NO STATUS\r\n//tensorflow_quantum/core/ops/noise:noisy_sampled_expectation_op_test NO STATUS\r\n//tensorflow_quantum/core/ops/noise:noisy_samples_op_test NO STATUS\r\n//tensorflow_quantum/core/serialize:op_serializer_test NO STATUS\r\n//tensorflow_quantum/core/serialize:serializable_gate_set_test NO STATUS\r\n//tensorflow_quantum/core/serialize:serializer_test NO STATUS\r\n//tensorflow_quantum/core/src:adj_util_test NO STATUS\r\n//tensorflow_quantum/core/src:circuit_parser_qsim_test NO STATUS\r\n//tensorflow_quantum/core/src:program_resolution_test NO STATUS\r\n//tensorflow_quantum/core/src:util_qsim_test NO STATUS\r\n//tensorflow_quantum/datasets:cluster_state_test NO STATUS\r\n//tensorflow_quantum/datasets:spin_system_test NO STATUS\r\n//tensorflow_quantum/python:util_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:adjoint_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:differentiator_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:gradient_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:linear_combination_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:parameter_shift_test NO STATUS\r\n//tensorflow_quantum/python/differentiators:parameter_shift_util_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_construction:elementary_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:expectation_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:input_checks_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:sample_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:sampled_expectation_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:state_test NO STATUS\r\n//tensorflow_quantum/python/layers/circuit_executors:unitary_test NO STATUS\r\n//tensorflow_quantum/python/layers/high_level:controlled_pqc_test NO STATUS\r\n//tensorflow_quantum/python/layers/high_level:noisy_controlled_pqc_test NO STATUS\r\n//tensorflow_quantum/python/layers/high_level:pqc_test NO STATUS\r\n//tensorflow_quantum/python/optimizers:rotosolve_minimizer_test NO STATUS\r\n//tensorflow_quantum/python/optimizers:spsa_minimizer_test NO STATUS\r\n//tensorflow_quantum/core/serialize:op_deserializer_test PASSED in 12.4s\r\n//tensorflow_quantum/python:quantum_context_test PASSED in 5.9s\r\n//tensorflow_quantum/python/layers/high_level:noisy_pqc_test FAILED in 10.4s\r\n /root/.cache/bazel/_bazel_root/bcb09a07ff13a4e9505bab5f8eac883a/execroot/__main__/bazel-out/k8-opt/testlogs/tensorflow_quantum/python/layers/high_level/noisy_pqc_test/test.log\r\n\r\nExecuted 3 out of 47 tests: 2 tests pass, 1 fails locally and 44 were skipped.\r\nThere were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.}", "Output from today's run using the most recent nightly build. I am just using CPU, no GPU due to the length of compile time, and I decided to try branch instead of master to see if that made a difference. It did not, same error persisted. Quantum smoke tests are all still failing, and the tfq import still bombs out with the same pauli error. \r\n\r\nSee attached output\r\n[061723_tfq_import_err_v2.11.0-0-gd5b57ca93e5.txt](https://github.com/tensorflow/tensorflow/files/11780212/061723_tfq_import_err_v2.11.0-0-gd5b57ca93e5.txt)\r\n", "Attempted nightly build using TF 2.12 and Python 3.9, but TFQ compile failed. I saved the colab to github for your review as the error was quite profound:\r\n\r\nhttps://github.com/liv4unix/quantum/blob/master/TF12_TFQ_nightly_bld_061823_bazel-out_gcc-err.ipynb", "Hi @liv4unix! I faced the same issue as reported here. By any chance did you try to downgrade the TF version and try to build TF Quantum? There are some version incompatibility related issues occurring it seems. Please have a look at this [doc](https://www.tensorflow.org/quantum/install) and let me know if that helps?\r\nThank you!", "Thank you for the response. I have attempted all steps, in each section of that tutorial using TF11 (and even tried TF12, just to see what would happen, yes, I know it's unsupported). None of the documented steps work, TFQ does not import in Colab any longer, as far as I can tell. \r\n\r\nThe latest daily build from source is still compiling using Py 3.9, but I am including a link for the pip install for py3.8. Here, you will see that TFQ will not import on the pip install in Colab: \"no module named Cirq\"\r\n\r\nhttps://github.com/liv4unix/quantum/blob/master/TF11-TFQnightly-Py38_062023.ipynb", "@SuryanarayanaY I have replicated the issue on colab using TF [2.12](https://colab.research.google.com/gist/sushreebarsa/8f34148c7ed663110c278f75a10101fc/tf11-tfqnightly-py38_062023.ipynb#scrollTo=-rDlWfjzocwG) and [nightly](https://colab.research.google.com/gist/sushreebarsa/120780e30884cfa07e409dfe2e22551b/tf11-tfqnightly-py38_062023.ipynb#scrollTo=-rDlWfjzocwG), please find the attached gists for reference. \r\nThank you!", "Last night's build from source, using 06202023_nightly image is complete and TFQ still does not import into my Colab [Pro+] environment:\r\n\r\n1) tensorflow-quantum does NOT show up in \"pip list\" as an installed package\r\n2) the same \"cannot import name 'pauli_sum_pb2' from 'tensorflow_quantum.core.proto'\" persists on the TFQ import\r\n3) the TFQ/bazel installation confirmation scripts (./scripts/test_all.sh) continue to FAIL\r\n\r\nAll Colab job output is here:\r\nhttps://github.com/liv4unix/quantum/blob/master/TF_TFQ_Build_from_Source_Nightly_06212023.ipynb\r\n\r\nFYI:\r\nThis is a CPU TF/TFQ build. However, my QNN|ANN uses QPU|GPU|CPU so once we get TFQ import working for CPU, I will need to build from source using GPU so that I can test TFQ/import once more using GPU system. The GPU|Cuda TF/TFQ build from source takes ~12 hours.", "Attempted to roll back to Python 3.7 but the TFQ requirements file bombs out. It appears python 3.8 is the min required version for TFQ contrary to the install guide:\r\nhttps://www.tensorflow.org/quantum/install\r\n\r\nOutput from \"Py 3.7, tf-nightly-2.11.0, and quantum.git\" can be found here:\r\nhttps://github.com/liv4unix/quantum/blob/master/TF_TFQ_Build_from_Source_Nightly_06222023.ipynb", "While I've tested the pip installs for TFQ many times, I've never actually uploaded the colab notebooks. Both python 3.8 and 3.9 fail to import TFQ with an identical error:\r\n\r\nModuleNotFoundError: No module named 'tensorflow_quantum'\r\n\r\nThis is differentiated from the pauli error observed when attempting to import TFQ, when building from source.\r\n\r\nPython 3.9:\r\nhttps://github.com/liv4unix/quantum/blob/master/Pip_install_Py39_TF_TFQ_062423.ipynb\r\nPython 3.8\r\nhttps://github.com/liv4unix/quantum/blob/master/Pip_install_Py38_TF_TFQ_062423.ipynb", "Hi Michael,\r\n\r\nAny ETA on when an update will be available?\r\n\r\nJust tested latest [pip](Pip_install_Py38_TF211_TFQ073dev_070623.), nothing new ... and I won't bother testing nightlies until I hear from you as those builds hurt.\r\n\r\nI was really hoping to submit this latest (year's worth of) Cirq|TFQ work to QCE23 Poster Committee, and they just extended the Poster deadline to July 20, so if there is any possible chance we could get some kind of a fix in place, so that I could finish my poster submission, well, that would be really-really great. \r\nhttps://qce.quantum.ieee.org/2023/home/authors/submission-deadlines/\r\n\r\nThis latest QNN work builds off last year's published work, which was also presented at QCE22 (where I met Alex).\r\nhttps://ieeexplore.ieee.org/document/9951271\r\n\r\nWould also be great to meet you at QCE23 this year (hint!hint!), otherwise, thanks to you and your team for all the incredible work on the TF|TFQ stack!\r\n\r\n\r\n", "After going through all my previous build jobs, the issue appears to be that bazel config is defaulting to Colab's built-in Python 10 - bazel is not using the version of Python in the activated environment (py 3.8) I cannot figure out how to override. \r\n\r\nI am attempting to once again hard-code the 3.8 python paths into the bazel config in the TF11 nightly build. Will upload the output once the build is complete.", "I was able to getTF11 bazel config script to execute successfully when I entered the FQPN for the activated py38_quantum_env lib and bin paths \r\n\r\nHowever TFQ/nightly now bombs out with a new error on bazel build:\r\n\r\n\r\nERROR: /content/quantum/tensorflow_quantum/core/src/BUILD:123:11: Compiling tensorflow_quantum/core/src/program_resolution.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 54 arguments skipped)\r\nIn file included from bazel-out/k8-opt/bin/external/local_config_tf/include/tensorflow/tsl/platform/status.h:37,\r\n from bazel-out/k8-opt/bin/external/local_config_tf/include/tensorflow/core/platform/status.h:23,\r\n from bazel-out/k8-opt/bin/external/local_config_tf/include/tensorflow/core/lib/core/status.h:19,\r\n from ./tensorflow_quantum/core/src/program_resolution.h:25,\r\n from tensorflow_quantum/core/src/program_resolution.cc:16:\r\nbazel-out/k8-opt/bin/external/local_config_tf/include/tensorflow/tsl/protobuf/error_codes.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is\r\n 12 | #error This file was generated by a newer version of protoc which is\r\n | ^~~~~\r\nbazel-out/k8-opt/bin/external/local_config_tf/include/tensorflow/tsl/protobuf/error_codes.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update\r\n 13 | #error incompatible with your Protocol Buffer headers.\r\n\r\n\r\nFull notebook is uploaded here:\r\n\r\nhttps://github.com/liv4unix/quantum/blob/master/TF_TFQ_Build_from_Source_Nightly_070823.ipynb", "Is anyone even working on this? \r\n\r\nIs there any way for me to access Sycamore without using Colab? I am desperate to continue my research guys. Please help." ]
2023-06-15T10:19:18
2023-07-18T23:51:00
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version v2.11.0-0-gd5b57ca93e5 2.11.0 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 20.04.5 LTS ### Mobile device _No response_ ### Python version 3.8 ### Bazel version 5.3.0 ### GCC/Compiler version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 ### CUDA/cuDNN version Build cuda_11.8.r11.8/compiler.31833905_0 ### GPU model and memory A100 high-mem node ### Current Behaviour? Still trying to get TFQ to work post-py 3.10 upgrade in colab ... the TF/TFQ nightly_build route seems to be getting me closer as I no longer receive "Module Not Found" when I try importing TFQ, however, I now receive the pauli error below. ### Standalone code to reproduce the issue ```shell import tensorflow_quantum as tfq --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-80-0f5757594a36> in <cell line: 1>() ----> 1 import tensorflow_quantum as tfq 4 frames /content/quantum/quantum/tensorflow_quantum/core/ops/cirq_ops.py in <module> 23 24 from tensorflow_quantum.core.ops import batch_util ---> 25 from tensorflow_quantum.core.proto import pauli_sum_pb2 26 from tensorflow_quantum.core.proto import program_pb2 27 from tensorflow_quantum.core.serialize import serializer ImportError: cannot import name 'pauli_sum_pb2' from 'tensorflow_quantum.core.proto' (/content/quantum/quantum/tensorflow_quantum/core/proto/__init__.py) ``` ### Relevant log output ```shell See above FYI ... the compile from nightly takes >8 hours so getting you info may take +1 days turn around Also, I have tried nightly_builds (for my Colab env) for several days and this is the only build where I have obtained a different error than "Module Not Found" upon attempting to import TFQ after installing the wheel. Are you guys trying to actually 'import tensorflow-quantum' after executing your quantum tests (./scripts/test_all.sh)? I ask because as far as I can tell, the import does not work even though the installation and smoke tests all complete successfully. I have attempted every TF/TFQ install listed here: https://www.tensorflow.org/quantum/install and TFQ will not import any longer. I cannot TFQ imported and functional ... ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60880/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60880/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60879
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60879/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60879/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60879/events
https://github.com/tensorflow/tensorflow/pull/60879
1,758,491,265
PR_kwDOArmXAs5TFCXV
60,879
tflite: `make docker-build` reads `PYTHON_VERSION` and not `PYTHON`
{ "login": "poliorcetics", "id": 7951708, "node_id": "MDQ6VXNlcjc5NTE3MDg=", "avatar_url": "https://avatars.githubusercontent.com/u/7951708?v=4", "gravatar_id": "", "url": "https://api.github.com/users/poliorcetics", "html_url": "https://github.com/poliorcetics", "followers_url": "https://api.github.com/users/poliorcetics/followers", "following_url": "https://api.github.com/users/poliorcetics/following{/other_user}", "gists_url": "https://api.github.com/users/poliorcetics/gists{/gist_id}", "starred_url": "https://api.github.com/users/poliorcetics/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/poliorcetics/subscriptions", "organizations_url": "https://api.github.com/users/poliorcetics/orgs", "repos_url": "https://api.github.com/users/poliorcetics/repos", "events_url": "https://api.github.com/users/poliorcetics/events{/privacy}", "received_events_url": "https://api.github.com/users/poliorcetics/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "I'm unsure, maybe both variables are required" ]
2023-06-15T10:08:41
2023-06-20T21:29:46
2023-06-20T21:29:45
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60879", "html_url": "https://github.com/tensorflow/tensorflow/pull/60879", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60879.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60879.patch", "merged_at": "2023-06-20T21:29:45" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60879/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60879/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60878
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60878/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60878/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60878/events
https://github.com/tensorflow/tensorflow/issues/60878
1,758,472,137
I_kwDOArmXAs5o0CfJ
60,878
Mistype (mixed_bloat16) in the keras.mixed_precision.Policy class
{ "login": "antnsi", "id": 15607374, "node_id": "MDQ6VXNlcjE1NjA3Mzc0", "avatar_url": "https://avatars.githubusercontent.com/u/15607374?v=4", "gravatar_id": "", "url": "https://api.github.com/users/antnsi", "html_url": "https://github.com/antnsi", "followers_url": "https://api.github.com/users/antnsi/followers", "following_url": "https://api.github.com/users/antnsi/following{/other_user}", "gists_url": "https://api.github.com/users/antnsi/gists{/gist_id}", "starred_url": "https://api.github.com/users/antnsi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/antnsi/subscriptions", "organizations_url": "https://api.github.com/users/antnsi/orgs", "repos_url": "https://api.github.com/users/antnsi/repos", "events_url": "https://api.github.com/users/antnsi/events{/privacy}", "received_events_url": "https://api.github.com/users/antnsi/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "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, "description": "Status - Awaiting response from author" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@antnsi,\r\nI have raised the PR in Keras repo for the issue https://github.com/keras-team/keras/pull/18233 and the PR has been assigned for reviewing and once it is merged this issue will move to closed status. Thank you!", "@antnsi,\r\nThe PR which was raised for the typo error on the `policy.py` file was merged and the typo was also replaced with **bfloat16**\r\nhttps://github.com/keras-team/keras/pull/18233\r\nhttps://github.com/keras-team/keras/blob/master/keras/mixed_precision/policy.py\r\n\r\nCould you please take a look and confirm whether the issue was resolved. Thank you!", "@tilakrayal Should changes in the Keras codebase be somehow reflected in the TF repository? Apparently, it's not automatically propagated, and the mistype [is in master branch](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/mixed_precision/policy.py#L195). Sorry, I'm not very familiar with the TF release process. Either way, the issue can be closed as the Keras code was fixed.", "@antnsi,\r\nAny new Keras PR or issue should be open in [github.com/keras-team/keras](http://github.com/keras-team/keras), instead of [github.com/tensorflow/tensorflow](http://github.com/tensorflow/tensorflow). Keras development is fully moving to [github.com/keras-team/keras](http://github.com/keras-team/keras).\r\n\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\n\r\nThank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60878\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60878\">No</a>\n", "Hi, The code fix in the Keras repo is the one you should be referring to, the tensorflow/keras code is deprecated and will be deleted in future, once all the dependency is taken care of.\r\n\r\n> @tilakrayal Should changes in the Keras codebase be somehow reflected in the TF repository? Apparently, it's not automatically propagated, and the mistype [is in master branch](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/mixed_precision/policy.py#L195). Sorry, I'm not very familiar with the TF release process. Either way, the issue can be closed as the Keras code was fixed.\r\n\r\n" ]
2023-06-15T09:58:31
2023-06-22T17:40:11
2023-06-21T15:58:48
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version master ### Custom Code No ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? There is a [mistype](https://github.com/tensorflow/tensorflow/blob/e0f655d121da781e69052f07c2e5635c4544f2fe/tensorflow/python/keras/mixed_precision/policy.py#L195) in the mixed_precision policy check. It should be `bfloat16`, not `bloat16` ``` if name in ('mixed_float16', 'mixed_bloat16'): device_compatibility_check.log_device_compatibility_check(name) ``` There is no practical issue with it because `log_device_compatibility_check` doesn't support it anyway. ### Standalone code to reproduce the issue ```shell Not required, it's clear from the code ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60878/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60878/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60877
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60877/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60877/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60877/events
https://github.com/tensorflow/tensorflow/issues/60877
1,758,252,535
I_kwDOArmXAs5ozM33
60,877
Hi @radres2019, Thank you for reporting the issue!
{ "login": "anikde", "id": 30068060, "node_id": "MDQ6VXNlcjMwMDY4MDYw", "avatar_url": "https://avatars.githubusercontent.com/u/30068060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/anikde", "html_url": "https://github.com/anikde", "followers_url": "https://api.github.com/users/anikde/followers", "following_url": "https://api.github.com/users/anikde/following{/other_user}", "gists_url": "https://api.github.com/users/anikde/gists{/gist_id}", "starred_url": "https://api.github.com/users/anikde/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anikde/subscriptions", "organizations_url": "https://api.github.com/users/anikde/orgs", "repos_url": "https://api.github.com/users/anikde/repos", "events_url": "https://api.github.com/users/anikde/events{/privacy}", "received_events_url": "https://api.github.com/users/anikde/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "I used your script and I could install python3.8 in the google Colab environment but then while importing tensorflow_quantum it shows ```ModuleNotFoundError: No module named 'tensorflow_quantum'```\r\nFor reference I have mentioned link to my [colab notebook](https://colab.research.google.com/drive/11hnCAIOAKn938fuVLxhIueMlbaMhQ_dG?usp=sharing)", "Should be opened in the quantum repo, not TF.", "Hi @anikde ,\r\n\r\nCould you please report the issue at [tensorflow-quantum](https://github.com/tensorflow/quantum/issues) repo as instructed above.\r\n\r\nThanks!", "Hi @SuryanarayanaY @mihaimaruseac, I have raised the issue in tensorflow-quantum repo as directed.", "Hi @anikde ,\r\n\r\nPlease refer to attached [readme.md](https://github.com/tensorflow/quantum/blob/master/docs/install.md) file from tensorflow-quantum for installation instructions. \r\n\r\n**Requirements**\r\n\r\n> pip 19.0 or later (requires manylinux2010 support)\r\n> [TensorFlow == 2.11.0](https://www.tensorflow.org/install/pip)\r\n\r\nIt seems this works only with tensorflow==2.11. Also please check other requirements mentioned in readme.md are fulfilled. Could you please have a look at those instructions and let us know if it helps.\r\n\r\nThanks!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60877\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60877\">No</a>\n", "@SuryanarayanaY I have tired installing the updated version of tensorflow but that too didn't work. I have attached the [link to my notebook](https://colab.research.google.com/drive/11hnCAIOAKn938fuVLxhIueMlbaMhQ_dG?authuser=1&usp=drive_open#scrollTo=aMujKtZb7oDA) for reference." ]
2023-06-15T07:53:12
2023-07-01T09:05:08
2023-07-01T02:12:01
NONE
null
null
null
Hi @radres2019, Thank you for reporting the issue! You are seeing this error because Colab has python version 3.10. Tensorflow quantum 0.7.2 is compatible with Python 3.7, 3.8, 3.9 and does not support Python 3.10. Please refer to the gist where I was able to install Tensorflow quantum sucessfully [here](https://colab.sandbox.google.com/gist/synandi/b733cccf4a90d29e5feefb606f02f843/60428.ipynb). Thank you! _Originally posted by @synandi in https://github.com/tensorflow/tensorflow/issues/60428#issuecomment-1527270841_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60877/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60877/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60876
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60876/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60876/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60876/events
https://github.com/tensorflow/tensorflow/issues/60876
1,758,202,613
I_kwDOArmXAs5ozAr1
60,876
When will TFRT integration be fully released?
{ "login": "ychensha", "id": 4364900, "node_id": "MDQ6VXNlcjQzNjQ5MDA=", "avatar_url": "https://avatars.githubusercontent.com/u/4364900?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ychensha", "html_url": "https://github.com/ychensha", "followers_url": "https://api.github.com/users/ychensha/followers", "following_url": "https://api.github.com/users/ychensha/following{/other_user}", "gists_url": "https://api.github.com/users/ychensha/gists{/gist_id}", "starred_url": "https://api.github.com/users/ychensha/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ychensha/subscriptions", "organizations_url": "https://api.github.com/users/ychensha/orgs", "repos_url": "https://api.github.com/users/ychensha/repos", "events_url": "https://api.github.com/users/ychensha/events{/privacy}", "received_events_url": "https://api.github.com/users/ychensha/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 1097543484, "node_id": "MDU6TGFiZWwxMDk3NTQzNDg0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:runtime", "name": "comp:runtime", "color": "0052cc", "default": false, "description": "c++ runtime, performance issues (cpu)" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@bchetioui , Could you please take a look into this, it is related to your commit https://github.com/tensorflow/tensorflow/commit/1bd12b4863759e44da4139628973f372655b14f6", "@sachinprasadhs @ychensha Hi, just to confirm, did you narrow down the failure to my commit? It is a very small change which doesn't add/remove any dependency to any file, and has nothing to do with TFRT---I'd be surprised if it had anything to do with the failure reported here.", "Understood, Thank you!" ]
2023-06-15T07:21:45
2023-06-28T16:28:54
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version master, commit id 1bd12b4863759e44da4139628973f372655b14f6 ### Custom Code No ### OS Platform and Distribution Linux ### Mobile device _No response_ ### Python version _No response_ ### Bazel version 6.1.0 ### GCC/Compiler version 8.3.1 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Firstly, the TFRT integration is disable in `.bazelrc`. Comment out TFRT deleted packages in `.bazelrc`, add deps for tensorflow serving, fix some reference in `BUILD`, blah, blah, blah...The build is still broken. ```diff diff --git a/.bazelrc b/.bazelrc index e26bf6de7f8..48edf30f4c7 100644 --- a/.bazelrc +++ b/.bazelrc @@ -694,10 +694,10 @@ build:ubsan --linkopt -fsanitize=undefined build:ubsan --linkopt -lubsan # Disable TFRT integration for now unless --config=tfrt is specified. -build --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python +# build --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python # TODO(b/240450920): We are in the process of migrating JitRt backend to XLA # and while we are doing this we can't keep it buildable/testable in OSS. -build:tfrt --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python +# build:tfrt --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python # TF Fuzztest config try-import fuzztest.bazelrc diff --git a/tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td b/tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td index 7268588749d..cee88fb112b 100644 --- a/tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td +++ b/tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td @@ -19,8 +19,8 @@ limitations under the License. include "tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_dialect.td" include "tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.td" include "tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td" -include "third_party/tf_runtime/include/tfrt/compiler/opdefs/tfrt_op_interfaces.td" -include "third_party/tf_runtime/include/tfrt/compiler/opdefs/tfrt_traits.td" +include "external/tf_runtime/include/tfrt/compiler/opdefs/tfrt_op_interfaces.td" +include "external/tf_runtime/include/tfrt/compiler/opdefs/tfrt_traits.td" // tf_mlrt.tf_await returns a tensorflow Tensor. It is a fake op that is only // used during parallelization and has no runtime implementation. diff --git a/tensorflow/compiler/mlir/tfrt/transforms/mlrt/BUILD b/tensorflow/compiler/mlir/tfrt/transforms/mlrt/BUILD index beb50129756..ec69705437e 100644 --- a/tensorflow/compiler/mlir/tfrt/transforms/mlrt/BUILD +++ b/tensorflow/compiler/mlir/tfrt/transforms/mlrt/BUILD @@ -74,7 +74,7 @@ cc_library( "//tensorflow/compiler/mlir/tfrt/ir/mlrt:tf_mlrt_tpu_ops", "//tensorflow/core/tfrt/fallback:fallback_state", "//tensorflow/core/tfrt/fallback:op_kernel_runner_cache", - "//third_party/protobuf", + "@com_google_protobuf//:protobuf", "@llvm-project//mlir:FuncDialect", "@llvm-project//mlir:FuncTransforms", "@llvm-project//mlir:IR", @@ -150,7 +150,7 @@ cc_library( ":assign_op_key", ":passes", ":while_to_map_fn", - "//base:vlog", + # "//base:vlog", "//tensorflow/compiler/mlir/tensorflow:dump_mlir_util", "//tensorflow/compiler/mlir/tensorflow:error_util", "//tensorflow/compiler/mlir/tfrt:import_model", diff --git a/tensorflow/core/tfrt/graph_executor/BUILD b/tensorflow/core/tfrt/graph_executor/BUILD index 7cef54cdb69..7e4537869c1 100644 --- a/tensorflow/core/tfrt/graph_executor/BUILD +++ b/tensorflow/core/tfrt/graph_executor/BUILD @@ -152,7 +152,7 @@ cc_library( visibility = ["//visibility:public"], deps = [ ":config_proto_cc", - "//google/protobuf:any_cc_proto", + # "//google/protobuf:any_cc_proto", "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", ], @@ -161,7 +161,7 @@ cc_library( tf_proto_library( name = "config_proto", srcs = ["config.proto"], - protodeps = ["//google/protobuf:any"], + # protodeps = ["//google/protobuf:any"], visibility = ["//visibility:public"], ) @@ -187,7 +187,7 @@ cc_library( hdrs = ["sync_resource_state.h"], visibility = ["//visibility:public"], deps = [ - "//tensorflow_serving/util:any_ptr", + "@tensorflow_serving//tensorflow_serving/util:any_ptr", "@tf_runtime//:tensor", ], ) diff --git a/tensorflow/core/tfrt/graph_executor/sync_resource_state.h b/tensorflow/core/tfrt/graph_executor/sync_resource_state.h index 1571fc01352..159f1714a71 100644 --- a/tensorflow/core/tfrt/graph_executor/sync_resource_state.h +++ b/tensorflow/core/tfrt/graph_executor/sync_resource_state.h @@ -18,7 +18,7 @@ limitations under the License. #include <utility> #include <vector> -#include "third_party/tensorflow_serving/util/any_ptr.h" +#include "tensorflow_serving/tensorflow_serving/util/any_ptr.h" #include "tfrt/tensor/dense_host_tensor.h" // from @tf_runtime namespace tensorflow { namespace tfrt_stub { diff --git a/tensorflow/workspace3.bzl b/tensorflow/workspace3.bzl index 91871db22c8..c16b5d0ab9b 100644 --- a/tensorflow/workspace3.bzl +++ b/tensorflow/workspace3.bzl @@ -2,6 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("//third_party:tf_runtime/workspace.bzl", tf_runtime = "repo") +load("//third_party:tensorflow_serving/workspace.bzl", tensorflow_serving = "repo") load("//third_party/llvm:workspace.bzl", llvm = "repo") def workspace(): @@ -16,6 +17,7 @@ def workspace(): ) tf_runtime() + tensorflow_serving() # https://github.com/bazelbuild/bazel-skylib/releases http_archive( diff --git a/third_party/tensorflow_serving/workspace.bzl b/third_party/tensorflow_serving/workspace.bzl new file mode 100644 index 00000000000..5e5f54b6f1a --- /dev/null +++ b/third_party/tensorflow_serving/workspace.bzl @@ -0,0 +1,20 @@ +"""Provides the repository macro to import TFRT.""" + +load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") + +def repo(): + TFRT_COMMIT = "bd203faa888dd5ce90f21e3ee9af92dbc90b8a25" + TFRT_SHA256 = "" + + tf_http_archive( + name = "tensorflow_serving", + sha256 = TFRT_SHA256, + strip_prefix = "serving-{commit}".format(commit = TFRT_COMMIT), + urls = tf_mirror_urls("https://github.com/tensorflow/serving/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT)), + # A patch file can be provided for atomic commits to both TF and TFRT. + # The job that bumps the TFRT_COMMIT also resets patch_file to 'None'. + patch_file = None, + ) ``` ### Standalone code to reproduce the issue ```shell bazel build --incompatible_fix_package_group_reporoot_syntax=false tensorflow/core/tfrt/graph_executor:graph_executor ``` ### Relevant log output ```shell external/tf_runtime/lib/basic_kernels/opdefs/tfrt_base.cc:80:9: required from here bazel-out/k8-opt/bin/external/llvm-project/mlir/_virtual_includes/CallOpInterfacesIncGen/mlir/Interfaces/CallInterfaces.h.inc:155:56: error: 'class tfrt::compiler::CallOp' has no member named 'setCalleeFromCallable'; did you mean 'getCallableForCallee'? return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).setCalleeFromCallable(callee); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ getCallableForCallee bazel-out/k8-opt/bin/external/llvm-project/mlir/_virtual_includes/CallOpInterfacesIncGen/mlir/Interfaces/CallInterfaces.h.inc:155:84: error: return-statement with a value, in function returning 'void' [-fpermissive] return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).setCalleeFromCallable(callee); ^ cc1plus: warning: unrecognized command line option '-Wno-unused-local-typedef' Target //tensorflow/core/tfrt/graph_executor:graph_executor failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 72.836s, Critical Path: 33.33s INFO: 247 processes: 21 internal, 226 local. FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60876/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60876/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60875
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60875/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60875/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60875/events
https://github.com/tensorflow/tensorflow/pull/60875
1,758,107,412
PR_kwDOArmXAs5TDvbn
60,875
Bump requests from 2.28.2 to 2.31.0
{ "login": "dependabot[bot]", "id": 49699333, "node_id": "MDM6Qm90NDk2OTkzMzM=", "avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dependabot%5Bbot%5D", "html_url": "https://github.com/apps/dependabot", "followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers", "following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos", "events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }
[ { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" }, { "id": 2421643380, "node_id": "MDU6TGFiZWwyNDIxNjQzMzgw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/dependencies", "name": "dependencies", "color": "0366d6", "default": false, "description": "Pull requests that update a dependency file" }, { "id": 2622893001, "node_id": "MDU6TGFiZWwyNjIyODkzMDAx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/python", "name": "python", "color": "2b67c6", "default": false, "description": "Pull requests that update Python code" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting `@dependabot rebase`.", "OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting `@dependabot ignore this major version` or `@dependabot ignore this minor version`.\n\nIf you change your mind, just re-open this PR and I'll resolve any conflicts on it." ]
2023-06-15T06:09:10
2023-06-28T15:09:19
2023-06-28T15:09:14
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60875", "html_url": "https://github.com/tensorflow/tensorflow/pull/60875", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60875.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60875.patch", "merged_at": null }
Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/psf/requests/releases">requests's releases</a>.</em></p> <blockquote> <h2>v2.31.0</h2> <h2>2.31.0 (2023-05-22)</h2> <p><strong>Security</strong></p> <ul> <li> <p>Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of <code>Proxy-Authorization</code> headers to destination servers when following HTTPS redirects.</p> <p>When proxies are defined with user info (<a href="https://user:pass@proxy:8080">https://user:pass@proxy:8080</a>), Requests will construct a <code>Proxy-Authorization</code> header that is attached to the request to authenticate with the proxy.</p> <p>In cases where Requests receives a redirect response, it previously reattached the <code>Proxy-Authorization</code> header incorrectly, resulting in the value being sent through the tunneled connection to the destination server. Users who rely on defining their proxy credentials in the URL are <em>strongly</em> encouraged to upgrade to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy credentials once the change has been fully deployed.</p> <p>Users who do not use a proxy or do not supply their proxy credentials through the user information portion of their proxy URL are not subject to this vulnerability.</p> <p>Full details can be read in our <a href="https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q">Github Security Advisory</a> and <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-32681">CVE-2023-32681</a>.</p> </li> </ul> <h2>v2.30.0</h2> <h2>2.30.0 (2023-05-03)</h2> <p><strong>Dependencies</strong></p> <ul> <li> <p>⚠️ Added support for urllib3 2.0. ⚠️</p> <p>This may contain minor breaking changes so we advise careful testing and reviewing <a href="https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html">https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html</a> prior to upgrading.</p> <p>Users who wish to stay on urllib3 1.x can pin to <code>urllib3&lt;2</code>.</p> </li> </ul> <h2>v2.29.0</h2> <h2>2.29.0 (2023-04-26)</h2> <p><strong>Improvements</strong></p> <ul> <li>Requests now defers chunked requests to the urllib3 implementation to improve standardization. (<a href="https://redirect.github.com/psf/requests/issues/6226">#6226</a>)</li> <li>Requests relaxes header component requirements to support bytes/str subclasses. (<a href="https://redirect.github.com/psf/requests/issues/6356">#6356</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psf/requests/blob/main/HISTORY.md">requests's changelog</a>.</em></p> <blockquote> <h2>2.31.0 (2023-05-22)</h2> <p><strong>Security</strong></p> <ul> <li> <p>Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of <code>Proxy-Authorization</code> headers to destination servers when following HTTPS redirects.</p> <p>When proxies are defined with user info (<a href="https://user:pass@proxy:8080">https://user:pass@proxy:8080</a>), Requests will construct a <code>Proxy-Authorization</code> header that is attached to the request to authenticate with the proxy.</p> <p>In cases where Requests receives a redirect response, it previously reattached the <code>Proxy-Authorization</code> header incorrectly, resulting in the value being sent through the tunneled connection to the destination server. Users who rely on defining their proxy credentials in the URL are <em>strongly</em> encouraged to upgrade to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy credentials once the change has been fully deployed.</p> <p>Users who do not use a proxy or do not supply their proxy credentials through the user information portion of their proxy URL are not subject to this vulnerability.</p> <p>Full details can be read in our <a href="https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q">Github Security Advisory</a> and <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-32681">CVE-2023-32681</a>.</p> </li> </ul> <h2>2.30.0 (2023-05-03)</h2> <p><strong>Dependencies</strong></p> <ul> <li> <p>⚠️ Added support for urllib3 2.0. ⚠️</p> <p>This may contain minor breaking changes so we advise careful testing and reviewing <a href="https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html">https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html</a> prior to upgrading.</p> <p>Users who wish to stay on urllib3 1.x can pin to <code>urllib3&lt;2</code>.</p> </li> </ul> <h2>2.29.0 (2023-04-26)</h2> <p><strong>Improvements</strong></p> <ul> <li>Requests now defers chunked requests to the urllib3 implementation to improve standardization. (<a href="https://redirect.github.com/psf/requests/issues/6226">#6226</a>)</li> <li>Requests relaxes header component requirements to support bytes/str subclasses. (<a href="https://redirect.github.com/psf/requests/issues/6356">#6356</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psf/requests/commit/147c8511ddbfa5e8f71bbf5c18ede0c4ceb3bba4"><code>147c851</code></a> v2.31.0</li> <li><a href="https://github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5"><code>74ea7cf</code></a> Merge pull request from GHSA-j8r2-6x86-q33q</li> <li><a href="https://github.com/psf/requests/commit/302225334678490ec66b3614a9dddb8a02c5f4fe"><code>3022253</code></a> test on pypy 3.8 and pypy 3.9 on windows and macos (<a href="https://redirect.github.com/psf/requests/issues/6424">#6424</a>)</li> <li><a href="https://github.com/psf/requests/commit/b639e66c816514e40604d46f0088fbceec1a5149"><code>b639e66</code></a> test on py3.12 (<a href="https://redirect.github.com/psf/requests/issues/6448">#6448</a>)</li> <li><a href="https://github.com/psf/requests/commit/d3d504436ef0c2ac7ec8af13738b04dcc8c694be"><code>d3d5044</code></a> Fixed a small typo (<a href="https://redirect.github.com/psf/requests/issues/6452">#6452</a>)</li> <li><a href="https://github.com/psf/requests/commit/2ad18e0e10e7d7ecd5384c378f25ec8821a10a29"><code>2ad18e0</code></a> v2.30.0</li> <li><a href="https://github.com/psf/requests/commit/f2629e9e3c7ce3c3c8c025bcd8db551101cbc773"><code>f2629e9</code></a> Remove strict parameter (<a href="https://redirect.github.com/psf/requests/issues/6434">#6434</a>)</li> <li><a href="https://github.com/psf/requests/commit/87d63de8739263bbe17034fba2285c79780da7e8"><code>87d63de</code></a> v2.29.0</li> <li><a href="https://github.com/psf/requests/commit/51716c4ef390136b0d4b800ec7665dd5503e64fc"><code>51716c4</code></a> enable the warnings plugin (<a href="https://redirect.github.com/psf/requests/issues/6416">#6416</a>)</li> <li><a href="https://github.com/psf/requests/commit/a7da1ab3498b10ec3a3582244c94b2845f8a8e71"><code>a7da1ab</code></a> try on ubuntu 22.04 (<a href="https://redirect.github.com/psf/requests/issues/6418">#6418</a>)</li> <li>Additional commits viewable in <a href="https://github.com/psf/requests/compare/v2.28.2...v2.31.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=requests&package-manager=pip&previous-version=2.28.2&new-version=2.31.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/tensorflow/tensorflow/network/alerts). </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60875/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60875/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60874
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60874/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60874/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60874/events
https://github.com/tensorflow/tensorflow/pull/60874
1,758,072,980
PR_kwDOArmXAs5TDn8I
60,874
Revert "r2.12 cherry-pick: c45a6c0b1cb "Simplified retry logic to DNS cache""
{ "login": "Alavandar08", "id": 86424477, "node_id": "MDQ6VXNlcjg2NDI0NDc3", "avatar_url": "https://avatars.githubusercontent.com/u/86424477?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Alavandar08", "html_url": "https://github.com/Alavandar08", "followers_url": "https://api.github.com/users/Alavandar08/followers", "following_url": "https://api.github.com/users/Alavandar08/following{/other_user}", "gists_url": "https://api.github.com/users/Alavandar08/gists{/gist_id}", "starred_url": "https://api.github.com/users/Alavandar08/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Alavandar08/subscriptions", "organizations_url": "https://api.github.com/users/Alavandar08/orgs", "repos_url": "https://api.github.com/users/Alavandar08/repos", "events_url": "https://api.github.com/users/Alavandar08/events{/privacy}", "received_events_url": "https://api.github.com/users/Alavandar08/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60874/checks?check_run_id=14278950141) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request.", "Closing since there won't be a new 2.12 release" ]
2023-06-15T05:37:22
2023-07-06T16:24:25
2023-07-06T16:24:25
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60874", "html_url": "https://github.com/tensorflow/tensorflow/pull/60874", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60874.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60874.patch", "merged_at": null }
Reverts tensorflow/tensorflow#60872 This PR is resulting Build Failure. Please refer to the snapshot for the same. ![image](https://github.com/tensorflow/tensorflow/assets/86424477/892cd862-25aa-46a9-b9df-ebbe36de0b05)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60874/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60874/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60873
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60873/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60873/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60873/events
https://github.com/tensorflow/tensorflow/issues/60873
1,757,868,885
I_kwDOArmXAs5oxvNV
60,873
How does this apply to tensorflow2.12.0 if you don't change the version of TensorFlow
{ "login": "Katherine536", "id": 133550278, "node_id": "U_kgDOB_XQxg", "avatar_url": "https://avatars.githubusercontent.com/u/133550278?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Katherine536", "html_url": "https://github.com/Katherine536", "followers_url": "https://api.github.com/users/Katherine536/followers", "following_url": "https://api.github.com/users/Katherine536/following{/other_user}", "gists_url": "https://api.github.com/users/Katherine536/gists{/gist_id}", "starred_url": "https://api.github.com/users/Katherine536/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Katherine536/subscriptions", "organizations_url": "https://api.github.com/users/Katherine536/orgs", "repos_url": "https://api.github.com/users/Katherine536/repos", "events_url": "https://api.github.com/users/Katherine536/events{/privacy}", "received_events_url": "https://api.github.com/users/Katherine536/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @K-Bion \r\n\r\ntf.app.run is deprecated in TF 2.x, please use TF [tf.compat.v1.app.run](https://www.tensorflow.org/api_docs/python/tf/compat/v1/app/run) for TF 2.12.\r\n\r\nThanks.\r\n", "> Hi @K-Bion\r\n> \r\n> tf.app.run is deprecated in TF 2.x, please use TF [tf.compat.v1.app.run](https://www.tensorflow.org/api_docs/python/tf/compat/v1/app/run) for TF 2.12.\r\n> \r\n> Thanks.\r\n\r\nIt worked. Thank you very much.", "Hi @K-Bion \r\n\r\nGlad it worked. Please feel free to close the issue since it is resolved.\r\n\r\nThanks." ]
2023-06-15T01:14:49
2023-06-15T07:24:48
2023-06-15T07:24:48
NONE
null
null
null
tf.app.run() AttributeError module 'tensorflow' has no attribute 'app' File "D:\桌面\bert-master\bert-master\run_classifier.py", line 980, in <module> tf.app.run() AttributeError: module 'tensorflow' has no attribute 'app'
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60873/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60873/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60872
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60872/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60872/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60872/events
https://github.com/tensorflow/tensorflow/pull/60872
1,757,859,396
PR_kwDOArmXAs5TC6Qf
60,872
r2.12 cherry-pick: c45a6c0b1cb "Simplified retry logic to DNS cache"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T01:01:19
2023-06-15T10:48:05
2023-06-15T01:04:59
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60872", "html_url": "https://github.com/tensorflow/tensorflow/pull/60872", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60872.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60872.patch", "merged_at": "2023-06-15T01:04:59" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/c45a6c0b1cb0fcae0773faddc567d9e894b2d6a0
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60872/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60872/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60871
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60871/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60871/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60871/events
https://github.com/tensorflow/tensorflow/pull/60871
1,757,854,894
PR_kwDOArmXAs5TC5S-
60,871
r2.13 cherry-pick: Fix TPUExecute for TPUEmbedding
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T00:54:41
2023-06-16T10:54:15
2023-06-15T17:24:12
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60871", "html_url": "https://github.com/tensorflow/tensorflow/pull/60871", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60871.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60871.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60871/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60871/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60870
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60870/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60870/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60870/events
https://github.com/tensorflow/tensorflow/pull/60870
1,757,848,854
PR_kwDOArmXAs5TC4Cc
60,870
Venkat-patch-09
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[ { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-15T00:44:10
2023-06-15T10:48:50
2023-06-15T00:44:47
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60870", "html_url": "https://github.com/tensorflow/tensorflow/pull/60870", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60870.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60870.patch", "merged_at": null }
PiperOrigin-RevId: 540076161
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60870/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60870/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60869
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60869/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60869/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60869/events
https://github.com/tensorflow/tensorflow/pull/60869
1,757,840,824
PR_kwDOArmXAs5TC2Wn
60,869
r2.13 cherry-pick: Fix TPUExecute for TPUEmbedding
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T00:30:29
2023-06-15T10:48:51
2023-06-15T00:32:11
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60869", "html_url": "https://github.com/tensorflow/tensorflow/pull/60869", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60869.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60869.patch", "merged_at": null }
r2.13 cherry-pick: Fix TPUExecute for TPUEmbedding
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60869/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60869/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60868
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60868/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60868/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60868/events
https://github.com/tensorflow/tensorflow/pull/60868
1,757,835,741
PR_kwDOArmXAs5TC1R7
60,868
r2.13 cherry-pick: Fix TPUExecute for TPU embedding operations. Create temporary device
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T00:22:03
2023-06-16T10:54:14
2023-06-15T17:24:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60868", "html_url": "https://github.com/tensorflow/tensorflow/pull/60868", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60868.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60868.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60868/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60868/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60867
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60867/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60867/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60867/events
https://github.com/tensorflow/tensorflow/pull/60867
1,757,822,758
PR_kwDOArmXAs5TCydN
60,867
r2.13 cherry-pick: c45a6c0b1cb "Simplified retry logic to DNS cache"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-15T00:03:04
2023-06-15T10:48:53
2023-06-15T01:06:45
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60867", "html_url": "https://github.com/tensorflow/tensorflow/pull/60867", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60867.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60867.patch", "merged_at": "2023-06-15T01:06:45" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/c45a6c0b1cb0fcae0773faddc567d9e894b2d6a0
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60867/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60867/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60866
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60866/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60866/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60866/events
https://github.com/tensorflow/tensorflow/pull/60866
1,757,818,815
PR_kwDOArmXAs5TCxmr
60,866
r2.13 cherry-pick: Fix memory free error in tpu_execute.cc when there are zero addresses
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-14T23:57:51
2023-06-16T10:54:12
2023-06-15T17:24:50
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60866", "html_url": "https://github.com/tensorflow/tensorflow/pull/60866", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60866.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60866.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60866/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60866/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60865
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60865/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60865/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60865/events
https://github.com/tensorflow/tensorflow/pull/60865
1,757,802,150
PR_kwDOArmXAs5TCuCi
60,865
r2.13 cherry-pick: 6142f87fb7f "Fix TPUExecute for TPU embedding."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-14T23:31:15
2023-06-15T10:48:54
2023-06-15T01:05:47
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60865", "html_url": "https://github.com/tensorflow/tensorflow/pull/60865", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60865.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60865.patch", "merged_at": "2023-06-15T01:05:47" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/6142f87fb7f91cd7ccee8e8e64133722c1c1d0bd
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60865/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60865/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60864
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60864/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60864/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60864/events
https://github.com/tensorflow/tensorflow/pull/60864
1,757,586,363
PR_kwDOArmXAs5TB99q
60,864
Added a tutorial to the ReadMe
{ "login": "letonyh", "id": 76918818, "node_id": "MDQ6VXNlcjc2OTE4ODE4", "avatar_url": "https://avatars.githubusercontent.com/u/76918818?v=4", "gravatar_id": "", "url": "https://api.github.com/users/letonyh", "html_url": "https://github.com/letonyh", "followers_url": "https://api.github.com/users/letonyh/followers", "following_url": "https://api.github.com/users/letonyh/following{/other_user}", "gists_url": "https://api.github.com/users/letonyh/gists{/gist_id}", "starred_url": "https://api.github.com/users/letonyh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/letonyh/subscriptions", "organizations_url": "https://api.github.com/users/letonyh/orgs", "repos_url": "https://api.github.com/users/letonyh/repos", "events_url": "https://api.github.com/users/letonyh/events{/privacy}", "received_events_url": "https://api.github.com/users/letonyh/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-14T20:22:12
2023-06-15T01:11:37
2023-06-15T01:11:37
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60864", "html_url": "https://github.com/tensorflow/tensorflow/pull/60864", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60864.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60864.patch", "merged_at": null }
Took one of the linked tutorials and added it to the ReadMe to increase visibility to new users
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60864/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60864/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60863
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60863/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60863/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60863/events
https://github.com/tensorflow/tensorflow/pull/60863
1,757,571,726
PR_kwDOArmXAs5TB6tV
60,863
Added a tutorial to the ReadMe
{ "login": "letonyh", "id": 76918818, "node_id": "MDQ6VXNlcjc2OTE4ODE4", "avatar_url": "https://avatars.githubusercontent.com/u/76918818?v=4", "gravatar_id": "", "url": "https://api.github.com/users/letonyh", "html_url": "https://github.com/letonyh", "followers_url": "https://api.github.com/users/letonyh/followers", "following_url": "https://api.github.com/users/letonyh/following{/other_user}", "gists_url": "https://api.github.com/users/letonyh/gists{/gist_id}", "starred_url": "https://api.github.com/users/letonyh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/letonyh/subscriptions", "organizations_url": "https://api.github.com/users/letonyh/orgs", "repos_url": "https://api.github.com/users/letonyh/repos", "events_url": "https://api.github.com/users/letonyh/events{/privacy}", "received_events_url": "https://api.github.com/users/letonyh/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60863/checks?check_run_id=14269367767) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-06-14T20:13:16
2023-06-14T20:21:23
2023-06-14T20:21:23
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60863", "html_url": "https://github.com/tensorflow/tensorflow/pull/60863", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60863.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60863.patch", "merged_at": null }
Took one of the linked tutorials and added it to the ReadMe to increase visibility to new users.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60863/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60863/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60862
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60862/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60862/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60862/events
https://github.com/tensorflow/tensorflow/issues/60862
1,757,233,462
I_kwDOArmXAs5ovUE2
60,862
New unit tests fails when built with gcc
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" } ]
closed
false
{ "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Testing on x86 shows that this fails when built with gcc but passes when built with clang.", "Fixed by https://github.com/tensorflow/tensorflow/pull/62921", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60862\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60862\">No</a>\n" ]
2023-06-14T16:05:56
2024-02-29T11:09:47
2024-02-29T11:02:35
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version git HEAD ### Custom Code No ### OS Platform and Distribution Ubuntu 20.04 ### Mobile device n/a ### Python version 3.9.16 ### Bazel version 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? The unit test fails with a pipeline error resulting in inability to read a file as it was not created correctly, the name seems to be wrong. The file that exists is 00000000.main.tensorflow_{anonymous}_NopPass_after.mlir but the file attempted to be read is 00000000.main.tensorflow_anonymous_namespace_NopPass_after.mlir ### Standalone code to reproduce the issue ```shell bazel test --config=mkl_aarch64_threadpool --action_env=PYTHON_BIN_PATH=/usr/bin/python3.11 --copt=-flax-vector-conversions --jobs=75 --action_env=GIT_TAG_OVERRIDE --test_env=TF_ENABLE_ONEDNN_OPTS=1 --test_timeout=300,500,-1,-1 --test_output=errors --cache_test_results=no --noremote_accept_cached --copt="-mtune=generic" --copt="-march=armv8-a" --copt="-O3" --build_tag_filters=-no_oss,-oss_serial,-benchmark-test,-v1only,-no_aarch64 --test_tag_filters=-no_oss,-oss_serial,-benchmark-test,-v1only,-no_aarch64 --verbose_failures --build_tests_only -- //tensorflow/compiler/mlir/lite/debug/... ``` ### Relevant log output ```shell ==================== Test output for //tensorflow/compiler/mlir/lite/debug:debug_test: 2023-06-14 16:04:25.079113: I tensorflow/core/util/port.cc:116] Experimental oneDNN custom operations are on. If you experience issues, please turn them off by setting the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-14 16:04:25.079305: W tensorflow/tsl/lib/monitoring/collection_registry.cc:81] Trying to register 2 metrics with the same name: /tensorflow/core/bfc_allocator_delay. The old value will be erased in order to register a new one. Please check if you link the metric more than once, or if the name is already used by other metrics. Running main() from gmock_main.cc [==========] Running 2 tests from 1 test suite. [----------] Global test environment set-up. [----------] 2 tests from InitPassManagerTest [ RUN ] InitPassManagerTest.CrashReproducer error: Failures have been detected while processing an MLIR pass pipeline [ OK ] InitPassManagerTest.CrashReproducer (5 ms) [ RUN ] InitPassManagerTest.Dump tensorflow/compiler/mlir/lite/debug/debug_test.cc:156: Failure Expected equality of these values: ::tsl::OkStatus() Which is: OK (tsl::ReadFileToString( tsl::Env::Default(), tsl::io::JoinPath( dump_dir, "00000000.main.tensorflow_anonymous_namespace_NopPass_after.mlir"), &mlir_dump)) Which is: NOT_FOUND: /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/aarch64-opt/testlogs/tensorflow/compiler/mlir/lite/debug/debug_test/test.outputs/InitPassManagerTest.Dump/20230614_160425.086537/00000000.main.tensorflow_anonymous_namespace_NopPass_after.mlir; No such file or directory [ FAILED ] InitPassManagerTest.Dump (3 ms) [----------] 2 tests from InitPassManagerTest (9 ms total) [----------] Global test environment tear-down [==========] 2 tests from 1 test suite ran. (9 ms total) [ PASSED ] 1 test. [ FAILED ] 1 test, listed below: [ FAILED ] InitPassManagerTest.Dump 1 FAILED TEST ================================================================================ Target //tensorflow/compiler/mlir/lite/debug:debug_test up-to-date: bazel-bin/tensorflow/compiler/mlir/lite/debug/debug_test INFO: Elapsed time: 10.928s, Critical Path: 0.96s INFO: 2 processes: 1 internal, 1 local. INFO: Build completed, 1 test FAILED, 2 total actions //tensorflow/compiler/mlir/lite/debug:debug_test FAILED in 0.5s /root/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow/bazel-out/aarch64-opt/testlogs/tensorflow/compiler/mlir/lite/debug/debug_test/test.log Executed 1 out of 1 test: 1 fails locally. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60862/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60862/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60861
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60861/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60861/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60861/events
https://github.com/tensorflow/tensorflow/issues/60861
1,757,027,427
I_kwDOArmXAs5ouhxj
60,861
tf.data debug mode breaks dataset.save()
{ "login": "zhezherun", "id": 43962586, "node_id": "MDQ6VXNlcjQzOTYyNTg2", "avatar_url": "https://avatars.githubusercontent.com/u/43962586?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhezherun", "html_url": "https://github.com/zhezherun", "followers_url": "https://api.github.com/users/zhezherun/followers", "following_url": "https://api.github.com/users/zhezherun/following{/other_user}", "gists_url": "https://api.github.com/users/zhezherun/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhezherun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhezherun/subscriptions", "organizations_url": "https://api.github.com/users/zhezherun/orgs", "repos_url": "https://api.github.com/users/zhezherun/repos", "events_url": "https://api.github.com/users/zhezherun/events{/privacy}", "received_events_url": "https://api.github.com/users/zhezherun/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @zhezherun ,\r\n\r\nThanks for your time for reporting this. I have replicated the issue with Tf2.12v and tf-nightly as well.Attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/aebf8269998765d7a0cda6032b4a6fbe/60861.ipynb) for reference.\r\n\r\nIf you are sure of the root cause please feel free to submit a PR for fixing this.Our dev team will happily review it.\r\n\r\nThanks!\r\n", "@SuryanarayanaY Thanks a lot for taking a look! I would prefer if TF developers implemented a fix, since I can't sign the CLA without going through a rather lengthy review process at my work.", "Hi @zhezherun ,\r\n\r\nThanks for confirmation. I will take a look and if needed will escalate ton Dev team. Thanks!" ]
2023-06-14T14:21:08
2023-06-28T09:21:31
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.13.0rc0 ### Custom Code No ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? dataset.save() does not work if the experimental debug mode has been enabled for the datasets. A simple reproducer and the exception are below. I think the issue is due to the following code in `set_save_dataset_attributes` function in `tensorflow/python/data/ops/save_op.py`: `shard_func = lambda *x: None # a dummy function that will not be used` Replacing this line with e.g. `shard_func = lambda *x: 0` seems to fix this issue, so apparently returning `None` doesn't work in the debug mode. Btw the comment on this line is a bit misleading, because this function is still traced, so it's not completely unused. ### Standalone code to reproduce the issue ```shell import tensorflow as tf import tempfile tf.data.experimental.enable_debug_mode() ds = tf.data.Dataset.from_tensor_slices([1.0, 2.0, 3.0]) with tempfile.TemporaryDirectory() as tmpdir: ds.save(tmpdir) ``` ### Relevant log output ```shell Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 1042, in convert x = ops.convert_to_tensor_or_composite(x) File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 1547, in convert_to_tensor_or_composite return internal_convert_to_tensor_or_composite( File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 1582, in internal_convert_to_tensor_or_composite return convert_to_tensor( File "/usr/lib/python3.8/site-packages/tensorflow/python/profiler/trace.py", line 183, in wrapped return func(*args, **kwargs) File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 1443, in convert_to_tensor return tensor_conversion_registry.convert( File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/tensor_conversion_registry.py", line 209, in convert return overload(dtype, name) # pylint: disable=not-callable File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 2177, in __tf_tensor__ raise TypeError("can't convert Operation '{}' to Tensor".format(self.name)) TypeError: can't convert Operation 'EagerPyFunc' to Tensor During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/usr/lib/python3.8/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 1746, in save return save_op._save(self, path, compression, shard_func, checkpoint_args) File "/usr/lib/python3.8/site-packages/tensorflow/python/data/ops/save_op.py", line 57, in _save dataset, shard_func, use_shard_func, path = set_save_dataset_attributes( File "/usr/lib/python3.8/site-packages/tensorflow/python/data/ops/save_op.py", line 103, in set_save_dataset_attributes wrapped_func = structured_function.StructuredFunctionWrapper( File "/usr/lib/python3.8/site-packages/tensorflow/python/data/ops/structured_function.py", line 272, in __init__ self._function = fn_factory() File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/polymorphic_function.py", line 1189, in get_concrete_function concrete = self._get_concrete_function_garbage_collected(*args, **kwargs) File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/polymorphic_function.py", line 1169, in _get_concrete_function_garbage_collected self._initialize(args, kwargs, add_initializers_to=initializers) File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/polymorphic_function.py", line 694, in _initialize self._variable_creation_fn # pylint: disable=protected-access File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py", line 176, in _get_concrete_function_internal_garbage_collected concrete_function, _ = self._maybe_define_concrete_function(args, kwargs) File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py", line 171, in _maybe_define_concrete_function return self._maybe_define_function(args, kwargs) File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py", line 398, in _maybe_define_function concrete_function = self._create_concrete_function( File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py", line 305, in _create_concrete_function func_graph_module.func_graph_from_py_func( File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 1060, in func_graph_from_py_func func_outputs = nest.map_structure( File "/usr/lib/python3.8/site-packages/tensorflow/python/util/nest.py", line 624, in map_structure return nest_util.map_structure( File "/usr/lib/python3.8/site-packages/tensorflow/python/util/nest_util.py", line 1054, in map_structure return _tf_core_map_structure(func, *structure, **kwargs) File "/usr/lib/python3.8/site-packages/tensorflow/python/util/nest_util.py", line 1094, in _tf_core_map_structure [func(*x) for x in entries], File "/usr/lib/python3.8/site-packages/tensorflow/python/util/nest_util.py", line 1094, in <listcomp> [func(*x) for x in entries], File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/func_graph.py", line 1044, in convert raise TypeError( TypeError: To be compatible with tf.function, Python functions must return zero or more Tensors or ExtensionTypes or None values; in compilation of <function StructuredFunctionWrapper.__init__.<locals>.trace_py_function.<locals>.wrapped_fn at 0x7f88c9224c10>, found return value of type Operation, which is not a Tensor or ExtensionType. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60861/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60861/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60860
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60860/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60860/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60860/events
https://github.com/tensorflow/tensorflow/pull/60860
1,756,550,425
PR_kwDOArmXAs5S-crl
60,860
Steps per epoch clipping
{ "login": "mayureshagashe2105", "id": 75118658, "node_id": "MDQ6VXNlcjc1MTE4NjU4", "avatar_url": "https://avatars.githubusercontent.com/u/75118658?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mayureshagashe2105", "html_url": "https://github.com/mayureshagashe2105", "followers_url": "https://api.github.com/users/mayureshagashe2105/followers", "following_url": "https://api.github.com/users/mayureshagashe2105/following{/other_user}", "gists_url": "https://api.github.com/users/mayureshagashe2105/gists{/gist_id}", "starred_url": "https://api.github.com/users/mayureshagashe2105/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mayureshagashe2105/subscriptions", "organizations_url": "https://api.github.com/users/mayureshagashe2105/orgs", "repos_url": "https://api.github.com/users/mayureshagashe2105/repos", "events_url": "https://api.github.com/users/mayureshagashe2105/events{/privacy}", "received_events_url": "https://api.github.com/users/mayureshagashe2105/received_events", "type": "User", "site_admin": false }
[ { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @mayureshagashe2105 It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.\r\n@fchollet, @qlzh727" ]
2023-06-14T10:19:13
2023-06-14T13:30:25
2023-06-14T13:30:24
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60860", "html_url": "https://github.com/tensorflow/tensorflow/pull/60860", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60860.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60860.patch", "merged_at": null }
fixes #58966 If the `steps_per_epoch` > len(dataset) in `model.fit()` method, training and validation stops prematurely. To avoid `StopIteration` error, clipping the value of `steps_per_epoch` to the maximum value possible is proposed.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60860/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60860/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60859
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60859/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60859/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60859/events
https://github.com/tensorflow/tensorflow/pull/60859
1,756,477,552
PR_kwDOArmXAs5S-NQ_
60,859
Steps per epoch clipping
{ "login": "mayureshagashe2105", "id": 75118658, "node_id": "MDQ6VXNlcjc1MTE4NjU4", "avatar_url": "https://avatars.githubusercontent.com/u/75118658?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mayureshagashe2105", "html_url": "https://github.com/mayureshagashe2105", "followers_url": "https://api.github.com/users/mayureshagashe2105/followers", "following_url": "https://api.github.com/users/mayureshagashe2105/following{/other_user}", "gists_url": "https://api.github.com/users/mayureshagashe2105/gists{/gist_id}", "starred_url": "https://api.github.com/users/mayureshagashe2105/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mayureshagashe2105/subscriptions", "organizations_url": "https://api.github.com/users/mayureshagashe2105/orgs", "repos_url": "https://api.github.com/users/mayureshagashe2105/repos", "events_url": "https://api.github.com/users/mayureshagashe2105/events{/privacy}", "received_events_url": "https://api.github.com/users/mayureshagashe2105/received_events", "type": "User", "site_admin": false }
[ { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-14T09:40:15
2023-06-14T10:15:19
2023-06-14T09:47:11
NONE
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60859", "html_url": "https://github.com/tensorflow/tensorflow/pull/60859", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60859.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60859.patch", "merged_at": null }
fixes #58966 If the `steps_per_epoch` > len(dataset) in `model.fit()` method, training and validation stops prematurely. To avoid `StopIteration` error, clipping the value of `steps_per_epoch` to the maximum value possible is proposed. In the current implementation, the `steps_per_epoch` is being inferred by [`DataHandler.infer_steps`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/engine/data_adapter.py#LL1311C5-L1311C5) method. > The code blocks below are just for highlighting the major changes proposed and do not show the entire patch. Current Implementation ```python if steps is not None: return steps ``` Proposed Implementation ```python if steps is not None: return min(steps, len(dataset)) ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60859/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60859/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60858
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60858/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60858/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60858/events
https://github.com/tensorflow/tensorflow/issues/60858
1,756,437,247
I_kwDOArmXAs5osRr_
60,858
installing error about tensorflow 2.7.3
{ "login": "zengletian1491", "id": 53558305, "node_id": "MDQ6VXNlcjUzNTU4MzA1", "avatar_url": "https://avatars.githubusercontent.com/u/53558305?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zengletian1491", "html_url": "https://github.com/zengletian1491", "followers_url": "https://api.github.com/users/zengletian1491/followers", "following_url": "https://api.github.com/users/zengletian1491/following{/other_user}", "gists_url": "https://api.github.com/users/zengletian1491/gists{/gist_id}", "starred_url": "https://api.github.com/users/zengletian1491/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zengletian1491/subscriptions", "organizations_url": "https://api.github.com/users/zengletian1491/orgs", "repos_url": "https://api.github.com/users/zengletian1491/repos", "events_url": "https://api.github.com/users/zengletian1491/events{/privacy}", "received_events_url": "https://api.github.com/users/zengletian1491/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 3531398540, "node_id": "LA_kwDOArmXAs7SfN2M", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.7", "name": "TF 2.7", "color": "77237D", "default": false, "description": "Issues related to TF 2.7.0" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "@zengletian1491 Could you please make sure that you have followed the steps mentioned [here](https://www.tensorflow.org/install/source). \r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60858\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60858\">No</a>\n" ]
2023-06-14T09:16:58
2023-07-01T02:12:06
2023-07-01T02:12:04
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.7.3 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8.10 ### Bazel version _No response_ ### GCC/Compiler version 7.5.0 ### CUDA/cuDNN version cuda 11.3,cuDNN 8.2.1 ### GPU model and memory _No response_ ### Current Behaviour? My computer configurations are: gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0 cuda 11.3 cudnn 8.2.1 numpy 1.24.3 pandas 2.0.2 matplotlib 3.7.1 scipy 1.10.1 scikit-mage 0.21.0 scikit-learn 1.2.2 lapack 3.11.0 When I typed in “sudo pip3 install tensorflow_gpu-2.7.3-cp38-cp38-manylinux2010_x86_64.whl”, the results occurred as follows: **Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.8/dist-packages (from importlib-metadata>=4.4; python_version < "3.10"->markdown>=2.6.8->tensorboard~=2.6->tensorflow-gpu==2.7.3) (3.15.0) Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard~=2.6->tensorflow-gpu==2.7.3) (3.1.0) Collecting pyasn1>=0.1.3 Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB) |████████████████████████████████| 83 kB 21 kB/s Installing collected packages: absl-py, tensorflow-io-gcs-filesystem, opt-einsum, grpcio, termcolor, astunparse, h5py, protobuf, tensorflow-estimator, keras-preprocessing, google-pasta, gast, wrapt, libclang, keras, markdown, tensorboard-data-server, requests-oauthlib, cachetools, pyasn1, rsa, pyasn1-modules, google-auth, google-auth-oauthlib, werkzeug, tensorboard, flatbuffers, tensorflow-gpu Attempting uninstall: protobuf Found existing installation: protobuf 3.6.1 Not uninstalling protobuf at /usr/lib/python3/dist-packages, outside environment /usr Can't uninstall 'protobuf'. No files were found to uninstall. Successfully installed absl-py-1.4.0 astunparse-1.6.3 cachetools-5.3.1 flatbuffers-2.0.7 gast-0.4.0 google-auth-2.20.0 google-auth-oauthlib-1.0.0 google-pasta-0.2.0 grpcio-1.54.2 h5py-3.8.0 keras-2.7.0 keras-preprocessing-1.1.2 libclang-16.0.0 markdown-3.4.3 opt-einsum-3.3.0 protobuf-3.19.6 pyasn1-0.5.0 pyasn1-modules-0.3.0 requests-oauthlib-1.3.1 rsa-4.9 tensorboard-2.13.0 tensorboard-data-server-0.7.1 tensorflow-estimator-2.7.0 tensorflow-gpu-2.7.3 tensorflow-io-gcs-filesystem-0.32.0 termcolor-2.3.0 werkzeug-2.3.6 wrapt-1.15.0** Could you give me some suggestions?Thanks very much! ### Standalone code to reproduce the issue ```shell --- ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60858/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60858/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60857
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60857/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60857/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60857/events
https://github.com/tensorflow/tensorflow/issues/60857
1,756,037,375
I_kwDOArmXAs5oqwD_
60,857
Relu Grad Shape Issues
{ "login": "profhulk-MI", "id": 65221528, "node_id": "MDQ6VXNlcjY1MjIxNTI4", "avatar_url": "https://avatars.githubusercontent.com/u/65221528?v=4", "gravatar_id": "", "url": "https://api.github.com/users/profhulk-MI", "html_url": "https://github.com/profhulk-MI", "followers_url": "https://api.github.com/users/profhulk-MI/followers", "following_url": "https://api.github.com/users/profhulk-MI/following{/other_user}", "gists_url": "https://api.github.com/users/profhulk-MI/gists{/gist_id}", "starred_url": "https://api.github.com/users/profhulk-MI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/profhulk-MI/subscriptions", "organizations_url": "https://api.github.com/users/profhulk-MI/orgs", "repos_url": "https://api.github.com/users/profhulk-MI/repos", "events_url": "https://api.github.com/users/profhulk-MI/events{/privacy}", "received_events_url": "https://api.github.com/users/profhulk-MI/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1093464312, "node_id": "MDU6TGFiZWwxMDkzNDY0MzEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:others", "name": "type:others", "color": "159b2e", "default": false, "description": "issues not falling in bug, perfromance, support, build and install or feature" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@profhulk-MI,\r\nCould you please provide the complete standalone code or the colab gist to reproduce the issue which helps us to debug the issue in an effective way. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60857\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60857\">No</a>\n" ]
2023-06-14T04:35:19
2023-07-01T02:12:09
2023-07-01T02:12:06
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Others ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution colab ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Just trying to implement 3D CNN for CT images, and suddenly came across this error. Couldn't get much on the internet. Below is the snippet of the error. grads_and_vars = self.compute_gradients(loss, var_list, tape) File "/usr/local/lib/python3.10/dist-packages/keras/optimizers/optimizer.py", line 275, in compute_gradients grads = tape.gradient(loss, var_list) Node: 'gradient_tape/model_7/3dcnn/conv3d_24/ReluGrad' Inputs to operation gradient_tape/model_7/3dcnn/conv3d_24/ReluGrad of type ReluGrad must have the same size and shape. Input 0: [1,0,1875,256] != input 1: [1,0,125,15,256] [[{{node gradient_tape/model_7/3dcnn/conv3d_24/ReluGrad}}]] [Op:__inference_train_function_52480] ### Standalone code to reproduce the issue ```shell x = Conv3D(filters=64, kernel_size=(3,3,3),strides=1,activation="relu",dilation_rate=(1,1,1),kernel_regularizer=regularizers.L1L2(l1=1e-5, l2=1e-4),input_shape=(512, 512, 20, 3))(inputs) x = BatchNormalization()(x) x = MaxPool3D(pool_size=(2, 2, 1))(x) x = Conv3D(filters=128, kernel_size=(3,3,3),strides=1,dilation_rate=(1,1,1),kernel_regularizer=regularizers.L1L2(l1=1e-5, l2=1e-4),activation="relu")(x) x = BatchNormalization()(x) x = MaxPool3D(pool_size=(2, 2, 1))(x) x = Conv3D(filters=256, kernel_size=(2,2,2),strides=1,dilation_rate=(1,1,1), kernel_regularizer=regularizers.L1L2(l1=1e-5, l2=1e-4),activation="relu")(x) x = BatchNormalization()(x) x = Conv3D(filters=512, kernel_size=(2,2,2),strides=2,dilation_rate=(1,1,1), activation="relu")(x) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60857/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60857/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60856
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60856/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60856/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60856/events
https://github.com/tensorflow/tensorflow/issues/60856
1,755,971,528
I_kwDOArmXAs5oqf_I
60,856
CopyTensor::ViaDMA function, allocator type sometimes not match actual input underlying memory type
{ "login": "chengchen666", "id": 88537848, "node_id": "MDQ6VXNlcjg4NTM3ODQ4", "avatar_url": "https://avatars.githubusercontent.com/u/88537848?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chengchen666", "html_url": "https://github.com/chengchen666", "followers_url": "https://api.github.com/users/chengchen666/followers", "following_url": "https://api.github.com/users/chengchen666/following{/other_user}", "gists_url": "https://api.github.com/users/chengchen666/gists{/gist_id}", "starred_url": "https://api.github.com/users/chengchen666/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chengchen666/subscriptions", "organizations_url": "https://api.github.com/users/chengchen666/orgs", "repos_url": "https://api.github.com/users/chengchen666/repos", "events_url": "https://api.github.com/users/chengchen666/events{/privacy}", "received_events_url": "https://api.github.com/users/chengchen666/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097543484, "node_id": "MDU6TGFiZWwxMDk3NTQzNDg0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:runtime", "name": "comp:runtime", "color": "0052cc", "default": false, "description": "c++ runtime, performance issues (cpu)" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "chuanhaozhuge", "id": 64217314, "node_id": "MDQ6VXNlcjY0MjE3MzE0", "avatar_url": "https://avatars.githubusercontent.com/u/64217314?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chuanhaozhuge", "html_url": "https://github.com/chuanhaozhuge", "followers_url": "https://api.github.com/users/chuanhaozhuge/followers", "following_url": "https://api.github.com/users/chuanhaozhuge/following{/other_user}", "gists_url": "https://api.github.com/users/chuanhaozhuge/gists{/gist_id}", "starred_url": "https://api.github.com/users/chuanhaozhuge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chuanhaozhuge/subscriptions", "organizations_url": "https://api.github.com/users/chuanhaozhuge/orgs", "repos_url": "https://api.github.com/users/chuanhaozhuge/repos", "events_url": "https://api.github.com/users/chuanhaozhuge/events{/privacy}", "received_events_url": "https://api.github.com/users/chuanhaozhuge/received_events", "type": "User", "site_admin": false }
[ { "login": "chuanhaozhuge", "id": 64217314, "node_id": "MDQ6VXNlcjY0MjE3MzE0", "avatar_url": "https://avatars.githubusercontent.com/u/64217314?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chuanhaozhuge", "html_url": "https://github.com/chuanhaozhuge", "followers_url": "https://api.github.com/users/chuanhaozhuge/followers", "following_url": "https://api.github.com/users/chuanhaozhuge/following{/other_user}", "gists_url": "https://api.github.com/users/chuanhaozhuge/gists{/gist_id}", "starred_url": "https://api.github.com/users/chuanhaozhuge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chuanhaozhuge/subscriptions", "organizations_url": "https://api.github.com/users/chuanhaozhuge/orgs", "repos_url": "https://api.github.com/users/chuanhaozhuge/repos", "events_url": "https://api.github.com/users/chuanhaozhuge/events{/privacy}", "received_events_url": "https://api.github.com/users/chuanhaozhuge/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-14T03:09:42
2023-07-19T21:27:24
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0rc0 ### Custom Code Yes ### OS Platform and Distribution CentOS Linux 7 ### Mobile device _No response_ ### Python version 3.7.5 ### Bazel version bazel 3.7.2 ### GCC/Compiler version gcc-9 ### CUDA/cuDNN version cuda 11, cudnn 8 ### GPU model and memory Tesla V100S ### Current Behaviour? In `CopyTensor::ViaDMA`, `alloc_attr `decides the direction of memory copy. However, sometimes `alloc_attr `does not keep the same as the Tensor pointer's underlying memory type. In my case,`src_alloc_attr.on_host()` is `True`, but `input->GetMemoryType()` equals to `kDevice`. So this results the memory copy direction in this function is cpu->gpu, but actually the direction should be gpu -> gpu. I think this bug does not reveal is because the cuda driver api, like `cuMemcpyHtoD()`, does not care about the direction if it's H to D or others, it only cares about the pointer attribute, if the src pointer is on device and dst pointer is also on device, even if we call `cuMemcpyHtoD()`, cuda driver would still do D to D copy. This feature would cover many bugs. I haven't figured out where did the `on_host `attribute is set. From my understanding so far, same allocator object would be reused on different tensors, but the `on_host `attribute is one-way, once it's been set `on_host`, it cannot be unset later. This might cause some issue? Also, why wouln't we just use `input->GetMemoryType()` to decieds the memory copy direction, instead of the `on_host `attribute of `alloc_attr` I meet this issue when I run horovod unit test case. Add some log message in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/common_runtime/copy_tensor.cc#L219 , such as ``` if(!src_alloc_attr.on_host() && (input->GetMemoryType()==AllocatorMemoryType::kHostPageable || input->GetMemoryType()==AllocatorMemoryType::kHostPinned)){ std::cout<<"!!!!!!! src alloc not on host, but input mem type is on host"<< std::endl; } if( src_alloc_attr.on_host() && input->GetMemoryType()==AllocatorMemoryType::kDevice) { std::cout<<"!!!!!!! src alloc on host, but input mem is on device" << std::endl; } if(!dst_alloc_attr.on_host() && (output->GetMemoryType()==AllocatorMemoryType::kHostPageable || output->GetMemoryType()==AllocatorMemoryType::kHostPinned)){ std::cout<<"!!!!!!! dst alloc not on host, but output mem type is on host"<< std::endl; } if( dst_alloc_attr.on_host() && output->GetMemoryType()==AllocatorMemoryType::kDevice) { std::cout<<"!!!!!!! dst alloc on host, but output mem is on device" << std::endl; } ``` For me, I ran horovod `alltoall Op` unit test case to reproduce this issue. But this issue might reveal in other cases. ### Standalone code to reproduce the issue ```shell Run horovod unit test case can reproduce this issue: https://github.com/horovod/horovod/blob/master/test/parallel/test_tensorflow.py horovodrun --mpi -np 2 pytest -s -v test_tensorflow.py::TensorFlowTests::test_horovod_alltoall_gpu. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60856/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60856/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60855
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60855/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60855/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60855/events
https://github.com/tensorflow/tensorflow/issues/60855
1,755,829,197
I_kwDOArmXAs5op9PN
60,855
Ensuring SavedModel is in inference mode
{ "login": "p3achyjr", "id": 8763808, "node_id": "MDQ6VXNlcjg3NjM4MDg=", "avatar_url": "https://avatars.githubusercontent.com/u/8763808?v=4", "gravatar_id": "", "url": "https://api.github.com/users/p3achyjr", "html_url": "https://github.com/p3achyjr", "followers_url": "https://api.github.com/users/p3achyjr/followers", "following_url": "https://api.github.com/users/p3achyjr/following{/other_user}", "gists_url": "https://api.github.com/users/p3achyjr/gists{/gist_id}", "starred_url": "https://api.github.com/users/p3achyjr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/p3achyjr/subscriptions", "organizations_url": "https://api.github.com/users/p3achyjr/orgs", "repos_url": "https://api.github.com/users/p3achyjr/repos", "events_url": "https://api.github.com/users/p3achyjr/events{/privacy}", "received_events_url": "https://api.github.com/users/p3achyjr/received_events", "type": "User", "site_admin": false }
[ { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 1097543484, "node_id": "MDU6TGFiZWwxMDk3NTQzNDg0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:runtime", "name": "comp:runtime", "color": "0052cc", "default": false, "description": "c++ runtime, performance issues (cpu)" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @p3achyjr ,\r\n\r\nApologies for the delayed response. If the model uses dropout or another technique in which the forward pass differs between training and inference (like batch normalization), the `__call__` method takes an optional, Python-valued `training=` argument that `defaults to False` but `can be set to True`\r\n\r\nYou can use ExportArchive to write SavedModel artifacts (e.g. for inference or for training). Please refer an attached example [here](https://www.tensorflow.org/api_docs/python/tf/keras/export/ExportArchive).\r\n\r\nThanks!\r\n\r\n", "Sorry about the delay on all my issues. Thanks for getting back, this is really helpful :)", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60855\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60855\">No</a>\n" ]
2023-06-14T00:23:01
2023-06-27T17:26:44
2023-06-27T17:26:41
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution Debian GNU/Linux 10 ### Mobile device _No response_ ### Python version 3.7 ### Bazel version _No response_ ### GCC/Compiler version 9 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I am saving a model via `model.save` from Keras, then later loading the graph in C++ and running inference through it. How can I ensure that the graph is in inference mode? In C++, I can only invoke the graph via feed and fetch names, and there is no feed name for the `is_training` parameter. This is important for batchnorm. I've copied the output from `saved_model_cli` below. ### Standalone code to reproduce the issue ```shell signature_def['__saved_model_init_op']: The given SavedModel SignatureDef contains the following input(s): The given SavedModel SignatureDef contains the following output(s): outputs['__saved_model_init_op'] tensor_info: dtype: DT_INVALID shape: unknown_rank name: NoOp Method name is: signature_def['serving_default']: The given SavedModel SignatureDef contains the following input(s): inputs['args_0'] tensor_info: dtype: DT_FLOAT shape: (-1, 19, 19, 7) name: serving_default_args_0:0 inputs['args_1'] tensor_info: dtype: DT_HALF shape: (-1, 1) name: serving_default_args_1:0 The given SavedModel SignatureDef contains the following output(s): outputs['output_1'] tensor_info: dtype: DT_FLOAT shape: (-1, 362) name: StatefulPartitionedCall:0 outputs['output_2'] tensor_info: dtype: DT_FLOAT shape: (-1, 2) name: StatefulPartitionedCall:1 outputs['output_3'] tensor_info: dtype: DT_FLOAT shape: (-1, 19, 19, 1) name: StatefulPartitionedCall:2 outputs['output_4'] tensor_info: dtype: DT_FLOAT shape: (-1, 800) name: StatefulPartitionedCall:3 outputs['output_5'] tensor_info: dtype: DT_FLOAT shape: (-1, 1) name: StatefulPartitionedCall:4 Method name is: tensorflow/serving/predict Concrete Functions: Function Name: '__call__' Option #1 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float16, name='game_state') Argument #3 DType: bool Value: True Option #2 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float16, name='game_state') Argument #3 DType: bool Value: False Function Name: '_default_save_signature' Option #1 Callable with: Argument #1 args_0: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='args_0') Argument #2 args_1: TensorSpec(shape=(None, 1), dtype=tf.float16, name='args_1') Function Name: 'call_and_return_all_conditional_losses' Option #1 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float16, name='game_state') Argument #3 DType: bool Value: False Option #2 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float16, name='game_state') Argument #3 DType: bool Value: True Function Name: 'infer_float' Option #1 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float32, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float32, name='game_state') Function Name: 'infer_mixed' Option #1 Callable with: Argument #1 board_state: TensorSpec(shape=(None, 19, 19, 7), dtype=tf.float16, name='board_state') Argument #2 game_state: TensorSpec(shape=(None, 1), dtype=tf.float16, name='game_state') ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60855/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60855/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60854
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60854/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60854/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60854/events
https://github.com/tensorflow/tensorflow/issues/60854
1,755,544,438
I_kwDOArmXAs5oo3t2
60,854
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH
{ "login": "monajalal", "id": 1892917, "node_id": "MDQ6VXNlcjE4OTI5MTc=", "avatar_url": "https://avatars.githubusercontent.com/u/1892917?v=4", "gravatar_id": "", "url": "https://api.github.com/users/monajalal", "html_url": "https://github.com/monajalal", "followers_url": "https://api.github.com/users/monajalal/followers", "following_url": "https://api.github.com/users/monajalal/following{/other_user}", "gists_url": "https://api.github.com/users/monajalal/gists{/gist_id}", "starred_url": "https://api.github.com/users/monajalal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/monajalal/subscriptions", "organizations_url": "https://api.github.com/users/monajalal/orgs", "repos_url": "https://api.github.com/users/monajalal/repos", "events_url": "https://api.github.com/users/monajalal/events{/privacy}", "received_events_url": "https://api.github.com/users/monajalal/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 3797168204, "node_id": "LA_kwDOArmXAs7iVDBM", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8", "name": "TF 2.8", "color": "5DC9D0", "default": false, "description": "" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@monajalal,\r\nTensorflow v2.8.0 is compatible with python 3.7-3.10, GCC compiler - 7.3.1, Bazel - 4.2.1, cuDNN 8.1 and CUDA 11.2. Could you please try to install tensorflow v2.8 with the tested build configurations.\r\nhttps://www.tensorflow.org/install/source#gpu\r\n\r\nThank you!\r\n\r\n\r\n\r\n", "@tilakrayal \r\nI have no idea what may have changed but I ran the code again today and it's working. Any thoughts?\r\n\r\n```\r\n(samurai) mona@ard-gpu-01:~/samurai$ python train_samurai.py --config configs/samurai/samurai.txt --datadir data/duck/ --basedir . --expname duck_test --gpu 0\r\nNamespace(config=None, basedir='.', expname='duck_test', batch_size=1024, learning_rate=0.0001, epochs=150, steps_per_epoch=2000, gpu='0', tpu=None, debug=False, profile=False, perturb=1.0, raw_noise_std=0.0, coarse_samples=64, linear_disparity_sampling=False, fine_samples=128, fourier_frequency=10, direction_fourier_frequency=4, random_encoding_offsets=True, fine_net_width=128, fine_net_depth=8, coarse_net_width=128, coarse_net_depth=6, appearance_latent_dim=32, diffuse_latent_dim=24, fix_diffuse=True, camera_distribution='sphere', use_fully_random_cameras=False, random_cameras_per_view=4, min_softmax_scaler=1.0, max_softmax_scaler=10.0, camera_weight_update_lr=0.3, camera_weight_update_momentum=0.75, bounding_size=0.5, resolution_factor=4, advanced_loss_done=80000, network_gradient_norm_clipping=0.1, camera_gradient_norm_clipping=-1, not_learn_r=False, not_learn_t=False, not_learn_f=False, edge_align_step=200, num_edge_align_steps=50, pretrained_camera_poses_folder=None, start_f_optimization=90000, start_fourier_anneal=0, finish_fourier_anneal=50000, slow_scheduler_decay=100000, brdf_schedule_decay=40000, lambda_smoothness=0.01, smoothness_bound_dividier=200, coarse_distortion_lambda=0.001, fine_distortion_lambda=0, normal_direction_lambda=0.005, mlp_normal_direction_lambda=0.0003, disable_posterior_scaling=False, disable_mask_uncertainty=True, lambda_brdf_decoder_smoothness=0.1, lambda_brdf_decoder_sparsity=0.01, camera_lr=0.003, camera_lr_decay=70, camera_regularization=0.1, aim_center_regularization=10.0, camera_rotation='lookat', learn_camera_offsets=True, basecolor_metallic=True, skip_decomposition=False, compose_on_white=True, rotating_object=False, single_env=False, brdf_preintegration_path='data/neural_pil/BRDFLut.hdr', illumination_network_path='data/neural_pil/illumination-network', datadir='data/duck/', max_resolution_dimension=400, test_holdout=16, dataset='samurai', load_gt_poses=False, canonical_pose=0, log_step=100, weights_epoch=5, validation_epoch=5, testset_epoch=150, video_epoch=50, lrate_decay=300, render_only=False)\r\n2023-06-21 08:35:27.209395: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-06-21 08:35:27.246961: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/home/mona/MVTec/HALCON-23.05-Progress//lib/x64-linux:/usr/local/cuda-11.7/lib64:/home/mona/onnx-tensorrt/build:\r\n2023-06-21 08:35:27.246980: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\nUtilizing 0 GPUs for training.\r\n2023-06-21 08:35:28.412840: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA\r\nTo enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n(70, 3)\r\nModel: \"sequential_12\"\r\n_________________________________________________________________\r\n Layer (type) Output Shape Param # \r\n=================================================================\r\n MappingNetwork/Layer_0 (Den (None, 128) 16512 \r\n se) \r\n \r\n MappingNetwork/Layer_1 (Den (None, 128) 16512 \r\n se) \r\n \r\n MappingNetwork/Final (Dense (None, 768) 99072 \r\n ) \r\n \r\n reshape_1 (Reshape) (None, 2, 3, 128) 0 \r\n \r\n=================================================================\r\nTotal params: 132,096\r\nTrainable params: 132,096\r\nNon-trainable params: 0\r\n_________________________________________________________________\r\nModel: \"sequential_13\"\r\n_________________________________________________________________\r\n Layer (type) Output Shape Param # \r\n=================================================================\r\n ConditionalNetwork/Dense1 ( (None, 32) 192 \r\n Dense) \r\n \r\n ConditionalNetwork/DenseFin (None, 256) 8448 \r\n al (Dense) \r\n \r\n reshape_2 (Reshape) (None, 2, 128) 0 \r\n \r\n=================================================================\r\nTotal params: 8,640\r\nTrainable params: 8,640\r\nNon-trainable params: 0\r\n_________________________________________________________________\r\nFound ckpts []\r\nStarting training in epoch 0 at step 0\r\nStart Training...\r\n/home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor(\"gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Reshape_1:0\", shape=(1024,), dtype=int32), values=Tensor(\"gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Reshape:0\", shape=(1024, 1), dtype=float32), dense_shape=Tensor(\"gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Cast:0\", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.\r\n warnings.warn(\r\n/home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor(\"gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Reshape_1:0\", shape=(1024,), dtype=int32), values=Tensor(\"gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Reshape:0\", shape=(1024, 1), dtype=float32), dense_shape=Tensor(\"gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Cast:0\", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.\r\n warnings.warn(\r\n/home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor(\"gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Reshape_1:0\", shape=(1024,), dtype=int32), values=Tensor(\"gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Reshape:0\", shape=(1024, 1), dtype=float32), dense_shape=Tensor(\"gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Cast:0\", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.\r\n warnings.warn(\r\n/home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor(\"gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Reshape_1:0\", shape=(1024,), dtype=int32), values=Tensor(\"gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Reshape:0\", shape=(1024, 1), dtype=float32), dense_shape=Tensor(\"gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Cast:0\", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.\r\n warnings.warn(\r\n```\r\n![Screenshot from 2023-06-21 08-48-56](https://github.com/tensorflow/tensorflow/assets/1892917/77813399-a426-49df-b0da-2c3f24be4c00)\r\n", "nevermind still have the error despite training going on\r\n2023-06-21 08:35:27.246961: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/home/mona/MVTec/HALCON-23.05-Progress//lib/x64-linux:/usr/local/cuda-11.7/lib64:/home/mona/onnx-tensorrt/build:\r\n\r\nAlso I am using Python 3.9 not 3.7", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60854\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60854\">No</a>\n" ]
2023-06-13T19:41:41
2023-06-21T17:43:21
2023-06-21T17:43:18
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.8.0 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04 ### Mobile device _No response_ ### Python version Python 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03) ### Bazel version bazel 5.3.2 ### GCC/Compiler version gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 ### CUDA/cuDNN version 11.2/8 in conda env ### GPU model and memory laptop 3080 RTX ### Current Behaviour? A bug happened! ### Standalone code to reproduce the issue ```shell I have tensorflow 2 installed and also from the code below I see cudnn 8 is found. (samurai) mona@ard-gpu-01:~/samurai$ cat cudnn_test.py import tensorflow as tf sys_details = tf.sysconfig.get_build_info() cuda_version = sys_details["cuda_version"] print(cuda_version) cudnn_version = sys_details["cudnn_version"] print(cudnn_version) cuda_compute_capabilities = sys_details["cuda_compute_capabilities"] print(cuda_compute_capabilities) (samurai) mona@ard-gpu-01:~/samurai$ python cudnn_test.py 11.2 8 ['sm_35', 'sm_50', 'sm_60', 'sm_70', 'sm_75', 'compute_80'] ``` However, when I run the following command, I get an error that cudnn 8 is not found. ``` (samurai) mona@ard-gpu-01:~/samurai$ python train_samurai.py --config configs/samurai/samurai.txt --datadir data/duck/ --basedir . --expname duck_test --gpu 0 Namespace(config=None, basedir='.', expname='duck_test', batch_size=1024, learning_rate=0.0001, epochs=150, steps_per_epoch=2000, gpu='0', tpu=None, debug=False, profile=False, perturb=1.0, raw_noise_std=0.0, coarse_samples=64, linear_disparity_sampling=False, fine_samples=128, fourier_frequency=10, direction_fourier_frequency=4, random_encoding_offsets=True, fine_net_width=128, fine_net_depth=8, coarse_net_width=128, coarse_net_depth=6, appearance_latent_dim=32, diffuse_latent_dim=24, fix_diffuse=True, camera_distribution='sphere', use_fully_random_cameras=False, random_cameras_per_view=4, min_softmax_scaler=1.0, max_softmax_scaler=10.0, camera_weight_update_lr=0.3, camera_weight_update_momentum=0.75, bounding_size=0.5, resolution_factor=4, advanced_loss_done=80000, network_gradient_norm_clipping=0.1, camera_gradient_norm_clipping=-1, not_learn_r=False, not_learn_t=False, not_learn_f=False, edge_align_step=200, num_edge_align_steps=50, pretrained_camera_poses_folder=None, start_f_optimization=90000, start_fourier_anneal=0, finish_fourier_anneal=50000, slow_scheduler_decay=100000, brdf_schedule_decay=40000, lambda_smoothness=0.01, smoothness_bound_dividier=200, coarse_distortion_lambda=0.001, fine_distortion_lambda=0, normal_direction_lambda=0.005, mlp_normal_direction_lambda=0.0003, disable_posterior_scaling=False, disable_mask_uncertainty=True, lambda_brdf_decoder_smoothness=0.1, lambda_brdf_decoder_sparsity=0.01, camera_lr=0.003, camera_lr_decay=70, camera_regularization=0.1, aim_center_regularization=10.0, camera_rotation='lookat', learn_camera_offsets=True, basecolor_metallic=True, skip_decomposition=False, compose_on_white=True, rotating_object=False, single_env=False, brdf_preintegration_path='data/neural_pil/BRDFLut.hdr', illumination_network_path='data/neural_pil/illumination-network', datadir='data/duck/', max_resolution_dimension=400, test_holdout=16, dataset='samurai', load_gt_poses=False, canonical_pose=0, log_step=100, weights_epoch=5, validation_epoch=5, testset_epoch=150, video_epoch=50, lrate_decay=300, render_only=False) 2023-06-13 15:35:10.002485: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2023-06-13 15:35:10.022702: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/home/mona/MVTec/HALCON-23.05-Progress//lib/x64-linux:/usr/local/cuda-11.7/lib64:/home/mona/onnx-tensorrt/build: 2023-06-13 15:35:10.022715: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... Utilizing 0 GPUs for training. 2023-06-13 15:35:11.092766: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. (70, 3) Model: "sequential_12" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= MappingNetwork/Layer_0 (Den (None, 128) 16512 se) MappingNetwork/Layer_1 (Den (None, 128) 16512 se) MappingNetwork/Final (Dense (None, 768) 99072 ) reshape_1 (Reshape) (None, 2, 3, 128) 0 ================================================================= Total params: 132,096 Trainable params: 132,096 Non-trainable params: 0 _________________________________________________________________ Model: "sequential_13" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= ConditionalNetwork/Dense1 ( (None, 32) 192 Dense) ConditionalNetwork/DenseFin (None, 256) 8448 al (Dense) reshape_2 (Reshape) (None, 2, 128) 0 ================================================================= Total params: 8,640 Trainable params: 8,640 Non-trainable params: 0 _________________________________________________________________ Found ckpts [] Starting training in epoch 0 at step 0 Start Training... /home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Reshape_1:0", shape=(1024,), dtype=int32), values=Tensor("gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Reshape:0", shape=(1024, 1), dtype=float32), dense_shape=Tensor("gradients/interpolate_bilinear/gather-bottom_right/GatherV2_grad/Cast:0", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory. warnings.warn( /home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Reshape_1:0", shape=(1024,), dtype=int32), values=Tensor("gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Reshape:0", shape=(1024, 1), dtype=float32), dense_shape=Tensor("gradients/interpolate_bilinear/gather-bottom_left/GatherV2_grad/Cast:0", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory. warnings.warn( /home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Reshape_1:0", shape=(1024,), dtype=int32), values=Tensor("gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Reshape:0", shape=(1024, 1), dtype=float32), dense_shape=Tensor("gradients/interpolate_bilinear/gather-top_right/GatherV2_grad/Cast:0", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory. warnings.warn( /home/mona/anaconda3/envs/samurai/lib/python3.9/site-packages/tensorflow/python/framework/indexed_slices.py:444: UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Reshape_1:0", shape=(1024,), dtype=int32), values=Tensor("gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Reshape:0", shape=(1024, 1), dtype=float32), dense_shape=Tensor("gradients/interpolate_bilinear/gather-top_left/GatherV2_grad/Cast:0", shape=(2,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory. warnings.warn( 25/2000 [..............................] - ETA: 42:41 - loss: 1.8824 - loss_camera: 7.2076 - fine_loss: 1.8019 ``` ``` ### Relevant log output ```shell (samurai) mona@ard-gpu-01:~/samurai$ lsb_release -a LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy (samurai) mona@ard-gpu-01:~/samurai$ uname -a Linux ard-gpu-01 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 x86_64 x86_64 GNU/Linux ``` ``` (samurai) mona@ard-gpu-01:~/samurai$ nvidia-smi Tue Jun 13 15:38:44 2023 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 530.30.02 Driver Version: 530.30.02 CUDA Version: 12.1 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 3080 L... On | 00000000:01:00.0 Off | N/A | | N/A 49C P8 17W / 90W| 102MiB / 16384MiB | 21% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 2549 G /usr/lib/xorg/Xorg 95MiB | | 0 N/A N/A 2983 G ...libexec/gnome-remote-desktop-daemon 3MiB | +---------------------------------------------------------------------------------------+ ``` ``` (samurai) mona@ard-gpu-01:~/samurai$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Jun__8_16:49:14_PDT_2022 Cuda compilation tools, release 11.7, V11.7.99 Build cuda_11.7.r11.7/compiler.31442593_0 ``` The code is from this repo: https://github.com/google/samurai ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60854/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60854/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60853
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60853/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60853/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60853/events
https://github.com/tensorflow/tensorflow/pull/60853
1,755,367,504
PR_kwDOArmXAs5S6b6t
60,853
Update version numbers for TensorFlow 2.13.0-rc2
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-13T17:35:44
2023-06-15T01:09:45
2023-06-15T01:08:30
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60853", "html_url": "https://github.com/tensorflow/tensorflow/pull/60853", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60853.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60853.patch", "merged_at": "2023-06-15T01:08:30" }
Before merging this PR, please double check that it has correctly updated `core/public/version.h`, `tools/pip_package/setup.py`, and `tensorflow/tensorflow.bzl`. Also review the execution notes below: ``` Major: 2 -> 2 Minor: 13 -> 13 Patch: 0 -> 0 WARNING: Below are potentially instances of lingering old version string "2.13.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! tensorflow/tools/pip_package/setup.py:50:2.13.0 tensorflow/tools/pip_package/setup.py:116:2.13.0 tensorflow/tools/pip_package/setup.py:117:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:28:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:29:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:30:2.13.0 tensorflow/lite/core/c/c_api.h:116:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:87:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:136:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:140:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:167:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:252:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:262:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:311:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:319:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:322:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:334:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:359:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:415:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:416:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:417:2.13.0 tensorflow/tensorflow.bzl:74:2.13.0 WARNING: Below are potentially instances of lingering old version string "2.13.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! tensorflow/tools/pip_package/setup.py:50:2.13.0 tensorflow/tools/pip_package/setup.py:116:2.13.0 tensorflow/tools/pip_package/setup.py:117:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.13.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:28:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:29:2.13.0 tensorflow/tools/ci_build/release/requirements_common.txt:30:2.13.0 tensorflow/lite/core/c/c_api.h:116:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:87:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:136:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:140:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:167:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:252:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:262:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:311:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:319:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:322:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:334:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:359:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:415:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:416:2.13.0 tensorflow/lite/tools/versioning/runtime_version.cc:417:2.13.0 tensorflow/tensorflow.bzl:74:2.13.0 ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60853/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60853/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60852
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60852/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60852/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60852/events
https://github.com/tensorflow/tensorflow/pull/60852
1,755,273,216
PR_kwDOArmXAs5S6Hc9
60,852
Restore use of py_strict_test to dtensor unit tests
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-13T16:27:56
2023-06-14T07:17:56
2023-06-14T00:21:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60852", "html_url": "https://github.com/tensorflow/tensorflow/pull/60852", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60852.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60852.patch", "merged_at": "2023-06-14T00:21:02" }
This will fix the dtensor pip tests
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60852/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60852/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60851
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60851/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60851/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60851/events
https://github.com/tensorflow/tensorflow/pull/60851
1,754,711,890
PR_kwDOArmXAs5S4K8L
60,851
Simplified tflite::transpose_utils::Flatten function
{ "login": "songziming", "id": 4200114, "node_id": "MDQ6VXNlcjQyMDAxMTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/4200114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/songziming", "html_url": "https://github.com/songziming", "followers_url": "https://api.github.com/users/songziming/followers", "following_url": "https://api.github.com/users/songziming/following{/other_user}", "gists_url": "https://api.github.com/users/songziming/gists{/gist_id}", "starred_url": "https://api.github.com/users/songziming/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/songziming/subscriptions", "organizations_url": "https://api.github.com/users/songziming/orgs", "repos_url": "https://api.github.com/users/songziming/repos", "events_url": "https://api.github.com/users/songziming/events{/privacy}", "received_events_url": "https://api.github.com/users/songziming/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60851/checks?check_run_id=14220117545) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-06-13T11:56:12
2023-07-25T17:17:15
2023-07-25T17:17:14
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60851", "html_url": "https://github.com/tensorflow/tensorflow/pull/60851", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60851.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60851.patch", "merged_at": "2023-07-25T17:17:14" }
Same logic, but much simpler
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60851/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60851/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60850
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60850/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60850/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60850/events
https://github.com/tensorflow/tensorflow/pull/60850
1,754,458,978
PR_kwDOArmXAs5S3S7L
60,850
[Linaro:ARM_CI] Fix permissions for running nonpip tests
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-13T09:35:15
2023-07-04T08:58:06
2023-06-13T14:14:17
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60850", "html_url": "https://github.com/tensorflow/tensorflow/pull/60850", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60850.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60850.patch", "merged_at": "2023-06-13T14:14:17" }
Now that nonpip tests are being run, need to apply the same permissions fixes as used in the pip tests.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60850/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60850/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60849
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60849/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60849/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60849/events
https://github.com/tensorflow/tensorflow/issues/60849
1,753,930,885
I_kwDOArmXAs5oityF
60,849
Using C api and library
{ "login": "panhu", "id": 11703018, "node_id": "MDQ6VXNlcjExNzAzMDE4", "avatar_url": "https://avatars.githubusercontent.com/u/11703018?v=4", "gravatar_id": "", "url": "https://api.github.com/users/panhu", "html_url": "https://github.com/panhu", "followers_url": "https://api.github.com/users/panhu/followers", "following_url": "https://api.github.com/users/panhu/following{/other_user}", "gists_url": "https://api.github.com/users/panhu/gists{/gist_id}", "starred_url": "https://api.github.com/users/panhu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/panhu/subscriptions", "organizations_url": "https://api.github.com/users/panhu/orgs", "repos_url": "https://api.github.com/users/panhu/repos", "events_url": "https://api.github.com/users/panhu/events{/privacy}", "received_events_url": "https://api.github.com/users/panhu/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @panhu \r\n\r\nCould you please provide the steps you have followed and the version of TF used inorder to better understand the issue?\r\n\r\nThanks.", "Ok,this is my code(Official provided sample code “”c_test.c“”):\r\n\r\n#include \"include/core/c/c_api.h\"\r\n#include \"include/core/c/c_api_experimental.h\"\r\n#include \"include/core/c/common.h\"\r\n#include \"include/core/c/builtin_op_data.h\"\r\n\r\n// This file exists just to verify that the above header files above can build,\r\n// link, and run as \"C\" code.\r\n\r\n#ifdef __cplusplus\r\n#error \"This file should be compiled as C code, not as C++.\"\r\n#endif\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n\r\nstatic void CheckFailed(const char *expression, const char *filename,\r\n int line_number) {\r\n fprintf(stderr, \"ERROR: CHECK failed: %s:%d: %s\\n\", filename, line_number,\r\n expression);\r\n fflush(stderr);\r\n abort();\r\n}\r\n\r\n// We use an extra level of macro indirection here to ensure that the\r\n// macro arguments get evaluated, so that in a call to CHECK(foo),\r\n// the call to STRINGIZE(condition) in the definition of the CHECK\r\n// macro results in the string \"foo\" rather than the string \"condition\".\r\n#define STRINGIZE(expression) STRINGIZE2(expression)\r\n#define STRINGIZE2(expression) #expression\r\n\r\n// Like assert(), but not dependent on NDEBUG.\r\n#define CHECK(condition) \\\r\n ((condition) ? (void)0 \\\r\n : CheckFailed(STRINGIZE(condition), __FILE__, __LINE__))\r\n#define ASSERT_EQ(expected, actual) CHECK((expected) == (actual))\r\n#define ASSERT_NE(expected, actual) CHECK((expected) != (actual))\r\n#define ASSERT_STREQ(expected, actual) \\\r\n ASSERT_EQ(0, strcmp((expected), (actual)))\r\n\r\n// Test the TfLiteVersion function.\r\nstatic void TestVersion(void) {\r\n const char *version = TfLiteVersion();\r\n printf(\"Version = %s\\n\", version);\r\n CHECK(version[0] != '\\0');\r\n}\r\n\r\nstatic void TestInferenceUsingSignature(void) {\r\n TfLiteModel* model = TfLiteModelCreateFromFile(\r\n \"tensorflow/lite/testdata/multi_signatures.bin\");\r\n ASSERT_NE(model, NULL);\r\n\r\n TfLiteInterpreterOptions* options = TfLiteInterpreterOptionsCreate();\r\n ASSERT_NE(options, NULL);\r\n TfLiteInterpreterOptionsSetNumThreads(options, 2);\r\n\r\n TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options);\r\n ASSERT_NE(interpreter, NULL);\r\n\r\n // The options can be deleted immediately after interpreter creation.\r\n TfLiteInterpreterOptionsDelete(options);\r\n\r\n // (optional) Validate signatures\r\n ASSERT_EQ(TfLiteInterpreterGetSignatureCount(interpreter), 2);\r\n ASSERT_STREQ(TfLiteInterpreterGetSignatureKey(interpreter, 0), \"add\");\r\n ASSERT_STREQ(TfLiteInterpreterGetSignatureKey(interpreter, 1), \"sub\");\r\n\r\n // Validate signature \"add\"\r\n TfLiteSignatureRunner* add_runner =\r\n TfLiteInterpreterGetSignatureRunner(interpreter, \"add\");\r\n ASSERT_NE(add_runner, NULL);\r\n ASSERT_EQ(TfLiteSignatureRunnerGetInputCount(add_runner), 1);\r\n ASSERT_STREQ(TfLiteSignatureRunnerGetInputName(add_runner, 0), \"x\");\r\n ASSERT_EQ(TfLiteSignatureRunnerGetOutputCount(add_runner), 1);\r\n ASSERT_STREQ(TfLiteSignatureRunnerGetOutputName(add_runner, 0), \"output_0\");\r\n\r\n // Resize signature \"add\" input tensor \"x\"\r\n int input_dims[1] = {2};\r\n ASSERT_EQ(\r\n TfLiteSignatureRunnerResizeInputTensor(add_runner, \"x\", input_dims, 1),\r\n kTfLiteOk);\r\n\r\n // Allocate tensors for signature \"add\"\r\n ASSERT_EQ(TfLiteSignatureRunnerAllocateTensors(add_runner), kTfLiteOk);\r\n\r\n // Validate signature \"add\" input tensor \"x\"\r\n TfLiteTensor* input_tensor =\r\n TfLiteSignatureRunnerGetInputTensor(add_runner, \"x\");\r\n ASSERT_NE(input_tensor, NULL);\r\n ASSERT_EQ(TfLiteTensorType(input_tensor), kTfLiteFloat32);\r\n ASSERT_EQ(TfLiteTensorNumDims(input_tensor), 1);\r\n ASSERT_EQ(TfLiteTensorDim(input_tensor, 0), 2);\r\n ASSERT_EQ(TfLiteTensorByteSize(input_tensor), sizeof(float) * 2);\r\n ASSERT_NE(TfLiteTensorData(input_tensor), NULL);\r\n\r\n TfLiteQuantizationParams input_params =\r\n TfLiteTensorQuantizationParams(input_tensor);\r\n ASSERT_EQ(input_params.scale, 0.f);\r\n ASSERT_EQ(input_params.zero_point, 0);\r\n\r\n float input[2] = {2.f, 4.f};\r\n ASSERT_EQ(TfLiteTensorCopyFromBuffer(input_tensor, input, 2 * sizeof(float)),\r\n kTfLiteOk);\r\n ASSERT_EQ(TfLiteSignatureRunnerInvoke(add_runner), kTfLiteOk);\r\n\r\n const TfLiteTensor* output_tensor =\r\n TfLiteSignatureRunnerGetOutputTensor(add_runner, \"output_0\");\r\n ASSERT_NE(output_tensor, NULL);\r\n ASSERT_EQ(TfLiteTensorType(output_tensor), kTfLiteFloat32);\r\n ASSERT_EQ(TfLiteTensorNumDims(output_tensor), 1);\r\n ASSERT_EQ(TfLiteTensorDim(output_tensor, 0), 2);\r\n ASSERT_EQ(TfLiteTensorByteSize(output_tensor), sizeof(float) * 2);\r\n ASSERT_NE(TfLiteTensorData(output_tensor), NULL);\r\n\r\n TfLiteQuantizationParams output_params =\r\n TfLiteTensorQuantizationParams(output_tensor);\r\n ASSERT_EQ(output_params.scale, 0.f);\r\n ASSERT_EQ(output_params.zero_point, 0);\r\n\r\n float output[2];\r\n ASSERT_EQ(TfLiteTensorCopyToBuffer(output_tensor, output, 2 * sizeof(float)),\r\n kTfLiteOk);\r\n // Verify the result\r\n ASSERT_EQ(output[0], input[0] + 2.f);\r\n ASSERT_EQ(output[1], input[1] + 2.f);\r\n\r\n // The signature runner should be deleted before interpreter deletion.\r\n TfLiteSignatureRunnerDelete(add_runner);\r\n TfLiteInterpreterDelete(interpreter);\r\n // The model should only be deleted after destroying the interpreter.\r\n TfLiteModelDelete(model);\r\n}\r\n\r\nstatic void RunTests(void) {\r\n // TestVersion();\r\n TestInferenceUsingSignature();\r\n// TestRepeatResizeInputTensor();\r\n// TestInferenceUsingInterpreter();\r\n}\r\n\r\nint main(void) {\r\n RunTests();\r\n return 0;\r\n}\r\n\r\nMy Static library file is compiled with the following command:\r\n\r\nCmake../tensorflow_src/tensorflow/site/c\r\n\r\nCmake -- build- J \"\r\n\r\nThe Header file uses all the Header file in the core. I don't know whether there is a problem or whether there is a complete case reference for the c interface call.\r\n\r\nThanks!\r\n", "Hi @panhu, Help me understand your environment... it says you're using windows but you seem to be following *nix instructions.. are you using WSL? if so which version? 1 or 2? If so, which distribution?.. Are you trying to use the .a or .so file or both? Where did you put those files? how did you link them? How did you build the executable? exact steps as if you are writing a bash script is preferred. Thanks!", "Thank you for your reply. What I would like to know is whether there is a complete relevant case or document, starting from compiling the library file to the end using C for linking and using", "Hi @panhu, So the answer is complex, it really depends on what exactly you are trying to do, if you answer my questions that help me identify your environment, I am better able to direct you to the right resources. The file types you mentioned highly suggest a *nix environment, but the issue has this listed:\r\n\r\nSystem information\r\n-windows\r\n\r\nThis highly suggests that you are using WSL but I'm not sure if I'm misunderstanding or if the information was entered incorrectly somehow. It seems like you are using cmake for building the file but does your project use cmake? There's still a lot of ambiguity so for me to help you if you can answer my questions so that I can reduce the space of the problem we are working with will be great. Thanks! Also sometimes in the process of answering the questions, you are able to see the issue yourself.", "Thank you for your reply.My initial goal was to use the main function in C language code to call tflite on Linux or Windows, which is to use tflite's C interface. Therefore, I would like to know if there are complete related cases", "Hi @panhu, Can you try using this as an example, make sure it works in your environment then edit it to try what you want to do? https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "Hi:\r\nIf my framework is risc-v, does Tensorflow lite support it??", "Hi @panhu,\r\n\r\nHere are the supported platforms: https://www.tensorflow.org/lite/microcontrollers#supported_platforms\r\n\r\nIt does seem like there are successful projects with risc-v: https://www.luffca.com/2022/11/tflite-micro-naxriscv/ but I can't find any official documentation that it is supported unless it is a subset of one of those platforms.", "Thanks, Does tflite-micro have a C interface?", "Hello @panhu, Yes but documentation/examples are lite: https://www.tensorflow.org/lite/api_docs/c", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60849\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60849\">No</a>\n" ]
2023-06-13T02:47:27
2023-07-29T01:50:15
2023-07-29T01:50:12
NONE
null
null
null
**System information** -windows if possible): - TensorFlow Lite in Play windows - Google Play Services version **Standalone code to reproduce the issue** Hi: I have compiled tflite's Static library "libtensorflow-lite. a" and "libtensorflowite_c.so" using cmake according to the official document. However, when I introduced this library and used C to call it, the following error occurred: "undefined reference to ` __imp_TfLiteModelCreateFromFile '", undefined reference to`__ IMP_ TfLiteInterpreterOptionsCreate ' Do you know what caused it, or are there any relevant cases Thanks!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60849/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60849/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60848
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60848/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60848/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60848/events
https://github.com/tensorflow/tensorflow/issues/60848
1,753,609,790
I_kwDOArmXAs5ohfY-
60,848
tf.data.Dataset.map does not support randomization
{ "login": "kzhai", "id": 599366, "node_id": "MDQ6VXNlcjU5OTM2Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/599366?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kzhai", "html_url": "https://github.com/kzhai", "followers_url": "https://api.github.com/users/kzhai/followers", "following_url": "https://api.github.com/users/kzhai/following{/other_user}", "gists_url": "https://api.github.com/users/kzhai/gists{/gist_id}", "starred_url": "https://api.github.com/users/kzhai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kzhai/subscriptions", "organizations_url": "https://api.github.com/users/kzhai/orgs", "repos_url": "https://api.github.com/users/kzhai/repos", "events_url": "https://api.github.com/users/kzhai/events{/privacy}", "received_events_url": "https://api.github.com/users/kzhai/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "Hello, the problem you are facing @kzhai is because in TensorFlow, the operations within the tf.data.Dataset.map() function are executed eagerly, meaning they are executed immediately during the iteration (as they are run). On the other hand, NumPy's random functions are executed eagerly by default outside the TensorFlow computation graph. This causes the random values to be generated only once and remain static throughout the execution of the tf.data.Dataset.map() function.\r\n\r\nYou can use the `tf.py_function` function- Wraps a python / NumPy function into a TensorFlow op that executes it eagerly. This allows you to execute the NumPy code as a TensorFlow operation. \r\n[See documentation of py_function here.](https://www.tensorflow.org/api_docs/python/tf/py_function)\r\n\r\n- Change the NumPy function code in `test_function()` to:\r\n`x[f] = tf.py_function(lambda: np.random.randint(low=low, high=high), [], tf.int64)`\r\n\r\nOR you can use `tf.numpy_function` function - Wraps a python function and uses it as a TensorFlow op.\r\n[See numpy_function documentation here.](https://www.tensorflow.org/api_docs/python/tf/numpy_function)\r\n\r\n- Change the NumPy function code in `test_function()` to:\r\n`x[f] = tf.numpy_function(lambda: np.random.randint(low=low, high=high), [], tf.int64)` \r\n\r\nThis seems to work for me, hope it helps you a little to get started.\r\n\r\n[Here is a stack overflow discussion you might want to take a look at.](https://stackoverflow.com/questions/57236864/is-there-a-way-to-call-a-numpy-function-inside-a-tensorflow-session)", "Hello @sushreebarsa, can you please let me know if I understood the problem correctly or not? and is the solution suggest by me above relevant to solving the issue? Thank you.\r\n\r\n> Hello, the problem you are facing @kzhai is because in TensorFlow, the operations within the tf.data.Dataset.map() function are executed eagerly, meaning they are executed immediately during the iteration (as they are run). On the other hand, NumPy's random functions are executed eagerly by default outside the TensorFlow computation graph. This causes the random values to be generated only once and remain static throughout the execution of the tf.data.Dataset.map() function.\r\n> \r\n> You can use the `tf.py_function` function- Wraps a python / NumPy function into a TensorFlow op that executes it eagerly. This allows you to execute the NumPy code as a TensorFlow operation. [See documentation of py_function here.](https://www.tensorflow.org/api_docs/python/tf/py_function)\r\n> \r\n> * Change the NumPy function code in `test_function()` to:\r\n> `x[f] = tf.py_function(lambda: np.random.randint(low=low, high=high), [], tf.int64)`\r\n> \r\n> OR you can use `tf.numpy_function` function - Wraps a python function and uses it as a TensorFlow op. [See numpy_function documentation here.](https://www.tensorflow.org/api_docs/python/tf/numpy_function)\r\n> \r\n> * Change the NumPy function code in `test_function()` to:\r\n> `x[f] = tf.numpy_function(lambda: np.random.randint(low=low, high=high), [], tf.int64)`\r\n> \r\n> This seems to work for me, hope it helps you a little to get started.\r\n> \r\n> [Here is a stack overflow discussion you might want to take a look at.](https://stackoverflow.com/questions/57236864/is-there-a-way-to-call-a-numpy-function-inside-a-tensorflow-session)\r\n\r\n", "@aadityab7 Thank you for your response in this thread. \r\n\r\n@kzhai TensorFlow map() method of tf.data.Dataset used for transforming items in a dataset. Randomization in tf.data.Dataset.map is not random if that comes from outside of TF. It happens because the functions passed to tf.data transforms are traced and converted into eager execution. Incase of tracing the rd.random() and np.random.rand() are evaluated into constants. You can use TF ops too for simplification. Another option is to wrap non-tensorflow code in [tf.py_function](https://www.tensorflow.org/api_docs/python/tf/py_function), which executes arbitrary python code as a tensorflow op. \r\n\r\nThank you!\r\n\r\n ", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60848\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60848\">No</a>\n" ]
2023-06-12T21:17:01
2023-07-01T02:12:12
2023-07-01T02:12:08
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Didn't try. ### Source binary ### Tensorflow Version tf 2.11.0 ### Custom Code Yes ### OS Platform and Distribution MacOS ### Python version Python 3.8 It seems like `tf.data.Dataset.map` does not support randomization from `numpy`. For the sample code, it gives constant output from the `randint` function call, but if you switch the function from `numpy.random.randint` to `tf.random.uniform` (toggle the comment), then you get good randomization behavior. I am wondering if this is expected. ### Standalone code to reproduce the issue ```shell a = [{"key": i, "value": np.random.random()} for i in range(5)] dict_of_list = pd.DataFrame.from_records(a).to_dict( orient="list") keys = dict_of_list.keys() dataset = tf.data.Dataset.zip( tuple([ tf.data.Dataset.from_tensor_slices(dict_of_list[key]) for key in keys ]) ) dataset = dataset.map(lambda *x: {key: x[i] for i, key in enumerate(keys)}) for i in range(2): for b in dataset: print("before map:", i, b) def test_function(x, f="key", low=0, high=100): #x[f] = tf.random.uniform(shape=(), minval=1, maxval=5, dtype=tf.int32) # this is randomized x[f] = np.random.randint(low=low, high=high) # this is not randomized return x dataset = dataset.map(test_function) for i in range(2): for b in dataset: print("after map:", i, b) ``` ### Relevant log output ```shell before map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=0>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.9599878>} before map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=1>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.5124935>} before map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=2>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39335275>} before map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=3>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.1416868>} before map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=4>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39475128>} before map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=0>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.9599878>} before map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=1>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.5124935>} before map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=2>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39335275>} before map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=3>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.1416868>} before map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=4>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39475128>} after map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.9599878>} after map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.5124935>} after map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39335275>} after map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.1416868>} after map: 0 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39475128>} after map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.9599878>} after map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.5124935>} after map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39335275>} after map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.1416868>} after map: 1 {'key': <tf.Tensor: shape=(), dtype=int32, numpy=44>, 'value': <tf.Tensor: shape=(), dtype=float32, numpy=0.39475128>} ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60848/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60848/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60847
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60847/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60847/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60847/events
https://github.com/tensorflow/tensorflow/issues/60847
1,753,565,188
I_kwDOArmXAs5ohUgE
60,847
How to implement CollectiveAllReduceStrategy?
{ "login": "purvang3", "id": 39809304, "node_id": "MDQ6VXNlcjM5ODA5MzA0", "avatar_url": "https://avatars.githubusercontent.com/u/39809304?v=4", "gravatar_id": "", "url": "https://api.github.com/users/purvang3", "html_url": "https://github.com/purvang3", "followers_url": "https://api.github.com/users/purvang3/followers", "following_url": "https://api.github.com/users/purvang3/following{/other_user}", "gists_url": "https://api.github.com/users/purvang3/gists{/gist_id}", "starred_url": "https://api.github.com/users/purvang3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/purvang3/subscriptions", "organizations_url": "https://api.github.com/users/purvang3/orgs", "repos_url": "https://api.github.com/users/purvang3/repos", "events_url": "https://api.github.com/users/purvang3/events{/privacy}", "received_events_url": "https://api.github.com/users/purvang3/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 1093464312, "node_id": "MDU6TGFiZWwxMDkzNDY0MzEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:others", "name": "type:others", "color": "159b2e", "default": false, "description": "issues not falling in bug, perfromance, support, build and install or feature" }, { "id": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "running multiworkerstrategy using two node getting following error.\r\n```\r\nica:0/task:1/device:GPU:0 is joining a group with incompatible device typeCPU (group_key=3)\r\n2023-06-13 13:30:32.188736: E tensorflow/core/common_runtime/base_collective_executor.cc:249] BaseCollectiveExecutor::StartAbort INTERNAL: Device /job:worker/replica:0/task:1/device:GPU:0 is joining a group with incompatible device typeCPU (group_key=3)\r\nTraceback (most recent call last):\r\n File \"multinode_training/test1.py\", line 62, in <module>\r\n multi_worker_model = build_and_compile_cnn_model()\r\n File \"multinode_training/test1.py\", line 22, in build_and_compile_cnn_model\r\n model = tf.keras.Sequential(\r\n File \"/home/idps/.local/lib/python3.8/site-packages/tensorflow/python/trackable/base.py\", line 205, in _method_wrapper\r\n result = method(self, *args, **kwargs)\r\n File \"/home/idps/.local/lib/python3.8/site-packages/keras/utils/traceback_utils.py\", line 70, in error_handler\r\n raise e.with_traceback(filtered_tb) from None\r\n File \"/home/idps/.local/lib/python3.8/site-packages/tensorflow/python/eager/execute.py\", line 52, in quick_execute\r\n tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\r\ntensorflow.python.framework.errors_impl.InternalError: {{function_node __wrapped__CollectiveBcastSend_device_/job:worker/replica:0/task:0/device:CPU:0}} Collective ops is aborted by: Device /job:worker/replica:0/task:1/device:GPU:0 is joining a group with incompatible device typeCPU (group_key=3)\r\nThe error could be from a previous operation. Restart your program to reset. [Op:CollectiveBcastSend]\r\n```\r\n**Sample code**\r\n```\r\nimport json\r\nimport os\r\nimport sys\r\nimport time\r\nimport numpy as np\r\nimport tensorflow as tf\r\n\r\n#os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"-1\"\r\nif \".\" not in sys.path:\r\n sys.path.insert(0, \".\")\r\n\r\ndef mnist_dataset(batch_size):\r\n (x_train, y_train), _ = tf.keras.datasets.mnist.load_data()\r\n # The `x` arrays are in uint8 and have values in the range [0, 255].\r\n # You need to convert them to float32 with values in the range [0, 1]\r\n x_train = x_train / np.float32(255)\r\n y_train = y_train.astype(np.int64)\r\n train_dataset = tf.data.Dataset.from_tensor_slices((x_train, y_train)).shuffle(60000).repeat().batch(batch_size)\r\n return train_dataset\r\n\r\ndef build_and_compile_cnn_model():\r\n model = tf.keras.Sequential(\r\n [\r\n tf.keras.Input(shape=(28, 28)),\r\n tf.keras.layers.Reshape(target_shape=(28, 28, 1)),\r\n tf.keras.layers.Conv2D(32, 3, activation=\"relu\"),\r\n tf.keras.layers.Flatten(),\r\n tf.keras.layers.Dense(128, activation=\"relu\"),\r\n tf.keras.layers.Dense(10),\r\n ]\r\n )\r\n model.compile(\r\n loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),\r\n optimizer=tf.keras.optimizers.SGD(learning_rate=0.001),\r\n metrics=[\"accuracy\"],\r\n )\r\n return model\r\n\r\nstart_time = time.time()\r\n\r\ntf_config = {\r\n 'cluster': {\r\n 'worker': [server1ip:8087', server2ip:8087']\r\n },\r\n 'task': {'type': 'worker', 'index': 1}\r\n}\r\nos.environ['TF_CONFIG'] = json.dumps(tf_config)\r\nprint(os.environ['TF_CONFIG'])\r\nper_worker_batch_size = 64\r\ntf_config = json.loads(os.environ[\"TF_CONFIG\"])\r\nnum_workers = len(tf_config[\"cluster\"][\"worker\"])\r\n\r\nstrategy = tf.distribute.MultiWorkerMirroredStrategy()\r\nglobal_batch_size = 64\r\noptions = tf.data.Options()\r\noptions.experimental_distribute.auto_shard_policy = tf.data.experimental.AutoShardPolicy.DATA\r\nmulti_worker_dataset = mnist_dataset(global_batch_size)\r\nmulti_worker_dataset_with_shrd = multi_worker_dataset.with_options(options)\r\n\r\nwith strategy.scope():\r\n # Model building/compiling need to be within `strategy.scope()`.\r\n multi_worker_model = build_and_compile_cnn_model()\r\nmulti_worker_model.fit(multi_worker_dataset_with_shrd, epochs=50, steps_per_epoch=70)\r\nelapsed_time = time.time() - start_time\r\nstr_elapsed_time = time.strftime(\"%H : %M : %S\", time.gmtime(elapsed_time))\r\nprint(\">> Finished. Time elapsed: {}.\".format(str_elapsed_time))\r\n```\r\n**worker tf config**\r\n```\r\n{'cluster': {'worker': [server1ip:8087', server2ip:8087']},'task': {'type': 'worker', 'index': 0}}\r\n{'cluster': {'worker': [server1ip:8087', server2ip:8087']},'task': {'type': 'worker', 'index': 1}}\r\n```", "@purvang3,\r\nDistribution strategy that uses collective ops for all-reduce. It is similar to MirroredStrategy but it uses collective ops for reduction. By default it uses all local GPUs or CPU for single-worker training.\r\n\r\nWhen 'TF_CONFIG' environment variable is given, it parses cluster_spec, task_type and task_id from 'TF_CONFIG' and turns into a multi-worker strategy which mirrores models on GPUs of all machines in a cluster. In the current implementation, it uses all GPUs in a cluster and it assumes all workers have the same number of GPUs.\r\n\r\nCould you please take a look at the below file where the details are mentioned for the CollectiveAllReduceStrategy.\r\nhttps://github.com/tensorflow/tensorflow/blob/6f650f54e4c16be4fe94bc9e2172077481b224ac/tensorflow/python/distribute/collective_all_reduce_strategy.py\r\n", "@tilakrayal Thanks for reply.\r\n1) Based on your answer, CollectiveAllReduceStrategy **is not** MultiWorkerStrategy. Right? If not, then how to implement CollectiveAllReduceStrategy.\r\n\r\n2) I followed above example as well below for MultiWorkerStrategy, but training hangs and doesn't proceed. how can I make it work?\r\nhttps://www.tensorflow.org/tutorials/distribute/multi_worker_with_ctl", "using NCCL makes training hang. AUTO works fine.\r\n\r\noptions = tf.distribute.experimental.CommunicationOptions( implementation=tf.distribute.experimental.CommunicationImplementation.NCCL \r\n) \r\nstrategy = tf.distribute.MultiWorkerMirroredStrategy(communication_options=options) ", "CollectiveAllReduceStrategy is MultiWorkerMirrorStrategy. CollectiveAllReduceStrategy is a name we used in the implementation. Please refer to documentations of MultiWorkerMirrorStrategy.", "Thanks @w-xinyi. That was I expected after reading code.\r\n\r\nAlso as mentioned earlier, I am not able to run NCCL based communication. AUTO and RING works fine.\r\n\r\nNCCL version : 2.12.12-1+cuda11.6\r\nCUDA version : 11.6\r\ntensorflow version : 2.11", "According to the error message it's saying that you have both CPU and GPU in your cluster. In this case NCCL cannot be used.", "@w-xinyi . I am trying to run 2 nodes, each with 4 A100 gpus and same version of NCCL, cuda and tensorflow. I am running only on GPU. Also mentioned error is solved and there is no error when I use\r\ntf.distribute.experimental.CommunicationImplementation.RING or tf.distribute.experimental.CommunicationImplementation.AUTO.\r\n\r\nwhen I use tf.distribute.experimental.CommunicationImplementation.NCCL, **training hangs**, no error.", "This is expected because there are some edge cases that tf.distribute.experimental.CommunicationImplementation.NCCL could not support. From experiences, AUTO and RING could cover more cases. And when using AUTO, it will fall back to the supported CommunicationImplementation type when running into these cases.\r\n", "Thanks for reply @w-xinyi.\r\n\r\ngetting following error for my code. how can I resolve this?\r\n\r\n```\r\n2023-06-22 12:03:00.324764: I tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:630] TensorFloat-32 will be used for the matrix multiplication. This will only be logged once.\r\n2023-06-22 12:03:02.385092: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.385305: E tensorflow/core/common_runtime/ring_alg.cc:291] Aborting RingReduce with CANCELLED: Operation was cancelled for BufRendezvous key 1:159:0:0:0:0:1\r\n2023-06-22 12:03:02.385359: E tensorflow/core/common_runtime/ring_alg.cc:291] Aborting RingReduce with CANCELLED: RPC Request was cancelled\r\n2023-06-22 12:03:02.385971: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386056: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386133: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386209: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386278: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386336: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386400: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386461: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n2023-06-22 12:03:02.386524: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:417 : INVALID_ARGUMENT: Trying to access resource Resource-5-at-0x3584b140 located in device /job:worker/r\r\neplica:0/task:0/device:GPU:0 from device /job:worker/replica:0/task:0/device:GPU:1\r\n Cf. https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device\r\n```\r\n", "Could you please try adding tf.config.set_soft_device_placement(True)?", "Also, could you tell if this error is encountered when defining the model / compiling / model.fit /etc?", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "it was packages issue. solved.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60847\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60847\">No</a>\n" ]
2023-06-12T20:52:51
2023-07-05T22:07:41
2023-07-05T22:07:38
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Others ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2,9 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 18.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I am trying use CollectiveAllReduceStrategy using tf 2.9, but couldn't find much information. Based on following image, is **CollectiveAllReduceStrategy** is **MultiWorkerMirrorStrategy**? <img width="1095" alt="image" src="https://github.com/tensorflow/tensorflow/assets/39809304/fa23ea39-b713-4642-a7cd-6de8bb118c56"> Thanks ### Standalone code to reproduce the issue ```shell NA ``` ### Relevant log output ```shell NA ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60847/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60847/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60846
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60846/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60846/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60846/events
https://github.com/tensorflow/tensorflow/issues/60846
1,753,284,422
I_kwDOArmXAs5ogP9G
60,846
Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/pad.cc:79 SizeOfDimension(op_context->paddings, 0) != op_context->dims (4 != 1) Node number 0 (PAD) failed to prepare.
{ "login": "khirmansaleem", "id": 107273726, "node_id": "U_kgDOBmTd_g", "avatar_url": "https://avatars.githubusercontent.com/u/107273726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/khirmansaleem", "html_url": "https://github.com/khirmansaleem", "followers_url": "https://api.github.com/users/khirmansaleem/followers", "following_url": "https://api.github.com/users/khirmansaleem/following{/other_user}", "gists_url": "https://api.github.com/users/khirmansaleem/gists{/gist_id}", "starred_url": "https://api.github.com/users/khirmansaleem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/khirmansaleem/subscriptions", "organizations_url": "https://api.github.com/users/khirmansaleem/orgs", "repos_url": "https://api.github.com/users/khirmansaleem/repos", "events_url": "https://api.github.com/users/khirmansaleem/events{/privacy}", "received_events_url": "https://api.github.com/users/khirmansaleem/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @khirmansaleem \r\n\r\ncan you please mention the input and output details of the model ?\r\n\r\nAs mentioned [here](https://github.com/tensorflow/tensorflow/issues/499799), please check your input shapes if your model can handle multiple inputs.\r\n\r\nThanks.", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60846\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60846\">No</a>\n" ]
2023-06-12T18:07:28
2023-07-01T02:12:16
2023-07-01T02:12:10
NONE
null
null
null
I have converted my DenseNet-121 model to model.tflite and when i am loading it to android app and trying to make predictions, it's giving following errors : java.lang.IllegalStateException: Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/pad.cc:79 SizeOfDimension(op_context->paddings, 0) != op_context->dims (4 != 1) Node number 0 (PAD) failed to prepare. at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensors(Native Method) at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensorsIfNeeded(NativeInterpreterWrapper.java:308) at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:248) at org.tensorflow.lite.InterpreterImpl.runForMultipleInputsOutputs(InterpreterImpl.java:101) at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:77) at org.tensorflow.lite.InterpreterImpl.run(InterpreterImpl.java:94) at org.tensorflow.lite.Interpreter.run(Interpreter.java:77) at com.example.appleleafdiseasedetection.DiseaseDetector$2.onClick(DiseaseDetector.java:72) at android.view.View.performClick(View.java:7743) at android.view.View.performClickInternal(View.java:7720) at android.view.View.access$3700(View.java:854) at android.view.View$PerformClick.run(View.java:29111) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8309) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038) how can i solve it?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60846/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60846/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60845
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60845/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60845/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60845/events
https://github.com/tensorflow/tensorflow/issues/60845
1,753,260,093
I_kwDOArmXAs5ogKA9
60,845
TFLite: On device Training Fails. ERROR: Node number 69 (FlexReluGrad) failed to prepare.
{ "login": "Bhuvan-1", "id": 90998789, "node_id": "MDQ6VXNlcjkwOTk4Nzg5", "avatar_url": "https://avatars.githubusercontent.com/u/90998789?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bhuvan-1", "html_url": "https://github.com/Bhuvan-1", "followers_url": "https://api.github.com/users/Bhuvan-1/followers", "following_url": "https://api.github.com/users/Bhuvan-1/following{/other_user}", "gists_url": "https://api.github.com/users/Bhuvan-1/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bhuvan-1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bhuvan-1/subscriptions", "organizations_url": "https://api.github.com/users/Bhuvan-1/orgs", "repos_url": "https://api.github.com/users/Bhuvan-1/repos", "events_url": "https://api.github.com/users/Bhuvan-1/events{/privacy}", "received_events_url": "https://api.github.com/users/Bhuvan-1/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2915920098, "node_id": "MDU6TGFiZWwyOTE1OTIwMDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-flex", "name": "comp:lite-flex", "color": "2E0DFE", "default": false, "description": "" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Bhuvan-1 \r\n\r\nTo use the `select_ops` we require to build the flex delegate using bazel as mentioned and also recommended.\r\n\r\nI have tried it in Mac M1 and I was successfully able to be build the flex delegate. Please find the screenshot.\r\n\r\n<img width=\"567\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/b720db43-7cce-4d52-8b4e-026e415c5340\">\r\n\r\n\r\nCan you try [this](https://github.com/tensorflow/tensorflow/issues/55536#issuecomment-1262358520) steps for CMake and see if it works for you?", "@pjpratik , The issue in my pc is that, when I try to build the library it runs for some time, and the terminal gets killed suddenly, probably due to Out Of Memory killer. So problem is with my pc ig. Where can I find a pre-built library?", "Hi @Bhuvan-1\r\n\r\nThe pre built for binaries for different tools are available [here](https://www.tensorflow.org/lite/performance/implementing_delegate#resources) but for flex delegate we may have to build on our own or try the 3rd party pre built binaries. \r\n\r\nCheck [this](https://github.com/second-state/WasmEdge-tensorflow-deps/releases/download/TF-2.12.0-CC/WasmEdge-tensorflow-deps-TFLite-TF-2.12.0-CC-manylinux2014_aarch64.tar.gz) prebuilt library and see if it works for your case.\r\n\r\nThanks.", "It gives me this error while linking\r\n\r\nI copied the library to /usr/local/lib and the command used to compile is \r\n\r\n**g++ example.cpp -ltensorflowlite_flex**\r\n\r\n/usr/bin/ld: skipping incompatible /usr/local/lib/libtensorflowlite_flex.so when searching for -ltensorflowlite_flex\r\n/usr/bin/ld: cannot find -ltensorflowlite_flex: No such file or directory\r\n/usr/bin/ld: skipping incompatible /usr/local/lib/libtensorflowlite_flex.so when searching for -ltensorflowlite_flex\r\ncollect2: error: ld returned 1 exit status\r\n`", "Hi @Bhuvan-1 \r\n\r\nWe need to link the `tensorflowlite_flex` in CMakeLists.txt and update the path to the `.so` file\r\nSample code snippet\r\n```\r\nfind_library(TF_LIB tensorflowlite HINTS \"${TENSORFLOW_SOURCE_DIR}/bazel-bin/tensorflow/lite/\")\r\nfind_library(TF_LIB_FLEX tensorflowlite_flex HINTS \"${TENSORFLOW_SOURCE_DIR}/bazel-bin/tensorflow/lite/delegates/flex/\")\r\ntarget_link_libraries(testmodel\r\n-Wl,--no-as-needed # Need --no-as-needed to link tensorflowlite_flex\r\n${TF_LIB}\r\n${TF_LIB_FLEX}\r\n)\r\n```\r\nThanks.\r\n\r\n\r\n\r\n\r\n\r\n", "I tried the above way, and got this\r\n\r\n\r\nusr/bin/ld: /mnt/c/Users/G BHUVAN REDDY/Desktop/TFL/LIBS/libtensorflowlite_flex.so: error adding symbols: file in wrong format\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [CMakeFiles/demo.dir/build.make:166: demo] Error 1\r\nmake[1]: *** [CMakeFiles/Makefile2:1389: CMakeFiles/demo.dir/all] Error 2\r\nmake: *** [Makefile:130: all] Error 2", "Hi @Bhuvan-1, it looks like you are using WSL or WSL 2. Since it seems like your .so file is in the Windows File system and not the linux one. Generally unless something specifically tells you to you should never cross file system boundaries (In this case it seems cmake is trying to read in the mounted windows directory. Can you put the .so file in /usr/lib or where ever your other .so files are? Update your CMakeLists.txt to point to location as well. It might be helpful to upload your CMakeLists.txt file as well.\r\n\r\nAdditionally please always let us know if you are using WSL/WSL 2 in the issue description as well. Thanks!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "@Bhuvan-1 have you worked on model merger? i mean after on device you are saving model.ckpt. how you merging tflite model with model.ckpt for inference? ", "@AIML-ankit , model.ckpt only has the weights stored. So to use them, we need to use the `restore` function to restore the weights from model.ckpt into memory . Then we can run inference using the updated weights." ]
2023-06-12T17:55:05
2023-07-28T08:21:53
2023-07-09T02:14:53
NONE
null
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu, 22.04 - TensorFlow installed from (source or binary): source - TensorFlow version (or github SHA if from source): r2.12 **Provide the text output from tflite_convert** I used [On device training](https://www.tensorflow.org/lite/examples/on_device_training/overview) guide to convert to tflite model and then stored it as model.tflite Then I used this c++ code to invoke the "train" signature Runner and it fails. **Standalone code to reproduce the issue** ``` std::unique_ptr<FlatBufferModel> model = FlatBufferModel::BuildFromFile("../model.tflite"); tflite::ops::builtin::BuiltinOpResolver builtin_resolver; std::unique_ptr<Interpreter> interpreter; if( InterpreterBuilder(*model, builtin_resolver)(&interpreter) != kTfLiteOk){ printf("Failed to build interpreter\n"); exit(0); } // RESIZE Input Tensor Shape, if needed, then call ->AllocateTensors() if( interpreter->AllocateTensors() != kTfLiteOk){ printf("Failed to allocate tensors!\n"); exit(0); } //train model SignatureRunner* trainSignatureRunner = interpreter->GetSignatureRunner( "train" ); trainSignatureRunner->AllocateTensors(); TfLiteTensor* x_input_tensor = trainSignatureRunner->input_tensor( "x" ); TfLiteTensor* y_input_tensor = trainSignatureRunner->input_tensor( "y" ); // fill x_input_tensor for(int i = 0; i < 28*28; i++){ x_input_tensor->data.f[i] = 0.5; } // fill y_input_tensor for(int i = 0; i < 10; i++){ y_input_tensor->data.f[i] = 0.0; } y_input_tensor->data.f[3] = 1.0; int EPOCHS = 5; for(int epoch = 0; epoch < EPOCHS; epoch++){ trainSignatureRunner->Invoke(); const TfLiteTensor* loss_output = trainSignatureRunner->output_tensor( "loss" ); printf("Epoch %d, Loss : %.4f\n", epoch, loss_output->data.f[0]); } ``` I get this output , after compiling the file using CMakeLists.txt inside the /lite/examples/minimal/ directory and running the executable ``` ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select ERROR: Node number 69 (FlexReluGrad) failed to prepare. Epoch 0, Loss : 0.7413 ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select ERROR: Node number 69 (FlexReluGrad) failed to prepare. Epoch 1, Loss : 0.7413 ..... same for all epochs ``` I did refer to https://www.tensorflow.org/lite/guide/ops_select and I tried building the flex delegate library using ``` bazel build -c opt --config=monolithic tensorflow/lite/delegates/flex:tensorflowlite_flex ``` This runs for a long time, and suddenly the terminal gets killed after finishing like 70%. Can someone suggest a way to include the flex delegate library using some hacks in CMakeLists.txt or any other alterative way
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60845/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60845/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60844
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60844/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60844/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60844/events
https://github.com/tensorflow/tensorflow/issues/60844
1,753,230,448
I_kwDOArmXAs5ogCxw
60,844
java.lang.IllegalStateException: Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/pad.cc:79 SizeOfDimension(op_context->paddings, 0) != op_context->dims (4 != 1) Node number 0 (PAD) failed to prepare.
{ "login": "khirmansaleem", "id": 107273726, "node_id": "U_kgDOBmTd_g", "avatar_url": "https://avatars.githubusercontent.com/u/107273726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/khirmansaleem", "html_url": "https://github.com/khirmansaleem", "followers_url": "https://api.github.com/users/khirmansaleem/followers", "following_url": "https://api.github.com/users/khirmansaleem/following{/other_user}", "gists_url": "https://api.github.com/users/khirmansaleem/gists{/gist_id}", "starred_url": "https://api.github.com/users/khirmansaleem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/khirmansaleem/subscriptions", "organizations_url": "https://api.github.com/users/khirmansaleem/orgs", "repos_url": "https://api.github.com/users/khirmansaleem/repos", "events_url": "https://api.github.com/users/khirmansaleem/events{/privacy}", "received_events_url": "https://api.github.com/users/khirmansaleem/received_events", "type": "User", "site_admin": false }
[ { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@khirmansaleem,\r\nCould you please provide the complete code or the colab gist and the tensorflow version you are using to reproduce the issue which helps us to analyse the issue in an effective way. \r\n\r\nIt looks like you have provided the dynamic tensors to the tflite. Could you please try to provide with **batch size = 1** and run the `interpreter` for every image in a loop. If the loaded model in TFLite does not have any defined **batch size**, converter will take the batch size as 1, and when you evaluate it with the different batch size, you are likely to end up with the problem which you are facing.\r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "Closing this as stale. Please reopen if this is still a valid request. Thank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60844\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60844\">No</a>\n" ]
2023-06-12T17:34:44
2023-09-29T17:22:44
2023-09-29T17:22:42
NONE
null
null
null
I have converted my DenseNet-121 model to model.tflite and when i am loading it to android app and trying to make predictions, it's giving following errors : java.lang.IllegalStateException: Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/pad.cc:79 SizeOfDimension(op_context->paddings, 0) != op_context->dims (4 != 1) Node number 0 (PAD) failed to prepare. at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensors(Native Method) at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensorsIfNeeded(NativeInterpreterWrapper.java:308) at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:248) at org.tensorflow.lite.InterpreterImpl.runForMultipleInputsOutputs(InterpreterImpl.java:101) at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:77) at org.tensorflow.lite.InterpreterImpl.run(InterpreterImpl.java:94) at org.tensorflow.lite.Interpreter.run(Interpreter.java:77) at com.example.appleleafdiseasedetection.DiseaseDetector$2.onClick(DiseaseDetector.java:72) at android.view.View.performClick(View.java:7743) at android.view.View.performClickInternal(View.java:7720) at android.view.View.access$3700(View.java:854) at android.view.View$PerformClick.run(View.java:29111) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8309) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038) how can i solve it?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60844/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60844/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60843
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60843/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60843/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60843/events
https://github.com/tensorflow/tensorflow/issues/60843
1,753,109,767
I_kwDOArmXAs5oflUH
60,843
OMP_PROC_BIND or OMP_PLACES either ignored or respected incorrectly
{ "login": "casparvl", "id": 33718780, "node_id": "MDQ6VXNlcjMzNzE4Nzgw", "avatar_url": "https://avatars.githubusercontent.com/u/33718780?v=4", "gravatar_id": "", "url": "https://api.github.com/users/casparvl", "html_url": "https://github.com/casparvl", "followers_url": "https://api.github.com/users/casparvl/followers", "following_url": "https://api.github.com/users/casparvl/following{/other_user}", "gists_url": "https://api.github.com/users/casparvl/gists{/gist_id}", "starred_url": "https://api.github.com/users/casparvl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/casparvl/subscriptions", "organizations_url": "https://api.github.com/users/casparvl/orgs", "repos_url": "https://api.github.com/users/casparvl/repos", "events_url": "https://api.github.com/users/casparvl/events{/privacy}", "received_events_url": "https://api.github.com/users/casparvl/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @casparvl ,\r\n\r\nThanks for reaching us. I tried to replicate the issue on Colab but I see somewhat different behaviour. If I am not wrong Colab CPU runtime has 2 cores which are displayed correctly as per attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/4af268f259cf1569bcca771201dbfde5/60843.ipynb#scrollTo=gXprUixKQGRi).\r\n\r\nAwaiting your comments. Thanks!", "Dear @SuryanarayanaY ,\r\n\r\nWell, you actually _did_ reproduce my behaviour: for tf-nightly, I see the same thing as you. I.e. it does not seem to respect any of the binding flags - nor `OMP_*` based ones, or `KMP_*` based ones - each thread just has access to all cores. Just to recap: for our custom built TensorFlow, at least it seems to _respond_ to `OMP_*` flags, but in an incorrect way (i.e. it binds all threads to one core, instead of one thread per core).\r\n\r\nNote that both the behaviour of `tf-nightly` (no thread binding) _and_ our custom build (binding all threads to the same core) is incorrect.\r\n\r\nAs mentioned, I'd love to understand better what type of threading TensorFlow uses: does it use GNU OpenMP, Intel OpenMP, pthreads, etc? Is this configurable at compile time, and if so, what config flags should I be looking for if I want to know how our custom built TensorFlow was configured? And what type of threading is used by tf-nightly builds? Knowing this could be a first step to figuring out what the underlying issue is for both `tf-nightly` and my custom build." ]
2023-06-12T16:23:43
2023-07-17T21:59:10
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.10.4 ### Bazel version 5.1.1 ### GCC/Compiler version 11.3.0 ### CUDA/cuDNN version N/A ### GPU model and memory N/A ### Current Behaviour? When I run TensorFlow on CPU and try to enable core binding with `OMP_PROC_BIND=close`, all threads get bound to core 0 (rather than thread 0 to core 0, thread 1 to core 1, etc). Expected output: ``` $ OMP_PROC_BIND=true OMP_PLACES=cores python tf_example.py Inter_op_threads: 1 Intra_op_threads: 4 Thread count: 4 Child affinity is {96} Child affinity is {97} Child affinity is {98} Child affinity is {99} ``` I.e. I'd expect four threads, bound to subsequent cores. Now, I guess TensorFlow simply uses some threads for management of the framework. Though I'm surprised by the large number of threads, 11 extra threads on top of the Intra_op_thread count, see the log output for the custom TF-2.11 case, this is not really an 'issue' (although one might wonder how management threads ought to behave, they should probably remain unbound even if the compute threads are bound 1 per core). What I'm seeing however is that with our custom built TF-2.11, all threads are bound to the first core in my cgroup (core ID 96 in this case). For tf-nightly, all binding is completely ignored. Not sure if it's useful, but the Custom built had this build command: <details> <summary>build command</summary> ``` bazel --output_user_root=/tmp/jenkins/build/TensorFlow/2.11.0/foss-2022a/TensorFlow/bazel-root --local_startup_timeout_secs=300 --host_jvm_args=-Xms512m --host_jvm_args=-Xmx4096m build --config=noaws --config=nogcp --config=nohdfs --compilation_mode=opt --config=opt --subcommands --verbose_failures --jobs=128 --copt="-fPIC" --distinct_host_configuration=false --action_env=CPATH='/sw/arch/RHEL8/EB_production/2022/software/cURL/7.83.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/double-conversion/3.2.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/flatbuffers/2.0.7-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/giflib/5.2.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/hwloc/2.7.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/ICU/71.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/JsonCpp/1.9.5-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/libjpeg-turbo/2.1.3-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/libpng/1.6.37-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/LMDB/0.9.29-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/nsync/1.25.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/protobuf/3.19.4-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/pybind11/2.9.2-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/snappy/1.1.9-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/SQLite/3.38.3-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/zlib/1.2.12-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/OpenSSL/1.1/include' --host_action_env=CPATH='/sw/arch/RHEL8/EB_production/2022/software/cURL/7.83.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/double-conversion/3.2.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/flatbuffers/2.0.7-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/giflib/5.2.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/hwloc/2.7.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/ICU/71.1-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/JsonCpp/1.9.5-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/libjpeg-turbo/2.1.3-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/libpng/1.6.37-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/LMDB/0.9.29-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/nsync/1.25.0-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/protobuf/3.19.4-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/pybind11/2.9.2-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/snappy/1.1.9-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/SQLite/3.38.3-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/zlib/1.2.12-GCCcore-11.3.0/include:/sw/arch/RHEL8/EB_production/2022/software/OpenSSL/1.1/include' --action_env=LIBRARY_PATH='/sw/arch/RHEL8/EB_production/2022/software/cURL/7.83.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/double-conversion/3.2.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/flatbuffers/2.0.7-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/giflib/5.2.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/hwloc/2.7.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/ICU/71.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/JsonCpp/1.9.5-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/libjpeg-turbo/2.1.3-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/libpng/1.6.37-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/LMDB/0.9.29-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/nsync/1.25.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/protobuf/3.19.4-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/pybind11/2.9.2-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/snappy/1.1.9-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/SQLite/3.38.3-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/zlib/1.2.12-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/OpenSSL/1.1/lib' --host_action_env=LIBRARY_PATH='/sw/arch/RHEL8/EB_production/2022/software/cURL/7.83.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/double-conversion/3.2.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/flatbuffers/2.0.7-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/giflib/5.2.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/hwloc/2.7.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/ICU/71.1-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/JsonCpp/1.9.5-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/libjpeg-turbo/2.1.3-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/libpng/1.6.37-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/LMDB/0.9.29-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/nsync/1.25.0-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/protobuf/3.19.4-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/pybind11/2.9.2-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/snappy/1.1.9-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/SQLite/3.38.3-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/zlib/1.2.12-GCCcore-11.3.0/lib:/sw/arch/RHEL8/EB_production/2022/software/OpenSSL/1.1/lib' --action_env=PYTHONNOUSERSITE='1' --host_action_env=PYTHONNOUSERSITE='1' --action_env=PYTHONPATH --host_action_env=PYTHONPATH //tensorflow/tools/pip_package:build_pip_package ``` </details> I'm not 100% sure of all the details of the custom build, I used EasyBuild to build TF from sources, and the build recipy wasn't made by me. I don't understand enough of the TensorFlow threading model to know how to debug this issue. My specific questions would be: - Why does my custom TF 2.11 build bind all threads to one core? Other GOMP-based packages (e.g. `scipy`) do show correct binding on my system, with the same (OMP_) environment variables. - Why does tf-nightly not bind threads at all? Any general explanations of which potential threading models can be used in TF are also welcome. ### Standalone code to reproduce the issue ```shell import tensorflow as tf tf.config.threading.set_inter_op_parallelism_threads(1) tf.config.threading.set_intra_op_parallelism_threads(4) print(f"Inter_op_threads: {tf.config.threading.get_inter_op_parallelism_threads()}") print(f"Intra_op_threads: {tf.config.threading.get_intra_op_parallelism_threads()}") A = tf.random.normal([20000,20000]) for i in range(0,1): B = tf.multiply(A,A) import psutil import os current_process = psutil.Process() threads = current_process.threads() print(f"Thread count: {len(threads)}") for thread in threads: print('Child affinity is {}'.format(os.sched_getaffinity(thread.id))) ``` ### Relevant log output ```shell # output for custom build TF-2.11 $ OMP_PROC_BIND=true OMP_PLACES=cores python tf_example.py Inter_op_threads: 1 Intra_op_threads: 4 Thread count: 15 Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} Child affinity is {96} # output for tf-nightly # Not sure what threading model tf-nightly uses, so I've set both OMP and KMP variables: $ OMP_PROC_BIND=true OMP_PLACES=cores KMP_AFFINITY=granularity=fine,verbose,compact,1,0 python tf_example.py Inter_op_threads: 1 Intra_op_threads: 4 Thread count: 14 Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} Child affinity is {96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127} # Note that this is generated on an HPC system in which I'm in a CGROUP with access to core 96-127, hence the core IDs start at 96. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60843/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60843/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60842
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60842/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60842/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60842/events
https://github.com/tensorflow/tensorflow/pull/60842
1,753,042,118
PR_kwDOArmXAs5SydmD
60,842
Limit typing_extensions to less than 4.6.0 until it works
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-12T15:42:56
2023-06-13T08:19:32
2023-06-12T21:30:16
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60842", "html_url": "https://github.com/tensorflow/tensorflow/pull/60842", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60842.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60842.patch", "merged_at": "2023-06-12T21:30:16" }
There is a unit test failure when run as a pip test with typing_extensions >= 4.6.0 so limit the installed version to below that until the issue is resolved.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60842/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60842/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60841
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60841/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60841/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60841/events
https://github.com/tensorflow/tensorflow/issues/60841
1,752,738,845
I_kwDOArmXAs5oeKwd
60,841
Get deadlock after Predict(cuda10.0, cudnn7.6.5, Tesla T4 GPU)
{ "login": "ivankxt", "id": 42996988, "node_id": "MDQ6VXNlcjQyOTk2OTg4", "avatar_url": "https://avatars.githubusercontent.com/u/42996988?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ivankxt", "html_url": "https://github.com/ivankxt", "followers_url": "https://api.github.com/users/ivankxt/followers", "following_url": "https://api.github.com/users/ivankxt/following{/other_user}", "gists_url": "https://api.github.com/users/ivankxt/gists{/gist_id}", "starred_url": "https://api.github.com/users/ivankxt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ivankxt/subscriptions", "organizations_url": "https://api.github.com/users/ivankxt/orgs", "repos_url": "https://api.github.com/users/ivankxt/repos", "events_url": "https://api.github.com/users/ivankxt/events{/privacy}", "received_events_url": "https://api.github.com/users/ivankxt/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205657510, "node_id": "MDU6TGFiZWwxMjA1NjU3NTEw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:centos", "name": "subtype:centos", "color": "b619ea", "default": false, "description": "Centos Build/Installation issues" }, { "id": 1903591931, "node_id": "MDU6TGFiZWwxOTAzNTkxOTMx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.2", "name": "TF 2.2", "color": "0052cc", "default": false, "description": "Issues related to TF 2.2" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "@ivankxt The TF v2.2 is an older version which is not actively supported. We would recommend you to kindly upgrade to the latest TF version and let us know if the issue still persists?\r\nThank you! ", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60841\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60841\">No</a>\n", "@ivankxt As per the [documentation](https://www.tensorflow.org/install/source#gpu) could you please try with the cudnn version of 7.4 which will be compatible with the cuda version that you are using? Also we recommend you to use the latest stable version as TF v2.2 is not actively supported. The issues would be lesser in the newer version as compared to the older version. please follow the instructions for [gpu](https://www.tensorflow.org/install/pip) support as well. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60841\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60841\">No</a>\n" ]
2023-06-12T13:10:12
2023-08-02T01:49:52
2023-08-02T01:49:48
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf2.2 + tfserving2.2 ### Custom Code Yes ### OS Platform and Distribution centos7 ### Mobile device _No response_ ### Python version 3.6 ### Bazel version 3.7.2 ### GCC/Compiler version 7.5 ### CUDA/cuDNN version 7.6.5 ### GPU model and memory 15G ### Current Behaviour? In our inference service, when executes the predict interface(predictor_->Predict(...)), it gets deadlock. ` std::unique_ptr<tensorflow::serving::TensorflowPredictor> predictor_; predictor_->Predict(opt, core_.get(), predict_req, &predict_resp, run_metadata.get()); ` Here is the pstack: obviously, it's in async execute, and waiting for something Thread 167 (Thread 0x7f4b1bfa7700 (LWP 81084)): #0 0x00007f5059939c09 in syscall () from /usr/lib64/libc.so.6 #1 0x00007f505feb1bbb in nsync::nsync_mu_semaphore_p_with_deadline(nsync::nsync_semaphore_s_*, timespec) () from /home/qspace/upload/libtensorflow_serving.so #2 0x00007f505feaedf9 in nsync::nsync_sem_wait_with_cancel_(nsync::waiter*, timespec, nsync::nsync_note_s_*) () from /home/qspace/upload/libtensorflow_serving.so #3 0x00007f505feafeeb in nsync::nsync_cv_wait_with_deadline_generic(nsync::nsync_cv_s_*, void*, void (*)(void*), void (*)(void*), timespec, nsync::nsync_note_s_*) () from /home/qspace/upload/libtensorflow_serving.so #4 0x00007f505feb03c3 in nsync::nsync_cv_wait_with_deadline(nsync::nsync_cv_s_*, nsync::nsync_mu_s_*, timespec, nsync::nsync_note_s_*) () from /home/qspace/upload/libtensorflow_serving.so #5 0x00007f506168349c in tensorflow::DirectSession::WaitForNotification(tensorflow::Notification*, long long) () from /home/qspace/upload/libtensorflow_serving.so #6 0x00007f50616834ed in tensorflow::DirectSession::WaitForNotification(tensorflow::Notification*, tensorflow::DirectSession::RunState*, tensorflow::CancellationManager*, long long) () from /home/qspace/upload/libtensorflow_serving.so #7 0x00007f5061693bb5 in tensorflow::DirectSession::RunInternal(long long, tensorflow::RunOptions const&, tensorflow::CallFrameInterface*, tensorflow::DirectSession::ExecutorsAndKeys*, tensorflow::RunMetadata*, tensorflow::thread::ThreadPoolOptions const&) () from /home/qspace/upload/libtensorflow_serving.so #8 0x00007f5061695dd5 in tensorflow::DirectSession::Run(tensorflow::RunOptions const&, std::vector<std::pair<std::string, tensorflow::Tensor>, std::allocator<std::pair<std::string, tensorflow::Tensor> > > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<tensorflow::Tensor, std::allocator<tensorflow::Tensor> >*, tensorflow::RunMetadata*, tensorflow::thread::ThreadPoolOptions const&) () from /home/qspace/upload/libtensorflow_serving.so #9 0x00007f5061681313 in tensorflow::DirectSession::Run(tensorflow::RunOptions const&, std::vector<std::pair<std::string, tensorflow::Tensor>, std::allocator<std::pair<std::string, tensorflow::Tensor> > > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<tensorflow::Tensor, std::allocator<tensorflow::Tensor> >*, tensorflow::RunMetadata*) () from /home/qspace/upload/libtensorflow_serving.so #10 0x00007f5067131cdc in tensorflow::serving::ServingSessionWrapper::Run(tensorflow::RunOptions const&, std::vector<std::pair<std::string, tensorflow::Tensor>, std::allocator<std::pair<std::string, tensorflow::Tensor> > > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<tensorflow::Tensor, std::allocator<tensorflow::Tensor> >*, tensorflow::RunMetadata*) () from /home/qspace/upload/libtensorflow_serving.so #11 0x00007f506714092b in tensorflow::serving::internal::RunPredict(tensorflow::RunOptions const&, tensorflow::MetaGraphDef const&, tensorflow::serving::optional<long long> const&, tensorflow::serving::internal::PredictResponseTensorSerializationOption, tensorflow::Session*, tensorflow::serving::PredictRequest const&, tensorflow::serving::PredictResponse*, tensorflow::RunMetadata*) () from /home/qspace/upload/libtensorflow_serving.so #12 0x00007f5067131aa0 in tensorflow::serving::TensorflowPredictor::PredictWithModelSpec(tensorflow::RunOptions const&, tensorflow::serving::ServerCore*, tensorflow::serving::ModelSpec const&, tensorflow::serving::PredictRequest const&, tensorflow::serving::PredictResponse*, tensorflow::RunMetadata*) () from /home/qspace/upload/libtensorflow_serving.so #13 0x00007f5067131c81 in tensorflow::serving::TensorflowPredictor::Predict(tensorflow::RunOptions const&, tensorflow::serving::ServerCore*, tensorflow::serving::PredictRequest const&, tensorflow::serving::PredictResponse*, tensorflow::RunMetadata*) () from /home/qspace/upload/libtensorflow_serving.so #14 0x0000000002bd91b1 in mmfinderbd::RankModel::Predict (this=0x327bf080, req=..., resp=0x7f47042735d0) at bdegateway/mmfinder/mmfinderbdetfsvr/models/tf/rank_tf_model.cpp:525 #15 0x0000000002b838cc in mmfinderbd::ServerCoreSingleModel::Predict (this=0x2c176aa0 <mmfinderbd::ServerCore::Instance()::instance>, req=..., resp=...) at bdegateway/mmfinder/mmfinderbdetfsvr/core/server_core_single_model.cpp:365 #16 0x0000000002b5df8b in MMFinderBdeTfSvrServiceImpl_PB::InferImpl (this=0x7f4ad84cbec0, head_uin=<optimized out>, req=..., resp=0x7f47042735d0) at bdegateway/mmfinder/mmfinderbdetfsvr/mmfinderbdetfsvrserviceimpl_pb.cpp:93 #17 0x0000000002b731d8 in MMFinderBdeTfSvrDispatcher_PB::Infer (this=this@entry=0x7f4ad84cbe60, uin=<optimized out>, req_buffer=req_buffer@entry=0x7f4ad84cb868, resp_buffer=resp_buffer@entry=0x7f4ad84cb870) at bazel-out/cd7t-opt/genfiles/bdegateway/mmfinder/mmfinderbdetfsvr/skgenerated/sk_mmfinderbdetfsvrdispatcher.pb.cpp:1366 #18 0x0000000002b78569 in MMFinderBdeTfSvrDispatcher_PB::Dispatch (this=this@entry=0x7f4ad84cbe60) at bazel-out/cd7t-opt/genfiles/bdegateway/mmfinder/mmfinderbdetfsvr/skgenerated/sk_mmfinderbdetfsvrdispatcher.pb.cpp:398 #19 0x0000000002b5a91e in MMFinderBdeTfSvrServer::SKServerProc (this=<optimized out>, ctrl_info=0x7f470421b820, ctx=0x7f470421b7a0, in_pkg=0x7f42681054a0, out_pkg=0x7f42681054e0, args=<optimized out>) at ./bdegateway/mmfinder/mmfinderbdetfsvr/mmfinderbdetfsvrserver.h:44 #20 0x000000000671a6c8 in SMCoWorkerMt::CoWorkerIORun (this=0x330b4670, self=0x7f470421b6d0) at comm2/summer/smcoworker.cpp:1138 #21 0x0000000007cc679e in operator() (this=0x7f470421b908) at /home/mmdev/gcc7/lib/gcc/x86_64-pc-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/std_function.h:706 #22 CoRoutineFunc (co=0x7f470421b8f0) at basic/colib/co_routine.cpp:601 #23 0x0000000000000000 in ?? () and what does it exactly waiting for... Thread 301 (Thread 0x7f4b09dcf700 (LWP 80869)): #0 0x00007f5059939c09 in syscall () from /usr/lib64/libc.so.6 #1 0x0000000005bf5111 in WaitUntil (t=..., val=0, v=0x7f45f046b750) at mm3rd/abseil-cpp/absl/synchronization/internal/waiter.cc:107 #2 absl::lts_2020_02_25::synchronization_internal::Waiter::Wait (this=this@entry=0x7f45f046b750, t=t@entry=...) at mm3rd/abseil-cpp/absl/synchronization/internal/waiter.cc:151 #3 0x0000000005bf5052 in AbslInternalPerThreadSemWait (t=...) at mm3rd/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc:93 #4 0x00007f5066f87b6d in absl::Mutex::Block(absl::base_internal::PerThreadSynch*) () from /home/qspace/upload/libtensorflow_serving.so #5 0x00007f5066f8889e in absl::Mutex::LockSlowLoop(absl::SynchWaitParams*, int) () from /home/qspace/upload/libtensorflow_serving.so #6 0x00007f5066f88dc2 in absl::Mutex::LockSlowWithDeadline(absl::MuHowS const*, absl::Condition const*, absl::synchronization_internal::KernelTimeout, int) () from /home/qspace/upload/libtensorflow_serving.so #7 0x00007f505f0897ec in absl::Mutex::LockSlow(absl::MuHowS const*, absl::Condition const*, int) () from /home/qspace/upload/libtensorflow_serving.so #8 0x00007f50601c56fe in stream_executor::gpu::CUDABlas::DoBlasGemm(stream_executor::Stream*, stream_executor::blas::Transpose, stream_executor::blas::Transpose, unsigned long long, unsigned long long, unsigned long long, float, stream_executor::DeviceMemory<float> const&, int, stream_executor::DeviceMemory<float> const&, int, float, stream_executor::DeviceMemory<float>*, int) () from /home/qspace/upload/libtensorflow_serving.so #9 0x00007f5060290c13 in stream_executor::Stream::ThenBlasGemm(stream_executor::blas::Transpose, stream_executor::blas::Transpose, unsigned long long, unsigned long long, unsigned long long, float, stream_executor::DeviceMemory<float> const&, int, stream_executor::DeviceMemory<float> const&, int, float, stream_executor::DeviceMemory<float>*, int) () from /home/qspace/upload/libtensorflow_serving.so #10 0x00007f5063aebc4f in tensorflow::LaunchMatMul<Eigen::GpuDevice, float, true>::launch(tensorflow::OpKernelContext*, tensorflow::Tensor const&, tensorflow::Tensor const&, Eigen::array<Eigen::IndexPair<long>, 1ul> const&, std::vector<long long, std::allocator<long long> >*, bool, tensorflow::Tensor*) () from /home/qspace/upload/libtensorflow_serving.so #11 0x00007f5063aec42d in tensorflow::MatMulOp<Eigen::GpuDevice, float, true>::Compute(tensorflow::OpKernelContext*) () from /home/qspace/upload/libtensorflow_serving.so #12 0x00007f5061878296 in tensorflow::BaseGPUDevice::Compute(tensorflow::OpKernel*, tensorflow::OpKernelContext*) () from /home/qspace/upload/libtensorflow_serving.so #13 0x00007f50614a80bf in tensorflow::(anonymous namespace)::ExecutorState::Process(tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, long long) () from /home/qspace/upload/libtensorflow_serving.so #14 0x00007f50614a8c7f in std::_Function_handler<void (), tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(absl::InlinedVector<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8ul, std::allocator<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode> >*, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*)::{lambda()#2}>::_M_invoke(std::_Any_data const&) () from /home/qspace/upload/libtensorflow_serving.so #15 0x00007f506189a71f in Eigen::ThreadPoolTempl<tensorflow::thread::EigenEnvironment>::ScheduleWithHint(std::function<void ()>, int, int) () from /home/qspace/upload/libtensorflow_serving.so #16 0x00007f506189dd1b in tensorflow::thread::ThreadPool::Schedule(std::function<void ()>) () from /home/qspace/upload/libtensorflow_serving.so #17 0x00007f5061681bb3 in std::_Function_handler<void (std::function<void ()>), tensorflow::DirectSession::RunInternal(long long, tensorflow::RunOptions const&, tensorflow::CallFrameInterface*, tensorflow::DirectSession::ExecutorsAndKeys*, tensorflow::RunMetadata*, tensorflow::thread::ThreadPoolOptions const&)::{lambda(tensorflow::DirectSession::PerPartitionExecutorsAndLib const&, tensorflow::Executor::Args*)#7}::operator()(tensorflow::DirectSession::PerPartitionExecutorsAndLib const&, tensorflow::Executor::Args*) const::{lambda(std::function<void ()>)#1}>::_M_invoke(std::_Any_data const&, std::function<void ()>&&) () from /home/qspace/upload/libtensorflow_serving.so #18 0x00007f506149ac84 in tensorflow::(anonymous namespace)::ExecutorState::ScheduleReady(absl::InlinedVector<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8ul, std::allocator<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode> >*, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*) [clone .part.508] () from /home/qspace/upload/libtensorflow_serving.so #19 0x00007f50614a3a84 in tensorflow::(anonymous namespace)::ExecutorState::NodeDone(tensorflow::Status const&, absl::InlinedVector<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, 8ul, std::allocator<tensorflow::(anonymous namespace)::ExecutorState::TaggedNode> >*, tensorflow::NodeExecStatsInterface*, tensorflow::(anonymous namespace)::ExecutorState::TaggedNodeReadyQueue*) () from /home/qspace/upload/libtensorflow_serving.so #20 0x00007f50614a8e4f in tensorflow::(anonymous namespace)::ExecutorState::Process(tensorflow::(anonymous namespace)::ExecutorState::TaggedNode, long long)::{lambda()#6}::operator()() const () from /home/qspace/upload/libtensorflow_serving.so #21 0x00007f50614fcbd0 in std::_Function_handler<void (tensorflow::Status const&), tensorflow::(anonymous namespace)::IntraProcessRecvAsyncImpl(tensorflow::DeviceMgr const*, tensorflow::LocalRendezvous*, tensorflow::RendezvousInterface::ParsedKey const&, tensorflow::RendezvousInterface::Args const&, std::function<void (tensorflow::Status const&, tensorflow::RendezvousInterface::Args const&, tensorflow::RendezvousInterface::Args const&, tensorflow::Tensor const&, bool)>)::{lambda(tensorflow::Status const&, tensorflow::RendezvousInterface::Args const&, tensorflow::RendezvousInterface::Args const&, tensorflow::Tensor const&, bool)#2}::operator()(tensorflow::Status const&, tensorflow::RendezvousInterface::Args const&, tensorflow::RendezvousInterface::Args const&, tensorflow::Tensor const&, bool)::{lambda(tensorflow::Status const&)#1}>::_M_invoke(std::_Any_data const&, tensorflow::Status const&) () from /home/qspace/upload/libtensorflow_serving.so #22 0x00007f506186fa29 in tensorflow::GPUUtil::CopyCPUTensorToGPU(tensorflow::Tensor const*, tensorflow::DeviceContext const*, tensorflow::Device*, tensorflow::Tensor*, std::function<void (tensorflow::Status const&)>, bool)::{lambda()#2}::operator()() const () from /home/qspace/upload/libtensorflow_serving.so #23 0x00007f506189c3e1 in Eigen::ThreadPoolTempl<tensorflow::thread::EigenEnvironment>::WorkerLoop(int) () from /home/qspace/upload/libtensorflow_serving.so #24 0x00007f50618990f3 in std::_Function_handler<void (), tensorflow::thread::EigenEnvironment::CreateThread(std::function<void ()>)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/qspace/upload/libtensorflow_serving.so #25 0x0000000007f0a9df in std::execute_native_thread_routine (__p=0x7f4a83d29490) at ../../../../../gcc-7.5.0/libstdc++-v3/src/c++11/thread.cc:83 #26 0x00007f505a533dc5 in start_thread () from /usr/lib64/libpthread.so.0 #27 0x00007f505993f74d in clone () from /usr/lib64/libc.so.6 GPU Info: +-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.116.03 Driver Version: 525.116.03 CUDA Version: 12.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+==== | 0 Tesla T4 On | 00000000:00:0B.0 Off | 0 | | N/A 52C P0 36W / 70W | 4695MiB / 15360MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ Please give me some advice! ### Standalone code to reproduce the issue ```shell std::unique_ptr<tensorflow::serving::TensorflowPredictor> predictor_; predictor_->Predict(opt, core_.get(), predict_req, &predict_resp, run_metadata.get()); ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60841/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60841/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60840
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60840/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60840/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60840/events
https://github.com/tensorflow/tensorflow/issues/60840
1,752,436,179
I_kwDOArmXAs5odA3T
60,840
Functional Bug:Could not interpret serialized activation function
{ "login": "PhyllisJi", "id": 34181680, "node_id": "MDQ6VXNlcjM0MTgxNjgw", "avatar_url": "https://avatars.githubusercontent.com/u/34181680?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PhyllisJi", "html_url": "https://github.com/PhyllisJi", "followers_url": "https://api.github.com/users/PhyllisJi/followers", "following_url": "https://api.github.com/users/PhyllisJi/following{/other_user}", "gists_url": "https://api.github.com/users/PhyllisJi/gists{/gist_id}", "starred_url": "https://api.github.com/users/PhyllisJi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PhyllisJi/subscriptions", "organizations_url": "https://api.github.com/users/PhyllisJi/orgs", "repos_url": "https://api.github.com/users/PhyllisJi/repos", "events_url": "https://api.github.com/users/PhyllisJi/events{/privacy}", "received_events_url": "https://api.github.com/users/PhyllisJi/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@PhyllisJi,\r\nThank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). \r\n\r\n\r\n\r\n\r\nCould you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).\r\nTo know more please refer:\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\nThank you!\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60840\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60840\">No</a>\n" ]
2023-06-12T10:35:48
2023-06-28T02:08:44
2023-06-28T02:08:42
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version tf2.12.0 ### Custom Code Yes ### OS Platform and Distribution MacOs ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? #### Output ``` Could not interpret serialized activation function: Tensor("conv1a/BiasAdd:0", shape=(None, 224, 224, 64), dtype=float32) ``` #### Document | `activation` | Activation function to use. If you don't specify anything, no activation is applied (see [`keras.activations`](https://www.tensorflow.org/api_docs/python/tf/keras/activations)). | | ------------ | ------------------------------------------------------------ | ### Standalone code to reproduce the issue ```py x = keras.layers.Conv2D(filters=64, kernel_size=3, strides=1, activation="deserialize", padding="same", name="conv1a")(input_tensor) ``` ```py x = keras.layers.Conv2D(filters=64, kernel_size=3, strides=1, activation="serialize", padding="same", name="conv1a")(input_tensor) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60840/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60840/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60839
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60839/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60839/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60839/events
https://github.com/tensorflow/tensorflow/issues/60839
1,752,430,567
I_kwDOArmXAs5oc_fn
60,839
Documentation Bug:the description of padding
{ "login": "PhyllisJi", "id": 34181680, "node_id": "MDQ6VXNlcjM0MTgxNjgw", "avatar_url": "https://avatars.githubusercontent.com/u/34181680?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PhyllisJi", "html_url": "https://github.com/PhyllisJi", "followers_url": "https://api.github.com/users/PhyllisJi/followers", "following_url": "https://api.github.com/users/PhyllisJi/following{/other_user}", "gists_url": "https://api.github.com/users/PhyllisJi/gists{/gist_id}", "starred_url": "https://api.github.com/users/PhyllisJi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PhyllisJi/subscriptions", "organizations_url": "https://api.github.com/users/PhyllisJi/orgs", "repos_url": "https://api.github.com/users/PhyllisJi/repos", "events_url": "https://api.github.com/users/PhyllisJi/events{/privacy}", "received_events_url": "https://api.github.com/users/PhyllisJi/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "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, "description": "Status - Awaiting response from author" }, { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @PhyllisJi ,\r\n\r\nThanks for your time for reporting this related to `tf.keras.layers.ZeroPadding1D`. I have tested the code with dict as argument and it raises error.Attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/3a88b01e5afd9b58d6d1aa55e7c35969/60839.ipynb) here for reference. \r\n\r\nEven in source code also there seems no implementation for dict as argument. I will made a thorough review before going for correcting the documentation. Thanks again for bringing this.\r\n", "Hi @PhyllisJi ,\r\n\r\nA Pull request [18223](https://github.com/keras-team/keras/pull/18223) has been created in keras repo for your observation and it has been approved and merged. Thanks for your observation. Could we consider it as resolved now?\r\n\r\nThanks!", "> Hi @PhyllisJi ,\r\n> \r\n> A Pull request [18223](https://github.com/keras-team/keras/pull/18223) has been created in keras repo for your observation and it has been approved and merged. Thanks for your observation. Could we consider it as resolved now?\r\n> \r\n> Thanks!\r\n\r\nOf course, Thank you!", "@PhyllisJi ,\r\n\r\nCould you please feel free to close the issue now. Or confirm us so that we can close it on your behalf.\r\n\r\nThanks!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60839\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60839\">No</a>\n" ]
2023-06-12T10:32:27
2023-07-13T13:45:11
2023-07-13T13:45:08
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version tf2.12.0 ### Custom Code Yes ### OS Platform and Distribution MacOs ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? #### Output ``` ValueError: The `padding` argument must be a tuple of 2 integers. Received: {'padding': 2} ``` #### Document | `padding` | Int, or tuple of int (length 2), or dictionary. | | --------- | ----------------------------------------------- | ### Standalone code to reproduce the issue ```shell input_shape = (2, 2, 3) x = np.arange(np.prod(input_shape)).reshape(input_shape) x = ZeroPadding1D({'padding':2})(x) print(x) ``` ### Relevant log output _No response_ </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60839/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60839/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60838
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60838/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60838/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60838/events
https://github.com/tensorflow/tensorflow/issues/60838
1,752,388,608
I_kwDOArmXAs5oc1QA
60,838
FlexCombinedNonMaxSuppression unavailable in flex shared library
{ "login": "dutrad", "id": 34178422, "node_id": "MDQ6VXNlcjM0MTc4NDIy", "avatar_url": "https://avatars.githubusercontent.com/u/34178422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dutrad", "html_url": "https://github.com/dutrad", "followers_url": "https://api.github.com/users/dutrad/followers", "following_url": "https://api.github.com/users/dutrad/following{/other_user}", "gists_url": "https://api.github.com/users/dutrad/gists{/gist_id}", "starred_url": "https://api.github.com/users/dutrad/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dutrad/subscriptions", "organizations_url": "https://api.github.com/users/dutrad/orgs", "repos_url": "https://api.github.com/users/dutrad/repos", "events_url": "https://api.github.com/users/dutrad/events{/privacy}", "received_events_url": "https://api.github.com/users/dutrad/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "[object_detection.zip](https://github.com/tensorflow/tensorflow/files/11733741/object_detection.zip)\r\n\r\n![image](https://github.com/tensorflow/tensorflow/assets/34178422/c2092493-19b4-4589-b92c-6859bb1c7511)\r\n\r\nThis is the model I am using to reproduce the issue.", "Hi @dutrad \r\n\r\nCan you check if the Flex delegate is linked correctly to the TFLite interpreter?\r\n\r\nAlso, try \r\n`bazel build --config=monolithic --fat_apk_cpu=x86_64 --config=noaws --config=nogcp --config=nohdfs --config=nonccl tensorflow/lite/delegates/flex:tensorflowlite_flex` \r\nand let us know if it works for your case.\r\n\r\nThanks.\r\n\r\n", "I tested my application with the library generated with the command you sent and I got pretty much the same error:\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding \"org.tensorflow:tensorflow-lite-select-tf-ops\" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select\r\nERROR: Node number 276 (FlexCombinedNonMaxSuppression) failed to prepare.\r\nERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding \"org.tensorflow:tensorflow-lite-select-tf-ops\" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select\r\nERROR: Node number 276 (FlexCombinedNonMaxSuppression) failed to prepare.", "I checked if the flex delegate was properly loaded when the application was running. Turns out, it wasn't. Running `lsof -p 2644917 | grep tensor` it is clear that the binary was only loading the libtensorflowlite.so\r\n\r\nI'm building my application with gcc (version 9.4) and for some reason it is not linking the libraries correctly, even though, the build logs show the flex delegate being linked.\r\n\r\nThe problem was fixed when I switched to clang (version 10.0.0). The binary created loads the flex delegate libraries and the TFLite interpreter runs without issues.\r\n\r\nIs this a known issue with gcc? Do you know any workaround to make gcc link correctly?", "Hi @dutrad \r\n\r\nAs per build configurations reported in the [documentation](https://www.tensorflow.org/install/source#cpu), the latest TF requires Clang compiler for linux because of which the FlexDelegate issue might be caused when gcc is used.\r\n\r\nThanks.\r\n", "Thanks for the support, @pjpratik " ]
2023-06-12T10:07:16
2023-06-19T13:26:27
2023-06-19T13:26:27
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Feature Request ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version v2.12.0 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04.6 ### Mobile device _No response_ ### Python version _No response_ ### Bazel version 6.2.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I have network that runs with no problem on Android that uses the operator FlexCombinendNonMaxSuprpression. When running the same network and code on an x86 machine, the log output tells me that this operator is not supported by this interpreter. I have built from source the necessary libraries, libtensorflowlite.so and libtensorflowlite_flex.so ### Standalone code to reproduce the issue ```shell ` /* Allocate Tensors */ retTflite = _interpreter->AllocateTensors(); if (retTflite == kTfLiteOk) { _engineReady = true; } ` ``` ### Relevant log output ```shell ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select ERROR: Node number 276 (FlexCombinedNonMaxSuppression) failed to prepare. INFO: Failed to apply the default TensorFlow Lite delegate indexed at 0 because of unresolved ops (which could be resolved by another delegate). Ignoring the error, and continuing anyway. ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select ERROR: Node number 276 (FlexCombinedNonMaxSuppression) failed to prepare. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60838/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60838/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60837
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60837/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60837/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60837/events
https://github.com/tensorflow/tensorflow/pull/60837
1,752,197,590
PR_kwDOArmXAs5Svk3T
60,837
Add `--features=-force_no_whole_archive` by default
{ "login": "meteorcloudy", "id": 4171702, "node_id": "MDQ6VXNlcjQxNzE3MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/4171702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/meteorcloudy", "html_url": "https://github.com/meteorcloudy", "followers_url": "https://api.github.com/users/meteorcloudy/followers", "following_url": "https://api.github.com/users/meteorcloudy/following{/other_user}", "gists_url": "https://api.github.com/users/meteorcloudy/gists{/gist_id}", "starred_url": "https://api.github.com/users/meteorcloudy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meteorcloudy/subscriptions", "organizations_url": "https://api.github.com/users/meteorcloudy/orgs", "repos_url": "https://api.github.com/users/meteorcloudy/repos", "events_url": "https://api.github.com/users/meteorcloudy/events{/privacy}", "received_events_url": "https://api.github.com/users/meteorcloudy/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-12T08:24:34
2023-06-13T00:30:09
2023-06-12T22:34:29
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60837", "html_url": "https://github.com/tensorflow/tensorflow/pull/60837", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60837.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60837.patch", "merged_at": "2023-06-12T22:34:28" }
Fixes https://github.com/tensorflow/tensorflow/issues/60508
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60837/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60837/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60836
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60836/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60836/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60836/events
https://github.com/tensorflow/tensorflow/issues/60836
1,752,021,514
I_kwDOArmXAs5obboK
60,836
Image Segmenter | tflite-suuport | AttributeError: type object 'SegmentationOptions' has no attribute 'OutputType'
{ "login": "VIS-WA", "id": 68701594, "node_id": "MDQ6VXNlcjY4NzAxNTk0", "avatar_url": "https://avatars.githubusercontent.com/u/68701594?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VIS-WA", "html_url": "https://github.com/VIS-WA", "followers_url": "https://api.github.com/users/VIS-WA/followers", "following_url": "https://api.github.com/users/VIS-WA/following{/other_user}", "gists_url": "https://api.github.com/users/VIS-WA/gists{/gist_id}", "starred_url": "https://api.github.com/users/VIS-WA/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VIS-WA/subscriptions", "organizations_url": "https://api.github.com/users/VIS-WA/orgs", "repos_url": "https://api.github.com/users/VIS-WA/repos", "events_url": "https://api.github.com/users/VIS-WA/events{/privacy}", "received_events_url": "https://api.github.com/users/VIS-WA/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" } ]
closed
false
{ "login": "lu-wang-g", "id": 47436172, "node_id": "MDQ6VXNlcjQ3NDM2MTcy", "avatar_url": "https://avatars.githubusercontent.com/u/47436172?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lu-wang-g", "html_url": "https://github.com/lu-wang-g", "followers_url": "https://api.github.com/users/lu-wang-g/followers", "following_url": "https://api.github.com/users/lu-wang-g/following{/other_user}", "gists_url": "https://api.github.com/users/lu-wang-g/gists{/gist_id}", "starred_url": "https://api.github.com/users/lu-wang-g/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lu-wang-g/subscriptions", "organizations_url": "https://api.github.com/users/lu-wang-g/orgs", "repos_url": "https://api.github.com/users/lu-wang-g/repos", "events_url": "https://api.github.com/users/lu-wang-g/events{/privacy}", "received_events_url": "https://api.github.com/users/lu-wang-g/received_events", "type": "User", "site_admin": false }
[ { "login": "lu-wang-g", "id": 47436172, "node_id": "MDQ6VXNlcjQ3NDM2MTcy", "avatar_url": "https://avatars.githubusercontent.com/u/47436172?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lu-wang-g", "html_url": "https://github.com/lu-wang-g", "followers_url": "https://api.github.com/users/lu-wang-g/followers", "following_url": "https://api.github.com/users/lu-wang-g/following{/other_user}", "gists_url": "https://api.github.com/users/lu-wang-g/gists{/gist_id}", "starred_url": "https://api.github.com/users/lu-wang-g/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lu-wang-g/subscriptions", "organizations_url": "https://api.github.com/users/lu-wang-g/orgs", "repos_url": "https://api.github.com/users/lu-wang-g/repos", "events_url": "https://api.github.com/users/lu-wang-g/events{/privacy}", "received_events_url": "https://api.github.com/users/lu-wang-g/received_events", "type": "User", "site_admin": false }, { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "It seems the task module is not currently exposed in the package, I'm guessing by mistake, this is blocking testing of this.\r\n\r\n```\r\npip install tflite-support\r\n```\r\n```\r\npython test.py\r\n from tflite_support.task import vision\r\nModuleNotFoundError: No module named 'tflite_support.task'\r\n```\r\n@lu-wang-g can you take a look?", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60836\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60836\">No</a>\n" ]
2023-06-12T06:50:40
2023-09-07T03:48:20
2023-09-07T03:48:18
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tflite-support 0.1.0a1 ### Custom Code No ### OS Platform and Distribution MacOS Ventura 13.4 ### Mobile device _No response_ ### Python version 3.8.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? The syntax provided for using [Image Segmenter](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/inference_with_metadata/task_library/image_segmenter.md) did not execute ```processor.SegmentationOptions``` in python environment. ### Possible Fix: The line ``` segmentation_options = processor.SegmentationOptions( output_type=processor.SegmentationOptions.OutputType.CATEGORY_MASK) ``` should have been ``` segmentation_options = processor.SegmentationOptions( output_type=processor.SegmentationOptions.output_type.CATEGORY_MASK) ``` ### Standalone code to reproduce the issue ```shell https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/inference_with_metadata/task_library/image_segmenter.md#step-2-using-the-model-2 ``` ### Relevant log output ```shell Traceback (most recent call last): File "image_segmenter.py", line 8, in <module> segmentation_options = processor.SegmentationOptions(output_type=processor.SegmentationOptions.OutputType.CATEGORY_MASK) AttributeError: type object 'SegmentationOptions' has no attribute 'OutputType' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60836/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60836/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60835
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60835/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60835/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60835/events
https://github.com/tensorflow/tensorflow/issues/60835
1,751,167,144
I_kwDOArmXAs5oYLCo
60,835
Tensorflow Lite on Raspberry Pi
{ "login": "baqwas", "id": 7071255, "node_id": "MDQ6VXNlcjcwNzEyNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/7071255?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baqwas", "html_url": "https://github.com/baqwas", "followers_url": "https://api.github.com/users/baqwas/followers", "following_url": "https://api.github.com/users/baqwas/following{/other_user}", "gists_url": "https://api.github.com/users/baqwas/gists{/gist_id}", "starred_url": "https://api.github.com/users/baqwas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baqwas/subscriptions", "organizations_url": "https://api.github.com/users/baqwas/orgs", "repos_url": "https://api.github.com/users/baqwas/repos", "events_url": "https://api.github.com/users/baqwas/events{/privacy}", "received_events_url": "https://api.github.com/users/baqwas/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @baqwas ,\r\n\r\nFrom the error `ModuleNotFoundError: No module named 'tensorflow'` it seems Tensorflow not installed in your current directory or it might have corrupted in which case try uninstalling tensorflow and then install again and let us know the result.\r\n\r\nAlso it seems your environment has glib version `3.4.29` but Manlinux wheels have limitation w.r.t max glib version supported. Please refer the manlinux [readme](https://github.com/pypa/manylinux) the max glib version supported is 2.17 for `manylinux2014` wheel. Please downgrade the glib version to 2.17 and then try the installation.\r\n\r\nThanks!\r\n\r\n", "Thanks for the quick feedback. I'll try your suggestions shortly. I have Raspberry Pi 3B+ and 4 but cannot install **tensorflow** successfully with the basic the pip method owing to version conflicts. Are there **tensorflow** version constraints for ARM **arm64/aarch64** (using Raspberry Pi OS not Raspbian OS for Bullseye and Ubuntu 23.04 Desktop [sic])?\r\n\r\nRegards.", "@baqwas ,\r\n\r\nFor Tensorflow there are no prebuilt binaries for Arm/AArch architecture. Maybe you can use build from source for building the wheel for Arm/Aarch architecture referring to the [source](https://www.tensorflow.org/install/source) here.\r\n\r\nThanks!", "Hello @SuryanarayanaY,\r\n\r\nThanks for your suggestion. I've run into several version conflicts (with the supporting utilities and with earlier versions of tensorflow source) and realized that others too have experienced similar problems. It is insane/impractical expectation on my part to use TF on RPi; I'd like to use only TFL consistently on RPi (arm64/aarch64). I can get going with some examples but the slightest upgrade (clang, gcc, etc.) break the solution.\r\n\r\nThanks for the link (even though I was familiar with it previously but could not complete ALL the steps successfully - not an issue for me right now!). I repeat the exercise in due course.\r\n\r\nThanks for your support all the same. At least I have an informed person responding to my queries. Helps me to stay level headed about expectations.\r\n\r\nRegards.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60835\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60835\">No</a>\n" ]
2023-06-11T00:21:12
2023-06-13T11:48:49
2023-06-13T11:48:45
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tflite_runtime-2.12.0-cp39-cp39-manylinux2014_armv7l.whl ### Custom Code Yes ### OS Platform and Distribution Linux raspbari14 6.1.32-v7+ #1656 SMP Wed Jun 7 11:31:19 BST 2023 armv7l GNU/Linux ### Mobile device _No response_ ### Python version Python 3.9.2 (default, Mar 12 2021, 04:06:34) ### Bazel version _No response_ ### GCC/Compiler version [GCC 10.2.1 20210110] on linux ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? Not working as documented: `import tflite_runtime.interpreter as tflite` How to import Tensorflow Lite in python scripts? ### Standalone code to reproduce the issue ```shell $ python3 -m pip install tflite-runtime Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting tflite-runtime Downloading tflite_runtime-2.12.0-cp39-cp39-manylinux2014_armv7l.whl (1.8 MB) |████████████████████████████████| 1.8 MB 2.6 MB/s Requirement already satisfied: numpy>=1.19.2 in /home/chowkidar/.local/lib/python3.9/site-packages (from tflite-runtime) (1.23.1) Installing collected packages: tflite-runtime Successfully installed tflite-runtime-2.12.0 $ python3 Python 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'tensorflow' >>> import tflite_runtime.interpreter as tflite Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/chowkidar/.local/lib/python3.9/site-packages/tflite_runtime/interpreter.py", line 33, in <module> from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper ImportError: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/chowkidar/.local/lib/python3.9/site-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so) >>> ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60835/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60835/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60834
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60834/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60834/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60834/events
https://github.com/tensorflow/tensorflow/issues/60834
1,751,115,807
I_kwDOArmXAs5oX-gf
60,834
Could not interpret loss function "NDCG Lambda Weight V2"
{ "login": "mega-TWZ", "id": 77107277, "node_id": "MDQ6VXNlcjc3MTA3Mjc3", "avatar_url": "https://avatars.githubusercontent.com/u/77107277?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mega-TWZ", "html_url": "https://github.com/mega-TWZ", "followers_url": "https://api.github.com/users/mega-TWZ/followers", "following_url": "https://api.github.com/users/mega-TWZ/following{/other_user}", "gists_url": "https://api.github.com/users/mega-TWZ/gists{/gist_id}", "starred_url": "https://api.github.com/users/mega-TWZ/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mega-TWZ/subscriptions", "organizations_url": "https://api.github.com/users/mega-TWZ/orgs", "repos_url": "https://api.github.com/users/mega-TWZ/repos", "events_url": "https://api.github.com/users/mega-TWZ/events{/privacy}", "received_events_url": "https://api.github.com/users/mega-TWZ/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "may should be this one\r\nloss = tfr.keras.losses.ApproxNDCGLoss(lambda_weight=tfr.keras.losses.NDCGLambdaWeightV2(topn=60))\r\n", "@mega-TWZ Thank you for reporting an issue. Could you provide more details on this issue for which you are requesting the feature. Please share the complete standalone code to replicate the issue.\r\nThank you!", "> @mega-TWZ感谢您报告问题。您能否提供有关您请求该功能的这个问题的更多详细信息。请共享完整的独立代码以重现问题题。 谢谢你!\r\n\r\ntfr --> keras --> losses\r\n\r\nThe intention here is a bit vague, we should better distinguish between 'lambda_weight' and 'losses', rather than placing them in the same directory\r\n\r\na picture of tfr.keras.losses (https://github.com/tensorflow/tensorflow/assets/77107277/bc2b6ba7-5868-49cf-899c-d4bc92a610e0)\r\n", "> @mega-TWZ Thank you for reporting an issue. Could you provide more details on this issue for which you are requesting the feature. Please share the complete standalone code to replicate the issue. Thank you!\r\n\r\nyou can see my first comment, I have re-edit it\r\nI have solve this problem now", "@mega-TWZ Thank you for your response!\r\nThis issue seems to be Keras feature. Please post this issue on [keras-team/keras repo.](https://github.com/keras-team/keras/issues) as Keras development is fully moving to [github.com/keras-team/keras](http://github.com/keras-team/keras). All issues and PRs related to keras will be addressed in that repo.\r\nTo know more see this TF forum discussion ; \r\n[https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999](https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999)\r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further." ]
2023-06-10T20:48:10
2023-06-29T02:06:15
2023-06-29T02:06:15
NONE
null
null
null
A erro happened! Could not interpret loss function NDCG Lambda Weight V2 ------------------------------------------------------------------- model.compile ( optimizer=optimizer, loss=tfr.keras.losses.NDCGLambdaWeightV2(topn=60), metrics=[tfr.keras.metrics.NDCGMetric(topn=60), tfr.keras.metrics.OPAMetric()] ) model.fit(train_dataset, epochs=20) ------------------------------------------------------------- some error happened in " mode.fit()" ValueError: Could not interpret loss function identifier: <tensorflow_ranking.python.keras.losses.NDCGLambdaWeightV2 object at 0x7fa0e84ee6e0>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60834/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60834/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60833
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60833/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60833/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60833/events
https://github.com/tensorflow/tensorflow/issues/60833
1,751,057,335
I_kwDOArmXAs5oXwO3
60,833
Duplicate logging inside custom training loop
{ "login": "m5k5", "id": 105224867, "node_id": "U_kgDOBkWaow", "avatar_url": "https://avatars.githubusercontent.com/u/105224867?v=4", "gravatar_id": "", "url": "https://api.github.com/users/m5k5", "html_url": "https://github.com/m5k5", "followers_url": "https://api.github.com/users/m5k5/followers", "following_url": "https://api.github.com/users/m5k5/following{/other_user}", "gists_url": "https://api.github.com/users/m5k5/gists{/gist_id}", "starred_url": "https://api.github.com/users/m5k5/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/m5k5/subscriptions", "organizations_url": "https://api.github.com/users/m5k5/orgs", "repos_url": "https://api.github.com/users/m5k5/repos", "events_url": "https://api.github.com/users/m5k5/events{/privacy}", "received_events_url": "https://api.github.com/users/m5k5/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@m5k5,\r\nI tried to execute the mentioned code on tensorflow v2.12 and it was executed as expected. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/9112576d447c1c141bc5c1843a1b999f/untitled1197.ipynb) and confirm whether the output was the same at your end as well. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60833\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60833\">No</a>\n", "@tilakrayal in your [comment above](https://github.com/tensorflow/tensorflow/issues/60833#issuecomment-1587337858) you mentioned that eveything works. Yes it works, but @m5k5 's point is about logging. I tried your [gist](https://colab.research.google.com/gist/tilakrayal/9112576d447c1c141bc5c1843a1b999f/untitled1197.ipynb) and the annoying runtime logs simply don't show up in the notebook output but they are in the runtime logs (colab -> runtime -> view runtime logs)\r\n\r\nIMHO one of the simplest programs to show the problem:\r\n```python\r\nd = tf.data.Dataset.from_tensor_slices(tf.range(10))\r\nnext(iter(d)) # logs appear when iterating on the dataset\r\n```\r\nprints this:\r\n```\r\n2023-09-08 09:13:55.788352: I tensorflow/core/common_runtime/executor.cc:1209] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype int32 and shape [10]\r\n```\r\nSince TF2.12, our logs are cluttered with these incomprehensible logs.\r\n@m5k5 could you please reopen this issue ?", "Hey @thierryherrmann .\r\nThanks for mentioning this. I just thought this happens only on my machine for some other reason (maybe the WSL I use).\r\nI see this \"You must feed a value for placeholder...\" log in Tensorflow 2.12 and 2.13.\r\n\r\n", "Additional note: in other issues the TF team already suggested that one way of silencing the C++ INFO logs is `os.environ['TF_CPP_MIN_LOG_LEVEL']='1'`. But this silences other useful logs especially when using GPUs. So this would not be an appropriate answer.\r\n@m5k5 I would appreciate if you could reopen the issue. Thanks.", "I can't reopen the issue, I guess @tilakrayal has to do it.", "@thierryherrmann @m5k5,\r\nApologies. As the user requested, Re-opening this issue as it is still valid. Thank you!" ]
2023-06-10T17:49:40
2023-10-17T21:16:18
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version TF 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Windows WSL Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cuDNN version 8600 ### GPU model and memory GTX 1070 ### Current Behaviour? Hey guys. I am experiencing a strange behavior when I try to print something from inside my custom training loop. I want to run the code example as a .ipynb from a Windows machine with WSL Ubuntu 20.04. (https://github.com/m5k5/tf-example). The code loops over the dataset and prints out the log statements but it somehow resets the steps after a while: " Log at step 80 train step at step 81 train step at step 82 train step at step 83 train step at step 84 train step at step 85 train step at step 86 train step at step 0 Log at step 0 train step at step 1 train step at step 2 train step at step 3 train step at step 4 train step at step 5 " Originally, I have a project where I need to use the WSL to get the GPU processing within Windows. The print statements are used for logging metrics like accuracy and loss. The values themselves are calculated correctly but there are a lot of duplicates that I can not explain. Does anyone have similar issues? Thanks in advance! ### Standalone code to reproduce the issue ```shell https://github.com/m5k5/tf-example ``` ### Relevant log output ```shell Start of epoch 1 2023-06-10 19:30:47.154065: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_1' with dtype uint8 and shape [60000] [[{{node Placeholder/_1}}]] 2023-06-10 19:30:47.154065: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_1' with dtype uint8 and shape [60000] [[{{node Placeholder/_1}}]] 2023-06-10 19:30:47.766468: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8600 2023-06-10 19:30:47.154065: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_1' with dtype uint8 and shape [60000] [[{{node Placeholder/_1}}]] 2023-06-10 19:30:47.766468: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8600 2023-06-10 19:30:48.254207: I tensorflow/compiler/xla/service/service.cc:169] XLA service 0x7f2e52d1a840 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2023-06-10 19:30:48.254240: I tensorflow/compiler/xla/service/service.cc:177] StreamExecutor device (0): NVIDIA GeForce GTX 1070, Compute Capability 6.1 2023-06-10 19:30:48.256794: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:269] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable. 2023-06-10 19:30:48.348961: I ./tensorflow/compiler/jit/device_compiler.h:180] Compiled cluster using XLA! This line is logged at most once for the lifetime of the process. train step at step 0 Log at step 0 train step at step 1 train step at step 2 train step at step 3 train step at step 4 train step at step 5 train step at step 6 train step at step 7 train step at step 8 train step at step 9 train step at step 10 train step at step 11 train step at step 12 train step at step 13 train step at step 14 train step at step 15 train step at step 16 train step at step 17 train step at step 18 train step at step 19 train step at step 20 Log at step 20 train step at step 21 train step at step 22 train step at step 23 train step at step 24 train step at step 25 train step at step 26 train step at step 27 train step at step 28 train step at step 29 train step at step 30 train step at step 31 train step at step 32 train step at step 33 train step at step 34 train step at step 35 train step at step 36 train step at step 37 train step at step 38 train step at step 39 train step at step 40 Log at step 40 train step at step 41 train step at step 42 train step at step 43 train step at step 44 train step at step 45 train step at step 46 train step at step 47 train step at step 48 train step at step 49 train step at step 50 train step at step 51 train step at step 52 train step at step 53 train step at step 54 train step at step 55 train step at step 56 train step at step 57 train step at step 58 train step at step 59 train step at step 60 Log at step 60 train step at step 61 train step at step 62 train step at step 63 train step at step 64 train step at step 65 train step at step 66 train step at step 67 train step at step 68 train step at step 69 train step at step 70 train step at step 71 train step at step 72 train step at step 73 train step at step 74 train step at step 75 train step at step 76 train step at step 77 train step at step 78 train step at step 79 train step at step 80 Log at step 80 train step at step 81 train step at step 82 train step at step 83 train step at step 84 train step at step 85 train step at step 86 train step at step 0 Log at step 0 train step at step 1 train step at step 2 train step at step 3 train step at step 4 train step at step 5 train step at step 6 train step at step 7 train step at step 8 train step at step 9 train step at step 10 train step at step 11 train step at step 12 train step at step 13 train step at step 14 train step at step 15 train step at step 16 train step at step 17 train step at step 18 train step at step 19 train step at step 20 Log at step 20 train step at step 21 train step at step 22 train step at step 23 train step at step 24 train step at step 25 train step at step 26 train step at step 27 train step at step 28 train step at step 29 train step at step 30 train step at step 31 train step at step 32 train step at step 33 train step at step 34 train step at step 35 train step at step 36 train step at step 37 train step at step 38 train step at step 39 train step at step 40 Log at step 40 train step at step 41 train step at step 42 train step at step 43 train step at step 44 train step at step 45 train step at step 46 train step at step 47 train step at step 48 train step at step 49 train step at step 50 train step at step 51 train step at step 52 train step at step 53 train step at step 54 train step at step 55 train step at step 56 train step at step 57 train step at step 58 train step at step 59 train step at step 60 Log at step 60 train step at step 61 train step at step 62 train step at step 63 train step at step 64 train step at step 65 train step at step 66 train step at step 67 train step at step 68 train step at step 69 train step at step 70 train step at step 71 train step at step 72 train step at step 73 train step at step 74 train step at step 75 train step at step 76 train step at step 77 train step at step 78 train step at step 79 train step at step 80 Log at step 80 train step at step 81 train step at step 82 train step at step 83 train step at step 84 train step at step 85 train step at step 86 train step at step 87 train step at step 88 train step at step 89 train step at step 90 train step at step 91 train step at step 92 train step at step 93 train step at step 94 train step at step 95 train step at step 96 train step at step 97 train step at step 98 train step at step 99 train step at step 100 Log at step 100 train step at step 101 train step at step 102 train step at step 103 train step at step 104 train step at step 105 train step at step 106 train step at step 107 train step at step 108 train step at step 109 train step at step 110 train step at step 111 train step at step 112 train step at step 113 train step at step 114 train step at step 115 train step at step 116 train step at step 117 train step at step 118 train step at step 119 train step at step 120 Log at step 120 train step at step 121 train step at step 122 train step at step 123 train step at step 124 train step at step 125 train step at step 126 train step at step 127 train step at step 128 train step at step 129 train step at step 130 train step at step 131 train step at step 132 train step at step 133 train step at step 134 train step at step 135 train step at step 136 train step at step 137 train step at step 138 train step at step 139 train step at step 140 Log at step 140 train step at step 141 train step at step 142 train step at step 143 train step at step 144 train step at step 145 train step at step 146 train step at step 147 train step at step 148 train step at step 149 train step at step 150 train step at step 151 train step at step 152 train step at step 153 train step at step 154 train step at step 155 train step at step 156 train step at step 157 train step at step 158 train step at step 159 train step at step 160 Log at step 160 train step at step 161 train step at step 162 train step at step 163 train step at step 164 train step at step 165 train step at step 166 train step at step 167 train step at step 168 train step at step 169 train step at step 170 train step at step 171 train step at step 172 train step at step 173 train step at step 174 train step at step 0 Log at step 0 train step at step 1 train step at step 2 train step at step 3 train step at step 4 train step at step 5 train step at step 6 train step at step 7 train step at step 8 train step at step 9 train step at step 10 train step at step 11 train step at step 12 train step at step 13 train step at step 14 train step at step 15 train step at step 16 train step at step 17 train step at step 18 train step at step 19 train step at step 20 Log at step 20 train step at step 21 train step at step 22 train step at step 23 train step at step 24 train step at step 25 train step at step 26 train step at step 27 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60833/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60833/timeline
null
reopened
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60832
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60832/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60832/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60832/events
https://github.com/tensorflow/tensorflow/issues/60832
1,751,030,650
I_kwDOArmXAs5oXpt6
60,832
Tensorflow r2.13 build from source: cudnn_frontend_Operation.h:413:16: error: enumeration value ‘CUDNN_POINTWISE_RECIPROCAL’ not handled in switch [-Werror=switch]
{ "login": "spamming4", "id": 63555283, "node_id": "MDQ6VXNlcjYzNTU1Mjgz", "avatar_url": "https://avatars.githubusercontent.com/u/63555283?v=4", "gravatar_id": "", "url": "https://api.github.com/users/spamming4", "html_url": "https://github.com/spamming4", "followers_url": "https://api.github.com/users/spamming4/followers", "following_url": "https://api.github.com/users/spamming4/following{/other_user}", "gists_url": "https://api.github.com/users/spamming4/gists{/gist_id}", "starred_url": "https://api.github.com/users/spamming4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spamming4/subscriptions", "organizations_url": "https://api.github.com/users/spamming4/orgs", "repos_url": "https://api.github.com/users/spamming4/repos", "events_url": "https://api.github.com/users/spamming4/events{/privacy}", "received_events_url": "https://api.github.com/users/spamming4/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @spamming4 ,\r\n\r\nThe issue might be due to the cuDNN version. TF2.13 tested on cuDNN 8.6 and CUDA 11.8.\r\n\r\nI am attaching a reference ticket #60398 of similar problem and where user able to get it resolved downgrading to cuDNN 8.6 version. Please refer to official tested build [configurations](https://www.tensorflow.org/install/source#gpu). \r\n\r\nPlease also make a note that starting from Tf21.3 TF builds uses Clang 16.0 as compiler instead of GCC.\r\n\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60832\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60832\">No</a>\n" ]
2023-06-10T16:21:06
2023-06-27T02:09:40
2023-06-27T02:09:36
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version r2.13 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 22.04 ### Mobile device _No response_ ### Python version 3.10 ### Bazel version 6.2.1 ### GCC/Compiler version 11.3.0 ### CUDA/cuDNN version 12.1/8.9.2.26 ### GPU model and memory NVIDIA GeForce 940MX ### Current Behaviour? I was trying to build Tensorflow from source (branch r2.13). During the build the following error happend which halted the build execution: ERROR: /home/vyepishov/Documents/dev/git/tensorflow/tensorflow/compiler/xla/stream_executor/cuda/BUILD:377:11: Compiling tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/xla/stream_executor/cuda/_objs/cudnn_plugin/cuda_dnn.pic.d ... (remaining 142 arguments skipped) In file included from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h:37, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_OperationGraph.h:36, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Heuristics.h:31, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend.h:101, from tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:56: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_PointWiseDesc.h: In member function ‘int64_t cudnn_frontend::PointWiseDesc_v8::getPortCount() const’: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_PointWiseDesc.h:69:16: error: enumeration value ‘CUDNN_POINTWISE_RECIPROCAL’ not handled in switch [-Werror=switch] 69 | switch (mode) { | ^ In file included from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_OperationGraph.h:36, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Heuristics.h:31, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend.h:101, from tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:56: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h: In member function ‘cudnn_frontend::Operation_v8&& cudnn_frontend::OperationBuilder_v8::build_pointwise_op()’: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h:413:16: error: enumeration value ‘CUDNN_POINTWISE_RECIPROCAL’ not handled in switch [-Werror=switch] 413 | switch (m_operation.pointwise_mode) { | ^ ### Standalone code to reproduce the issue ```shell $ cd ~/Documents/dev/git/tensorflow $ git checkout r2.13 $ git pull $ ./configure $ bazel build --config=mkl --config=opt //tensorflow/tools/pip_package:build_pip_package ``` ### Relevant log output ```shell ~/Documents/dev/git/tensorflow$ bazel build --config=mkl --config=opt //tensorflow/tools/pip_package:build_pip_package Extracting Bazel installation... Starting local Bazel server and connecting to it... INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=211 INFO: Reading rc options for 'build' from ~/Documents/dev/git/tensorflow/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from ~/Documents/dev/git/tensorflow/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from ~/Documents/dev/git/tensorflow/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=~/Documents/dev/programs/miniconda3/envs/tf/bin/python3 --action_env PYTHON_LIB_PATH=~/Documents/dev/programs/miniconda3/envs/tf/lib/python3.10/site-packages --python_path=~/Documents/dev/programs/miniconda3/envs/tf/bin/python3 --action_env CUDA_TOOLKIT_PATH=/usr/local/cuda-12.1 --action_env TF_CUDA_COMPUTE_CAPABILITIES=5.0 --action_env LD_LIBRARY_PATH=/usr/lib/libreoffice/program:/usr/local/cuda/targets/x86_64-linux/lib:/usr/lib/x86_64-linux-gnu --action_env GCC_HOST_COMPILER_PATH=/usr/bin/x86_64-linux-gnu-gcc-11 --config=cuda INFO: Reading rc options for 'build' from ~/Documents/dev/git/tensorflow/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug INFO: Found applicable config definition build:short_logs in file ~/Documents/dev/git/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:cuda in file ~/Documents/dev/git/tensorflow/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda INFO: Found applicable config definition build:mkl in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=build_with_mkl=true --define=enable_mkl=true --define=tensorflow_mkldnn_contraction_kernel=0 --define=build_with_openmp=true -c opt INFO: Found applicable config definition build:opt in file ~/Documents/dev/git/tensorflow/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare INFO: Found applicable config definition build:linux in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes INFO: Found applicable config definition build:dynamic_kernels in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/b971ac5250ea8de900eae9f95e06548d14cd95fe.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/43d81c6883ade82052920bd367c61f9e52f09954.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/nvidia/nccl/archive/v2.16.5-1.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/pybind/pybind11_abseil/archive/2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/NVIDIA/cudnn-frontend/archive/refs/tags/v0.8.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/triton/archive/1627e0c27869b4098e5fa720717645c1baaf5972.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (631 packages loaded, 44329 targets configured). INFO: Found 1 target... ERROR: ~/Documents/dev/git/tensorflow/tensorflow/compiler/xla/stream_executor/cuda/BUILD:377:11: Compiling tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/xla/stream_executor/cuda/_objs/cudnn_plugin/cuda_dnn.pic.d ... (remaining 142 arguments skipped) In file included from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h:37, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_OperationGraph.h:36, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Heuristics.h:31, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend.h:101, from tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:56: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_PointWiseDesc.h: In member function ‘int64_t cudnn_frontend::PointWiseDesc_v8::getPortCount() const’: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_PointWiseDesc.h:69:16: error: enumeration value ‘CUDNN_POINTWISE_RECIPROCAL’ not handled in switch [-Werror=switch] 69 | switch (mode) { | ^ In file included from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_OperationGraph.h:36, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Heuristics.h:31, from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend.h:101, from tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:56: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h: In member function ‘cudnn_frontend::Operation_v8&& cudnn_frontend::OperationBuilder_v8::build_pointwise_op()’: bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_Operation.h:413:16: error: enumeration value ‘CUDNN_POINTWISE_RECIPROCAL’ not handled in switch [-Werror=switch] 413 | switch (m_operation.pointwise_mode) { | ^ cc1plus: some warnings being treated as errors Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1819.010s, Critical Path: 107.08s INFO: 5429 processes: 2198 internal, 3231 local. FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60832/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60832/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60831
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60831/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60831/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60831/events
https://github.com/tensorflow/tensorflow/issues/60831
1,750,903,832
I_kwDOArmXAs5oXKwY
60,831
Tensorflow lite selective build results _ZN6google8protobuf8internal26fixed_address_empty_stringE" error, build fails with tne --config=monolithic setup, returning the Check failed: existing == nullptr (Tensor already registered) errror
{ "login": "dachshund-ncu", "id": 56702890, "node_id": "MDQ6VXNlcjU2NzAyODkw", "avatar_url": "https://avatars.githubusercontent.com/u/56702890?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dachshund-ncu", "html_url": "https://github.com/dachshund-ncu", "followers_url": "https://api.github.com/users/dachshund-ncu/followers", "following_url": "https://api.github.com/users/dachshund-ncu/following{/other_user}", "gists_url": "https://api.github.com/users/dachshund-ncu/gists{/gist_id}", "starred_url": "https://api.github.com/users/dachshund-ncu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dachshund-ncu/subscriptions", "organizations_url": "https://api.github.com/users/dachshund-ncu/orgs", "repos_url": "https://api.github.com/users/dachshund-ncu/repos", "events_url": "https://api.github.com/users/dachshund-ncu/events{/privacy}", "received_events_url": "https://api.github.com/users/dachshund-ncu/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "terryheo", "id": 2908505, "node_id": "MDQ6VXNlcjI5MDg1MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4", "gravatar_id": "", "url": "https://api.github.com/users/terryheo", "html_url": "https://github.com/terryheo", "followers_url": "https://api.github.com/users/terryheo/followers", "following_url": "https://api.github.com/users/terryheo/following{/other_user}", "gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}", "starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/terryheo/subscriptions", "organizations_url": "https://api.github.com/users/terryheo/orgs", "repos_url": "https://api.github.com/users/terryheo/repos", "events_url": "https://api.github.com/users/terryheo/events{/privacy}", "received_events_url": "https://api.github.com/users/terryheo/received_events", "type": "User", "site_admin": false }
[ { "login": "terryheo", "id": 2908505, "node_id": "MDQ6VXNlcjI5MDg1MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4", "gravatar_id": "", "url": "https://api.github.com/users/terryheo", "html_url": "https://github.com/terryheo", "followers_url": "https://api.github.com/users/terryheo/followers", "following_url": "https://api.github.com/users/terryheo/following{/other_user}", "gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}", "starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/terryheo/subscriptions", "organizations_url": "https://api.github.com/users/terryheo/orgs", "repos_url": "https://api.github.com/users/terryheo/repos", "events_url": "https://api.github.com/users/terryheo/events{/privacy}", "received_events_url": "https://api.github.com/users/terryheo/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @dachshund-ncu, which way are you building? With Docker/ w/o Docker? Please provide exact steps so that we can reproduce your issue. This includes commands prior to docker commands, docker commands (if applicable), commands within the docker (if applicable).", "Hi @pkgoogle, the build steps are presented below:\r\n\r\n\r\n## Prepare docker envirnoment:\r\n1. Download a docker file from [here](https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/lite/tools/tflite-android.Dockerfile).\r\n\r\n2. Edit the dockerfile:\r\n - change the lines:\r\n \r\n From\r\n ```\r\n FROM tensorflow/build:latest-python3.11\r\n ENV ANDROID_API_LEVEL 23\r\n ENV ANDROID_BUILD_TOOLS_VERSION 31.0.0\r\n ```\r\n \r\n To\r\n ```\r\n FROM tensorflow/build:2.13-python3.11\r\n ENV ANDROID_API_LEVEL 29\r\n ENV ANDROID_BUILD_TOOLS_VERSION 34.0.0\r\n ```\r\n\r\n3. Build docker envirnoment:\r\n ```bash\r\n docker build . -t tflite-builder -f tflite-android.Dockerfile\r\n ```\r\n\r\n4. Run docker:\r\n ```bash\r\n docker run -it -v $PWD:/host_dir tflite-builder bash\r\n ```\r\n\r\n## Inside docker envirnoment:\r\n1. Install android tools:\r\n ```bash\r\n sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS_VERSION}\"\r\n sdkmanager \"platform-tools\"\r\n sdkmanager \"platforms;android-${ANDROID_API_LEVEL}\"\r\n ```\r\n\r\n2. Clone tensorflow repository\r\n ```bash\r\n git clone https://github.com/tensorflow/tensorflow.git\r\n ```\r\n\r\n3. Change working directory to the tensorflow repo\r\n ```bash\r\n cd tensorflow\r\n ```\r\n\r\n4. Checkout to the 2.13 release tag:\r\n ```bash\r\n git checkout r2.13\r\n ```\r\n\r\n5. Add one line to the .bazelrc file:\r\n ```bash\r\n echo -n \"build --config=monolithic\" >> .bazelrc\r\n ```\r\n\r\n6. Configure:\r\n ```bash\r\n ./configure\r\n ```\r\n - Inside the configure:\r\n ```\r\n Please specify the location of python. [Default is /usr/bin/python3]\r\n \r\n /usr/bin/python3\r\n ```\r\n\r\n ```\r\n Found possible Python library paths:\r\n /usr/lib/python3/dist-packages\r\n /usr/local/lib/python3.11/dist-packages\r\n Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]\r\n\r\n /usr/lib/python3/dist-packages\r\n ```\r\n\r\n ```\r\n Do you wish to build TensorFlow with ROCm support? [y/N]:\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Do you wish to build TensorFlow with CUDA support? [y/N]:\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Do you wish to download a fresh release of clang? (Experimental) [y/N]\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Please specify optimization flags to use during compilation when bazel option \"--config=opt\" is specified [Default is -Wno-sign-compare]:\r\n\r\n < no answer here, just hit ENTER >\r\n ```\r\n\r\n ```\r\n Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: \r\n \r\n y\r\n ```\r\n\r\n7. Contents of the ```.tf_configure.bazelrc```:\r\n ```\r\n build --action_env PYTHON_BIN_PATH=\"/usr/bin/python3\"\r\n build --action_env PYTHON_LIB_PATH=\"/usr/lib/python3/dist-packages\"\r\n build --python_path=\"/usr/bin/python3\"\r\n build:opt --copt=-Wno-sign-compare\r\n build:opt --host_copt=-Wno-sign-compare\r\n build --action_env ANDROID_NDK_HOME=\"/android/ndk\"\r\n build --action_env ANDROID_NDK_API_LEVEL=\"21\"\r\n build --action_env ANDROID_BUILD_TOOLS_VERSION=\"34.0.0\"\r\n build --action_env ANDROID_SDK_API_LEVEL=\"29\"\r\n build --action_env ANDROID_SDK_HOME=\"/android/sdk\"\r\n test --flaky_test_attempts=3\r\n test --test_size_filters=small,medium\r\n test:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial\r\n test:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu\r\n test:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial,-v1only\r\n test:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-v1only\r\n ```\r\n\r\n8. Build command\r\n ```bash\r\n bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/left.tflite,/host_dir/right.tflite --target_archs=arm64-v8a\r\n ```\r\n Note, that ```/host_dir/left.tflite``` and ```/host_dir/right.tflite``` are the tflite models, placed in the docker ```/host_dir``` directory.\r\n\r\n9. Output message\r\n ```\r\n +++ dirname tensorflow/lite/tools/build_aar.sh\r\n ++ cd tensorflow/lite/tools\r\n ++ pwd\r\n + SCRIPT_DIR=/tensorflow/tensorflow/lite/tools\r\n ++ cd /tensorflow/tensorflow/lite/tools/../../../\r\n ++ pwd\r\n + ROOT_DIR=/tensorflow\r\n + TARGET_ARCHS=x86,x86_64,arm64-v8a,armeabi-v7a\r\n + '[' '!' -z ']'\r\n + '[' 2 -gt 4 ']'\r\n + for i in \"$@\"\r\n + case $i in\r\n + FLAG_MODELS=/host_dir/left.tflite,/host_dir/right.tflite\r\n + shift\r\n + for i in \"$@\"\r\n + case $i in\r\n + TARGET_ARCHS=arm64-v8a\r\n + shift\r\n + cd /tensorflow\r\n + '[' '!' -f /tensorflow/.tf_configure.bazelrc ']'\r\n + grep -q ANDROID_SDK_HOME /tensorflow/.tf_configure.bazelrc\r\n + '[' -z /host_dir/left.tflite,/host_dir/right.tflite ']'\r\n + TMP_DIR=/tensorflow/tmp/\r\n + rm -rf /tensorflow/tmp/\r\n + mkdir -p /tensorflow/tmp/\r\n + MODEL_NAMES=\r\n ++ echo /host_dir/left.tflite,/host_dir/right.tflite\r\n ++ sed 's/,/ /g'\r\n + for model in $(echo ${FLAG_MODELS} | sed \"s/,/ /g\")\r\n + cp /host_dir/left.tflite /tensorflow/tmp/\r\n ++ basename /host_dir/left.tflite\r\n + MODEL_NAMES=,left.tflite\r\n + for model in $(echo ${FLAG_MODELS} | sed \"s/,/ /g\")\r\n + cp /host_dir/right.tflite /tensorflow/tmp/\r\n ++ basename /host_dir/right.tflite\r\n + MODEL_NAMES=,left.tflite,right.tflite\r\n + TFLITE_OPS_SRCS=\r\n ++ echo\r\n ++ sed 's/,/ /g'\r\n + generate_tflite_aar\r\n + pushd /tensorflow/tmp/\r\n + message=('load(\"//tensorflow/lite:build_def.bzl\", \"tflite_custom_android_library\")' 'load(\"//tensorflow/lite/java:aar_with_jni.bzl\", \"aar_with_jni\")' '' 'tflite_custom_android_library(' ' name = \"custom_tensorflowlite\",')\r\n + message+=(' '$(generate_list_field \"models\" $MODEL_NAMES))\r\n ++ generate_list_field models ,left.tflite,right.tflite\r\n ++ local name=models\r\n ++ local list_string=,left.tflite,right.tflite\r\n ++ list=(${list_string//,/ })\r\n ++ local list\r\n ++ message=(\"$name=[\")\r\n ++ local message\r\n ++ for item in \"${list[@]}\"\r\n ++ message+=(\"\\\"$item\\\",\")\r\n ++ for item in \"${list[@]}\"\r\n ++ message+=(\"\\\"$item\\\",\")\r\n ++ message+=('],')\r\n ++ printf %s 'models=[' '\"left.tflite\",' '\"right.tflite\",' '],'\r\n + message+=(' '$(generate_list_field \"srcs\" $TFLITE_OPS_SRCS))\r\n ++ generate_list_field srcs\r\n ++ local name=srcs\r\n ++ local list_string=\r\n ++ list=(${list_string//,/ })\r\n ++ local list\r\n ++ message=(\"$name=[\")\r\n ++ local message\r\n ++ message+=('],')\r\n ++ printf %s 'srcs=[' '],'\r\n + message+=(' '$(generate_list_field \"deps\" $FLAG_TFLITE_OPS_DEPS))\r\n ++ generate_list_field deps\r\n ++ local name=deps\r\n ++ local list_string=\r\n ++ list=(${list_string//,/ })\r\n ++ local list\r\n ++ message=(\"$name=[\")\r\n ++ local message\r\n ++ message+=('],')\r\n ++ printf %s 'deps=[' '],'\r\n + message+=(')' '' 'aar_with_jni(' ' name = \"tensorflow-lite\",' ' android_library = \":custom_tensorflowlite\",' ')' '')\r\n + printf '%s\\n' 'load(\"//tensorflow/lite:build_def.bzl\", \"tflite_custom_android_library\")' 'load(\"//tensorflow/lite/java:aar_with_jni.bzl\", \"aar_with_jni\")' '' 'tflite_custom_android_library(' ' name = \"custom_tensorflowlite\",' ' models=[\"left.tflite\",\"right.tflite\",],' ' srcs=[],' ' deps=[],' ')' '' 'aar_with_jni(' ' name = \"tensorflow-lite\",' ' android_library = \":custom_tensorflowlite\",' ')' ''\r\n + popd\r\n + bazel build -c opt --cxxopt=--std=c++17 --fat_apk_cpu=arm64-v8a --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder --define=xnn_enable_arm_fp16=false --host_crosstool_top=@bazel_tools//tools/cpp:toolchain //tmp:tensorflow-lite\r\n Extracting Bazel installation...\r\n Starting local Bazel server and connecting to it...\r\n INFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=126\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\n INFO: Reading rc options for 'build' from /etc/bazel.bazelrc:\r\n 'build' options: --action_env=DOCKER_CACHEBUSTER=1682977560589058360 --host_action_env=DOCKER_HOST_CACHEBUSTER=1682977560680045781\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\n INFO: Reading rc options for 'build' from /tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=34.0.0 --action_env ANDROID_SDK_API_LEVEL=29 --action_env ANDROID_SDK_HOME=/android/sdk\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug --config=monolithic\r\n INFO: Found applicable config definition build:short_logs in file /tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\n INFO: Found applicable config definition build:v2 in file /tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\n INFO: Found applicable config definition build:monolithic in file /tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\n INFO: Found applicable config definition build:linux in file /tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes\r\n INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/b971ac5250ea8de900eae9f95e06548d14cd95fe.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n INFO: Analyzed target //tmp:tensorflow-lite (159 packages loaded, 11634 targets configured).\r\n INFO: Found 1 target...\r\n Target //tmp:tensorflow-lite up-to-date:\r\n bazel-bin/tmp/tensorflow-lite.aar\r\n INFO: Elapsed time: 174.543s, Critical Path: 39.53s\r\n INFO: 1354 processes: 269 internal, 1085 local.\r\n INFO: Build completed successfully, 1354 total actions\r\n + OUT_FILES=' bazel-bin/tmp/tensorflow-lite.aar'\r\n + bazel build -c opt --config=monolithic //tensorflow/lite/tools:list_flex_ops_no_kernel_main\r\n WARNING: The following configs were expanded more than once: [monolithic]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.\r\n INFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=126\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\n INFO: Reading rc options for 'build' from /etc/bazel.bazelrc:\r\n 'build' options: --action_env=DOCKER_CACHEBUSTER=1682977560589058360 --host_action_env=DOCKER_HOST_CACHEBUSTER=1682977560680045781\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\n INFO: Reading rc options for 'build' from /tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=34.0.0 --action_env ANDROID_SDK_API_LEVEL=29 --action_env ANDROID_SDK_HOME=/android/sdk\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug --config=monolithic\r\n INFO: Found applicable config definition build:short_logs in file /tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\n INFO: Found applicable config definition build:v2 in file /tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\n INFO: Found applicable config definition build:monolithic in file /tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\n INFO: Found applicable config definition build:monolithic in file /tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\n INFO: Found applicable config definition build:linux in file /tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes\r\n INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n INFO: Build options --cxxopt, --define, and --fat_apk_cpu have changed, discarding analysis cache.\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/b971ac5250ea8de900eae9f95e06548d14cd95fe.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n INFO: Analyzed target //tensorflow/lite/tools:list_flex_ops_no_kernel_main (7 packages loaded, 1085 targets configured).\r\n INFO: Found 1 target...\r\n Target //tensorflow/lite/tools:list_flex_ops_no_kernel_main up-to-date:\r\n bazel-bin/tensorflow/lite/tools/list_flex_ops_no_kernel_main\r\n INFO: Elapsed time: 13.111s, Critical Path: 10.67s\r\n INFO: 173 processes: 82 internal, 91 local.\r\n INFO: Build completed successfully, 173 total actions\r\n + bazel-bin/tensorflow/lite/tools/list_flex_ops_no_kernel_main --graphs=/host_dir/left.tflite,/host_dir/right.tflite\r\n ++ cat /tensorflow/tmp//ops_list.txt\r\n + [[ [\"Add\",\"BroadcastGradientArgs\",\"ReluGrad\",\"Restore\",\"Save\"] != \\[\\] ]]\r\n + generate_flex_aar\r\n + pushd /tensorflow/tmp/\r\n /tensorflow/tmp /tensorflow\r\n + message=('load(\"//tensorflow/lite/delegates/flex:build_def.bzl\", \"tflite_flex_android_library\")' 'load(\"//tensorflow/lite/java:aar_with_jni.bzl\", \"aar_with_jni\")' '' 'tflite_flex_android_library(' ' name = \"custom_tensorflowlite_flex\",')\r\n + message+=(' '$(generate_list_field \"models\" $MODEL_NAMES))\r\n ++ generate_list_field models ,left.tflite,right.tflite\r\n ++ local name=models\r\n ++ local list_string=,left.tflite,right.tflite\r\n ++ list=(${list_string//,/ })\r\n ++ local list\r\n ++ message=(\"$name=[\")\r\n ++ local message\r\n ++ for item in \"${list[@]}\"\r\n ++ message+=(\"\\\"$item\\\",\")\r\n ++ for item in \"${list[@]}\"\r\n ++ message+=(\"\\\"$item\\\",\")\r\n ++ message+=('],')\r\n ++ printf %s 'models=[' '\"left.tflite\",' '\"right.tflite\",' '],'\r\n + message+=(')' '' 'aar_with_jni(' ' name = \"tensorflow-lite-select-tf-ops\",' ' android_library = \":custom_tensorflowlite_flex\",' ')')\r\n + printf '%s\\n' 'load(\"//tensorflow/lite/delegates/flex:build_def.bzl\", \"tflite_flex_android_library\")' 'load(\"//tensorflow/lite/java:aar_with_jni.bzl\", \"aar_with_jni\")' '' 'tflite_flex_android_library(' ' name = \"custom_tensorflowlite_flex\",' ' models=[\"left.tflite\",\"right.tflite\",],' ')' '' 'aar_with_jni(' ' name = \"tensorflow-lite-select-tf-ops\",' ' android_library = \":custom_tensorflowlite_flex\",' ')'\r\n + cp /tensorflow/tensorflow/lite/java/AndroidManifest.xml .\r\n + cp /tensorflow/tensorflow/lite/java/proguard.flags .\r\n + popd\r\n /tensorflow\r\n + bazel build -c opt --cxxopt=--std=c++17 --fat_apk_cpu=arm64-v8a --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder --define=xnn_enable_arm_fp16=false --host_crosstool_top=@bazel_tools//tools/cpp:toolchain //tmp:tensorflow-lite-select-tf-ops\r\n INFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=126\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\n INFO: Reading rc options for 'build' from /etc/bazel.bazelrc:\r\n 'build' options: --action_env=DOCKER_CACHEBUSTER=1682977560589058360 --host_action_env=DOCKER_HOST_CACHEBUSTER=1682977560680045781\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\n INFO: Reading rc options for 'build' from /tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=34.0.0 --action_env ANDROID_SDK_API_LEVEL=29 --action_env ANDROID_SDK_HOME=/android/sdk\r\n INFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug --config=monolithic\r\n INFO: Found applicable config definition build:short_logs in file /tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\n INFO: Found applicable config definition build:v2 in file /tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\n INFO: Found applicable config definition build:monolithic in file /tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\n INFO: Found applicable config definition build:linux in file /tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes\r\n INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n INFO: Build options --cxxopt, --define, and --fat_apk_cpu have changed, discarding analysis cache.\r\n WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/b971ac5250ea8de900eae9f95e06548d14cd95fe.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/pybind/pybind11_abseil/archive/2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/43d81c6883ade82052920bd367c61f9e52f09954.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\n INFO: Analyzed target //tmp:tensorflow-lite-select-tf-ops (462 packages loaded, 45802 targets configured).\r\n INFO: Found 1 target...\r\n ERROR: /tensorflow/tensorflow/BUILD:1646:19: Action tensorflow/_api/v2/v2.py [for host] failed: (Aborted): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\n 2023-06-19 07:29:06.906099: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n 2023-06-19 07:29:06.944621: F ./tensorflow/core/framework/variant_op_registry.h:114] Check failed: existing == nullptr (0x2bc5608 vs. nullptr)UnaryVariantDeviceCopy for direction: 1 and type_index: tensorflow::Tensor already registered\r\n Target //tmp:tensorflow-lite-select-tf-ops failed to build\r\n Use --verbose_failures to see the command lines of failed build steps.\r\n ERROR: /tensorflow/tensorflow/python/tools/BUILD:284:10 Middleman _middlemen/tensorflow_Spython_Stools_Sprint_Uselective_Uregistration_Uheader-runfiles failed: (Aborted): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\n INFO: Elapsed time: 4872.123s, Critical Path: 566.63s\r\n INFO: 16874 processes: 1454 internal, 15420 local.\r\n FAILED: Build did NOT complete successfully\r\n ```\r\n\r\n\r\n", "Hi @dachshund-ncu, Thanks for providing detailed reproducing steps, this helps a lot! Following your instructions with some modifications I was able to build the tflite aar, however I see you are using a command that is dependent your tflite models. This will probably allow you to continue with a bigger aar file, I can't reproduce your issue with your specific tflite model as I don't have access to those models.\r\n\r\nTo build the \"fatter\" aar, install your android tools as stated in the documentation:\r\n```\r\nsdkmanager \\\r\n \"build-tools;${ANDROID_BUILD_TOOLS_VERSION}\" \\\r\n \"platform-tools\" \\\r\n \"platforms;android-${ANDROID_API_LEVEL}\"\r\n```\r\nYour version is probably fine if you do it line by line, but when I pasted it all it seemed to say No to the license.\r\n\r\nWhen building the aar, just for arm64-v8a:\r\n```\r\nbazel build -c opt --fat_apk_cpu=arm64-v8a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder\r\n```\r\n\r\nLet me know if this works for you. Please close if this is sufficient for you.\r\n\r\nIf you need help w/ the specific model cases, please upload the additional models or at least a minimally reproducible toy model that reproduces the issue.", "Hello, thank for your response!\r\nUnfortunately, the provided solution produces message:\r\n```\r\nYour request is correct, but requested an empty set of targets. Nothing will be built\r\n```\r\n\r\nUnfortunately I cannot share the input models, but I asked for some dummy models that utilize the same operatos. It results in the same error as stated above.\r\nYou can find it attached to this message\r\n\r\nThank you for support!\r\n\r\n[model_small.tflite.zip](https://github.com/tensorflow/tensorflow/files/11833363/model_small.tflite.zip)\r\n", "Hi @dachshund-ncu, can you provide me the exact steps that led to the above error message? I am unsure what you mean by \"the provided solution\". i.e. I'm trying to answer did it fail on the build step? were you able to build the aar successfully or did it fail after you integrated it? I'll try to build the aar w/ your dummy models.", "Hi @dachshund-ncu, with your toy model I was able to build fine if I **don't** include this step:\r\n\r\n```shell\r\necho -n \"build --config=monolithic\" >> .bazelrc\r\n```\r\n\r\ndo you absolutely need this configuration?", "> Hi @dachshund-ncu, can you provide me the exact steps that led to the above error message? I am unsure what you mean by \"the provided solution\". i.e. I'm trying to answer did it fail on the build step? were you able to build the aar successfully or did it fail after you integrated it? I'll try to build the aar w/ your dummy models.\r\n\r\nSteps are exactly the same, as before, but instead of using ```build_aar.sh``` script I executed\r\nthe build command, provided few messages prior:\r\n```\r\nbazel build -c opt --fat_apk_cpu=arm64-v8a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder\r\n```\r\n\r\nIt results in output:\r\n```\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=120\r\nINFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /etc/bazel.bazelrc:\r\n 'build' options: --action_env=DOCKER_CACHEBUSTER=1682977560589058360 --host_action_env=DOCKER_HOST_CACHEBUSTER=1682977560680045781\r\nINFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=34.0.0 --action_env ANDROID_SDK_API_LEVEL=29 --action_env ANDROID_SDK_HOME=/android/sdk\r\nINFO: Reading rc options for 'build' from /tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python --config=monolithic\r\nINFO: Found applicable config definition build:short_logs in file /tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:monolithic in file /tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Found applicable config definition build:linux in file /tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes\r\nINFO: Found applicable config definition build:dynamic_kernels in file /tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\nWARNING: Usage: bazel build <options> <targets>.\r\nInvoke `bazel help build` for full description of usage and options.\r\nYour request is correct, but requested an empty set of targets. Nothing will be built.\r\nINFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).\r\nINFO: Found 0 targets...\r\nINFO: Elapsed time: 0.369s, Critical Path: 0.00s\r\nINFO: 1 process: 1 internal.\r\nINFO: Build completed successfully, 1 total action\r\n```\r\nAnd no .aar file is produced\r\n\r\n\r\n\r\n\r\n> Hi @dachshund-ncu, with your toy model I was able to build fine if I **don't** include this step:\r\n> \r\n> ```shell\r\n> echo -n \"build --config=monolithic\" >> .bazelrc\r\n> ```\r\n> \r\n> do you absolutely need this configuration?\r\n\r\nReason for adding --config=monolithic to the .bazelrc file is to avoid other error:\r\n```\r\n_ZN6google8protobuf8internal26fixed_address_empty_stringE\" error\r\n```\r\nduring running the android project. \r\n\r\nThis appeared to fix this issue for some other users (see [here](https://github.com/tensorflow/tensorflow/issues/45153) and [here](https://github.com/tensorflow/tensorflow/issues/46989) and [here](https://github.com/tensorflow/tensorflow/issues/59102) ), yet fails to build in my case.\r\n\r\n\r\n", "Hi @dachshund-ncu, there seems to be an issue with that command that doesn't output the aar... I was able to get the output if I made the aar really fat as in the documentation:\r\n\r\n```\r\nbazel build -c opt --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a \\\r\n --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \\\r\n --define=android_dexmerger_tool=d8_dexmerger \\\r\n --define=android_incremental_dexing_tool=d8_dexbuilder \\\r\n //tensorflow/lite/java:tensorflow-lite\r\n```\r\n\r\nCan you try that and use that aar for now while I investigate the other part?", "Hi @pkgoogle, command provided from documentation:\r\n```\r\nbazel build -c opt --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a \\\r\n --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \\\r\n --define=android_dexmerger_tool=d8_dexmerger \\\r\n --define=android_incremental_dexing_tool=d8_dexbuilder \\\r\n //tensorflow/lite/java:tensorflow-lite\r\n```\r\nproduces only the ```tensorflow-lite.aar``` file, but not the ```tensorflow-lite-select-tf-ops.aar```", "Hi @pkgoogle I was wondering if my issue is still under consideration by you.", "Hi @dachshund-ncu, I'm still looking at it but was having an internal docker issue which I just resolved, I'll let you know when I have more information. Thanks.", "I tried not editing the dockerfile but I'm running into the same issue:\r\n\r\n```\r\n[17,843 / 18,487] [Prepa] action 'SolibSymlink _solib_k8/_U_S_Stensorflow_Spython_C_Upywrap_Utensorflow_Uinternal.so_Ucclib___UteERROR: /tensorflow/tensorflow/BUILD:1646:19: Action tensorflow/_api/v2/v2.py [for host] failed: (Aborted): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\n2023-07-07 21:45:31.166998: F ./tensorflow/core/framework/variant_op_registry.h:114] Check failed: existing == nullptr (0x1b5bdc8 vs. nullptr)UnaryVariantDeviceCopy for direction: 1 and type_index: tensorflow::Tensor already registered\r\nTarget //tmp:tensorflow-lite-select-tf-ops failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nERROR: /tensorflow/tensorflow/python/tools/BUILD:284:10 Middleman _middlemen/tensorflow_Spython_Stools_Sprint_Uselective_Uregistration_Uheader-runfiles failed: (Aborted): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\nINFO: Elapsed time: 2219.284s, Critical Path: 349.98s\r\nINFO: 16874 processes: 1454 internal, 15420 local.\r\nFAILED: Build did NOT complete successfully\r\n```\r\n\r\nSeems like the combination of the workaround ```echo -n \"build --config=monolithic\" >> .bazelrc``` + your model is failing the build\r\n\r\nHi @terryheo, can you please take a look? Thanks.", "I have the same problem. Had to add the workaround for tensorflow 2.13.0 but them i have this build error. \r\nI had previously built an .aar that worked in tensorflow 2.9.3, but I am being asked to update the dependencies.", "Hi @dachshund-ncu, can you provide for me reproducible steps for the root cause of the issue?\r\n\r\n> java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol \"_ZN6google8protobuf8internal26fixed_address_empty_stringE\" referenced by \"/data/app/~~PgTBlp4bIwZ8yl02UBjqqg==/com.inseye.core.test-yoruTyRORPvs5Ap3TE6dGw==/base.apk!/lib/x86_64/libtensorflowlite_flex_jni.so\".\r\n\r\nWe shouldn't really rely on work-arounds long-term and it seems like we fixed the \"official way\" before so let's try to actually fix the root cause here.", "Dear @pkgoogle, I provide the steps to reproduce this bug below\r\n\r\n## Prepare docker envirnoment:\r\n1. Download a docker file from [here](https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/lite/tools/tflite-android.Dockerfile).\r\n\r\n2. Edit the dockerfile:\r\n - change the lines:\r\n \r\n From\r\n ```\r\n FROM tensorflow/build:latest-python3.11\r\n ENV ANDROID_API_LEVEL 23\r\n ENV ANDROID_BUILD_TOOLS_VERSION 31.0.0\r\n ```\r\n \r\n To\r\n ```\r\n FROM tensorflow/build:2.13-python3.11\r\n ENV ANDROID_API_LEVEL 29\r\n ENV ANDROID_BUILD_TOOLS_VERSION 34.0.0\r\n ```\r\n\r\n3. Build docker envirnoment:\r\n ```bash\r\n docker build . -t tflite-builder -f tflite-android.Dockerfile\r\n ```\r\n\r\n4. Run docker:\r\n ```bash\r\n docker run -it -v $PWD:/host_dir tflite-builder bash\r\n ```\r\n\r\n## Inside docker envirnoment:\r\n1. Install android tools:\r\n ```bash\r\n sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS_VERSION}\"\r\n sdkmanager \"platform-tools\"\r\n sdkmanager \"platforms;android-${ANDROID_API_LEVEL}\"\r\n ```\r\n\r\n2. Clone tensorflow repository\r\n ```bash\r\n git clone https://github.com/tensorflow/tensorflow.git\r\n ```\r\n\r\n3. Change working directory to the tensorflow repo\r\n ```bash\r\n cd tensorflow\r\n ```\r\n\r\n4. Checkout to the 2.13 release tag:\r\n ```bash\r\n git checkout r2.13\r\n ```\r\n\r\n5. Configure:\r\n ```bash\r\n ./configure\r\n ```\r\n - Inside the configure:\r\n ```\r\n Please specify the location of python. [Default is /usr/bin/python3]\r\n \r\n /usr/bin/python3\r\n ```\r\n\r\n ```\r\n Found possible Python library paths:\r\n /usr/lib/python3/dist-packages\r\n /usr/local/lib/python3.11/dist-packages\r\n Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]\r\n\r\n /usr/lib/python3/dist-packages\r\n ```\r\n\r\n ```\r\n Do you wish to build TensorFlow with ROCm support? [y/N]:\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Do you wish to build TensorFlow with CUDA support? [y/N]:\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Do you wish to download a fresh release of clang? (Experimental) [y/N]\r\n\r\n n\r\n ```\r\n\r\n ```\r\n Please specify optimization flags to use during compilation when bazel option \"--config=opt\" is specified [Default is -Wno-sign-compare]:\r\n\r\n < no answer here, just hit ENTER >\r\n ```\r\n\r\n ```\r\n Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: \r\n \r\n y\r\n ```\r\n\r\n6. Build command\r\n ```bash\r\n bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/left.tflite,/host_dir/right.tflite --target_archs=arm64-v8a\r\n ```\r\n Note, that ```/host_dir/left.tflite``` and ```/host_dir/right.tflite``` are the tflite models, placed in the docker ```/host_dir``` directory.\r\n\r\nI also attach the dummy model that contains the operators used.\r\n\r\n[model_small.tflite.zip](https://github.com/tensorflow/tensorflow/files/12574213/model_small.tflite.zip)\r\n", "Hi @dachshund-ncu, I was able to integrate the aar's into my default empty Android project fine (\"Hello Android!\"). I'm not really using any functionality though so maybe that's why I'm not running into the issue... how are you integrating the aar's into your project? and how are you using that functionality that is causing the error?", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "Hi @pkgoogle , the test is to run single inference through the network and then then the exception occurs\r\n\r\n`java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol \"_ZN6google8protobuf8internal26fixed_address_empty_stringE\" referenced by \"/data/app/~~PgTBlp4bIwZ8yl02UBjqqg==/com.inseye.core.test-yoruTyRORPvs5Ap3TE6dGw==/base.apk!/lib/x86_64/libtensorflowlite_flex_jni.so\".\r\n`\r\n", "Hi @mszczuj, there's still a lot of missing context, can you please show me the Android Studio code? a full project export from a toy version (that just loads and runs inference) would be the easiest to share.", "Dear @pkgoogle, you'll find a dummy android studio project attached.\r\n\r\nYou'll only need to change one line in inseye_tracker_core/build.gradle\r\nFrom\r\n```\r\nimplementation files(\"/home/michu/projects/dummy_tracker_core/tensorflow-lite-select-tf-ops.aar\")\r\n```\r\nto\r\n```\r\nimplementation files(\"your_directory/dummy_tracker_core/tensorflow-lite-select-tf-ops.aar\")\r\n```\r\nand run ```inseyeDNNTracker``` from ```main.kt``` in java->com.inseye.core (androidTest)\r\n\r\n[dummy_tracker_core.zip](https://github.com/tensorflow/tensorflow/files/12714527/dummy_tracker_core.zip)\r\n", "Hi @dachshund-ncu, thanks for the info it helps.\r\n\r\n@terryheo, I was able to replicate with with @dachshund-ncu's project, I also rebuilt the aar using the official instructions:\r\n\r\n```java\r\njava.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol \"_ZNK6google8protobuf7Message11GetTypeNameEv\" referenced by \"/data/app/~~bIkQuSqajVmYEPNnKetv5w==/com.inseye.core.test-7O34SiL9duJWfYnOaIKVsA==/base.apk!/lib/arm64-v8a/libtensorflowlite_flex_jni.so\"...\r\n```", "Any update on this issue? Ive ran into a similar error when building tensorflow select ops via docker on branch r2.13 on my model.\r\n@dachshund-ncu did you manage to find a workaround for your problem?", "Hi @shsaronian, can you please try with r2.15 or nightly. Also can you please share your reproduce steps the same way as above so that will give us more data to potentially solve the issue if it's the same issue. Thanks for your help.", "> Hi @shsaronian, can you please try with r2.15 or nightly. Also can you please share your reproduce steps the same way as above so that will give us more data to potentially solve the issue if it's the same issue. Thanks for your help.\r\n\r\nHi, thanks for responding. I will give r2.15 a try and let you know. Meanwhile, I downgraded to r2.9 and followed the official instructions using docker and I managed to build successfully. I didn't even need the <code>--config=monolithic</code> as I didn't run into the <code>_ZN6google8protobuf8internal26fixed_address_empty_stringE</code> error. ", "@pkgoogle I'm providing my reproduce steps on r2.13 to get to the above issue.\r\n\r\n1. Downloaded the official Docker file from [here](https://github.com/tensorflow/tensorflow/blob/r2.13/tensorflow/lite/tools/tflite-android.Dockerfile) and put it into an empty directory.\r\n2. Followed the official documentation and built the image: \r\n<pre><code>docker build . -t tflite-builder -f tflite-android.Dockerfile</code></pre>\r\n3. Ran the container:\r\n<pre><code>docker run -it -v $PWD:/host_dir tflite-builder bash</code></pre>\r\n4. Inside the container, ran the following commands:\r\n<pre><code>sdkmanager \\\r\n \"build-tools;${ANDROID_BUILD_TOOLS_VERSION}\" \\\r\n \"platform-tools\" \\\r\n \"platforms;android-${ANDROID_API_LEVEL}\" </code></pre>\r\n5. Cloned tensorflow r2.13 branch with depth of 1:\r\n<pre><code>git clone https://github.com/tensorflow/tensorflow.git --branch r2.13 --depth 1</code></pre>\r\n6. Changed working directory to the tensorflow repo:\r\n<pre><code>cd tensorflow</code></pre>\r\n7. Executed configure file:\r\n<pre><code>python configure.py</code></pre>\r\n8. Answered the questions like this:\r\n<pre><code>Please specify the location of python. [Default is /usr/bin/python3]: /usr/bin/python3\r\nPlease input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]: /usr/lib/python3/dist-packages\r\nDo you wish to build TensorFlow with ROCm support? [y/N]: N\r\nDo you wish to build TensorFlow with CUDA support? [y/N]: N\r\nDo you wish to download a fresh release of clang? (Experimental) [y/N]: N\r\nPlease specify optimization flags to use during compilation when bazel option \"--config=opt\" is specified [Default is -Wno-sign-compare]: -Wno-sign-compare\r\nWould you like to interactively configure ./WORKSPACE for Android builds? [y/N]: y</code></pre>\r\n9. Finally, executed the build command:\r\n<pre><code>bash tensorflow/lite/tools/build_aar.sh \\\r\n --input_models=path/to/models \\\r\n --target_archs=arm64-v8a,armeabi-v7a</code></pre>\r\n\r\nJust like above, if I execute the build command without the monolitic option, I get the <code>_ZN6google8protobuf8internal26fixed_address_empty_stringE</code> error, and when I do insert the monolitic option in .bazelrc file with <code>echo -n \"build --config=monolithic\" >> .bazelrc</code> command, my build fails with <code>Check failed: existing == nullptr (Tensor already registered)</code> error.", "I am encountering a similar error with 2.13\r\n\r\nAnyone knows if 2.15 solves the error? Do you need \r\n\r\n`echo -n \"build --config=monolithic\" >> .bazelrc`\r\n\r\n command for 2.15?", "> I am encountering a similar error with 2.13\r\n> \r\n> Anyone knows if 2.15 solves the error? Do you need\r\n> \r\n> `echo -n \"build --config=monolithic\" >> .bazelrc`\r\n> \r\n> command for 2.15?\r\n\r\nI tried with 2.15, same error is coming.", "@terryheo @pkgoogle \r\nCan you please help with possible debug options as this error is a major blocker in my project" ]
2023-06-10T10:08:54
2024-02-21T14:40:02
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.13 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04 lts, Ubuntu 23.04 ### Mobile device _No response_ ### Python version _No response_ ### Bazel version 6.1.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? I tried to create the selective build of the tensorflow lite, following [this](https://www.tensorflow.org/lite/android/lite_build) guide. The build succeeded and I added the tensorflow-lite-select-tf-ops.aar to the android studio project, yet it resulted in an error: ``` java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN6google8protobuf8internal26fixed_address_empty_stringE" referenced by "/data/app/~~PgTBlp4bIwZ8yl02UBjqqg==/com.inseye.core.test-yoruTyRORPvs5Ap3TE6dGw==/base.apk!/lib/x86_64/libtensorflowlite_flex_jni.so". ``` I noticed, there are fixes for this problem, e.g. [here](https://github.com/tensorflow/tensorflow/issues/45153) - one needs just add following line: ``` --config=monolithic ``` to the .bazelrc file. But build with this configuration fails with the following error: ``` ERROR: /tensorflow_src/tensorflow/BUILD:1652:19: Action tensorflow/_api/v2/v2.py [for tool] failed: (Aborted): bash failed: error executing command (from target //tensorflow:tf_python_api_gen_v2) (cd /root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow && \ exec env - \ DOCKER_HOST_CACHEBUSTER=1682977560680045781 \ LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64 \ PATH=/root/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-x86_64/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/android/sdk/cmdline-tools/latest/bin:/android/sdk/platform-tools:/android/ndk \ /bin/bash -c 'bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2 --root_init_template=tensorflow/api_template.__init__.py --apidir=bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/_api/v2/ --apiname=tensorflow --apiversion=2 --compat_apiversion=1 --compat_apiversion=2 --compat_init_template=tensorflow/compat_template_v1.__init__.py --compat_init_template=tensorflow/compat_template.__init__.py --packages=tensorflow.python,tensorflow.dtensor.python.accelerator_util,tensorflow.dtensor.python.api,tensorflow.dtensor.python.config,tensorflow.dtensor.python.d_checkpoint,tensorflow.dtensor.python.d_variable,tensorflow.dtensor.python.input_util,tensorflow.dtensor.python.layout,tensorflow.dtensor.python.mesh_util,tensorflow.dtensor.python.tpu_util,tensorflow.dtensor.python.save_restore,tensorflow.lite.python.analyzer,tensorflow.lite.python.lite,tensorflow.lite.python.authoring.authoring,tensorflow.python.modules_with_exports --output_package=tensorflow._api.v2 --use_relative_imports=True --loading=default bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tf_python_api_gen_v2.params') # Configuration: 9f320c2ab265ab521267a555257ce138659ef24e739cde7fde73c7665f4cf5e4 # Execution platform: @local_execution_config_platform//:platform 2023-06-09 21:58:46.512000: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-09 21:58:46.546669: F ./tensorflow/core/framework/variant_op_registry.h:114] Check failed: existing == nullptr (0x2df3898 vs. nullptr)UnaryVariantDeviceCopy for direction: 1 and type_index: tensorflow::Tensor already registered Target //tmp:tensorflow-lite-select-tf-ops failed to build ERROR: /tensorflow_src/tensorflow/python/tools/BUILD:303:17 Middleman _middlemen/tensorflow_Spython_Stools_Sprint_Uselective_Uregistration_Uheader-runfiles failed: (Aborted): bash failed: error executing command (from target //tensorflow:tf_python_api_gen_v2) (cd /root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow && \ exec env - \ DOCKER_HOST_CACHEBUSTER=1682977560680045781 \ LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64 \ PATH=/root/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-x86_64/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/android/sdk/cmdline-tools/latest/bin:/android/sdk/platform-tools:/android/ndk \ /bin/bash -c 'bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2 --root_init_template=tensorflow/api_template.__init__.py --apidir=bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/_api/v2/ --apiname=tensorflow --apiversion=2 --compat_apiversion=1 --compat_apiversion=2 --compat_init_template=tensorflow/compat_template_v1.__init__.py --compat_init_template=tensorflow/compat_template.__init__.py --packages=tensorflow.python,tensorflow.dtensor.python.accelerator_util,tensorflow.dtensor.python.api,tensorflow.dtensor.python.config,tensorflow.dtensor.python.d_checkpoint,tensorflow.dtensor.python.d_variable,tensorflow.dtensor.python.input_util,tensorflow.dtensor.python.layout,tensorflow.dtensor.python.mesh_util,tensorflow.dtensor.python.tpu_util,tensorflow.dtensor.python.save_restore,tensorflow.lite.python.analyzer,tensorflow.lite.python.lite,tensorflow.lite.python.authoring.authoring,tensorflow.python.modules_with_exports --output_package=tensorflow._api.v2 --use_relative_imports=True --loading=default bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tf_python_api_gen_v2.params') # Configuration: 9f320c2ab265ab521267a555257ce138659ef24e739cde7fde73c7665f4cf5e4 # Execution platform: @local_execution_config_platform//:platform ``` ### Standalone code to reproduce the issue ```shell Contents of the .tf_configure.bazelrc: build --action_env PYTHON_BIN_PATH="/usr/bin/python3" build --action_env PYTHON_LIB_PATH="/usr/local/lib/python3.11/dist-packages" build --python_path="/usr/bin/python3" build:opt --copt=n build:opt --host_copt=n build --action_env ANDROID_NDK_HOME="/android/ndk" build --action_env ANDROID_NDK_API_LEVEL="21" build --action_env ANDROID_BUILD_TOOLS_VERSION="34.0.0" build --action_env ANDROID_SDK_API_LEVEL="29" build --action_env ANDROID_SDK_HOME="/android/sdk" test --test_size_filters=small,medium test:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial test:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu test:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial,-v1only test:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-v1only ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60831/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60831/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60830
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60830/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60830/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60830/events
https://github.com/tensorflow/tensorflow/issues/60830
1,750,903,333
I_kwDOArmXAs5oXKol
60,830
Cannot pick GPU unavailable
{ "login": "Cazs03", "id": 6555389, "node_id": "MDQ6VXNlcjY1NTUzODk=", "avatar_url": "https://avatars.githubusercontent.com/u/6555389?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Cazs03", "html_url": "https://github.com/Cazs03", "followers_url": "https://api.github.com/users/Cazs03/followers", "following_url": "https://api.github.com/users/Cazs03/following{/other_user}", "gists_url": "https://api.github.com/users/Cazs03/gists{/gist_id}", "starred_url": "https://api.github.com/users/Cazs03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Cazs03/subscriptions", "organizations_url": "https://api.github.com/users/Cazs03/orgs", "repos_url": "https://api.github.com/users/Cazs03/repos", "events_url": "https://api.github.com/users/Cazs03/events{/privacy}", "received_events_url": "https://api.github.com/users/Cazs03/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@Cazs03,\r\nIf you are getting the empty list for the **gpus = tf.config.experimental.list_physical_devices('GPU')**, means the GPU installation was not happened correctly in your system.\r\n\r\nCould you please confirm whether you are trying to install the tf v2.12 on windows from pip or the build from source. Also please provide the complete error log and the steps you followed to install. It helps us to debug the issue in an effective way. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "Sorry for delay.\r\nexample snippet:\r\n```\r\n gpus = tf.config.list_physical_devices('GPU')\r\n if gpus:\r\n try:\r\n tf.config.experimental.set_memory_growth(gpus[0], True)\r\n tf.config.set_visible_devices(gpus[0], 'GPU')\r\n print(\r\n \"Utilizando la GPU:\",\r\n tf.config.list_logical_devices('GPU')[0]\r\n )\r\n except RuntimeError as e:\r\n print(e)\r\n else:\r\n print(\"No se encontró ninguna GPU.\")\r\n```\r\npip install tensorflow\r\n\r\nFrom https://developer.nvidia.com/cuda-downloads\r\nLast version for windows\r\nAnd read and follow:\r\nhttps://www.tensorflow.org/install/gpu?hl=es-419", "My path:\r\n_C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;\r\nC:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;\r\nC:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;\r\nC:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2023.1.1\\;\r\nC:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;\r\nC:\\cuda\\bin_\r\n\r\nEDIT:\r\nI have tried different versions of python different environments with conda\r\nSome concrete version of packages makes the difference\r\nI give up", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60830\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60830\">No</a>\n" ]
2023-06-10T10:07:20
2023-06-23T16:08:10
2023-06-23T16:08:08
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution Windows 10 build 19045 0 ### Mobile device _No response_ ### Python version Python 3.10.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version Cuda compilation tools, release 12.1, V12.1.105 Build cuda_12.1.r12.1/compiler.32688072_0 ### GPU model and memory 1070 TI 8g ### Current Behaviour? A bug happened! ` gpus = tf.config.experimental.list_physical_devices('GPU')` _This piece of code return empty array_ When in reallity have two GTX 1070 Description : NVIDIA GeForce GTX 1070 Ti x 2 at least hoped to get one I'm follow all installation step by step verifying paths I don't know what to do anymore ### Standalone code to reproduce the issue ```shell Follow this step guide: https://www.tensorflow.org/install/gpu?hl=es-419 Install tensorflow, Configuration path Cuda Verification os.environ["CUDA_HOME"] = r"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1" ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60830/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60830/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60829
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60829/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60829/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60829/events
https://github.com/tensorflow/tensorflow/issues/60829
1,750,563,649
I_kwDOArmXAs5oV3tB
60,829
TensorFlow Lite C++ minimal example build
{ "login": "baqwas", "id": 7071255, "node_id": "MDQ6VXNlcjcwNzEyNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/7071255?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baqwas", "html_url": "https://github.com/baqwas", "followers_url": "https://api.github.com/users/baqwas/followers", "following_url": "https://api.github.com/users/baqwas/following{/other_user}", "gists_url": "https://api.github.com/users/baqwas/gists{/gist_id}", "starred_url": "https://api.github.com/users/baqwas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baqwas/subscriptions", "organizations_url": "https://api.github.com/users/baqwas/orgs", "repos_url": "https://api.github.com/users/baqwas/repos", "events_url": "https://api.github.com/users/baqwas/events{/privacy}", "received_events_url": "https://api.github.com/users/baqwas/received_events", "type": "User", "site_admin": 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, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @baqwas \r\n\r\nCan you try with latest stable version r2.13? \r\n\r\nI was able to build with r2.13 without any error. Please find the screenshot.\r\n\r\n<img width=\"567\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/5022dd18-8ea4-44a7-a7cb-8d0d4e14fca7\">\r\n\r\nThanks.\r\n", "Thanks, @pjpratik. I had limited myself to r2.12 owing to an incorrect understanding of the prerequisites.\r\n\r\nRegards.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60829\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60829\">No</a>\n" ]
2023-06-09T22:29:42
2023-06-15T13:16:58
2023-06-15T13:16:56
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version Build error ### Custom Code Yes ### OS Platform and Distribution Raspbian GNU/Linux 11 (bullseye) armv ### Mobile device Raspberry Pi 3 Model B Plus Rev 1.3 ### Python version Python 3.9.2 (default, Mar 12 2021, 04:06:34) ### Bazel version _No response_ ### GCC/Compiler version [GCC 10.2.1 20210110] on linux ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? [ 28%] Building ASM object _deps/xnnpack-build/CMakeFiles/microkernels-prod.dir/src/cs16-bfly4/cs16-bfly4-samples1-asm-aarch32-neon-x4.S.o [ 35%] Building CXX object _deps/abseil-cpp-build/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o /tmp/ccWtfVcs.s: Assembler messages: /tmp/ccWtfVcs.s:65: Error: selected processor does not support `vsdot.s8 q8,q12,d7[0]' in ARM mode /tmp/ccWtfVcs.s:67: Error: selected processor does not support `vsdot.s8 q9,q10,d7[0]' in ARM mode ### Standalone code to reproduce the issue ```shell # https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal git clone https://github.com/tensorflow/tensorflow.git tensorflow_src mkdir minimal_build cd minimal_build cmake ../tensorflow_src/tensorflow/lite/examples/minimal cmake --build . -j ``` ### Relevant log output ```shell gmake[1]: *** Waiting for unfinished jobs.... [ 35%] Building CXX object _deps/abseil-cpp-build/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o [ 35%] Building CXX object _deps/abseil-cpp-build/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o [ 35%] Building CXX object _deps/abseil-cpp-build/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o [ 35%] Building CXX object _deps/abseil-cpp-build/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o [ 35%] Linking CXX static library libabsl_strings.a [ 35%] Built target absl_strings gmake: *** [Makefile:149: all] Error 2 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60829/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60829/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60828
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60828/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60828/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60828/events
https://github.com/tensorflow/tensorflow/pull/60828
1,750,294,391
PR_kwDOArmXAs5SpSOJ
60,828
Revert "Update version numbers for TensorFlow 2.13.0"
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Closing as no longer needed" ]
2023-06-09T18:00:09
2023-07-06T16:24:27
2023-07-06T16:24:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60828", "html_url": "https://github.com/tensorflow/tensorflow/pull/60828", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60828.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60828.patch", "merged_at": null }
Reverts tensorflow/tensorflow#60806
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60828/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60828/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60827
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60827/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60827/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60827/events
https://github.com/tensorflow/tensorflow/issues/60827
1,749,936,684
I_kwDOArmXAs5oTeos
60,827
wrong output shape with tf.experimental.numpy.vander when parameter N=0
{ "login": "paulaehab", "id": 42894502, "node_id": "MDQ6VXNlcjQyODk0NTAy", "avatar_url": "https://avatars.githubusercontent.com/u/42894502?v=4", "gravatar_id": "", "url": "https://api.github.com/users/paulaehab", "html_url": "https://github.com/paulaehab", "followers_url": "https://api.github.com/users/paulaehab/followers", "following_url": "https://api.github.com/users/paulaehab/following{/other_user}", "gists_url": "https://api.github.com/users/paulaehab/gists{/gist_id}", "starred_url": "https://api.github.com/users/paulaehab/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paulaehab/subscriptions", "organizations_url": "https://api.github.com/users/paulaehab/orgs", "repos_url": "https://api.github.com/users/paulaehab/repos", "events_url": "https://api.github.com/users/paulaehab/events{/privacy}", "received_events_url": "https://api.github.com/users/paulaehab/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "@SuryanarayanaY I was able to replicate the issue on colab using TF v[2.12](https://colab.research.google.com/gist/sushreebarsa/0ee09d4d66791b05b175c0ac757a7c92/60827.ipynb) and [tf-nightly](https://colab.research.google.com/gist/sushreebarsa/3aa3c1104e70c2489301a0abe973740e/60827.ipynb#scrollTo=zxgP6CMdinZH). Please find the attached gists. \r\nThank you!", "@paulaehab ,\r\n\r\nThanks for your observation and reporting the same here.The reason for this difference in behaviour is when N=0 or None, Tensorflow broadcasts it to N=len(x) automatically. Whereas in Numpy when N=None then only N will be braodcasted to N=len(x). \r\n\r\nI am going to propose a PR to fix this. Thanks!\r\n\r\n", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60827\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60827\">No</a>\n" ]
2023-06-09T13:49:54
2023-08-09T19:09:15
2023-08-09T19:09:13
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.12.0 ### Custom Code No ### OS Platform and Distribution Windows 11 ### Mobile device _No response_ ### Python version 3.11 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? A bug happened! when I used tf.experimental.numpy.vander() I get wrong values when parameter N =0 it produce empty array but with different shape that need to be ### Standalone code to reproduce the issue ```shell When I run tf.experimental.numpy.vander( [-1.,-1.], N=0, increasing=False ) I get the output as the following: -> <tf.Tensor: shape=(2, 2), dtype=float64, numpy= array([[-1., 1.], [-1., 1.]])> But when I run np.vander(np.array([-1.,-1.]),N=0) I got the following: -> array([], shape=(2, 0), dtype=float64) ``` ### Relevant log output ```shell tensorflow output <tf.Tensor: shape=(2, 2), dtype=float64, numpy= array([[-1., 1.], [-1., 1.]])> numpy output array([], shape=(2, 0), dtype=float64) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60827/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60827/timeline
null
completed
false