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/60013
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60013/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60013/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60013/events
https://github.com/tensorflow/tensorflow/pull/60013
1,627,809,137
PR_kwDOArmXAs5MOkJG
60,013
Disable test that ooms
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[ { "id": 300136587, "node_id": "MDU6TGFiZWwzMDAxMzY1ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes", "name": "cla: yes", "color": "009800", "default": false, "description": null }, { "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": 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
[ "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/60013/checks?check_run_id=12056369827) 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-03-16T16:04:38
2023-03-16T16:12:13
2023-03-16T16:05:24
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60013", "html_url": "https://github.com/tensorflow/tensorflow/pull/60013", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60013.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60013.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60013/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/60013/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60012
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60012/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60012/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60012/events
https://github.com/tensorflow/tensorflow/issues/60012
1,627,804,236
I_kwDOArmXAs5hBlJM
60,012
Not able to build TFLite GPU Delegate dynamic library with bazel for android arm64
{ "login": "rahul-exp", "id": 128069566, "node_id": "U_kgDOB6Ivvg", "avatar_url": "https://avatars.githubusercontent.com/u/128069566?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rahul-exp", "html_url": "https://github.com/rahul-exp", "followers_url": "https://api.github.com/users/rahul-exp/followers", "following_url": "https://api.github.com/users/rahul-exp/following{/other_user}", "gists_url": "https://api.github.com/users/rahul-exp/gists{/gist_id}", "starred_url": "https://api.github.com/users/rahul-exp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahul-exp/subscriptions", "organizations_url": "https://api.github.com/users/rahul-exp/orgs", "repos_url": "https://api.github.com/users/rahul-exp/repos", "events_url": "https://api.github.com/users/rahul-exp/events{/privacy}", "received_events_url": "https://api.github.com/users/rahul-exp/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": 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": 1205765054, "node_id": "MDU6TGFiZWwxMjA1NzY1MDU0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS", "name": "subtype:macOS", "color": "b619ea", "default": false, "description": "macOS Build/Installation issues" }, { "id": 2671339633, "node_id": "MDU6TGFiZWwyNjcxMzM5NjMz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate", "name": "TFLiteGpuDelegate", "color": "F71F04", "default": false, "description": "TFLite Gpu delegate issue" } ]
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 @rahul-exp \r\n\r\nCan you please provide the steps you have followed. Did you setup `./configure` for android?\r\n\r\nThanks.", "@pjpratik Please find the ./configure options I selected for android:\r\nPlease specify the location of python: Correct path location provided(Python version 3.9)\r\nPlease input the desired Python library path to use: Correct path location provided(Python version 3.9)\r\nDo you wish to build TensorFlow with ROCm support? [y/N]: N\r\nNo ROCm support will be enabled for TensorFlow.\r\n\r\nDo you wish to build TensorFlow with CUDA support? [y/N]: N\r\nNo CUDA support will be enabled for TensorFlow.\r\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]: Enabled just the default\r\nWould you like to interactively configure ./WORKSPACE for Android builds? [y/N]: y\r\nPlease specify the home path of the Android NDK to use: Provided path for ndk/21.4.7075529\r\nPlease specify the (min) Android NDK API level to use: Default of 26\r\nPlease specify the home path of the Android SDK to use: Provided sdk path \r\nPlease specify the Android SDK API level to use: 33\r\nPlease specify an Android build tools version to use: 34.0.0-rc1\r\nDo you wish to build TensorFlow with iOS support? [y/N]: N\r\n", "Other builds for android with below commands are working fine:\r\n1) bazel build -c opt --config=android_arm64 --cpu=arm64-v8a --define tflite_with_xnnpack=true //tensorflow/lite:tensorflowlite\r\n2) bazel build -c opt --config=android_arm64 --cpu=arm64-v8a //tensorflow/lite/delegates/nnapi:nnapi_delegate_no_nnapi_implementation\r\n3) bazel build -c opt --config=android_arm64 --cpu=arm64-v8a //tensorflow/lite/nnapi:nnapi_implementation", "Hi @rahul-exp Sorry for the delayed response.\r\n\r\nCan you please provide which version of TF you are using?\r\n\r\nI couldn't reproduce it at my end and facing different error.\r\n\r\nThanks.", "TF version on my mac is 2.11.0. I had checked out the latest changes from the main branch of the repo for building the TFLite libraries. Should I switch to a release branch for building TFLite libraries?", "Hi @rahul-exp Thanks for the information.\r\n\r\nI have tried on MacOS (13.2) with Bazel 5.3.0 and using master branch. I was able to succesfully generate `libtensorflowlite_gpu_delegate.so` file. Please find the screenshot below\r\n\r\n<img width=\"806\" alt=\"Screenshot 2023-03-24 at 8 30 13 PM\" src=\"https://user-images.githubusercontent.com/118897289/227563831-edd158dc-ebf7-4e17-ac1a-0dac759e94d7.png\">\r\n\r\nI have tested on Ubuntu 20.04 with same config and found no issues.\r\n\r\nCan you try `bazel clean --expunge` and try the same again.\r\n\r\nThis is my config for your reference\r\n\r\n<img width=\"811\" alt=\"Screenshot 2023-03-24 at 8 35 04 PM\" src=\"https://user-images.githubusercontent.com/118897289/227564104-7aee04de-ab2b-4eaf-928e-8fb3faaeac58.png\">\r\n\r\nThanks.\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/60012\">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/60012\">No</a>\n", "@pjpratik I get this error as well, can't build the GPU delegate.\r\n## Setup\r\n1. bazel 5.3.0\r\n1. Fresh clone of tensorflow\r\n1. git checkout v2.13.0\r\n1. run `configure` and use:\r\n```\r\nANDROID_NDK_HOME=\"/home/yuval/android/android-ndk-r21e\"\r\nANDROID_NDK_API_LEVEL=\"21\"\r\nANDROID_BUILD_TOOLS_VERSION=\"33.0.0\"\r\nANDROID_SDK_API_LEVEL=\"33\"\r\n```\r\n## Build\r\n```sh\r\n$ bazel build -c opt --config=android_arm64 //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so\r\n\r\nERROR: /home/yuval/MyProjects/tensorflow/tensorflow/lite/delegates/gpu/BUILD:225:11: Compiling tensorflow/lite/delegates/gpu/delegate.cc failed: (Exit 1): clang failed: error executing command external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 -target ... (remaining 192 arguments skipped)\r\ntensorflow/lite/delegates/gpu/delegate.cc:786:7: error: use of undeclared identifier 'AHardwareBuffer_acquire'; did you mean 'AHardwareBuffer_Plane'?\r\n AHardwareBuffer_acquire(ahwb);\r\n ^\r\nexternal/androidndk/ndk/sysroot/usr/include/android/hardware_buffer.h:320:3: note: 'AHardwareBuffer_Plane' declared here} AHardwareBuffer_Plane;\r\n ^\r\ntensorflow/lite/delegates/gpu/delegate.cc:794:9: error: use of undeclared identifier 'AHardwareBuffer_release'; did you mean 'AHardwareBuffer_Plane'?\r\n AHardwareBuffer_release(b);\r\n ^\r\nexternal/androidndk/ndk/sysroot/usr/include/android/hardware_buffer.h:320:3: note: 'AHardwareBuffer_Plane' declared here} AHardwareBuffer_Plane;\r\n ^\r\ntensorflow/lite/delegates/gpu/delegate.cc:802:7: error: use of undeclared identifier 'AHardwareBuffer_describe'\r\n AHardwareBuffer_describe(uptr_ahwb.get(), &desc_ahwb);\r\n ^\r\ntensorflow/lite/delegates/gpu/delegate.cc:1184:18: error: use of undeclared identifier 'AHardwareBuffer_lock'\r\n return AHardwareBuffer_lock(buffer, this->usage_, -1 /* fence */,\r\n ^\r\ntensorflow/lite/delegates/gpu/delegate.cc:1211:24: error: use of undeclared identifier 'AHardwareBuffer_unlock'\r\n return AHardwareBuffer_unlock(buffer, nullptr /* fence */);\r\n ^\r\n5 errors generated.\r\n```\r\n\r\nOS:\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 20.04 LTS\r\nRelease: 20.04\r\nCodename: focal\r\n```", "Hi @ValYouW, I encountered the same problem, did you solve it?", "@colorjam No :(", "@colorjam I'm back at it today and I was able to resolve the issue, you need to specify that the min NDK version to use is 26 (don't confuse it with ANDROID_SDK_API_LEVEL, which is what I did...).\r\nI just set these env vars on my bashrc\r\n```\r\nexport ANDROID_SDK_HOME=\"<path to where my android sdk is>\"\r\nexport ANDROID_NDK_HOME=\"<my android sdk home>/android-ndk-r21e\"\r\nexport ANDROID_NDK_API_LEVEL=\"26\"\r\nexport ANDROID_BUILD_TOOLS_VERSION=\"34.0.0\"\r\nexport ANDROID_SDK_API_LEVEL=\"34\"\r\n```" ]
2023-03-16T16:01:47
2024-02-02T21:48:57
2023-04-09T01:54:04
NONE
null
null
null
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: macOS Monterey(12.6) - **TensorFlow installed from (source or binary)**: Source - **Python version**: 3.9.13 - **Bazel version (if compiling from source)**: 5.3.0 - **GCC/Compiler version (if compiling from source)**: Apple clang version 14.0.0 (clang-1400.0.29.202) - **Exact command to reproduce**: bazel build -c opt --config=android_arm64 --cpu=arm64-v8a //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so ### Describe the problem Not able to build dynamic tensorflow lite library with gpu delegate for android arm 64. Other tensorflow lite libraries with nnapi, xnnpack delegates are building fine. ### Error tensorflow/lite/delegates/gpu/delegate.cc:796:7: error: use of undeclared identifier 'AHardwareBuffer_acquire'; did you mean 'AHardwareBuffer_Plane'? AHardwareBuffer_acquire(ahwb); ^ external/androidndk/ndk/sysroot/usr/include/android/hardware_buffer.h:320:3: note: 'AHardwareBuffer_Plane' declared here } AHardwareBuffer_Plane; ^ tensorflow/lite/delegates/gpu/delegate.cc:804:9: error: use of undeclared identifier 'AHardwareBuffer_release'; did you mean 'AHardwareBuffer_Plane'? AHardwareBuffer_release(b); ^ external/androidndk/ndk/sysroot/usr/include/android/hardware_buffer.h:320:3: note: 'AHardwareBuffer_Plane' declared here } AHardwareBuffer_Plane; ^ tensorflow/lite/delegates/gpu/delegate.cc:812:7: error: use of undeclared identifier 'AHardwareBuffer_describe' AHardwareBuffer_describe(uptr_ahwb.get(), &desc_ahwb); ^ tensorflow/lite/delegates/gpu/delegate.cc:1194:18: error: use of undeclared identifier 'AHardwareBuffer_lock' return AHardwareBuffer_lock(buffer, this->usage_, -1 /* fence */, ^ tensorflow/lite/delegates/gpu/delegate.cc:1221:24: error: use of undeclared identifier 'AHardwareBuffer_unlock' return AHardwareBuffer_unlock(buffer, nullptr /* fence */); ^ 5 errors generated. Target //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so failed to build
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60012/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/60012/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60011
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60011/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60011/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60011/events
https://github.com/tensorflow/tensorflow/issues/60011
1,627,801,158
I_kwDOArmXAs5hBkZG
60,011
Include tf.IsInf on Tensorflow Lite Operators
{ "login": "JuanuMusic", "id": 1811292, "node_id": "MDQ6VXNlcjE4MTEyOTI=", "avatar_url": "https://avatars.githubusercontent.com/u/1811292?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JuanuMusic", "html_url": "https://github.com/JuanuMusic", "followers_url": "https://api.github.com/users/JuanuMusic/followers", "following_url": "https://api.github.com/users/JuanuMusic/following{/other_user}", "gists_url": "https://api.github.com/users/JuanuMusic/gists{/gist_id}", "starred_url": "https://api.github.com/users/JuanuMusic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JuanuMusic/subscriptions", "organizations_url": "https://api.github.com/users/JuanuMusic/orgs", "repos_url": "https://api.github.com/users/JuanuMusic/repos", "events_url": "https://api.github.com/users/JuanuMusic/events{/privacy}", "received_events_url": "https://api.github.com/users/JuanuMusic/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": 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": 2691740411, "node_id": "MDU6TGFiZWwyNjkxNzQwNDEx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-kernels", "name": "comp:lite-kernels", "color": "D97FB4", "default": false, "description": "TensorFlow Lite kernel 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": "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 }, { "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 } ]
null
[ "Hi @JuanuMusic,\r\nAs mentioned in the error, as a workaround you can create your own custom implementation of an unsupported TensorFlow operator in TensorFlow Lite, known as a custom operator by following the instructions mentioned [here](https://www.tensorflow.org/lite/guide/ops_custom). Thank you!", "Hi! Yes, I know, but its also suggested to open an Issue to request to add. I think it's an important operator since there are some pre-procesdsing strategies that indeed require it." ]
2023-03-16T16:00:05
2023-07-27T20:46:47
null
NONE
null
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux - TensorFlow installed from (source or binary): binary - TensorFlow version (or github SHA if from source): 2.11 **Provide the text output from tflite_convert** ``` <unknown>:0: error: failed while converting: 'main': Some ops in the model are custom ops, See instructions to implement custom ops: https://www.tensorflow.org/lite/guide/ops_custom Custom ops: IsInf Details: tf.IsInf(tensor<?x21x?xf64>) -> (tensor<?x21x?xi1>) : {device = ""} tf.IsInf(tensor<?x33x?xf64>) -> (tensor<?x33x?xi1>) : {device = ""} ``` **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/60011/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/60011/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60010
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60010/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60010/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60010/events
https://github.com/tensorflow/tensorflow/pull/60010
1,627,795,235
PR_kwDOArmXAs5MOhHQ
60,010
Fix documentation of tflite interpreter's num_threads parameter
{ "login": "muxamilian", "id": 1943719, "node_id": "MDQ6VXNlcjE5NDM3MTk=", "avatar_url": "https://avatars.githubusercontent.com/u/1943719?v=4", "gravatar_id": "", "url": "https://api.github.com/users/muxamilian", "html_url": "https://github.com/muxamilian", "followers_url": "https://api.github.com/users/muxamilian/followers", "following_url": "https://api.github.com/users/muxamilian/following{/other_user}", "gists_url": "https://api.github.com/users/muxamilian/gists{/gist_id}", "starred_url": "https://api.github.com/users/muxamilian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/muxamilian/subscriptions", "organizations_url": "https://api.github.com/users/muxamilian/orgs", "repos_url": "https://api.github.com/users/muxamilian/repos", "events_url": "https://api.github.com/users/muxamilian/events{/privacy}", "received_events_url": "https://api.github.com/users/muxamilian/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": 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
[ "Hi @sirakiin Can you please review this PR ? Thank you!" ]
2023-03-16T15:56:54
2023-06-15T15:44:18
2023-06-15T15:44:15
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60010", "html_url": "https://github.com/tensorflow/tensorflow/pull/60010", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60010.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60010.patch", "merged_at": null }
The documentation says that `num_threads` is allowed to be -1 or 0. However, it actually has to be >= 1, otherwise an exception will be thrown. This fixes the documentation.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60010/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/60010/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60009
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60009/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60009/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60009/events
https://github.com/tensorflow/tensorflow/issues/60009
1,627,386,214
I_kwDOArmXAs5g__Fm
60,009
can substitute boringssl with openssl?
{ "login": "xiedeacc", "id": 8072296, "node_id": "MDQ6VXNlcjgwNzIyOTY=", "avatar_url": "https://avatars.githubusercontent.com/u/8072296?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiedeacc", "html_url": "https://github.com/xiedeacc", "followers_url": "https://api.github.com/users/xiedeacc/followers", "following_url": "https://api.github.com/users/xiedeacc/following{/other_user}", "gists_url": "https://api.github.com/users/xiedeacc/gists{/gist_id}", "starred_url": "https://api.github.com/users/xiedeacc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiedeacc/subscriptions", "organizations_url": "https://api.github.com/users/xiedeacc/orgs", "repos_url": "https://api.github.com/users/xiedeacc/repos", "events_url": "https://api.github.com/users/xiedeacc/events{/privacy}", "received_events_url": "https://api.github.com/users/xiedeacc/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" } ]
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
[ "In general, it's not advised to do so. `boringssl` is a safer version of `openssl`, with none of the design choices that resulted in the `openssl` vulnerabilities that are famous (Hearthbleed) or not", "I know boringssl may have better security and performance, but our service not for public, so security may not so important to us. for we must use brpc, so we must use openssl, from you answer, I guess I can modify tensorflow to use openssl", "thanks a lot", "for anyone has same demand, use repo_mapping = { \"@boringssl\": \"@openssl\",} is the fastest sustitution way", "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/60009\">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/60009\">No</a>\n", "> for anyone has same demand, use repo_mapping = { \"@boringssl\": \"@openssl\",} is the fastest sustitution way对于任何有相同需求的人,使用 repo_mapping = { “”: “”,} 是最快的 sustitution 方式\r\n\r\nthere?please\r\n![image](https://github.com/tensorflow/tensorflow/assets/15188456/2acb73d0-56d0-4be7-a123-cff067ca4526)\r\n" ]
2023-03-16T12:33:19
2023-12-14T05:50:18
2023-03-17T11:25:19
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.4 ### Custom Code No ### OS Platform and Distribution ubuntu22.04 ### 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? ```shell my project import brpc and tf both, brpc must use openssl, tf use boringssl, so build will fail, can I modify tf use openssl? ``` ### Standalone code to reproduce the issue ```shell build conflict ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60009/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/60009/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60008
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60008/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60008/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60008/events
https://github.com/tensorflow/tensorflow/issues/60008
1,627,348,049
I_kwDOArmXAs5g_1xR
60,008
tr1
{ "login": "AbdessalamDahm", "id": 127978012, "node_id": "U_kgDOB6DKHA", "avatar_url": "https://avatars.githubusercontent.com/u/127978012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AbdessalamDahm", "html_url": "https://github.com/AbdessalamDahm", "followers_url": "https://api.github.com/users/AbdessalamDahm/followers", "following_url": "https://api.github.com/users/AbdessalamDahm/following{/other_user}", "gists_url": "https://api.github.com/users/AbdessalamDahm/gists{/gist_id}", "starred_url": "https://api.github.com/users/AbdessalamDahm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AbdessalamDahm/subscriptions", "organizations_url": "https://api.github.com/users/AbdessalamDahm/orgs", "repos_url": "https://api.github.com/users/AbdessalamDahm/repos", "events_url": "https://api.github.com/users/AbdessalamDahm/events{/privacy}", "received_events_url": "https://api.github.com/users/AbdessalamDahm/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": "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
[ "No template filled in, new user, looks spam" ]
2023-03-16T12:10:45
2023-03-16T16:43:42
2023-03-16T16:43:24
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/60008/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/60008/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60007
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60007/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60007/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60007/events
https://github.com/tensorflow/tensorflow/issues/60007
1,626,904,723
I_kwDOArmXAs5g-JiT
60,007
bug feedback
{ "login": "wangdadaba", "id": 102797997, "node_id": "U_kgDOBiCSrQ", "avatar_url": "https://avatars.githubusercontent.com/u/102797997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wangdadaba", "html_url": "https://github.com/wangdadaba", "followers_url": "https://api.github.com/users/wangdadaba/followers", "following_url": "https://api.github.com/users/wangdadaba/following{/other_user}", "gists_url": "https://api.github.com/users/wangdadaba/gists{/gist_id}", "starred_url": "https://api.github.com/users/wangdadaba/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wangdadaba/subscriptions", "organizations_url": "https://api.github.com/users/wangdadaba/orgs", "repos_url": "https://api.github.com/users/wangdadaba/repos", "events_url": "https://api.github.com/users/wangdadaba/events{/privacy}", "received_events_url": "https://api.github.com/users/wangdadaba/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": 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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@wangdadaba \r\nI was able to execute a given code without error on colab using TF v2.11 & TF v2.8. `model(x, training = fasle)` and `model.predict()` getting the same results. Could you please confirm the same and find the gist of [2.11](https://colab.research.google.com/gist/tiruk007/fa278bcb3c0c182fea74d9c0c983fa80/untitled155.ipynb) and [2.8](https://colab.research.google.com/gist/tiruk007/368f56317e9a51d878807532a189659a/untitled156.ipynb) for reference.\r\n\r\nThank you !", "我猜测可能是gpu得问题,我关闭了gpu进行测试结果是正确的,当我开启了gpu之后,结果仍然有问题。我使用的是docker容器,网址https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow/tags \r\nnvcr.io/nvidia/tensorflow:22.04-tf2-py3 .\r\n\r\n\r\n\r\n> @wangdadaba I was able to execute a given code without error on colab using TF v2.11 & TF v2.8. `model(x, training = fasle)` and `model.predict()` getting the same results. Could you please confirm the same and find the gist of [2.11](https://colab.research.google.com/gist/tiruk007/fa278bcb3c0c182fea74d9c0c983fa80/untitled155.ipynb) and [2.8](https://colab.research.google.com/gist/tiruk007/368f56317e9a51d878807532a189659a/untitled156.ipynb) for reference.\r\n> \r\n> Thank you !\r\nI guessed that there might be a problem with the GPU, I turned off the GPU to test correctly, and when I turned on the GPU, the results are still problematic. I'm using a docker container with URLs :https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow/tags \r\ntaf:nvcr.io/nvidia/tensorflow:22.04-tf2-py3 .\r\n\r\n\r\n", "@wangdadaba \r\nI was able to get similar results on the GPU as well on Colab using tf2.11. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/ee2704d70bbe51f4ecd45e429cbd7a83/untitled161.ipynb) \r\n\r\nCould you please try the latest docker container(nvcr.io/nvidia/tensorflow:23.02-tf2-py3) and let us know if it still persists.\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/60007\">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/60007\">No</a>\n" ]
2023-03-16T07:52:30
2023-04-03T01:51:57
2023-04-03T01:51:55
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.8 ### 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? ```shell A bug happened! The code and results can be seen specifically. When I use model(x, training = fasle) and model.predict(), the results of the first few times are always wrong, and the reason cannot be found.You will find that the code that runs for the first time is always wrong. I did this test because I was using model(img, training = False) and model.predict() to get different results. Later, it was verified that it was the first few times There will be errors, and it will be normal in the future. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np from tensorflow.keras.layers import (Activation, BatchNormalization,Dense, Flatten, Conv2D ,Input, Concatenate, Conv2D, Dense, Dropout, GlobalAveragePooling2D, Lambda, MaxPooling2D, add) from tensorflow.keras.models import Model img = np.random.random((1,112,112,3)) def create_model(): model = tf.keras.Sequential([ tf.keras.layers.Conv2D(32, 3, activation='relu'), tf.keras.layers.MaxPooling2D(), tf.keras.layers.Conv2D(64, 3, activation='relu'), tf.keras.layers.MaxPooling2D(), tf.keras.layers.Conv2D(128, 1, activation='relu'), tf.keras.layers.MaxPooling2D(), tf.keras.layers.Flatten(), tf.keras.layers.Dense(64, activation='relu'), tf.keras.layers.Dense(10) ]) return model input_shape = [112, 112, 3] inputs = Input(shape=input_shape) model = create_model() for i in range(5): print(model.predict(img)[0][0:10]) # or run up core ------------------------ @tf.function def test_step(): return model(img,training = False) for i in range(5): print(test_step()[0][0:10]) ``` ### Relevant log output ```shell [ 0.13942198 0.16932502 -0.00587191 -0.03490476 -0.05865425 -0.10204756 0.02883459 -0.06782953 -0.17910798 0.10979672] [ 0.13943174 0.16934936 -0.00590273 -0.03488521 -0.05866342 -0.10207407 0.02890574 -0.06792954 -0.1791203 0.10971892] [ 0.13942198 0.16932502 -0.00587191 -0.03490476 -0.05865425 -0.10204756 0.02883459 -0.06782953 -0.17910798 0.10979672] [ 0.13942198 0.16932502 -0.00587191 -0.03490476 -0.05865425 -0.10204756 0.02883459 -0.06782953 -0.17910798 0.10979672] [ 0.13942198 0.16932502 -0.00587191 -0.03490476 -0.05865425 -0.10204756 0.02883459 -0.06782953 -0.17910798 0.10979672] up result------------------------ tf.Tensor( [ 0.33203632 -0.11037838 0.13731733 -0.01554211 0.212542 -0.13555858 0.21057142 0.2515831 -0.16747513 0.2777309 ], shape=(10,), dtype=float32) tf.Tensor( [ 0.33203542 -0.1103816 0.13731548 -0.01554125 0.21254522 -0.13556004 0.21057592 0.25158295 -0.16747653 0.27773613], shape=(10,), dtype=float32) tf.Tensor( [ 0.3320552 -0.11031806 0.1372948 -0.01558295 0.21247748 -0.13555783 0.21053793 0.25155216 -0.16746978 0.27769867], shape=(10,), dtype=float32) tf.Tensor( [ 0.33203542 -0.1103816 0.13731548 -0.01554125 0.21254522 -0.13556004 0.21057592 0.25158295 -0.16747653 0.27773613], shape=(10,), dtype=float32) tf.Tensor( [ 0.33203542 -0.1103816 0.13731548 -0.01554125 0.21254522 -0.13556004 0.21057592 0.25158295 -0.16747653 0.27773613], shape=(10,), dtype=float32) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60007/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/60007/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60006
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60006/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60006/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60006/events
https://github.com/tensorflow/tensorflow/pull/60006
1,626,807,436
PR_kwDOArmXAs5MLI8D
60,006
Update label_image.py to be compatible with TF 2.x
{ "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 }
[ { "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": 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
[ "Have you tested this? It looks like it relies on some data files that don't exist:\r\n\r\ntensorflow/examples/label_image/data/inception_v3_2016_08_28_frozen.pb", "Hi @MarkDaoust \r\n\r\nI have tested the changes by following the [instructions](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/label_image#to-buildinstallrun) given to run the label_image.py.\r\n\r\nThe model and sample data has also been provided as a part of it.\r\n\r\nPlease find the attached [gist](https://colab.research.google.com/gist/pjpratik/b596e519deb7da70e8639b3846b3e7e7/60006.ipynb) with tests using the proposed commit.\r\n\r\nThanks.", "SGTM thanks!" ]
2023-03-16T06:29:09
2023-05-01T16:26:10
2023-03-21T11:27:38
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60006", "html_url": "https://github.com/tensorflow/tensorflow/pull/60006", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60006.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60006.patch", "merged_at": "2023-03-21T11:27:38" }
The label_image.py is outdated. Added necessary changes to be able to run in TF 2.x version. Please do the needful. Fixes #59900 Thanks.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60006/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/60006/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60005
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60005/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60005/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60005/events
https://github.com/tensorflow/tensorflow/pull/60005
1,626,482,422
PR_kwDOArmXAs5MKD1T
60,005
[tosa] Legalize tfl.Rsqrt to tosa.Rsqrt
{ "login": "Jerry-Ge", "id": 24451859, "node_id": "MDQ6VXNlcjI0NDUxODU5", "avatar_url": "https://avatars.githubusercontent.com/u/24451859?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jerry-Ge", "html_url": "https://github.com/Jerry-Ge", "followers_url": "https://api.github.com/users/Jerry-Ge/followers", "following_url": "https://api.github.com/users/Jerry-Ge/following{/other_user}", "gists_url": "https://api.github.com/users/Jerry-Ge/gists{/gist_id}", "starred_url": "https://api.github.com/users/Jerry-Ge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Jerry-Ge/subscriptions", "organizations_url": "https://api.github.com/users/Jerry-Ge/orgs", "repos_url": "https://api.github.com/users/Jerry-Ge/repos", "events_url": "https://api.github.com/users/Jerry-Ge/events{/privacy}", "received_events_url": "https://api.github.com/users/Jerry-Ge/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
[ "@jpienaar gently remind of this patch for review : )" ]
2023-03-16T00:35:52
2023-03-27T17:41:21
2023-03-27T17:41:21
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60005", "html_url": "https://github.com/tensorflow/tensorflow/pull/60005", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60005.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60005.patch", "merged_at": "2023-03-27T17:41:20" }
- [Simply as what the title is saying] - QI16 version seems is pending here: https://github.com/tensorflow/tensorflow/pull/58406
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60005/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/60005/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60004
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60004/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60004/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60004/events
https://github.com/tensorflow/tensorflow/issues/60004
1,626,424,091
I_kwDOArmXAs5g8UMb
60,004
Cant assign trainable attribute to variables ->AttributeError: can't set attribute
{ "login": "samdabadei", "id": 68996046, "node_id": "MDQ6VXNlcjY4OTk2MDQ2", "avatar_url": "https://avatars.githubusercontent.com/u/68996046?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samdabadei", "html_url": "https://github.com/samdabadei", "followers_url": "https://api.github.com/users/samdabadei/followers", "following_url": "https://api.github.com/users/samdabadei/following{/other_user}", "gists_url": "https://api.github.com/users/samdabadei/gists{/gist_id}", "starred_url": "https://api.github.com/users/samdabadei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samdabadei/subscriptions", "organizations_url": "https://api.github.com/users/samdabadei/orgs", "repos_url": "https://api.github.com/users/samdabadei/repos", "events_url": "https://api.github.com/users/samdabadei/events{/privacy}", "received_events_url": "https://api.github.com/users/samdabadei/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": 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": 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": "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 @samdabadei,\r\n \r\nThe error occurs because you are trying to set the trainable attribute of a non-trainable variable `self.a`.\r\n\r\nIn the __init__ method of your model class, you set `self.a` to a non-trainable variable with the statement `self.a = tf.Variable([1.0], trainable=False)`. Therefore, when you try to set the trainable attribute of `self.a` in the following line:\r\n\r\n```\r\nmodel.a.trainable = True\r\n```\r\nyou get the AttributeError: can't set attribute error. To fix this error, you can remove these statements `self.a.trainable = True` , `model.b.trainable = True` and set the trainable attribute of `self.b` to **True** in the `__init__` method by passing the `trainable=True` argument to the add_weight method and tf.Variable, as shown below:\r\n\r\nHere's the working code:\r\n```\r\nimport tensorflow as tf\r\nfrom keras import layers\r\nimport numpy as np\r\n\r\n\r\nclass model(tf.keras.Model):\r\n\r\n def __init__(self):\r\n super(model, self).__init__()\r\n self.b = self.add_weight(shape=(1, 5), trainable=True)\r\n self.a = tf.Variable([1.0], trainable=True)\r\n\r\n def call(self, inputs, training=None, mask=None):\r\n return self.a * self.b * inputs\r\n\r\n\r\ninput = np.random.randn(10, 5)\r\ntarget = np.random.randn(10, 1)\r\n\r\nmodel = model()\r\nmodel.compile(\"adam\", loss=\"mse\")\r\n\r\nmodel.fit(input, target, validation_data=(input, target), epochs=3)\r\n\r\n```\r\n\r\nThank you!", "Is there no way to change the trainable attribute of a Variable after the first creation? Between the model-init() and the model-compile(). Its possible for layers and models and its quite tedious to change this always in the init when doing transfer learning", "Hi @samdabadei,\r\nCould you please elaborate how the above model is used in transfer learning? ", "okay concrete example: I do transfer learning. first i transfer some parameters, layers etc and make them not trainable. after saving the model weights i want to load them again for finetuning but in order to do this i have to set the same variable to non trainable since the order of the weights would be different then when they where saved. but now there is no way for me to free them again. and again somehow it has to be possbile right? i mean layer are also just a collection of variables and there i can change the trainability like i want before compiling", "my current work-around for anybody interested:\r\n\r\n```\r\nclass VarablesLayer(tf.keras.layers.Layer):\r\n def __init__(self, shape, name, trainable=True, activation=None, **kwargs):\r\n super(VarablesLayer, self).__init__(name=name, trainable=trainable)\r\n self.var = self.add_weight(name=f\"{name}/var\", shape=shape, **kwargs)\r\n self.activation = activation\r\n\r\n\r\n def call(self, inputs, *args, **kwargs):\r\n if self.activation:\r\n return self.activation(self.var)\r\n return self.var\r\n```\r\n\r\nits a wrapper layer for a variable. you then can set the trainablitlity of the layer and get the values by calling the layer with None as argument", "Currently the variable trainable is set as [@property](https://docs.python.org/2/library/functions.html#property) object.\r\nhttps://github.com/tensorflow/tensorflow/blob/0db597d0d758aba578783b5bf46c889700a45085/tensorflow/python/ops/variables.py#L516-L518\r\n\r\nWhich means you will not be able to modify the variable unless it is defined under `@trainable.setter`\r\n\r\nConsider the below scenario.\r\n\r\n1. Trying to modify the trainable variable when it is defined as `@property`, it throws error as expected.\r\n\r\n```\r\nclass a:\r\n\r\n def __init__(self,trainable):\r\n self.trainable = trainable\r\n\r\n @property\r\n def trainable(self):\r\n return self._trainable\r\n\r\nc = a(False)\r\nc.trainable = True\r\n```\r\n\r\n2. Trying to modify the variable with the `@traiable.setter`\r\n```\r\nclass a:\r\n\r\n def __init__(self,trainable):\r\n self.trainable = trainable\r\n\r\n @property\r\n def trainable(self):\r\n return self._trainable\r\n\r\n @trainable.setter\r\n def trainable(self, value):\r\n self._trainable = value\r\n\r\n\r\nc = a(False)\r\nc.trainable = True\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/60004\">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/60004\">No</a>\n" ]
2023-03-15T23:31:06
2023-05-17T01:56:41
2023-05-17T01:56:39
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.10 ### Custom Code Yes ### OS Platform and Distribution Windows 10 ### 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? ```shell When i try to change the trainability of a variable of a model i get the error : AttributeError: can't set attribute ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf from keras import layers import numpy as np class model(tf.keras.Model): def __init__(self): super(model, self).__init__() self.b = self.add_weight(shape=(1, 5), trainable=True) self.a = tf.Variable([1.0], trainable=False) self.a.trainable = True def call(self, inputs, training=None, mask=None): return self.a * self.b * inputs input = np.random.randn(10, 5) target = np.random.randn(10, 1) model = model() model.b.trainable = True model.a.trainable = True model.compile("adam", loss="mse") model.fit(input, target, validation_data=(input, target), epochs=3) ``` ### Relevant log output ```shell self.a.trainable = True AttributeError: can't set attribute Process finished with exit code 1 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60004/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/60004/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60003
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60003/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60003/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60003/events
https://github.com/tensorflow/tensorflow/pull/60003
1,626,325,509
PR_kwDOArmXAs5MJhx_
60,003
build: use LINK_COMPONENTS for linking LLVMSupport
{ "login": "ashay", "id": 19678, "node_id": "MDQ6VXNlcjE5Njc4", "avatar_url": "https://avatars.githubusercontent.com/u/19678?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ashay", "html_url": "https://github.com/ashay", "followers_url": "https://api.github.com/users/ashay/followers", "following_url": "https://api.github.com/users/ashay/following{/other_user}", "gists_url": "https://api.github.com/users/ashay/gists{/gist_id}", "starred_url": "https://api.github.com/users/ashay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashay/subscriptions", "organizations_url": "https://api.github.com/users/ashay/orgs", "repos_url": "https://api.github.com/users/ashay/repos", "events_url": "https://api.github.com/users/ashay/events{/privacy}", "received_events_url": "https://api.github.com/users/ashay/received_events", "type": "User", "site_admin": false }
[ { "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
[ "@sdasgup3 is oncall for MHLO this week", "Hi @sdasgup3 Can you please review this PR ? Thank you!", "Closing because commit 11b7c33 addresses the problem." ]
2023-03-15T21:41:39
2023-03-27T14:23:49
2023-03-27T14:23:22
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60003", "html_url": "https://github.com/tensorflow/tensorflow/pull/60003", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60003.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60003.patch", "merged_at": null }
Without this patch, in-tree builds of LLVM+MHLO fail with the following message: ``` MhloRngUtils specifies LINK_LIBS LLVMSupport, but LINK_LIBS cannot be used for LLVM libraries. Please use LINK_COMPONENTS instead. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60003/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/60003/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60002
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60002/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60002/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60002/events
https://github.com/tensorflow/tensorflow/pull/60002
1,626,291,395
PR_kwDOArmXAs5MJaT4
60,002
[NVIDIA XLA:GPU] Fused MHA Support in XLA GPU: SE
{ "login": "AyanmoI", "id": 42984676, "node_id": "MDQ6VXNlcjQyOTg0Njc2", "avatar_url": "https://avatars.githubusercontent.com/u/42984676?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AyanmoI", "html_url": "https://github.com/AyanmoI", "followers_url": "https://api.github.com/users/AyanmoI/followers", "following_url": "https://api.github.com/users/AyanmoI/following{/other_user}", "gists_url": "https://api.github.com/users/AyanmoI/gists{/gist_id}", "starred_url": "https://api.github.com/users/AyanmoI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AyanmoI/subscriptions", "organizations_url": "https://api.github.com/users/AyanmoI/orgs", "repos_url": "https://api.github.com/users/AyanmoI/repos", "events_url": "https://api.github.com/users/AyanmoI/events{/privacy}", "received_events_url": "https://api.github.com/users/AyanmoI/received_events", "type": "User", "site_admin": false }
[ { "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": 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": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }
[ { "login": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }, { "login": "reedwm", "id": 6510203, "node_id": "MDQ6VXNlcjY1MTAyMDM=", "avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reedwm", "html_url": "https://github.com/reedwm", "followers_url": "https://api.github.com/users/reedwm/followers", "following_url": "https://api.github.com/users/reedwm/following{/other_user}", "gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}", "starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reedwm/subscriptions", "organizations_url": "https://api.github.com/users/reedwm/orgs", "repos_url": "https://api.github.com/users/reedwm/repos", "events_url": "https://api.github.com/users/reedwm/events{/privacy}", "received_events_url": "https://api.github.com/users/reedwm/received_events", "type": "User", "site_admin": false }, { "login": "chsigg", "id": 7523982, "node_id": "MDQ6VXNlcjc1MjM5ODI=", "avatar_url": "https://avatars.githubusercontent.com/u/7523982?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chsigg", "html_url": "https://github.com/chsigg", "followers_url": "https://api.github.com/users/chsigg/followers", "following_url": "https://api.github.com/users/chsigg/following{/other_user}", "gists_url": "https://api.github.com/users/chsigg/gists{/gist_id}", "starred_url": "https://api.github.com/users/chsigg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chsigg/subscriptions", "organizations_url": "https://api.github.com/users/chsigg/orgs", "repos_url": "https://api.github.com/users/chsigg/repos", "events_url": "https://api.github.com/users/chsigg/events{/privacy}", "received_events_url": "https://api.github.com/users/chsigg/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 }, { "login": "gcforster", "id": 108087815, "node_id": "U_kgDOBnFKBw", "avatar_url": "https://avatars.githubusercontent.com/u/108087815?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gcforster", "html_url": "https://github.com/gcforster", "followers_url": "https://api.github.com/users/gcforster/followers", "following_url": "https://api.github.com/users/gcforster/following{/other_user}", "gists_url": "https://api.github.com/users/gcforster/gists{/gist_id}", "starred_url": "https://api.github.com/users/gcforster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gcforster/subscriptions", "organizations_url": "https://api.github.com/users/gcforster/orgs", "repos_url": "https://api.github.com/users/gcforster/repos", "events_url": "https://api.github.com/users/gcforster/events{/privacy}", "received_events_url": "https://api.github.com/users/gcforster/received_events", "type": "User", "site_admin": false }, { "login": "xla-rotation", "id": 116104012, "node_id": "U_kgDOBuubTA", "avatar_url": "https://avatars.githubusercontent.com/u/116104012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xla-rotation", "html_url": "https://github.com/xla-rotation", "followers_url": "https://api.github.com/users/xla-rotation/followers", "following_url": "https://api.github.com/users/xla-rotation/following{/other_user}", "gists_url": "https://api.github.com/users/xla-rotation/gists{/gist_id}", "starred_url": "https://api.github.com/users/xla-rotation/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xla-rotation/subscriptions", "organizations_url": "https://api.github.com/users/xla-rotation/orgs", "repos_url": "https://api.github.com/users/xla-rotation/repos", "events_url": "https://api.github.com/users/xla-rotation/events{/privacy}", "received_events_url": "https://api.github.com/users/xla-rotation/received_events", "type": "User", "site_admin": false } ]
null
[ "This PR is dependent on https://github.com/tensorflow/tensorflow/pull/59675 being merged", "@cheshire There were some issues rebasing this branch. So I created a new PR with the same changes https://github.com/tensorflow/tensorflow/pull/60047. I am closing this one. Please approve the other PR. Sorry about the confusion." ]
2023-03-15T21:11:16
2023-03-20T20:54:38
2023-03-20T20:54:35
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60002", "html_url": "https://github.com/tensorflow/tensorflow/pull/60002", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60002.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60002.patch", "merged_at": null }
cuDNN currently supports the following patterns for Multi-headed attention: BMM1 - BMM2 BMM1 - Scale - Bias - Mask - Softmax - BMM2 BMM1 - Scale - Bias - Mask - Softmax - Dropout - BMM2 BMM1 - Scale - Mask - Softmax - BMM2 BMM1 - Scale - Mask - Softmax - Dropout - BMM2 BMM1 - Softmax - Dropout - BMM2 This PR adds support for the stream executor for these patterns.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60002/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/60002/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60001
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60001/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60001/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60001/events
https://github.com/tensorflow/tensorflow/pull/60001
1,626,244,815
PR_kwDOArmXAs5MJQLp
60,001
[NVIDIA TF] CollectiveAllToAllV2 + NCCL all-to-all fixes
{ "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/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": 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": 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" } ]
closed
false
{ "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }
[ { "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/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
[ "cc @rainwoodman " ]
2023-03-15T20:33:44
2023-03-17T17:50:10
2023-03-17T17:50:10
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60001", "html_url": "https://github.com/tensorflow/tensorflow/pull/60001", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60001.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60001.patch", "merged_at": "2023-03-17T17:50:10" }
This PR fixes a few small bugs with `CollectiveAllToAllV2` and NCCL all-to-all: * NCCL does not support in-place all-to-all, so don't reuse the input tensor in `CollectiveAllToAllV2`. We could potentially keep `forward_input_or_allocate_output` and allocate a temporary buffer inside the NCCL backend only when the input is reused. This would allow other backends to still perform an in-place all-to-all. It looks like the ring algorithm uses temporary output buffers anyway. * Update calls to `ncclSend` and `ncclRecv` to follow the mapping by using `global_rank`. The TF runtime can sometimes [reorder the GPUs](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/common_runtime/collective_param_resolver_local.cc#L577-L580) to optimize the ring algorithms. While this PR fixes nccl all-to-all to follow the ordering, the ring algorithm is also affected and gives incorrect results. * VLOG outputs in `nccl_manager.cc` would cause a crash due to interpretting the data buffer as a string.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60001/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/60001/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60000
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60000/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60000/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60000/events
https://github.com/tensorflow/tensorflow/pull/60000
1,626,003,024
PR_kwDOArmXAs5MIbKm
60,000
Updating Release.md with Legal Language for Release Notes
{ "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-03-15T17:56:25
2023-03-15T18:27:00
2023-03-15T18:26:52
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60000", "html_url": "https://github.com/tensorflow/tensorflow/pull/60000", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60000.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60000.patch", "merged_at": "2023-03-15T18:26:52" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60000/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/60000/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59999
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59999/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59999/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59999/events
https://github.com/tensorflow/tensorflow/pull/59999
1,625,873,360
PR_kwDOArmXAs5MH-7i
59,999
[oneDNN] Fixing a failure in mkl_fused_batch_norm_op_test
{ "login": "mahmoud-abuzaina", "id": 24963061, "node_id": "MDQ6VXNlcjI0OTYzMDYx", "avatar_url": "https://avatars.githubusercontent.com/u/24963061?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mahmoud-abuzaina", "html_url": "https://github.com/mahmoud-abuzaina", "followers_url": "https://api.github.com/users/mahmoud-abuzaina/followers", "following_url": "https://api.github.com/users/mahmoud-abuzaina/following{/other_user}", "gists_url": "https://api.github.com/users/mahmoud-abuzaina/gists{/gist_id}", "starred_url": "https://api.github.com/users/mahmoud-abuzaina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mahmoud-abuzaina/subscriptions", "organizations_url": "https://api.github.com/users/mahmoud-abuzaina/orgs", "repos_url": "https://api.github.com/users/mahmoud-abuzaina/repos", "events_url": "https://api.github.com/users/mahmoud-abuzaina/events{/privacy}", "received_events_url": "https://api.github.com/users/mahmoud-abuzaina/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": "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": "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-03-15T16:36:03
2023-04-10T18:48:38
2023-04-10T18:48:37
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59999", "html_url": "https://github.com/tensorflow/tensorflow/pull/59999", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59999.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59999.patch", "merged_at": "2023-04-10T18:48:37" }
This PR fixes a failure in a test that was enabled recently by this [PR](https://github.com/tensorflow/tensorflow/commit/155b34bad741124f778978f806d82551f9d35a66). The reference values are slightly changed due to use of different gemm-api. That resulted in a one value mismatch. So we are updating the test by adding relative error tolerance.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59999/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/59999/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59998
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59998/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59998/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59998/events
https://github.com/tensorflow/tensorflow/pull/59998
1,625,736,656
PR_kwDOArmXAs5MHha1
59,998
Fix bad cherrypick
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-15T15:20:35
2023-03-15T17:21:34
2023-03-15T17:21:30
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59998", "html_url": "https://github.com/tensorflow/tensorflow/pull/59998", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59998.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59998.patch", "merged_at": "2023-03-15T17:21:30" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59998/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/59998/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59997
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59997/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59997/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59997/events
https://github.com/tensorflow/tensorflow/issues/59997
1,625,614,600
I_kwDOArmXAs5g5OkI
59,997
How to benchmark TFLite object detection model
{ "login": "mikel-brostrom", "id": 18719680, "node_id": "MDQ6VXNlcjE4NzE5Njgw", "avatar_url": "https://avatars.githubusercontent.com/u/18719680?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mikel-brostrom", "html_url": "https://github.com/mikel-brostrom", "followers_url": "https://api.github.com/users/mikel-brostrom/followers", "following_url": "https://api.github.com/users/mikel-brostrom/following{/other_user}", "gists_url": "https://api.github.com/users/mikel-brostrom/gists{/gist_id}", "starred_url": "https://api.github.com/users/mikel-brostrom/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mikel-brostrom/subscriptions", "organizations_url": "https://api.github.com/users/mikel-brostrom/orgs", "repos_url": "https://api.github.com/users/mikel-brostrom/repos", "events_url": "https://api.github.com/users/mikel-brostrom/events{/privacy}", "received_events_url": "https://api.github.com/users/mikel-brostrom/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": 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": 2788658540, "node_id": "MDU6TGFiZWwyNzg4NjU4NTQw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support", "name": "comp:lite-support", "color": "4A5F20", "default": false, "description": "Lite support library 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": "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
[ "@mikel-brostrom Thanks for reporting the issue.\r\n\r\nThe benchmarking tool can be used with any tflite model. The example of Performance benchmark numbers for [starter model](https://tfhub.dev/tensorflow/lite-model/ssd_mobilenet_v1/1/metadata/1?lite-format=tflite) with SSD Mobilenet are generated with the tool [described here](https://www.tensorflow.org/lite/performance/benchmarks). Please refer to this [section](https://www.tensorflow.org/lite/examples/object_detection/overview#performance_benchmarks) for the same.\r\n\r\nThe [Model Customization](https://www.tensorflow.org/lite/examples/object_detection/overview#model_customization) section provides the information about choosing the model to customize and fine tuning the models on custom data.\r\n\r\nThanks\r\n\r\n\r\n", "Ok. Then I guess that the inference process fails because of the different output in each model... The output of the SSD Mobilenet you provided:\r\n\r\n![Screenshot from 2023-03-16 14-20-20](https://user-images.githubusercontent.com/18719680/225629569-49b7bb62-ec95-41cd-a756-c9201246080f.png)\r\n\r\nMy model's output:\r\n\r\n![Screenshot from 2023-03-16 14-21-18](https://user-images.githubusercontent.com/18719680/225629971-31e3a5d4-f5c2-40d8-987c-42d7aa208b03.png)\r\n", "Is there any tutorial on how to convert standard object detector output shape (bs, N, 5 + nr of classe) to what basically all the TFLite object detection tools in this repo expects?", "Hi @mikel-brostrom \r\n\r\nThe TFLite provides a way to use custom models and benchmark them. \r\n\r\nPlease check the [Model Customization](https://www.tensorflow.org/lite/examples/object_detection/overview#model_customization) and also a way of TF2 object detection models to convert into TF Lite [here](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_on_mobile_tf2.md#running-tf2-detection-api-models-on-mobile) and let us know if it helps.\r\n\r\nFeel free to close the issue if it is resolved.\r\n\r\nThanks.", "> Please check the [Model Customization](https://www.tensorflow.org/lite/examples/object_detection/overview#model_customization) and also a way of TF2 object detection models to convert into TF Lite [here](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_on_mobile_tf2.md#running-tf2-detection-api-models-on-mobile) and let us know if it helps.\r\n\r\nThanks. This was really helpful @pjpratik. I think it is unclear whether the benchmark App support different type of models or not. I would suggest that you add the customization information under https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark", "@mikel-brostrom Glad it helped. Feel free to create a PR if you are interested.\r\n\r\nCan you please close the issue if it is resolved?\r\n\r\nThanks.\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/59997\">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/59997\">No</a>\n" ]
2023-03-15T14:14:05
2023-03-21T10:32:26
2023-03-21T10:32:23
NONE
null
null
null
It seems that only classification models can be benchmarked. There is no explanation for how to run benchmarking on `TFLite` object detection models under https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark. Could anybody point me into the right direction to get the modifications needed to run the `TFLite` benchmark on my custom `TFLite` object detection model? After running: ```bash ➜ tensorflow git:(master) adb shell am start -S \ -n org.tensorflow.lite.benchmark/.BenchmarkModelActivity \ --es args '"--graph=/data/local/tmp/my_custom_object_detection_float32.tflite \ --num_threads=4"' ``` When I check logcat: ```bash ➜ tensorflow git:(master) adb logcat | grep "Inference timings in us" ``` I see: ```shell 03-15 14:00:51.294 12836 12836 I tflite : Inference timings in us: Init: 36618, First inference: 1530248, Warmup (avg): 1.53025e+06, Inference (avg): 1.49712e+06 03-15 14:13:43.409 13393 13393 I tflite : Inference timings in us: Init: 33412, First inference: 307818, Warmup (avg): 297955, Inference (avg): 333826 ``` Basically, my model inference fails and it falls back onto the classification model <details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.11.0 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 18.04 ### 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? ### Standalone code to reproduce the issue ```shell The app falls back onto the classification model once the object detection one fails: 03-15 14:00:51.294 12836 12836 I tflite : Inference timings in us: Init: 36618, First inference: 1530248, Warmup (avg): 1.53025e+06, Inference (avg): 1.49712e+06 03-15 14:13:43.409 13393 13393 I tflite : Inference timings in us: Init: 33412, First inference: 307818, Warmup (avg): 297955, Inference (avg): 333826 ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59997/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/59997/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59996
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59996/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59996/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59996/events
https://github.com/tensorflow/tensorflow/issues/59996
1,625,515,012
I_kwDOArmXAs5g42QE
59,996
Strange Autograph Error
{ "login": "pokecheater", "id": 20928617, "node_id": "MDQ6VXNlcjIwOTI4NjE3", "avatar_url": "https://avatars.githubusercontent.com/u/20928617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pokecheater", "html_url": "https://github.com/pokecheater", "followers_url": "https://api.github.com/users/pokecheater/followers", "following_url": "https://api.github.com/users/pokecheater/following{/other_user}", "gists_url": "https://api.github.com/users/pokecheater/gists{/gist_id}", "starred_url": "https://api.github.com/users/pokecheater/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pokecheater/subscriptions", "organizations_url": "https://api.github.com/users/pokecheater/orgs", "repos_url": "https://api.github.com/users/pokecheater/repos", "events_url": "https://api.github.com/users/pokecheater/events{/privacy}", "received_events_url": "https://api.github.com/users/pokecheater/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": 1190546177, "node_id": "MDU6TGFiZWwxMTkwNTQ2MTc3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:autograph", "name": "comp:autograph", "color": "0052cc", "default": false, "description": "Autograph 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
[ "@pokecheater,\r\nIn order to expedite the trouble-shooting process, could you please provide a complete code and the TensorFlow version you are using. 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.", "Dear @tilakrayal,\r\n\r\nThank you for your response regarding my earlier request. I appreciate your suggestion to provide a simplified code example.\r\n\r\nHowever, I must reiterate that this error occurred in a highly complex application built on top of TensorFlow, and providing a full code example would take weeks due to the intricacies involved. Nonetheless, I wanted to bring this error to your attention because we were able to fix it by adapting the TensorFlow code itself. While this error has low priority for us because we were able to find a workaround, it could still be a significant issue for other users who do not have the same resources or expertise.\r\n\r\nAs I mentioned earlier, we believe that this error is related to packaging with PyInstaller and how the CurrentModuleFilter() method references modules. It would be extremely helpful if TensorFlow could provide more detailed documentation or even a dedicated feature to help users avoid this error in the future.\r\n\r\nThank you for your time and attention to this matter. \r\n\r\nBest regards", "@pokecheater,\r\nApologies for the delay. Without the reproducible code, it would be difficult for us to debug the issue. In order to expedite the trouble-shooting process, could you please provide a minimal code snippet and the TensorFlow version you are using. \r\n\r\nAlso could you please try to execute the below code before the main code, which might work in some cases.\r\n```\r\nimport tensorflow as tf\r\nimport pycoral.utils.edgetpu as edgetpu\r\ninterpreter = edgetpu.make_interpreter('model_edgetpu.tflite')\r\nedgetpu.supports_dmabuf(interpreter._native_handle())\r\n```\r\n\r\nhttps://www.tensorflow.org/api_docs/python/tf/lite/Interpreter\r\n\r\nexperimental_op_resolver_type | The op resolver used by the interpreter. It must be an instance of OpResolverType. By default, we use the built-in op resolver which corresponds to tflite::ops::builtin::BuiltinOpResolver in C++.\r\n-- | --\r\n\r\n\r\n\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.", "Closing this as stale. Please reopen if this is still a valid request. Thank you!" ]
2023-03-15T13:17:16
2023-06-07T08:50:30
2023-06-07T08:50:30
NONE
null
null
null
Hey TF-Team/Community, I faced a strange error. First of all we whereable to workaround it by adapting the tensorflow.python.autograph.impl.api code. Background: Packaging our application with pyinstaller, using efficient detection. In development everything works as fine, after packaging wiht pyinstaller somehow the following tf_stack module breaks with the following error: Unable to cast Python instance to C++ type. (at least this is because it retrieved a None value) At the end of this post I attached the whole error trace (as json string):). If you go a little bit up in the errortrace you will find that this error occured at tensorflow.python.autograph.impl.api:436. At the with StacktraceMapper statement. So we had a look at this and found this here: ![Pasted Graphic 4](https://user-images.githubusercontent.com/20928617/225317482-8bdf1e3c-8ecc-4111-ba97-77e99cf72863.png) When we printed the effective_source_map variable. When the error occured it was just None. When everything worked well it had a value that pointed to a tensorflow py file. (Have no idea what this is all about). And here things get very strange: I tried some parameters like multi_strategy and batch_size. -> When I used in my tests only 4 images for training it worked with a batch_size >= 2 and single_strategy in my packaged pyinstaller version. -> When I used more images I had to increase the batch_size, elsewise the error occured again for example with 12 images I needed at last a batch_size of 3 with 24: 4 with 55 it worked with 10 (haven't tried below for the 55 image case). -> If I use multi Strategy and train on 3 Graphic cards everything works also very well. Only on single gpu I had to increase the batch_size. So our solution here was to modify your code, I wrote a fix for it inside our build script. We modifyed the following (since it was None): <img width="677" alt="image" src="https://user-images.githubusercontent.com/20928617/225319368-d5ceb662-3f31-495a-a185-4fb11187bd23.png"> to: ![image](https://user-images.githubusercontent.com/20928617/225320465-c7955865-5cd8-473e-b2d1-d96de8fd0380.png) and it works very well. Really I have no clue what this is all about it. It tooks us like 2 weeks to find a solution for this. Maybe you have an idea and can give us an explanation for this strange behaviour. Here is our fix from our building script: ` def fix_tf_c_plus_plus_type_cast_error(self): code_fix = "with StackTraceMapper(converted_f):" search_str = "with StackTraceMapper(converted_f), tf_stack.CurrentModuleFilter():" tf_autograph_api_file_path = os.path.join(self.site_packages_path, 'tensorflow', 'python', 'autograph', 'impl', 'api.py') tf_autograph_api_file = open(tf_autograph_api_file_path, 'r') tf_autograph_api_file_code = tf_autograph_api_file.read() tf_autograph_api_file_code = tf_autograph_api_file_code.replace(search_str, code_fix) tf_autograph_api_file = open(tf_autograph_api_file_path, 'w') tf_autograph_api_file.seek(0) tf_autograph_api_file.write(tf_autograph_api_file_code) ` Errortrace: [{"_id":"63ff19cfa6631d318bcb12c7","msg":"Unable to cast Python instance to C++ type (compile in debug mode for details)","type":"ERROR","source":"WORKER_NODE: Need a name","created_at":"2023-03-01T10:24:31.323000","stacktrace":["Traceback (most recent call last):\n"," File \"worker\\worker_process.py\", line 176, in run_job_thread\n"," File \"worker\\worker_process.py\", line 489, in _do_wizard\n"," File \"wizards\\base_wizard.py\", line 110, in start\n"," File \"wizards\\implementations\\image_object_detection\\image_object_detection_wizard.py\", line 112, in run\n"," File \"wizards\\implementations\\image_object_detection\\image_object_detection_wizard.py\", line 313, in train\n"," File \"experiment\\experiments\\[train.py](http://train.py/)\", line 86, in runTrainExperiment\n"," File \"experiment\\experiments\\vision\\efficientdet_train_experiment.py\", line 120, in run\n"," File \"experiment\\experiments\\base_train_experiment.py\", line 266, in custom_run\n"," File \"tensorflow\\python\\util\\traceback_utils.py\", line 153, in error_handler\n"," File \"tensorflow\\python\\util\\traceback_utils.py\", line 150, in error_handler\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 915, in __call__\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 963, in _call\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 785, in _initialize\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2480, in _get_concrete_function_internal_garbage_collected\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2711, in _maybe_define_function\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2627, in _create_graph_function\n"," File \"tensorflow\\python\\framework\\func_graph.py\", line 1141, in func_graph_from_py_func\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 677, in wrapped_fn\n"," File \"tensorflow\\python\\framework\\func_graph.py\", line 1116, in autograph_handler\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 434, in converted_call\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 484, in _fall_back_unconverted\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 458, in _call_unconverted\n"," File \"experiment\\experiments\\base_train_experiment.py\", line 245, in distributed_train_step\n"," File \"tensorflow\\python\\distribute\\distribute_lib.py\", line 1312, in run\n"," File \"tensorflow\\python\\distribute\\distribute_lib.py\", line 2888, in call_for_each_replica\n"," File \"tensorflow\\python\\distribute\\mirrored_strategy.py\", line 676, in _call_for_each_replica\n"," File \"tensorflow\\python\\distribute\\mirrored_run.py\", line 101, in call_for_each_replica\n"," File \"tensorflow\\python\\distribute\\mirrored_run.py\", line 283, in _call_for_each_replica\n"," File \"tensorflow\\python\\training\\[coordinator.py](http://coordinator.py/)\", line 385, in join\n"," File \"[six.py](http://six.py/)\", line 703, in reraise\n"," File \"tensorflow\\python\\training\\[coordinator.py](http://coordinator.py/)\", line 293, in stop_on_exception\n"," File \"tensorflow\\python\\distribute\\mirrored_run.py\", line 386, in run\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 689, in wrapper\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 434, in converted_call\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 484, in _fall_back_unconverted\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 458, in _call_unconverted\n"," File \"experiment\\experiments\\vision\\efficientdet_train_experiment.py\", line 98, in train_step\n"," File \"tensorflow_addons\\optimizers\\average_wrapper.py\", line 56, in apply_gradients\n return super().apply_gradients(grads_and_vars, name, **kwargs)\n"," File \"keras\\optimizers\\optimizer_v2\\optimizer_v2.py\", line 672, in apply_gradients\n"," File \"keras\\optimizers\\optimizer_v2\\optimizer_v2.py\", line 992, in _prepare\n"," File \"tensorflow_addons\\optimizers\\moving_average.py\", line 112, in _prepare_local\n apply_state[(var_device, var_dtype)][\"tfa_ma_decay\"] = self._get_decay(\n"," File \"tensorflow\\python\\util\\traceback_utils.py\", line 153, in error_handler\n"," File \"tensorflow\\python\\util\\traceback_utils.py\", line 150, in error_handler\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 915, in __call__\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 963, in _call\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 785, in _initialize\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2480, in _get_concrete_function_internal_garbage_collected\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2711, in _maybe_define_function\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 2627, in _create_graph_function\n"," File \"tensorflow\\python\\framework\\func_graph.py\", line 1141, in func_graph_from_py_func\n"," File \"tensorflow\\python\\eager\\def_function.py\", line 677, in wrapped_fn\n"," File \"tensorflow\\python\\eager\\[function.py](http://function.py/)\", line 3251, in bound_method_wrapper\n"," File \"tensorflow\\python\\framework\\func_graph.py\", line 1116, in autograph_handler\n"," File \"tensorflow\\python\\autograph\\impl\\[api.py](http://api.py/)\", line 436, in converted_call\n"," File \"tensorflow\\python\\util\\tf_stack.py\", line 56, in __enter__\n"," File \"tensorflow\\python\\util\\tf_stack.py\", line 99, in update\n","RuntimeError: Unable to cast Python instance to C++ type (compile in debug mode for details)\n"],"selected":true}]
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59996/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/59996/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59995
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59995/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59995/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59995/events
https://github.com/tensorflow/tensorflow/pull/59995
1,625,353,750
PR_kwDOArmXAs5MGOx9
59,995
Add flag to select enabled CPU targets
{ "login": "RoboTux", "id": 272327, "node_id": "MDQ6VXNlcjI3MjMyNw==", "avatar_url": "https://avatars.githubusercontent.com/u/272327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RoboTux", "html_url": "https://github.com/RoboTux", "followers_url": "https://api.github.com/users/RoboTux/followers", "following_url": "https://api.github.com/users/RoboTux/following{/other_user}", "gists_url": "https://api.github.com/users/RoboTux/gists{/gist_id}", "starred_url": "https://api.github.com/users/RoboTux/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RoboTux/subscriptions", "organizations_url": "https://api.github.com/users/RoboTux/orgs", "repos_url": "https://api.github.com/users/RoboTux/repos", "events_url": "https://api.github.com/users/RoboTux/events{/privacy}", "received_events_url": "https://api.github.com/users/RoboTux/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: 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
[ "Note on testing: I've run ./tensorflow/tools/ci_build/ci_build.sh CPU.ARM64 bazel test on AArch64 on //tensorflow/core/... //tensorflow/tsl/... and //tensorflow/compiler/... and there was no regression.", "This looks good to me, but I'm not sure I'm the right person to review. I'll add @MichaelHudgins and @akuegel, hopefully one of them can review (or will know who to assign). Thanks for the PR!", "@vam-google would mind taking a look? ", "Hi @RoboTux Can you please check @akuegel's comments and keep us posted ? Thank you!", "> Hi @RoboTux Can you please check @akuegel's comments and keep us posted ? Thank you!\r\n\r\nTL;DR: saw that, I was trying to understand the current default behavior, will rework the patch accordingly and change it to default to enable only the host architecture.\r\n\r\nYes sorry I saw that but I realized in https://github.com/tensorflow/tensorflow/issues/59595#issuecomment-1473725625 that I erroneously thought all targets are enabled by default currently which is not the case, only X86 and the host CPU are enabled by default. I delayed a bit to find the time to analyze why despite llvm_targets having all targets in @llvm-project it did not cause all targets to be enabled. It's down to the config_settings operating on the --cpu value in //tensorflow/tsl which I thought did not work as intended because of how it's documented in bazel as having an empty default:\r\n\r\nhttps://bazel.build/reference/command-line-reference#flag--cpu\r\n\r\nBest regards,\r\nThomas", "Ah, it seems there are some merge conflicts that need to be resolved.", "What commit message will be used when this land after I solve the conflicts? Will it use the original message or what I last forced pushed?", "@RoboTux I believe it will use the original message on the PR (\"Default flag to current set of ...\")", "> \r\n\r\nOh, I'll fix the conflicts in a new PR then if you don't mind since this new version didn't add an option. I'll link it from here to help clarify things.", "I've just created https://github.com/tensorflow/tensorflow/pull/60161 which fixes the conflicts and contains an updated commit message." ]
2023-03-15T11:38:55
2023-06-07T13:34:49
2023-03-29T09:14:41
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59995", "html_url": "https://github.com/tensorflow/tensorflow/pull/59995", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59995.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59995.patch", "merged_at": null }
Default flag to current set of support targets to keep the default of enabling all CPU targets. This fixes issue [#59595](https://github.com/tensorflow/tensorflow/issues/59595) as well as some confusiong around Host Vs Target.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59995/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/59995/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59994
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59994/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59994/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59994/events
https://github.com/tensorflow/tensorflow/issues/59994
1,624,959,175
I_kwDOArmXAs5g2ujH
59,994
LSTM model on arduino nano ble 33 using TFLite
{ "login": "Madhu5391111", "id": 127930822, "node_id": "U_kgDOB6ARxg", "avatar_url": "https://avatars.githubusercontent.com/u/127930822?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Madhu5391111", "html_url": "https://github.com/Madhu5391111", "followers_url": "https://api.github.com/users/Madhu5391111/followers", "following_url": "https://api.github.com/users/Madhu5391111/following{/other_user}", "gists_url": "https://api.github.com/users/Madhu5391111/gists{/gist_id}", "starred_url": "https://api.github.com/users/Madhu5391111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Madhu5391111/subscriptions", "organizations_url": "https://api.github.com/users/Madhu5391111/orgs", "repos_url": "https://api.github.com/users/Madhu5391111/repos", "events_url": "https://api.github.com/users/Madhu5391111/events{/privacy}", "received_events_url": "https://api.github.com/users/Madhu5391111/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": 1589976566, "node_id": "MDU6TGFiZWwxNTg5OTc2NTY2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:micro", "name": "comp:micro", "color": "3e2eea", "default": false, "description": "Related to TensorFlow Lite Microcontrollers" }, { "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": 2788658540, "node_id": "MDU6TGFiZWwyNzg4NjU4NTQw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support", "name": "comp:lite-support", "color": "4A5F20", "default": false, "description": "Lite support library 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": "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 @Madhu5391111 Thanks for reporting this issue.\r\n\r\nThere might be different reasons for tensor allocation to be failed like incorrect tensor sizes.\r\n\r\nCan you provide the steps you have followed and the model settings provided inorder to further investigate the issue.\r\n\r\nThanks.", "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-03-15T08:00:35
2023-04-01T01:54:03
2023-04-01T01:54:03
NONE
null
null
null
### 1. System information - OS Platform and Distribution : Windows 11 + Arduino 1.8.19 - TensorFlow installation (pip package or built from source): 2.11.0 - TensorFlow library : version 2.0 ### 2. Code static tflite::MicroErrorReporter micro_error_reporter; error_reporter = &micro_error_reporter; model = tflite::GetModel(model_tflite_quant); if (model->version() != TFLITE_SCHEMA_VERSION) { error_reporter->Report("Model version does not match Schema"); while (1); } else { Serial.println("Model schema match!"); } static tflite::AllOpsResolver resolver; // Build an interpreter to run the model with. static tflite::MicroInterpreter static_interpreter( model, resolver, tensor_arena, kTensorArenaSize, error_reporter); interpreter = &static_interpreter; // Allocate memory for the model's input and output tensors TfLiteStatus allocate_status = interpreter->AllocateTensors(); if (allocate_status != kTfLiteOk) { error_reporter->Report("AllocateTensors() failed"); Serial.println("Allocation failed!"); while(1); } else { Serial.println("Allocation done!"); } ### 3. Probem We are running LSTM model on arduino nano ble 33 using TFLite library. but we are getting "Allocation failed!". Parameters for LSTM model is 16 and LSTM_units = 1 and giving kTensorArenaSize = 150*1024. can u confirm the what is the reason for "Allocation failed!"
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59994/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/59994/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59993
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59993/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59993/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59993/events
https://github.com/tensorflow/tensorflow/pull/59993
1,624,761,950
PR_kwDOArmXAs5MEN8f
59,993
Add tf_gpu_tests_tags to gpu-related tests.
{ "login": "jaeyoo", "id": 40815393, "node_id": "MDQ6VXNlcjQwODE1Mzkz", "avatar_url": "https://avatars.githubusercontent.com/u/40815393?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jaeyoo", "html_url": "https://github.com/jaeyoo", "followers_url": "https://api.github.com/users/jaeyoo/followers", "following_url": "https://api.github.com/users/jaeyoo/following{/other_user}", "gists_url": "https://api.github.com/users/jaeyoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/jaeyoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jaeyoo/subscriptions", "organizations_url": "https://api.github.com/users/jaeyoo/orgs", "repos_url": "https://api.github.com/users/jaeyoo/repos", "events_url": "https://api.github.com/users/jaeyoo/events{/privacy}", "received_events_url": "https://api.github.com/users/jaeyoo/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": 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
[ "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin I saw that the windows bazel build succeeded but showing failure here. could you please give me any hint?", "Hi @gbaned , could you help retriger the check? Thanks!", "Windows passed internally, and AMD ROCm test result:\r\n\r\n```\r\nTarget //tensorflow/tools/pip_package:build_pip_package up-to-date:\r\n\r\n bazel-bin/tensorflow/tools/pip_package/build_pip_package\r\n\r\nINFO: Elapsed time: 5299.297s, Critical Path: 820.89s\r\n\r\nINFO: 37654 processes: 4101 internal, 33553 local.\r\n\r\nINFO: Build completed successfully, 37654 total actions\r\n\r\nINFO: Build completed successfully, 37654 total actions\r\n\r\n++ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg\r\n\r\nWed Mar 29 23:47:58 UTC 2023 : === Preparing sources in dir: /tmp/tmp.I0vDbSk9pz\r\n\r\n/workspace /workspace\r\n\r\n/workspace\r\n\r\n/workspace/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow /workspace\r\n\r\n/workspace\r\n\r\nbazel-bin/tensorflow/tools/pip_package/build_pip_package: line 201: patchelf: command not found\r\n```\r\n\r\nIt seems not the error coming from my PR..?", "> Hi @gbaned , could you help retriger the check? Thanks!\r\n\r\nHi @sirakiin I have retriggered the checks. Thank you!", "Hi @jaeyoo 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.", "Hi @jaeyoo Can you please resolve conflicts? Thank you!", "it's internally merged. closed." ]
2023-03-15T05:11:41
2023-05-05T18:10:29
2023-05-05T18:10:23
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59993", "html_url": "https://github.com/tensorflow/tensorflow/pull/59993", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59993.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59993.patch", "merged_at": null }
Locally tested with: ``` bazelisk test -c opt --cxxopt=--std=c++17 \ --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only \ --build_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only \ --test_lang_filters=cc,py --config=android_arm64 --flaky_test_attempts=3 \ -- //tensorflow/lite/core/experimental/acceleration/... ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59993/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/59993/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59992
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59992/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59992/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59992/events
https://github.com/tensorflow/tensorflow/pull/59992
1,624,430,049
PR_kwDOArmXAs5MDH0A
59,992
Fix 2.11 build
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-14T23:00:49
2023-03-14T23:32:56
2023-03-14T23:31:52
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59992", "html_url": "https://github.com/tensorflow/tensorflow/pull/59992", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59992.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59992.patch", "merged_at": "2023-03-14T23:31:51" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59992/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/59992/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59991
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59991/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59991/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59991/events
https://github.com/tensorflow/tensorflow/pull/59991
1,624,217,958
PR_kwDOArmXAs5MCacH
59,991
Improved readability of TensorFlow description.
{ "login": "ica574", "id": 79566933, "node_id": "MDQ6VXNlcjc5NTY2OTMz", "avatar_url": "https://avatars.githubusercontent.com/u/79566933?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ica574", "html_url": "https://github.com/ica574", "followers_url": "https://api.github.com/users/ica574/followers", "following_url": "https://api.github.com/users/ica574/following{/other_user}", "gists_url": "https://api.github.com/users/ica574/gists{/gist_id}", "starred_url": "https://api.github.com/users/ica574/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ica574/subscriptions", "organizations_url": "https://api.github.com/users/ica574/orgs", "repos_url": "https://api.github.com/users/ica574/repos", "events_url": "https://api.github.com/users/ica574/events{/privacy}", "received_events_url": "https://api.github.com/users/ica574/received_events", "type": "User", "site_admin": false }
[ { "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
[ "@soosung80\r\n@joefernandez\r\n\r\nWhy can't I add you two as reviewers?", "Hi @soosung80 / @joefernandez Can you please review this PR ? Thank you!", "So, Copybara doesn't want to merge the PR after it created the commit (87197a464c7cb21135ce66bcf861a92d465f20fc) for it. This is because you have synced it to master after it was imported in the internal system (was in the Piper area in the diagram below):\r\n\r\n![life of a TF PR](https://user-images.githubusercontent.com/323199/229561784-0a2f5509-b731-493f-ad88-bad487688c8d.png)\r\n\r\nAs such, sadly, we'll need to manually close the PR." ]
2023-03-14T20:05:06
2023-06-13T13:21:45
2023-06-13T13:21:41
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59991", "html_url": "https://github.com/tensorflow/tensorflow/pull/59991", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59991.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59991.patch", "merged_at": null }
Slightly altered the README file of TensorFlow to become more readable, and included a missing indefinite article in the same file. ![Screenshot 2023-03-14 at 18 46 42](https://user-images.githubusercontent.com/79566933/225123682-8941af51-33bd-4b59-889e-95c9b7c828b8.png)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59991/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/59991/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59990
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59990/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59990/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59990/events
https://github.com/tensorflow/tensorflow/issues/59990
1,624,119,199
I_kwDOArmXAs5gzhef
59,990
S3_USE_HTTPS 0 is being ignored - TF insists on HTTPS
{ "login": "edi-bice", "id": 1819450, "node_id": "MDQ6VXNlcjE4MTk0NTA=", "avatar_url": "https://avatars.githubusercontent.com/u/1819450?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edi-bice", "html_url": "https://github.com/edi-bice", "followers_url": "https://api.github.com/users/edi-bice/followers", "following_url": "https://api.github.com/users/edi-bice/following{/other_user}", "gists_url": "https://api.github.com/users/edi-bice/gists{/gist_id}", "starred_url": "https://api.github.com/users/edi-bice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edi-bice/subscriptions", "organizations_url": "https://api.github.com/users/edi-bice/orgs", "repos_url": "https://api.github.com/users/edi-bice/repos", "events_url": "https://api.github.com/users/edi-bice/events{/privacy}", "received_events_url": "https://api.github.com/users/edi-bice/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": 2259644560, "node_id": "MDU6TGFiZWwyMjU5NjQ0NTYw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:cloud", "name": "comp:cloud", "color": "234ec4", "default": false, "description": "PRs related to cloud platform (GCP, AWS ... etc)" }, { "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": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @edi-bice, \r\n\r\nSetting `os.environ['S3_USE_HTTPS'] = '0'` in TensorFlow can cause an error because TensorFlow by default uses HTTPS to communicate with S3. If you set S3_USE_HTTPS to '0', you are telling TensorFlow to use plain HTTP to communicate with S3, which can cause a security issue because the traffic is not encrypted and can be intercepted and modified by attackers.\r\n\r\nAdditionally, some S3 endpoints may not even allow non-HTTPS connections, so setting S3_USE_HTTPS to '0' could result in connection failures or other errors. Therefore, it is generally not recommended to set S3_USE_HTTPS to '0' in TensorFlow. Thank you!", "@synandi agree completely but should have made it clearer that this is TF running in TFX/KFP pipelines on Kubeflow accessing its cluster-local Minio storage via S3 protocol etc. Minio is bundled with Kubeflow and at least the gcp-blueprint distribution seems to have it configured without SSL.", "On a different Kubeflow 1.6 deployment on GCP, it seems to be making request against http endpoint though regardless of the value in os.environ['S3_USE_HTTPS'] (whether 0 or 1) and regardless of os.environ['S3_ENDPOINT'] being '10.12.2.51:9000' or 'http://10.12.2.51:9000' as is reported by Minio pod logs.\r\n\r\n2023-03-15 12:26:40.083090: I tensorflow/c/logging.cc:34] Making request to http://10.12.2.51:9000/edi_bice/models/clientXYZ/model_arch/poisson_model/model_layers.json\r\n\r\n`2023-03-15 12:26:30.063771: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.063836: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.063851: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.063857: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.063867: I tensorflow/c/logging.cc:34] Initializing config loader against fileName /home/jovyan/.aws/credentials and using profilePrefix = 0\r\n2023-03-15 12:26:30.063874: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.063879: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.063885: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.063890: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.063896: I tensorflow/c/logging.cc:34] Initializing config loader against fileName /home/jovyan/.aws/config and using profilePrefix = 1\r\n2023-03-15 12:26:30.063902: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.063907: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.063913: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.063918: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.063948: I tensorflow/c/logging.cc:34] Unable to open config file /home/jovyan/.aws/credentials for reading.\r\n2023-03-15 12:26:30.063955: I tensorflow/c/logging.cc:34] Failed to reload configuration.\r\n2023-03-15 12:26:30.063961: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.063970: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.063979: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.063988: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.064001: I tensorflow/c/logging.cc:34] Unable to open config file /home/jovyan/.aws/config for reading.\r\n2023-03-15 12:26:30.064010: I tensorflow/c/logging.cc:34] Failed to reload configuration.\r\n2023-03-15 12:26:30.064042: I tensorflow/c/logging.cc:34] Initializing Curl library with version: 7.85.0, ssl version: BoringSSL\r\n2023-03-15 12:26:30.064059: I tensorflow/c/logging.cc:34] ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.\r\n2023-03-15 12:26:30.064080: W tensorflow/c/logging.cc:37] Retry Strategy will use the default max attempts.\r\n2023-03-15 12:26:30.064096: I tensorflow/c/logging.cc:34] Creating AWSHttpResourceClient with max connections 2 and scheme http\r\n2023-03-15 12:26:30.064108: I tensorflow/c/logging.cc:34] Initializing CurlHandleContainer with size 2\r\n2023-03-15 12:26:30.064128: I tensorflow/c/logging.cc:34] ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.\r\n2023-03-15 12:26:30.064139: W tensorflow/c/logging.cc:37] Retry Strategy will use the default max attempts.\r\n2023-03-15 12:26:30.064164: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.064176: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.064187: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.064196: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.064207: I tensorflow/c/logging.cc:34] Initializing config loader against fileName /home/jovyan/.aws/credentials and using profilePrefix = 0\r\n2023-03-15 12:26:30.064218: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.064227: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.064237: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.064250: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.064261: I tensorflow/c/logging.cc:34] Checking HOME for the home directory.\r\n2023-03-15 12:26:30.064271: I tensorflow/c/logging.cc:34] Environment value for variable HOME is /home/jovyan\r\n2023-03-15 12:26:30.064280: I tensorflow/c/logging.cc:34] Home directory is missing the final / appending one to normalize\r\n2023-03-15 12:26:30.064288: I tensorflow/c/logging.cc:34] Final Home Directory is /home/jovyan/\r\n2023-03-15 12:26:30.064301: I tensorflow/c/logging.cc:34] Setting provider to read credentials from /home/jovyan/.aws/credentials for credentials file and /home/jovyan/.aws/config for the config file , for use with profile default\r\n2023-03-15 12:26:30.064314: I tensorflow/c/logging.cc:34] Setting process credentials provider to read config from default\r\n2023-03-15 12:26:30.064332: W tensorflow/c/logging.cc:37] Token file must be specified to use STS AssumeRole web identity creds provider.\r\n2023-03-15 12:26:30.064344: I tensorflow/c/logging.cc:34] Setting sso credentials provider to read config from default\r\n2023-03-15 12:26:30.064357: I tensorflow/c/logging.cc:34] The environment variable value AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is \r\n2023-03-15 12:26:30.064366: I tensorflow/c/logging.cc:34] The environment variable value AWS_CONTAINER_CREDENTIALS_FULL_URI is \r\n2023-03-15 12:26:30.064375: I tensorflow/c/logging.cc:34] The environment variable value AWS_EC2_METADATA_DISABLED is \r\n2023-03-15 12:26:30.064386: I tensorflow/c/logging.cc:34] ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.\r\n2023-03-15 12:26:30.064397: W tensorflow/c/logging.cc:37] Retry Strategy will use the default max attempts.\r\n2023-03-15 12:26:30.064409: I tensorflow/c/logging.cc:34] Creating AWSHttpResourceClient with max connections 2 and scheme http\r\n2023-03-15 12:26:30.064419: I tensorflow/c/logging.cc:34] Initializing CurlHandleContainer with size 2\r\n2023-03-15 12:26:30.064430: I tensorflow/c/logging.cc:34] Creating Instance with default EC2MetadataClient and refresh rate 300000\r\n2023-03-15 12:26:30.064448: I tensorflow/c/logging.cc:34] Added EC2 metadata service credentials provider to the provider chain.\r\n2023-03-15 12:26:30.064477: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio\r\n2023-03-15 12:26:30.064491: I tensorflow/c/logging.cc:34] Found secret key\r\n2023-03-15 12:26:30.064547: I tensorflow/c/logging.cc:34] Initializing CurlHandleContainer with size 25\r\n2023-03-15 12:26:30.064729: I tensorflow/c/logging.cc:34] No content body, content-length headers\r\n2023-03-15 12:26:30.064795: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio\r\n2023-03-15 12:26:30.064811: I tensorflow/c/logging.cc:34] Found secret key\r\n2023-03-15 12:26:30.064824: I tensorflow/c/logging.cc:34] Using cached empty string sha256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 because payload is empty.\r\n2023-03-15 12:26:30.064870: I tensorflow/c/logging.cc:34] Canonical Header String: amz-sdk-invocation-id:CD996767-93DA-4B24-AC07-CF3DBD6AC7A3\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230315T122630Z\r\n\r\n2023-03-15 12:26:30.064883: I tensorflow/c/logging.cc:34] Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\n2023-03-15 12:26:30.064913: I tensorflow/c/logging.cc:34] Canonical Request String: HEAD\r\n/edi_bice/models/clientXYZ/model_arch/poisson_model/model_layers.json\r\n\r\namz-sdk-invocation-id:CD996767-93DA-4B24-AC07-CF3DBD6AC7A3\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230315T122630Z\r\n\r\namz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-15 12:26:30.064938: I tensorflow/c/logging.cc:34] Final String to sign: AWS4-HMAC-SHA256\r\n20230315T122630Z\r\n20230315/us-east-1/s3/aws4_request\r\ne3cae3b1a464d54b492c8a1e21c4a99785ea29c76e307538f7af5db540f48360\r\n2023-03-15 12:26:30.064952: I tensorflow/c/logging.cc:34] Final computed signing hash: 89accf1cc9a4a9570c50324fa82195ca53aaae9764b2c70bdbafec1fe976609f\r\n2023-03-15 12:26:30.064965: I tensorflow/c/logging.cc:34] Signing request with: AWS4-HMAC-SHA256 Credential=minio/20230315/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=89accf1cc9a4a9570c50324fa82195ca53aaae9764b2c70bdbafec1fe976609f\r\n2023-03-15 12:26:30.064977: I tensorflow/c/logging.cc:34] Request Successfully signed\r\n2023-03-15 12:26:30.064997: I tensorflow/c/logging.cc:34] Making request to http://10.12.2.51:9000/edi_bice/models/clientXYZ/model_arch/poisson_model/model_layers.json\r\n2023-03-15 12:26:30.065011: I tensorflow/c/logging.cc:34] Including headers:\r\n2023-03-15 12:26:30.065021: I tensorflow/c/logging.cc:34] amz-sdk-invocation-id: CD996767-93DA-4B24-AC07-CF3DBD6AC7A3\r\n2023-03-15 12:26:30.065032: I tensorflow/c/logging.cc:34] amz-sdk-request: attempt=1\r\n2023-03-15 12:26:30.065042: I tensorflow/c/logging.cc:34] authorization: AWS4-HMAC-SHA256 Credential=minio/20230315/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=89accf1cc9a4a9570c50324fa82195ca53aaae9764b2c70bdbafec1fe976609f\r\n2023-03-15 12:26:30.065052: I tensorflow/c/logging.cc:34] content-type: application/xml\r\n2023-03-15 12:26:30.065063: I tensorflow/c/logging.cc:34] host: 10.12.2.51:9000\r\n2023-03-15 12:26:30.065073: I tensorflow/c/logging.cc:34] user-agent: aws-sdk-cpp/1.8.186 Linux/5.15.0-1024-gke x86_64 GCC/7.3.1\r\n2023-03-15 12:26:30.065082: I tensorflow/c/logging.cc:34] x-amz-api-version: 2006-03-01\r\n2023-03-15 12:26:30.065091: I tensorflow/c/logging.cc:34] x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-15 12:26:30.065100: I tensorflow/c/logging.cc:34] x-amz-date: 20230315T122630Z\r\n2023-03-15 12:26:30.065111: I tensorflow/c/logging.cc:34] Attempting to acquire curl connection.\r\n2023-03-15 12:26:30.065119: I tensorflow/c/logging.cc:34] No current connections available in pool. Attempting to create new connections.\r\n2023-03-15 12:26:30.065128: I tensorflow/c/logging.cc:34] attempting to grow pool size by 2\r\n2023-03-15 12:26:30.065153: I tensorflow/c/logging.cc:34] Pool grown by 2\r\n2023-03-15 12:26:30.065166: I tensorflow/c/logging.cc:34] Connection has been released. Continuing.\r\n2023-03-15 12:26:30.065177: I tensorflow/c/logging.cc:34] Returning connection handle 0x557f0495ca40\r\n2023-03-15 12:26:30.065186: I tensorflow/c/logging.cc:34] Obtained connection handle 0x557f0495ca40\r\n2023-03-15 12:26:40.081483: I tensorflow/c/logging.cc:34] HTTP/1.1 503 Service Unavailable\r\n\r\n2023-03-15 12:26:40.081573: I tensorflow/c/logging.cc:34] content-length: 91\r\n\r\n2023-03-15 12:26:40.081592: I tensorflow/c/logging.cc:34] content-type: text/plain\r\n\r\n2023-03-15 12:26:40.081603: I tensorflow/c/logging.cc:34] date: Wed, 15 Mar 2023 12:26:39 GMT\r\n\r\n2023-03-15 12:26:40.081612: I tensorflow/c/logging.cc:34] server: envoy\r\n\r\n2023-03-15 12:26:40.081620: I tensorflow/c/logging.cc:34] \r\n\r\n2023-03-15 12:26:40.081647: I tensorflow/c/logging.cc:34] Returned http response code 503\r\n2023-03-15 12:26:40.081655: I tensorflow/c/logging.cc:34] Returned content type text/plain\r\n2023-03-15 12:26:40.081661: I tensorflow/c/logging.cc:34] Releasing curl handle 0x557f0495ca40\r\n2023-03-15 12:26:40.081680: I tensorflow/c/logging.cc:34] Releasing curl handle 0x557f0495ca40\r\n2023-03-15 12:26:40.081689: I tensorflow/c/logging.cc:34] Notified waiting threads.\r\n2023-03-15 12:26:40.081713: I tensorflow/c/logging.cc:34] Request returned error. Attempting to generate appropriate error codes from response\r\n2023-03-15 12:26:40.081737: E tensorflow/c/logging.cc:40] HTTP response code: 503\r\nResolved remote host IP address: \r\nRequest ID: \r\nException name: \r\nError message: No response body.\r\n4 response headers:\r\ncontent-length : 91\r\ncontent-type : text/plain\r\ndate : Wed, 15 Mar 2023 12:26:39 GMT\r\nserver : envoy\r\n2023-03-15 12:26:40.081762: W tensorflow/c/logging.cc:37] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.\r\n2023-03-15 12:26:40.081771: I tensorflow/c/logging.cc:34] Server time is Wed, 15 Mar 2023 12:26:39 GMT, while client time is Wed, 15 Mar 2023 12:26:40 GMT\r\n2023-03-15 12:26:40.081778: W tensorflow/c/logging.cc:37] Request failed, now waiting 0 ms before attempting again.`", "Same code (and library versions) seems to work on Kubeflow 1.5 deployed on GCP via gcp-blueprints\r\n\r\n`2023-03-14 21:59:13.723573: I tensorflow/c/logging.cc:34] No content body, content-length headers\r\n2023-03-14 21:59:13.723658: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio\r\n2023-03-14 21:59:13.723680: I tensorflow/c/logging.cc:34] Found secret key\r\n2023-03-14 21:59:13.723696: I tensorflow/c/logging.cc:34] Using cached empty string sha256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 because payload is empty.\r\n2023-03-14 21:59:13.723766: I tensorflow/c/logging.cc:34] Canonical Header String: amz-sdk-invocation-id:5D5AC5F0-5091-4804-A1BE-EE45C33DAC84\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230314T215913Z\r\n\r\n2023-03-14 21:59:13.723792: I tensorflow/c/logging.cc:34] Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\n2023-03-14 21:59:13.723830: I tensorflow/c/logging.cc:34] Canonical Request String: HEAD\r\n/edi_bice/models/clientXYZ/model_arch/poisson_model/model_layers.json\r\n\r\namz-sdk-invocation-id:5D5AC5F0-5091-4804-A1BE-EE45C33DAC84\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230314T215913Z\r\n\r\namz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-14 21:59:13.723874: I tensorflow/c/logging.cc:34] Final String to sign: AWS4-HMAC-SHA256\r\n20230314T215913Z\r\n20230314/us-east-1/s3/aws4_request\r\n1238bfb28a22deb82193ab1d9129bc2f72feaf1e511c934ff9912ff3f5ff759a\r\n2023-03-14 21:59:13.723911: I tensorflow/c/logging.cc:34] Final computed signing hash: 9aff3e1cfabe7f6bdabb78953a14b1d3da73a4ea72035a8da890706f7f115c4d\r\n2023-03-14 21:59:13.723931: I tensorflow/c/logging.cc:34] Signing request with: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=9aff3e1cfabe7f6bdabb78953a14b1d3da73a4ea72035a8da890706f7f115c4d\r\n2023-03-14 21:59:13.723956: I tensorflow/c/logging.cc:34] Request Successfully signed\r\n2023-03-14 21:59:13.723986: I tensorflow/c/logging.cc:34] Making request to http://10.12.2.51:9000/edi_bice/models/clientXYZ/model_arch/poisson_model/model_layers.json\r\n2023-03-14 21:59:13.724013: I tensorflow/c/logging.cc:34] Including headers:\r\n2023-03-14 21:59:13.724031: I tensorflow/c/logging.cc:34] amz-sdk-invocation-id: 5D5AC5F0-5091-4804-A1BE-EE45C33DAC84\r\n2023-03-14 21:59:13.724054: I tensorflow/c/logging.cc:34] amz-sdk-request: attempt=1\r\n2023-03-14 21:59:13.724069: I tensorflow/c/logging.cc:34] authorization: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=9aff3e1cfabe7f6bdabb78953a14b1d3da73a4ea72035a8da890706f7f115c4d\r\n2023-03-14 21:59:13.724085: I tensorflow/c/logging.cc:34] content-type: application/xml\r\n2023-03-14 21:59:13.724108: I tensorflow/c/logging.cc:34] host: 10.12.2.51:9000\r\n2023-03-14 21:59:13.724124: I tensorflow/c/logging.cc:34] user-agent: aws-sdk-cpp/1.8.186 Linux/5.4.217+ x86_64 GCC/7.3.1\r\n2023-03-14 21:59:13.724137: I tensorflow/c/logging.cc:34] x-amz-api-version: 2006-03-01\r\n2023-03-14 21:59:13.724161: I tensorflow/c/logging.cc:34] x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-14 21:59:13.724177: I tensorflow/c/logging.cc:34] x-amz-date: 20230314T215913Z\r\n2023-03-14 21:59:13.724200: I tensorflow/c/logging.cc:34] Attempting to acquire curl connection.\r\n2023-03-14 21:59:13.724216: I tensorflow/c/logging.cc:34] Connection has been released. Continuing.\r\n2023-03-14 21:59:13.724241: I tensorflow/c/logging.cc:34] Returning connection handle 0x55d7fe080310\r\n2023-03-14 21:59:13.724542: I tensorflow/c/logging.cc:34] Obtained connection handle 0x55d7fe080310\r\n2023-03-14 21:59:13.798382: I tensorflow/c/logging.cc:34] HTTP/1.1 200 OK\r\n\r\n2023-03-14 21:59:13.798456: I tensorflow/c/logging.cc:34] accept-ranges: bytes\r\n\r\n2023-03-14 21:59:13.798481: I tensorflow/c/logging.cc:34] content-length: 717\r\n\r\n2023-03-14 21:59:13.798505: I tensorflow/c/logging.cc:34] content-security-policy: block-all-mixed-content\r\n\r\n2023-03-14 21:59:13.798525: I tensorflow/c/logging.cc:34] content-type: application/json\r\n\r\n2023-03-14 21:59:13.798546: I tensorflow/c/logging.cc:34] etag: \"a88e35987284c3a006ee88c43f902a7a\"\r\n\r\n2023-03-14 21:59:13.798635: I tensorflow/c/logging.cc:34] last-modified: Thu, 04 Feb 2021 19:21:01 GMT\r\n\r\n2023-03-14 21:59:13.798665: I tensorflow/c/logging.cc:34] server: istio-envoy\r\n\r\n2023-03-14 21:59:13.798684: I tensorflow/c/logging.cc:34] vary: Origin\r\n\r\n2023-03-14 21:59:13.798703: I tensorflow/c/logging.cc:34] x-amz-request-id: 174C680A1BEFE503\r\n\r\n2023-03-14 21:59:13.798722: I tensorflow/c/logging.cc:34] x-xss-protection: 1; mode=block\r\n\r\n2023-03-14 21:59:13.798743: I tensorflow/c/logging.cc:34] date: Tue, 14 Mar 2023 21:59:13 GMT\r\n\r\n2023-03-14 21:59:13.798764: I tensorflow/c/logging.cc:34] x-envoy-upstream-service-time: 68\r\n\r\n2023-03-14 21:59:13.798789: I tensorflow/c/logging.cc:34] x-envoy-decorator-operation: minio-service.kubeflow.svc.cluster.local:9000/*\r\n\r\n2023-03-14 21:59:13.798849: I tensorflow/c/logging.cc:34] \r\n\r\n2023-03-14 21:59:13.798892: I tensorflow/c/logging.cc:34] Returned http response code 200\r\n2023-03-14 21:59:13.798919: I tensorflow/c/logging.cc:34] Returned content type application/json\r\n2023-03-14 21:59:13.798939: I tensorflow/c/logging.cc:34] Releasing curl handle 0x55d7fe080310\r\n2023-03-14 21:59:13.798964: I tensorflow/c/logging.cc:34] Releasing curl handle 0x55d7fe080310\r\n2023-03-14 21:59:13.799030: I tensorflow/c/logging.cc:34] Notified waiting threads.\r\n2023-03-14 21:59:13.799069: I tensorflow/c/logging.cc:34] Request returned successful response.\r\n2023-03-14 21:59:13.799099: I tensorflow/c/logging.cc:34] Request successful returning.\r\n2023-03-14 21:59:13.799232: I tensorflow/c/logging.cc:34] No content body, content-length headers\r\n2023-03-14 21:59:13.799291: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio\r\n2023-03-14 21:59:13.799315: I tensorflow/c/logging.cc:34] Found secret key\r\n2023-03-14 21:59:13.799331: I tensorflow/c/logging.cc:34] Using cached empty string sha256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 because payload is empty.\r\n2023-03-14 21:59:13.799428: I tensorflow/c/logging.cc:34] Canonical Header String: amz-sdk-invocation-id:6E5C4870-932F-495A-8CA3-BA80DEC0DB7A\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230314T215913Z\r\n\r\n2023-03-14 21:59:13.799458: I tensorflow/c/logging.cc:34] Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\n2023-03-14 21:59:13.799510: I tensorflow/c/logging.cc:34] Canonical Request String: GET\r\n/edi_bice\r\nlist-type=2&max-keys=1&prefix=models0.000000clientXYZ0.000000model_arch0.000000poisson_model0.000000model_layers.json0.000000\r\namz-sdk-invocation-id:6E5C4870-932F-495A-8CA3-BA80DEC0DB7A\r\namz-sdk-request:attempt=1\r\ncontent-type:application/xml\r\nhost:10.12.2.51:9000\r\nx-amz-api-version:2006-03-01\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20230314T215913Z\r\n\r\namz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date\r\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-14 21:59:13.799561: I tensorflow/c/logging.cc:34] Final String to sign: AWS4-HMAC-SHA256\r\n20230314T215913Z\r\n20230314/us-east-1/s3/aws4_request\r\n47c1d82682b93d2b38c74ff49c8d39ea99c2a055e73ae8713f12cfe941631e4b\r\n2023-03-14 21:59:13.799581: I tensorflow/c/logging.cc:34] Final computed signing hash: 0e2b24c44f0bb058d251d2bddaab0f002dcaf531a9ca48bbafe2ea1d6a45ec1b\r\n2023-03-14 21:59:13.799607: I tensorflow/c/logging.cc:34] Signing request with: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=0e2b24c44f0bb058d251d2bddaab0f002dcaf531a9ca48bbafe2ea1d6a45ec1b\r\n2023-03-14 21:59:13.799634: I tensorflow/c/logging.cc:34] Request Successfully signed\r\n2023-03-14 21:59:13.799666: I tensorflow/c/logging.cc:34] Making request to http://10.12.2.51:9000/edi_bice?list-type=2&max-keys=1&prefix=models0.000000clientXYZ0.000000model_arch0.000000poisson_model0.000000model_layers.json0.000000\r\n2023-03-14 21:59:13.799743: I tensorflow/c/logging.cc:34] Including headers:\r\n2023-03-14 21:59:13.799805: I tensorflow/c/logging.cc:34] amz-sdk-invocation-id: 6E5C4870-932F-495A-8CA3-BA80DEC0DB7A\r\n2023-03-14 21:59:13.799846: I tensorflow/c/logging.cc:34] amz-sdk-request: attempt=1\r\n2023-03-14 21:59:13.799896: I tensorflow/c/logging.cc:34] authorization: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=0e2b24c44f0bb058d251d2bddaab0f002dcaf531a9ca48bbafe2ea1d6a45ec1b\r\n2023-03-14 21:59:13.800022: I tensorflow/c/logging.cc:34] content-type: application/xml\r\n2023-03-14 21:59:13.800108: I tensorflow/c/logging.cc:34] host: 10.12.2.51:9000\r\n2023-03-14 21:59:13.800226: I tensorflow/c/logging.cc:34] user-agent: aws-sdk-cpp/1.8.186 Linux/5.4.217+ x86_64 GCC/7.3.1\r\n2023-03-14 21:59:13.800283: I tensorflow/c/logging.cc:34] x-amz-api-version: 2006-03-01\r\n2023-03-14 21:59:13.800301: I tensorflow/c/logging.cc:34] x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n2023-03-14 21:59:13.800315: I tensorflow/c/logging.cc:34] x-amz-date: 20230314T215913Z\r\n2023-03-14 21:59:13.800344: I tensorflow/c/logging.cc:34] Attempting to acquire curl connection.\r\n2023-03-14 21:59:13.800640: I tensorflow/c/logging.cc:34] Connection has been released. Continuing.\r\n2023-03-14 21:59:13.800677: I tensorflow/c/logging.cc:34] Returning connection handle 0x55d7fe080310\r\n2023-03-14 21:59:13.800793: I tensorflow/c/logging.cc:34] Obtained connection handle 0x55d7fe080310\r\n2023-03-14 21:59:13.878099: I tensorflow/c/logging.cc:34] HTTP/1.1 200 OK\r\n\r\n2023-03-14 21:59:13.878238: I tensorflow/c/logging.cc:34] accept-ranges: bytes\r\n\r\n2023-03-14 21:59:13.878309: I tensorflow/c/logging.cc:34] content-length: 319\r\n\r\n2023-03-14 21:59:13.878331: I tensorflow/c/logging.cc:34] content-security-policy: block-all-mixed-content\r\n\r\n2023-03-14 21:59:13.878356: I tensorflow/c/logging.cc:34] content-type: application/xml\r\n\r\n2023-03-14 21:59:13.878371: I tensorflow/c/logging.cc:34] server: istio-envoy\r\n\r\n2023-03-14 21:59:13.878396: I tensorflow/c/logging.cc:34] vary: Origin\r\n\r\n2023-03-14 21:59:13.878411: I tensorflow/c/logging.cc:34] x-amz-request-id: 174C680A2038EBCD\r\n\r\n2023-03-14 21:59:13.878427: I tensorflow/c/logging.cc:34] x-xss-protection: 1; mode=block\r\n\r\n2023-03-14 21:59:13.878451: I tensorflow/c/logging.cc:34] date: Tue, 14 Mar 2023 21:59:13 GMT\r\n\r\n2023-03-14 21:59:13.878470: I tensorflow/c/logging.cc:34] x-envoy-upstream-service-time: 75\r\n\r\n2023-03-14 21:59:13.878495: I tensorflow/c/logging.cc:34] x-envoy-decorator-operation: minio-service.kubeflow.svc.cluster.local:9000/*\r\n\r\n2023-03-14 21:59:13.878510: I tensorflow/c/logging.cc:34] \r\n\r\n2023-03-14 21:59:13.878530: I tensorflow/c/logging.cc:34] 319 bytes written to response.\r\n2023-03-14 21:59:13.878573: I tensorflow/c/logging.cc:34] Returned http response code 200\r\n2023-03-14 21:59:13.878594: I tensorflow/c/logging.cc:34] Returned content type application/xml\r\n2023-03-14 21:59:13.878608: I tensorflow/c/logging.cc:34] Response content-length header: 319\r\n2023-03-14 21:59:13.878621: I tensorflow/c/logging.cc:34] Response body length: 319\r\n2023-03-14 21:59:13.878644: I tensorflow/c/logging.cc:34] Releasing curl handle 0x55d7fe080310\r\n2023-03-14 21:59:13.878665: I tensorflow/c/logging.cc:34] Releasing curl handle 0x55d7fe080310\r\n2023-03-14 21:59:13.878687: I tensorflow/c/logging.cc:34] Notified waiting threads.\r\n2023-03-14 21:59:13.878711: I tensorflow/c/logging.cc:34] Request returned successful response.\r\n2023-03-14 21:59:13.878731: I tensorflow/c/logging.cc:34] Request successful returning.`", "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/59990\">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/59990\">No</a>\n" ]
2023-03-14T18:56:03
2023-03-15T16:01:24
2023-03-15T16:01:21
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 cos_containerd ### Mobile device _No response_ ### Python version 3.9.2 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Running the "Standalone code to reproduce the issue" on Kubeflow 1.6 trying to use Minio storage via S3 protocol produces the logs attached with the following excerpt showing it is ignoring the S3_USE_HTTPS 0 environment variable: 2023-03-14 18:07:48.690914: I tensorflow/c/logging.cc:34] Making request to https://10.244.1.171:9000/mlpipeline/tfx-template/data/taxi/data.csv ... Error message: curlCode: 35, SSL connect error Note, the following code using boto3 works just fine: import boto3 session = boto3.session.Session() s3client = session.client(service_name='s3', aws_access_key_id='minio', aws_secret_access_key='Wi939w9', endpoint_url='http://10.244.1.171:9000', use_ssl='0', verify='0', region_name='us-east-1') {'ResponseMetadata': {'RequestId': '174C5DC82C4E602D', 'HostId': '', 'HTTPStatusCode': 200, 'HTTPHeaders': {'accept-ranges': 'bytes', 'content-length': '667', 'content-security-policy': 'block-all-mixed-content', 'content-type': 'application/xml', 'server': 'envoy', 'vary': 'Origin', 'x-amz-request-id': '174C5DC82C4E602D', 'x-xss-protection': '1; mode=block', 'date': 'Tue, 14 Mar 2023 18:51:15 GMT', 'x-envoy-upstream-service-time': '1'}, 'RetryAttempts': 0}, 'IsTruncated': False, 'Marker': '', 'Contents': [{'Key': 'tfx-template/data/taxi/data.csv', 'LastModified': datetime.datetime(2023, 2, 27, 23, 47, 55, 766000, tzinfo=tzlocal()), 'ETag': '"43550bbc6946bcabc55328e0adb129b3-1"', 'Size': 1922812, 'StorageClass': 'STANDARD', 'Owner': {'DisplayName': '', 'ID': '02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4'}}], 'Name': 'mlpipeline', 'Prefix': 'tfx-template/data/taxi/data.csv', 'Delimiter': '', 'MaxKeys': 1000, 'EncodingType': 'url'} ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import tensorflow_io as tfio import os os.environ['AWS_REGION'] = 'us-east-1' os.environ['S3_ENDPOINT'] = 'http://10.244.1.171:9000' os.environ["AWS_ACCESS_KEY_ID"] = 'minio' os.environ["AWS_SECRET_ACCESS_KEY"] = 'Wi939w9' os.environ['S3_USE_HTTPS'] = '0' os.environ['S3_VERIFY_SSL'] = '0' os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0" os.environ["TF_CPP_MIN_VLOG_LEVEL"] = "5" os.environ["AWS_LOG_LEVEL"] = "trace" tf.io.gfile.glob('s3://mlpipeline/tfx-template/data/taxi/data.csv') # exists produces similar logs #tf.io.gfile.exists('s3://mlpipeline/tfx-template/data/taxi/data.csv') ``` ### Relevant log output ```shell 2023-03-14 18:07:48.690794: I tensorflow/c/logging.cc:34] No content body, content-length headers 2023-03-14 18:07:48.690823: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio 2023-03-14 18:07:48.690830: I tensorflow/c/logging.cc:34] Found secret key 2023-03-14 18:07:48.690836: I tensorflow/c/logging.cc:34] Note: Http payloads are not being signed. signPayloads=0 http scheme=https 2023-03-14 18:07:48.690857: I tensorflow/c/logging.cc:34] Canonical Header String: amz-sdk-invocation-id:26CFFBE4-9F97-48D7-BC0A-FFA9613B9DC0 amz-sdk-request:attempt=1 content-type:application/xml host:10.244.1.171:9000 x-amz-api-version:2006-03-01 x-amz-content-sha256:UNSIGNED-PAYLOAD x-amz-date:20230314T180748Z 2023-03-14 18:07:48.690861: I tensorflow/c/logging.cc:34] Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date 2023-03-14 18:07:48.690872: I tensorflow/c/logging.cc:34] Canonical Request String: HEAD /mlpipeline/tfx-template/data/taxi/data.csv amz-sdk-invocation-id:26CFFBE4-9F97-48D7-BC0A-FFA9613B9DC0 amz-sdk-request:attempt=1 content-type:application/xml host:10.244.1.171:9000 x-amz-api-version:2006-03-01 x-amz-content-sha256:UNSIGNED-PAYLOAD x-amz-date:20230314T180748Z amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date UNSIGNED-PAYLOAD 2023-03-14 18:07:48.690886: I tensorflow/c/logging.cc:34] Final String to sign: AWS4-HMAC-SHA256 20230314T180748Z 20230314/us-east-1/s3/aws4_request 04da96fd45298dbfd632d7a49f6b1d7de1b62583c81bb099e9b860b2b86628a3 2023-03-14 18:07:48.690891: I tensorflow/c/logging.cc:34] Final computed signing hash: 23e330b317746f6b48081889f4b7bb2756aa9eefe49c098b8c82ca81da3a6c39 2023-03-14 18:07:48.690899: I tensorflow/c/logging.cc:34] Signing request with: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=23e330b317746f6b48081889f4b7bb2756aa9eefe49c098b8c82ca81da3a6c39 2023-03-14 18:07:48.690905: I tensorflow/c/logging.cc:34] Request Successfully signed 2023-03-14 18:07:48.690914: I tensorflow/c/logging.cc:34] Making request to https://10.244.1.171:9000/mlpipeline/tfx-template/data/taxi/data.csv 2023-03-14 18:07:48.690919: I tensorflow/c/logging.cc:34] Including headers: 2023-03-14 18:07:48.690922: I tensorflow/c/logging.cc:34] amz-sdk-invocation-id: 26CFFBE4-9F97-48D7-BC0A-FFA9613B9DC0 2023-03-14 18:07:48.690926: I tensorflow/c/logging.cc:34] amz-sdk-request: attempt=1 2023-03-14 18:07:48.690929: I tensorflow/c/logging.cc:34] authorization: AWS4-HMAC-SHA256 Credential=minio/20230314/us-east-1/s3/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=23e330b317746f6b48081889f4b7bb2756aa9eefe49c098b8c82ca81da3a6c39 2023-03-14 18:07:48.690932: I tensorflow/c/logging.cc:34] content-type: application/xml 2023-03-14 18:07:48.690935: I tensorflow/c/logging.cc:34] host: 10.244.1.171:9000 2023-03-14 18:07:48.690939: I tensorflow/c/logging.cc:34] user-agent: aws-sdk-cpp/1.8.186 Linux/5.15.0-67-generic x86_64 GCC/7.3.1 2023-03-14 18:07:48.690945: I tensorflow/c/logging.cc:34] x-amz-api-version: 2006-03-01 2023-03-14 18:07:48.690949: I tensorflow/c/logging.cc:34] x-amz-content-sha256: UNSIGNED-PAYLOAD 2023-03-14 18:07:48.690954: I tensorflow/c/logging.cc:34] x-amz-date: 20230314T180748Z 2023-03-14 18:07:48.690960: I tensorflow/c/logging.cc:34] Attempting to acquire curl connection. 2023-03-14 18:07:48.690966: I tensorflow/c/logging.cc:34] Connection has been released. Continuing. 2023-03-14 18:07:48.690971: I tensorflow/c/logging.cc:34] Returning connection handle 0x56396c2af710 2023-03-14 18:07:48.690976: I tensorflow/c/logging.cc:34] Obtained connection handle 0x56396c2af710 2023-03-14 18:07:48.695426: E tensorflow/c/logging.cc:40] Curl returned error code 35 - SSL connect error 2023-03-14 18:07:48.695462: I tensorflow/c/logging.cc:34] Destroy curl handle: 0x56396c2af710 2023-03-14 18:07:48.695483: I tensorflow/c/logging.cc:34] Created replacement handle and released to pool: 0x56396c2af710 2023-03-14 18:07:48.695495: I tensorflow/c/logging.cc:34] Request returned error. Attempting to generate appropriate error codes from response 2023-03-14 18:07:48.695504: E tensorflow/c/logging.cc:40] HTTP response code: -1 Resolved remote host IP address: Request ID: Exception name: Error message: curlCode: 35, SSL connect error 0 response headers: 2023-03-14 18:07:48.695516: W tensorflow/c/logging.cc:37] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer. 2023-03-14 18:07:48.695521: I tensorflow/c/logging.cc:34] Date header was not found in the response, can't attempt to detect clock skew 2023-03-14 18:07:48.695527: W tensorflow/c/logging.cc:37] Request failed, now waiting 0 ms before attempting again. 2023-03-14 18:07:48.695595: I tensorflow/c/logging.cc:34] No content body, content-length headers 2023-03-14 18:07:48.695603: I tensorflow/c/logging.cc:34] Found credential in environment with access key id minio 2023-03-14 18:07:48.695609: I tensorflow/c/logging.cc:34] Found secret key 2023-03-14 18:07:48.695617: I tensorflow/c/logging.cc:34] Note: Http payloads are not being signed. signPayloads=0 http scheme=https 2023-03-14 18:07:48.695637: I tensorflow/c/logging.cc:34] Canonical Header String: amz-sdk-invocation-id:26CFFBE4-9F97-48D7-BC0A-FFA9613B9DC0 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59990/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/59990/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59989
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59989/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59989/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59989/events
https://github.com/tensorflow/tensorflow/pull/59989
1,624,060,950
PR_kwDOArmXAs5MB4N5
59,989
Add big-endian conversion data files
{ "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 }
[ { "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-03-14T18:16:37
2023-03-22T21:51:30
2023-03-22T21:51:25
CONTRIBUTOR
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59989", "html_url": "https://github.com/tensorflow/tensorflow/pull/59989", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59989.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59989.patch", "merged_at": null }
Added big-endian conversion data files to fix the test failures on s390x system. Fixes: https://github.com/tensorflow/tensorflow/issues/59935
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59989/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/59989/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59988
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59988/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59988/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59988/events
https://github.com/tensorflow/tensorflow/pull/59988
1,624,058,758
PR_kwDOArmXAs5MB3uN
59,988
Update version numbers for TensorFlow 2.12.0
{ "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-03-14T18:15:24
2023-03-14T18:39:22
2023-03-14T18:39:18
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59988", "html_url": "https://github.com/tensorflow/tensorflow/pull/59988", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59988.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59988.patch", "merged_at": "2023-03-14T18:39:18" }
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: 12 -> 12 Patch: 0 -> 0 No lingering old version strings "2.12.0-rc1" found in source directory "tensorflow/". Good. No lingering old version strings "2.12.0rc1" found in source directory "tensorflow/". Good. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59988/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/59988/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59987
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59987/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59987/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59987/events
https://github.com/tensorflow/tensorflow/pull/59987
1,624,015,083
PR_kwDOArmXAs5MBuHF
59,987
Improved readability of TensorFlow description.
{ "login": "ica574", "id": 79566933, "node_id": "MDQ6VXNlcjc5NTY2OTMz", "avatar_url": "https://avatars.githubusercontent.com/u/79566933?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ica574", "html_url": "https://github.com/ica574", "followers_url": "https://api.github.com/users/ica574/followers", "following_url": "https://api.github.com/users/ica574/following{/other_user}", "gists_url": "https://api.github.com/users/ica574/gists{/gist_id}", "starred_url": "https://api.github.com/users/ica574/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ica574/subscriptions", "organizations_url": "https://api.github.com/users/ica574/orgs", "repos_url": "https://api.github.com/users/ica574/repos", "events_url": "https://api.github.com/users/ica574/events{/privacy}", "received_events_url": "https://api.github.com/users/ica574/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": "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-03-14T17:49:29
2023-03-14T18:40:09
2023-03-14T18:40:09
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59987", "html_url": "https://github.com/tensorflow/tensorflow/pull/59987", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59987.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59987.patch", "merged_at": null }
Slightly altered the README file of TensorFlow to become more readable, and included a missing indefinite article in the same file. ![Screenshot 2023-03-14 at 18 46 42](https://user-images.githubusercontent.com/79566933/225093656-b3161274-1210-4705-957c-9a1e6ec8f68d.png)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59987/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/59987/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59986
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59986/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59986/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59986/events
https://github.com/tensorflow/tensorflow/pull/59986
1,623,530,427
PR_kwDOArmXAs5MAFME
59,986
Update benchmark dep
{ "login": "fcoUnda", "id": 4316856, "node_id": "MDQ6VXNlcjQzMTY4NTY=", "avatar_url": "https://avatars.githubusercontent.com/u/4316856?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fcoUnda", "html_url": "https://github.com/fcoUnda", "followers_url": "https://api.github.com/users/fcoUnda/followers", "following_url": "https://api.github.com/users/fcoUnda/following{/other_user}", "gists_url": "https://api.github.com/users/fcoUnda/gists{/gist_id}", "starred_url": "https://api.github.com/users/fcoUnda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fcoUnda/subscriptions", "organizations_url": "https://api.github.com/users/fcoUnda/orgs", "repos_url": "https://api.github.com/users/fcoUnda/repos", "events_url": "https://api.github.com/users/fcoUnda/events{/privacy}", "received_events_url": "https://api.github.com/users/fcoUnda/received_events", "type": "User", "site_admin": false }
[ { "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-03-14T13:53:22
2023-03-16T16:53:38
2023-03-15T17:22:12
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59986", "html_url": "https://github.com/tensorflow/tensorflow/pull/59986", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59986.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59986.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59986/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/59986/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59985
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59985/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59985/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59985/events
https://github.com/tensorflow/tensorflow/issues/59985
1,623,460,604
I_kwDOArmXAs5gxAr8
59,985
Using Teachable Machine to make a Audio model for Python
{ "login": "setter43", "id": 49942725, "node_id": "MDQ6VXNlcjQ5OTQyNzI1", "avatar_url": "https://avatars.githubusercontent.com/u/49942725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/setter43", "html_url": "https://github.com/setter43", "followers_url": "https://api.github.com/users/setter43/followers", "following_url": "https://api.github.com/users/setter43/following{/other_user}", "gists_url": "https://api.github.com/users/setter43/gists{/gist_id}", "starred_url": "https://api.github.com/users/setter43/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/setter43/subscriptions", "organizations_url": "https://api.github.com/users/setter43/orgs", "repos_url": "https://api.github.com/users/setter43/repos", "events_url": "https://api.github.com/users/setter43/events{/privacy}", "received_events_url": "https://api.github.com/users/setter43/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": "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
[ "@setter43,\r\nFor Simple audio recognition and Audio classification, there are pre-built models available on the official tensorflow.org. \r\nThe model demonstrates how to preprocess audio files in the WAV format and build and train a basic [automatic speech recognition](https://en.wikipedia.org/wiki/Speech_recognition) (ASR) model for recognizing ten different words.\r\n\r\nAlso I tried to execute the demonstrated code for the Audio recognition which was executed successfully. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/11522da06ccca7071762085b7d3d007c/untitled1039.ipynb) and the reference.\r\n\r\nhttps://www.tensorflow.org/tutorials/audio/simple_audio\r\nhttps://www.tensorflow.org/lite/examples/audio_classification/overview#get_started\r\n\r\nThank you!\r\n", "I want to use my own Audio classification AI model that I build using Teachable Machine. I run into a number of issues when trying to adapt the model.py in the git project keyword-spotting.\r\n\r\nI can get the model working.\r\nThen I try to point the program to my own AI and it fails.\r\n\r\n`mendel@yellow-jet:~/newtest/project-keyword-spotter$ python3 run_model.py --model_file soundclassifier_with_metadata.tflite\r\nTraceback (most recent call last):\r\n File \"run_model.py\", line 60, in <module>\r\n main()\r\n File \"run_model.py\", line 50, in main\r\n interpreter = model.make_interpreter(args.model_file)\r\n File \"/home/mendel/newtest/project-keyword-spotter/model.py\", line 211, in make_interpreter\r\n {'device': device[0]} if device else {})\r\n File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 351, in __init__\r\n experimental_preserve_all_tensors))\r\nValueError: Could not open 'soundclassifier_with_metadata.tflite'.\r\nmendel@yellow-jet:~/newtest/project-keyword-spotter$\r\n`", "@setter43,\r\nCould you please confirm whether you are using this teachable machine official link to make an audio model.\r\nhttps://teachablemachine.withgoogle.com/train/audio\r\n\r\n\r\nThe pre trained lite models in TF hub provide metadata. However, you can add metadata given a tflite model using [TFLIte meta data writer API](https://www.tensorflow.org/lite/models/convert/metadata_writer_tutorial).\r\n\r\nPlease find the overview of adding metada [here](https://www.tensorflow.org/lite/models/convert/metadata) along with the examples.\r\n\r\nAnd also were you able to get the tflite file, if yes could you provide the code which you are using to test which helps to analyse.\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.", "@setter43 \r\nTeachable Machine with Google gives you the option to download your model after it has been trained\r\nSee for TensorFlow Keras \r\nClick on it\r\nIt would generate a zip file with the name converted_keras\r\nThere would be 2 files in it:\r\n1) 1 would be your trained model in .h5 format\r\n2) 1 would be a simple text file with labels\r\n\r\nhttps://teachablemachine.withgoogle.com/train/audio\r\nOnce check for your dataset, it's source and how you are uploading it to be trained\r\nMy recommendation would be to create the dataset on your own", "I am using Teachable Machine for my audio model. I don't have the option to export in .h5 for audio. Just .js or .tflite. tflite would be compatible with the google coral I am working with. But the sample app Git link just leads to an error and it's hard to find an example where I can take my AI model and just plug and play.\r\n![image](https://user-images.githubusercontent.com/49942725/228797393-af98c7b0-2e74-4cbd-8ec5-18feb5cff7db.png)\r\n\r\n", "Hi @setter43 \r\n\r\nSorry for the delayed response.\r\n\r\nUnder the hood Teachable Machine uses [Tensorflow.js](https://www.tensorflow.org/js), a library for machine learning in Javascript, to train and run the models you make in your web browser as given [here](https://github.com/googlecreativelab/teachablemachine-community#what-is-this-repository-for). The option to download `.h5` file might not be available yet.\r\n\r\nCould you please to this issue in \r\n[teachablemachine-community](https://github.com/googlecreativelab/teachablemachine-community) repo for faster resolution?\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/59985\">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/59985\">No</a>\n" ]
2023-03-14T13:16:00
2023-04-27T01:54:43
2023-04-27T01:54:40
NONE
null
null
null
I have been trying to make an AI model that will listen to user input. Depending on the user's input/command the program will carry out functions etc. I am trying to use a model I have trained from the teachable machine, but the model is not in a format that can be used in Python. From what I have seen Python requires a .h5. However, TFLite.js is only available to export/download in. When I try to use this in my program I get hit with errors. What steps can I take to import an Audio model for a Python system?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59985/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/59985/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59984
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59984/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59984/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59984/events
https://github.com/tensorflow/tensorflow/issues/59984
1,623,314,918
I_kwDOArmXAs5gwdHm
59,984
v2.11.0 build failure on linux/arm64
{ "login": "sdeoras", "id": 16372009, "node_id": "MDQ6VXNlcjE2MzcyMDA5", "avatar_url": "https://avatars.githubusercontent.com/u/16372009?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sdeoras", "html_url": "https://github.com/sdeoras", "followers_url": "https://api.github.com/users/sdeoras/followers", "following_url": "https://api.github.com/users/sdeoras/following{/other_user}", "gists_url": "https://api.github.com/users/sdeoras/gists{/gist_id}", "starred_url": "https://api.github.com/users/sdeoras/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdeoras/subscriptions", "organizations_url": "https://api.github.com/users/sdeoras/orgs", "repos_url": "https://api.github.com/users/sdeoras/repos", "events_url": "https://api.github.com/users/sdeoras/events{/privacy}", "received_events_url": "https://api.github.com/users/sdeoras/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" }, { "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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "@gaikwadrahul8 \r\nWhen I try to replicate the issue on the Virtual machine, I'm facing a different error. Please find the below screenshots for reference.\r\n\r\n![Screenshot 2023-03-15 5 46 25 PM](https://user-images.githubusercontent.com/111861663/225780569-c32b2751-9dd3-41f9-b3fb-e72235b76760.png)\r\n![Screenshot 2023-03-15 6 08 22 PM](https://user-images.githubusercontent.com/111861663/225780606-d3f49758-dc6d-4acd-8890-dcbd33a659a7.png)\r\n\r\nThank you!\r\n", "Hi, @sdeoras \r\n\r\nApologize for the delayed response and I was able to replicate the same issue on `Apple Mac M1` system with command `bazel build //tensorflow/tools/pip_package:build_pip_package` and I've added screenshot below\r\n\r\n\r\n<img width=\"1512\" alt=\"Screenshot 2023-03-23 at 10 48 47 AM\" src=\"https://user-images.githubusercontent.com/115997457/227163817-a274a342-11d1-404c-928a-eeb992c5d0ed.png\">\r\n\r\nI have also tried to replicate the same issue with your command `bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test` and I was getting below error and I have added error log for your reference and we'll have to dig more into this issue and we'll update you soon. Thank you for noticing this issue. Thank you! \r\n\r\n```\r\n(bazel-test-2.11) gaikwadrahul-macbookpro:tensorflow gaikwadrahul$ bazel test //tensorflow/tools/lib_package:libtensorflow_test\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=214\r\nINFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.bazelrc:\r\n Inherited '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\nINFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc:\r\n Inherited 'build' options: --action_env PYTHON_BIN_PATH=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/bin/python3 --action_env PYTHON_LIB_PATH=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/lib/python3.9/site-packages --python_path=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/bin/python3\r\nINFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.bazelrc:\r\n Inherited '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\r\nINFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc:\r\n 'test' options: --flaky_test_attempts=3 --test_size_filters=small,medium\r\nINFO: Found applicable config definition build:short_logs in file /Users/gaikwadrahul/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/gaikwadrahul/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition test:v2 in file /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc: --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-nomac,-no_mac,-mac_excluded,-oss_serial,-v1only --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-nomac,-no_mac,-mac_excluded,-v1only\r\nINFO: Found applicable config definition build:macos in file /Users/gaikwadrahul/tensorflow/.bazelrc: --apple_platform_type=macos --copt=-DGRPC_BAZEL_BUILD --copt=-w --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\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/3e79dfac0ea7b7cf2c9687f798b6f63ba5b07c9d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/0aaa6e679847a4eeb407136e7b0bcef93ec652e6.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nWARNING: 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\nWARNING: 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\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/cc287f69b7115725164f26a5a164f09f9dae091e.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nWARNING: 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\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.39.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Analyzed target //tensorflow/tools/lib_package:libtensorflow_test (12 packages loaded, 242 targets configured).\r\nINFO: Found 1 test target...\r\nERROR: /Users/gaikwadrahul/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\nERROR: /Users/gaikwadrahul/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym failed: not all outputs were created or valid\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\nTarget //tensorflow/tools/lib_package:libtensorflow_test failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 880.535s, Critical Path: 137.27s\r\nINFO: 4713 processes: 1630 internal, 3083 local.\r\nFAILED: Build did NOT complete successfully\r\n//tensorflow/tools/lib_package:libtensorflow_test FAILED TO BUILD\r\n\r\nFAILED: Build did NOT complete successfully\r\n(bazel-test-2.11) gaikwadrahul-macbookpro:tensorflow gaikwadrahul$ \r\n```\r\n`", "@sdeoras Your original issue looks like you have a bad version of tensorflow_io_gcs_filesystem installed. For building TensorFlow 2.11.x please use tensorflow_io_gcs_filesystem==0.31.0.", "@tiruk007 _ComputeOutputShape is not in the 2.11.x source code so I think maybe you were not building 2.11?", "@gaikwadrahul8 Your issue seems to be a Mac specific problem and not related to this issue as reported which was from a Raspberry Pi.", "@tiruk007 Sorry, I see that the r2.11 branch had a temporary build failure for a while which is what caused the error you found. This build error was not present in 2.11.0 nor is it present in 2.11.1 but was introduced and then fixed in between those two releases.", "@sdeoras Actually your build error looks more like there was a stale object in the bazel cache that was not rebuilt when it should have been. If this still needs resolving please try again but run 'bazel clean --expunge' first. If you can try 2.11.1 or even better 2.12.0 then that would be good.", "@elfringham thanks for your replies. I am now trying v2.12.0 per your suggestion and will reply back on how it goes.\r\n", "@elfringham , unfortunately the build failed for v2.12.0 as well.\r\n```\r\n[4,828 / 9,049] Compiling llvm/lib/Transforms/Utils/BasicBlockUtils.cpp; 29s local ... (4 actions running)\r\n[5,012 / 9,049] Compiling llvm/lib/CodeGen/CodeGenPassBuilder.cpp; 18s local ... (4 actions running)\r\n[5,260 / 9,049] Compiling llvm/lib/CodeGen/MachineCheckDebugify.cpp; 16s local ... (4 actions running)\r\n[5,626 / 9,049] Compiling llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp; 34s local ... (4 actions running)\r\n[5,900 / 9,049] Compiling llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp; 40s local ... (4 actions running)\r\n[6,754 / 9,049] Compiling tensorflow/compiler/xla/service/all_to_all_decomposer.cc; 34s local ... (4 actions running)\r\n[7,080 / 9,049] Compiling tensorflow/compiler/xla/service/cpu/cpu_compiler.cc; 211s local ... (4 actions running)\r\n[7,487 / 9,049] Compiling tensorflow/core/kernels/sync_ops.cc; 20s local ... (4 actions running)\r\n[7,763 / 9,049] Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc; 1513s local ... (4 actions running)\r\n[8,127 / 9,049] Compiling tensorflow/core/kernels/argmax_op.cc; 237s local ... (4 actions running)\r\n[8,311 / 9,049] Compiling tensorflow/core/kernels/cwise_op_less.cc; 162s local ... (4 actions running)\r\n[8,681 / 9,049] Compiling tensorflow/compiler/tf2xla/kernels/xla_conv_op.cc; 67s local ... (4 actions running)\r\nERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:random_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/random_ops_genrule.genrule_script.sh\r\nbazel-out/aarch64-opt/bin/tensorflow/cc/ops/random_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/random_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE\r\nERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:manip_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/manip_ops_genrule.genrule_script.sh\r\nbazel-out/aarch64-opt/bin/tensorflow/cc/ops/manip_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/manip_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE\r\nERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:map_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/map_ops_genrule.genrule_script.sh\r\nbazel-out/aarch64-opt/bin/tensorflow/cc/ops/map_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/map_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE\r\nTarget //tensorflow/tools/lib_package:libtensorflow_test failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 49702.061s, Critical Path: 2645.63s\r\nINFO: 8900 processes: 870 internal, 8030 local.\r\nFAILED: Build did NOT complete successfully\r\n//tensorflow/tools/lib_package:libtensorflow_test FAILED TO BUILD\r\n\r\nExecuted 0 out of 1 test: 1 fails to build.\r\nFAILED: Build did NOT complete successfully\r\n```", "@zyxkad Your problem is not related to the one that this issue refers to. I think you should open a new issue to cover your Mac specific build problem.", "> @zyxkad Your problem is not related to the one that this issue refers to. I think you should open a new issue to cover your Mac specific build problem.\r\n\r\nMoved to #60179", "```\r\n$ llvm-cxxfilt-12 _ZN4absl12lts_2022062318container_internal11kEmptyGroupE\r\nabsl::lts_20220623::container_internal::kEmptyGroup\r\n```\r\n\r\nmaybe the absl is compiled correctly?", "tf v2.14.0 built successfully on linux/arm64 using gcc #62357 ", "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/59984\">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/59984\">No</a>\n" ]
2023-03-14T11:50:03
2023-11-10T13:20:33
2023-11-10T13:20:31
CONTRIBUTOR
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 v2.11.0 ### Custom Code No ### OS Platform and Distribution Linux arm64 ### Mobile device Raspberry Pi ### Python version 3.9.2 ### Bazel version 5.3.0 ### GCC/Compiler version gcc (Debian 10.2.1-6) 10.2.1 20210110 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? ```shell Build from source is failing with following error: INFO: Found 1 test target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt [2,102 / 3,368] checking cached actions [4,096 / 8,568] [Scann] Compiling tensorflow/compiler/xla/service/compilation_environments.cc ERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:775:22: Executing genrule //tensorflow/cc:resource_variable_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped) bazel-out/aarch64-opt/bin/tensorflow/cc/ops/resource_variable_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/resource_variable_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE Target //tensorflow/tools/lib_package:libtensorflow_test failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 30.190s, Critical Path: 1.80s INFO: 11 processes: 8 internal, 3 local. FAILED: Build did NOT complete successfully //tensorflow/tools/lib_package:libtensorflow_test FAILED TO BUILD Executed 0 out of 1 test: 1 fails to build. FAILED: Build did NOT complete successfully ``` ### Standalone code to reproduce the issue ```shell Run ./configure and accept all defaults Run bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test Note: v2.8.0 builds fine on the same platform using bazel 4.2.1 ``` ### Relevant log output ```shell As shown above ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59984/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/59984/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59983
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59983/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59983/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59983/events
https://github.com/tensorflow/tensorflow/issues/59983
1,623,175,342
I_kwDOArmXAs5gv7Cu
59,983
TFlite model has bad performance
{ "login": "codingzebra333", "id": 112169713, "node_id": "U_kgDOBq-S8Q", "avatar_url": "https://avatars.githubusercontent.com/u/112169713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/codingzebra333", "html_url": "https://github.com/codingzebra333", "followers_url": "https://api.github.com/users/codingzebra333/followers", "following_url": "https://api.github.com/users/codingzebra333/following{/other_user}", "gists_url": "https://api.github.com/users/codingzebra333/gists{/gist_id}", "starred_url": "https://api.github.com/users/codingzebra333/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/codingzebra333/subscriptions", "organizations_url": "https://api.github.com/users/codingzebra333/orgs", "repos_url": "https://api.github.com/users/codingzebra333/repos", "events_url": "https://api.github.com/users/codingzebra333/events{/privacy}", "received_events_url": "https://api.github.com/users/codingzebra333/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": 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" }, { "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": "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
[ "@Thank you for posting an issue!\r\nThe model accuracy might drop due to quantization applied to the model. To improve the accuracy you try to use post-training quantization. You can apply quantization on your trained model, and retrain it. Please refer to the following references and let us know if it helps?\r\nhttps://www.tensorflow.org/lite/performance/model_optimization\r\nhttps://www.tensorflow.org/model_optimization/guide/quantization/training\r\nThank you!", "Thank you @sushreebarsa for the answer! \r\nCould you please provide me some suggestions on how to do quantization aware training for this specific architecture? [Here](https://github.com/junyongyou/triq/blob/master/src/train/train_triq.py) is the code I use for training.\r\nThank you in advance! ", "@codingzebra333 I could see there is one duplicate [ticket](https://github.com/tensorflow/tensorflow/issues/59684) raised for the same issue. Could you please follow up with the other ticket and close this one?\r\nThank you!", "Thank you for pointing that out! I did not want to close that issue in case I get another suggestion that does not involve me retraining everything. Also, could you please provide suggestions for the best approach for quantization aware training for my use case? \r\nThank you! ", "Hi @codingzebra333 \r\n\r\nYou can wrap the `triq` model at https://github.com/junyongyou/triq/blob/4b206b593f904f3f330ca61308a8d220f9cd1de1/src/train/train_triq.py#L80\r\naround the `tfmot.quantization.keras.quantize_model` which requires the `tensorflow_model_optimization` toolkit. \r\n\r\nPlease refer to the [document](https://www.tensorflow.org/model_optimization/guide/quantization/training_comprehensive_guide#quantize_whole_model) on how to quantize whole model and the tips for better model accuracy.\r\n\r\nAlso, please check the QAT training [guide](https://www.tensorflow.org/model_optimization/guide/quantization/training_comprehensive_guide) and API [compatibility](https://www.tensorflow.org/model_optimization/guide/quantization/training#api_compatibility) for applying QAT.\r\n\r\nThanks.", "Hi, thank you for the suggestion. I tried it, but I got an ValueError: Quantizing a tf.keras Model inside another tf.keras Model is not supported.\r\n[Here](https://colab.research.google.com/drive/1BIj8iFssp0mnMTPBMk52k0r3Ibb-Pt8Q?usp=sharing) is the code. \r\n\r\nThank you in advance! ", "Hi @codingzebra333 \r\n\r\nThe QAT has few [compatability](https://www.tensorflow.org/model_optimization/guide/quantization/training#api_compatibility) limitations as mentioned earlier. \r\n\r\nThe quantization can be applied for [tf.keras](https://www.tensorflow.org/api_docs/python/tf/keras) with only Sequential and Functional models.\r\n\r\n Can you please refer the Quantization Aware Training [guide](https://www.tensorflow.org/model_optimization/guide/quantization/training_comprehensive_guide) and see if it fits for your use case?\r\n\r\nThanks.", "Hey! \r\nI have a functional model, so it should work for my use case. \r\nThank you for such a fast response! Appreciate it! ", "Hi @codingzebra333 \r\n\r\nAs the error suggests, using QAT tf.keras Model inside another tf.keras Model is also not supported.\r\n\r\nIn your case I can observe that the backbone and transformer model are compiled which may not be supported to quantize. In that case we may need to separate the backbone model from the main model and quantize them separately. \r\n\r\nCan you check the [experiments](https://www.tensorflow.org/model_optimization/guide/quantization/training_comprehensive_guide#experiment_with_quantization) with the quantization and let us know if it helps.\r\n\r\nThanks.\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/59983\">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/59983\">No</a>\n" ]
2023-03-14T10:27:24
2023-04-12T01:53:42
2023-04-12T01:53:37
NONE
null
null
null
Hi, I reduced .h5 model size using TFLiteConverter, but the tflite model has a bad accuracy and is not usable. [Here](https://colab.research.google.com/drive/14zMCm0XaszVrUoWd9bMvBjSXSdPvSWuw?userstoinvite=tirumaleshk%40google.com&actionButton=1#scrollTo=JWvOm1R5WyPs) is the code I used to reduce the model size. I wanted to know - is there something wrong with reducing the model size code or with the model architecture itself - that it is not possible to reduce the size for this specific model? I also tested both - .h5 model and .tflite model on 400 images (good and bad quality), but the .tflite model evaluates good quality images the same way as bad quality images. Here are MAD and RMSE scores: .tflite vs .h5 (images that are in a good quality) MAD: 1.8 RMSE: 1.9 tflite vs .h5 (same images but in a bad quality) MAD: 0.3 RMSE: 0.4 [Here ](https://drive.google.com/drive/folders/1YcCSJgG6R4wRJ5qeU3gUoUd2296GghoL)are some examples. First MOS score in image name is .h5 result and second one is .tflite result. Thank you in advance!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59983/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/59983/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59982
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59982/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59982/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59982/events
https://github.com/tensorflow/tensorflow/issues/59982
1,622,772,313
I_kwDOArmXAs5guYpZ
59,982
`nan` while doing inference in C++ with half precision
{ "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": 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": 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
[ " @p3achyjr Thanks for reporting this issue.\r\n\r\nLooks like inputs are not being provided to the model's session. Also, the minimal reproducible code for the issue is incomplete. \r\n\r\nCan you please provide the steps you have followed and also did you try setting up the [dtype policy](https://www.tensorflow.org/guide/mixed_precision#setting_the_dtype_policy) to mixed_float16.\r\n\r\nThanks.\r\n", "Thanks for getting back--the dtype policy is set to mixed_float16 in python. Not sure how to do that in c++.\r\n\r\nI also ended up solving this as it turns out my tensors were not zero-initialized. I wonder if there's a way to do that automatically?\r\n\r\nAlso let me know if there is a better way to do half precision in C++, as right now I need to construct and run a graph to cast my tensors from float -> half -> back to float every time I want to call into my model.", "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/59982\">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/59982\">No</a>\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.", "Hi, Could you please check the `ZerosLike` function https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/zeros-like which returns tensor of zeros.\r\nFor half precision in C++, to the best of knowledge I can think of `Requantize` OP https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/requantize, check if that helps you. Thanks!", "```\r\nusing namespace tensorflow;\r\n\r\nconst static std::vector<std::string> kInputNames = {\r\n \"serving_default_args_0:0\",\r\n};\r\n\r\nconst static std::vector<std::string> kOutputNames = {\r\n \"StatefulPartitionedCall:0\",\r\n};\r\n\r\nint main(int argc, char** argv) {\r\n SavedModelBundleLite model_bundle_;\r\n LoadSavedModel(SessionOptions(), RunOptions(), \"/tmp/model\",\r\n {\"serve\"}, &model_bundle_);\r\n\r\n Tensor input_features(DataType::DT_HALF,\r\n {1, 8, 8});\r\n input_features.flat_half().setZero(); // Initialize to zero\r\n std::vector<std::pair<std::string, Tensor>> inputs{\r\n std::make_pair(kInputNames[0], input_features),\r\n };\r\n\r\n std::vector<Tensor> output_buf = {\r\n Tensor(DataType::DT_FLOAT, {1, 6, 6}),\r\n };\r\n\r\n // Run inference with mixed precision\r\n Status status = model_bundle_.GetSession()->Run(\r\n {ops::Cast(scope, input_features, DataType::DT_HALF)},\r\n {kOutputNames[0]}, {}, &output_buf);\r\n\r\n if (!status.ok()) {\r\n LOG(ERROR) << \"Inference failed: \" << status;\r\n return -1;\r\n }\r\n\r\n // Print the output tensor values for debugging\r\n auto output_flat = output_buf[0].flat<float>();\r\n for (int i = 0; i < output_flat.size(); i++) {\r\n LOG(INFO) << \"Output[\" << i << \"] = \" << output_flat(i);\r\n }\r\n\r\n return 0;\r\n}\r\n```\r\n\r\nNote that the code now initializes the **input_features** tensor values to zero using the **setZero()** method on the **flat_half()** accessor. The input tensor is also now created with **DataType::DT_HALF**, and the output tensor is created with **DataType::DT_FLOAT** to match the output of the Python model.\r\n\r\nDuring inference, the code now uses mixed precision by casting the input tensor to half-precision using **ops::Cast(scope, input_features, DataType::DT_HALF)**. The output tensor is also created as a **std::vector<Tensor>** so that the Run() method can fill in the output values.\r\nAfter running inference, the code prints out the values of the output tensor for debugging purposes.", "Thanks all! I think we can close this :)", "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/59982\">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/59982\">No</a>\n" ]
2023-03-14T05:41:15
2023-03-28T20:38:54
2023-03-28T20:38:50
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.11 ### Custom Code Yes ### OS Platform and Distribution Debian GNU/Linux 10 ### Mobile device _No response_ ### Python version 3.7 ### Bazel version 6.1.0 ### GCC/Compiler version LLVM 12 ### CUDA/cuDNN version 11.6 ### GPU model and memory Tesla T4 ### Current Behaviour? ```shell I've trained a model in python using mixed precision. However, when loading the model in C++ and trying to perform inference, The output is all `nan`. I've tested loading the model in python and it works. Some ideas might be: - Toolchain is different. - Tensors in C++ are not zero-initialized. ``` ### Standalone code to reproduce the issue ```shell Python class Model(tf.keras.Model): def __init__(self): self.conv = tf.keras.layers.Conv2D( 128, activation='relu') def call(self, x): return self.conv(x) x = tf.convert_to_tensor(np.random.random(1, 8, 8)) model = Model() model(x) model.save('/tmp/model') ``` C++ ``` using namespace ::tensorflow; const static std::vector<std::string> kInputNames = { "serving_default_args_0:0", }; const static std::vector<std::string> kOutputNames = { "StatefulPartitionedCall:0", }; int main(int argc, char** argv) { SavedModelBundleLite model_; LoadSavedModel(SessionOptions(), RunOptions(), "/tmp/model", {"serve"}, &model_bundle_); Tensor input_features(DataType::DT_FLOAT, {1, 8, 8}); std::vector<Tensor> cast_output; Status status = session.Run({ops::Cast(scope, input_features, DataType::DT_HALF), ops::Cast(scope, input_state, DataType::DT_HALF)}, &cast_output); std::vector<std::pair<std::string, Tensor>>{ std::make_pair(kInputNames[0], cast_output[0]), }; std::vector<Tensor> output_buf = { Tensor(DataType::DT_HALF, {1, 6, 6}), }; // this is nan model.GetSession()->Run(inputs, output_names, {}, output_buf); } ``` ``` ### Relevant log output ```shell 2023-03-14 05:08:59.641765: I cc/scripts/play_model.cc:94] -nan 2023-03-14 05:08:59.641818: I cc/scripts/play_model.cc:95] -nan 2023-03-14 05:08:59.655568: I cc/scripts/play_model.cc:119] ------- Model Stats ------- 2023-03-14 05:08:59.655609: I cc/scripts/play_model.cc:120] Top Move: Loc(0, 0) 2023-03-14 05:08:59.655621: I cc/scripts/play_model.cc:121] Win: -nan Loss: -nan 2023-03-14 05:08:59.655677: I cc/scripts/play_model.cc:123] -----Board----- 0 ○ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 1 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 2 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 3 ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ 4 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 5 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 6 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 7 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 8 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 9 ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ 10 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 11 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 12 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 13 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 14 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 15 ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ ⋅ ⋅ + ⋅ ⋅ ⋅ 16 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 17 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 18 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ A B C D E F G H I J K L M N O P Q R S ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59982/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/59982/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59981
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59981/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59981/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59981/events
https://github.com/tensorflow/tensorflow/issues/59981
1,622,667,837
I_kwDOArmXAs5gt_I9
59,981
TypeError: VariableMetaclass._variable_v1_call() got an unexpected keyword argument 'experimental_enable_variable_lifting'
{ "login": "devharsh", "id": 2538046, "node_id": "MDQ6VXNlcjI1MzgwNDY=", "avatar_url": "https://avatars.githubusercontent.com/u/2538046?v=4", "gravatar_id": "", "url": "https://api.github.com/users/devharsh", "html_url": "https://github.com/devharsh", "followers_url": "https://api.github.com/users/devharsh/followers", "following_url": "https://api.github.com/users/devharsh/following{/other_user}", "gists_url": "https://api.github.com/users/devharsh/gists{/gist_id}", "starred_url": "https://api.github.com/users/devharsh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devharsh/subscriptions", "organizations_url": "https://api.github.com/users/devharsh/orgs", "repos_url": "https://api.github.com/users/devharsh/repos", "events_url": "https://api.github.com/users/devharsh/events{/privacy}", "received_events_url": "https://api.github.com/users/devharsh/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": 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" } ]
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
[ "@devharsh,\r\nI tried to execute the mentioned code and it was failing with the different error. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/da1944b0f1762f8e8b36ea97a76aebcb/untitled1035.ipynb) and provide the complete code which helps us to debug the issue in an effective way. Thank you!", "you have to put the code inside the init method of a class\r\n\r\n```\r\nclass your_class_name:\r\n\tdef __init__(self):\r\n\t\tmy_code_goes_here\r\n```", "@devharsh,\r\nUnfortunately I was facing a different error. It is better to provide the complete code or the colab gist which helps us to analyse the issue in an effective way. Thank you!", "Seems like the `TensorFlow` upgrade to version `2.12.0` from `2.12.0-rc1` fixed the issue.", "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/59981\">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/59981\">No</a>\n" ]
2023-03-14T03:41:01
2023-03-24T01:07:09
2023-03-24T01:07:06
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version v2.12.0-rc0-46-g0d8efc960d2 2.12.0-rc1 ### Custom Code No ### OS Platform and Distribution Windows 10 ### 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? ```shell self.model = keras.Sequential([ ^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\tensorflow\python\trackable\base.py", line 205, in _method_wrapper result = method(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Python311\Lib\site-packages\tensorflow\python\ops\variables.py", line 285, in __call__ return cls._variable_v1_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: VariableMetaclass._variable_v1_call() got an unexpected keyword argument 'experimental_enable_variable_lifting' ``` ### Standalone code to reproduce the issue ```shell self.model = keras.Sequential([ keras.layers.Dense(1, input_dim=self.degree), keras.layers.Dense(1) ]) self.model.compile(optimizer=optimizer, loss=loss) self.model.summary() ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59981/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/59981/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59980
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59980/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59980/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59980/events
https://github.com/tensorflow/tensorflow/issues/59980
1,622,648,160
I_kwDOArmXAs5gt6Vg
59,980
Example android app show "GPU is not supportted".
{ "login": "megleo", "id": 50650564, "node_id": "MDQ6VXNlcjUwNjUwNTY0", "avatar_url": "https://avatars.githubusercontent.com/u/50650564?v=4", "gravatar_id": "", "url": "https://api.github.com/users/megleo", "html_url": "https://github.com/megleo", "followers_url": "https://api.github.com/users/megleo/followers", "following_url": "https://api.github.com/users/megleo/following{/other_user}", "gists_url": "https://api.github.com/users/megleo/gists{/gist_id}", "starred_url": "https://api.github.com/users/megleo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/megleo/subscriptions", "organizations_url": "https://api.github.com/users/megleo/orgs", "repos_url": "https://api.github.com/users/megleo/repos", "events_url": "https://api.github.com/users/megleo/events{/privacy}", "received_events_url": "https://api.github.com/users/megleo/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": 2689451671, "node_id": "MDU6TGFiZWwyNjg5NDUxNjcx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-examples", "name": "comp:lite-examples", "color": "06C2A1", "default": false, "description": "TensorFlow Lite Examples" }, { "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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@megleo \r\nAre you trying to reproduce the [example](https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android) locally for custom data and hitting problems?\r\n\r\nIf so, can you please mention what steps have you changed?\r\n\r\nThank you !", "@tiruk007 \r\nThanks for your reply.\r\n\r\nWe do nothing but download the sample code and compile into app and install app on our embedded device.\r\n\r\nBTW, we are embedded device manufacturer, and using the example app to test whether our embedded device tflite work well or not.\r\n\r\nBest\r\n\r\n", "@megleo \r\nThanks for the information, I have tried to reproduce the example on gpu and nnapi and didn't face any error.Please refer to the screenshot below:\r\n[NNAPI](https://user-images.githubusercontent.com/111861663/228489824-93c5509b-02aa-44cb-bc5e-0a29278ab983.jpg)\r\n[GPU](https://user-images.githubusercontent.com/111861663/228489851-d06ee7c9-1e29-4b9d-9e68-e919f5850408.jpg)\r\n\r\n\r\nCould you please provide more details and steps you followed to encounter the issue.\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.", "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/59980\">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/59980\">No</a>\n" ]
2023-03-14T03:10:18
2023-03-29T09:42:32
2023-03-29T09:42:30
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 tf.2.8 ### 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? ```shell Here are some details that will aid in this troubleshooting session: Using the tensorflow lite sample android app(https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android). But as the attached GPUNOTSUPPORT.png shown, currently on the 2290, when selecting GPU or NNAPI delegates the sample app shows "GPU is not supported" Look into the sample android app code. 1. As GPU.png shown, "GPU is not supported" occurred. 2. As the attached code1.png shown, the order call relationship. The following code is very important: public CompatibilityList() { this.compatibilityListHandle = createCompatibilityList(); } private static native long createCompatibilityList(); guss that createCompatibilityList() make problem. Look into tensorflow code check createCompatibilityList: 1. In tensorflow/lite/delegates/gpu/java/src/main/native/compatibility_list_jni.cc +69 As the tensorflow.png shown, 75 // Errors in ReadInfo should almost always be failures to construct the OpenGL 76 // environment. Treating that as "GPU unsupported" is reasonable, and we can 77 // swallow the error 82 JNIEXPORT jboolean JNICALL 83 Java_org_tensorflow_lite_gpu_CompatibilityList_nativeIsDelegateSupportedOnThisDevice( 84 JNIEnv* env, jclass clazz, jlong compatibility_list_handle) { 85 if (!tflite::jni::CheckJniInitializedOrThrow(env)) return JNI_FALSE; 86 87 CompatibilityListHelper* compatibility_list = 88 reinterpret_cast<CompatibilityListHelper*>(compatibility_list_handle); 89 return compatibility_list->IsDelegateSupportedOnThisDevice() ? JNI_TRUE 90 : JNI_FALSE; 91 } Thanks you very much. ``` ### Standalone code to reproduce the issue ```shell Using the tensorflow lite sample android app(https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android). But as the attached GPUNOTSUPPORT.png shown, currently on the 2290, when selecting GPU or NNAPI delegates the sample app shows "GPU is not supported" ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59980/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/59980/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59979
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59979/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59979/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59979/events
https://github.com/tensorflow/tensorflow/issues/59979
1,622,524,272
I_kwDOArmXAs5gtcFw
59,979
tf.image.extract_patches fails to compute gradients
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/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": 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": 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
[ "The issue with **tf.image.extract_patches** failing to compute gradients is that the function is not differentiable with respect to the input. The **extract_patches** operation is not implemented in a way that allows for gradients to be propagated through it.\r\n\r\nOne workaround for this issue is to implement the patch extraction manually using TensorFlow's built-in operations that support gradients. Here is an example implementation that achieves the same result as **tf.image.extract_patches**:\r\n```\r\nimport os\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\nx = tf.Variable(tf.ones([1, 5, 5, 1]), tf.float32)\r\n\r\ndef func(x):\r\n patches = tf.image.extract_image_patches(\r\n x,\r\n ksizes=[1, 3, 3, 1],\r\n strides=[1, 1, 1, 1],\r\n rates=[1, 1, 1, 1],\r\n padding='VALID'\r\n )\r\n return tf.reshape(patches, [-1, 3, 3, 1])\r\n\r\nwith tf.GradientTape(persistent=True) as tape:\r\n tape.watch(x)\r\n output_rev = func(x)\r\n print(output_rev)\r\n\r\ngradient = tape.jacobian(output_rev, x)\r\n```\r\nIn this implementation, **tf.image.extract_image_patches** is used instead of **tf.image.extract_patches**, as **tf.image.extract_image_patches** supports gradients. The output of **tf.image.extract_image_patches** is reshaped to match the output of **tf.image.extract_patches**.", "@trickiwoo While replicating the issue reported here , I faced the following log;\r\n```\r\nTypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [int32, int64] that don't all match.\r\n Please find the [gist ]\r\n```\r\nPlease find the gist [here](https://colab.research.google.com/gist/sushreebarsa/878146fc2898f7db64e6a2231998c52f/59979.ipynb) here.\r\n\r\nCan we use tf.image.extract_image_patches instead for the implementation?\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/59979\">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/59979\">No</a>\n" ]
2023-03-14T00:44:19
2023-04-13T09:47:04
2023-04-11T01:53:14
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 _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell tf.image.extract_patches fails to compute gradients. A similar [issue](https://github.com/tensorflow/tensorflow/issues/7414) says it can only compute gradients with `float32` inputs, but it doesn't work. According to the logs output, the error isn't related to the input `x` types. ``` ### Standalone code to reproduce the issue ```shell import os import tensorflow as tf import numpy as np x = tf.Variable(tf.ones([1, 5, 5, 1]), tf.float32) def func(x): patches = tf.image.extract_patches(x, [1, 3, 3, 1], [1, 1, 1, 1], [1, 1, 1, 1], 'VALID') return patches with tf.GradientTape(persistent=True) as tape: tape.watch(x) output_rev = func(x) print(output_rev) gradient = tape.jacobian(output_rev, x) ``` ### Relevant log output ```shell ERROR:tensorflow:Got error while pfor was converting op name: "gradient_tape/Reshape_4" op: "Reshape" input: "gradient_tape/Reshape" input: "gradient_tape/Reshape_4/shape" attr { key: "T" value { type: DT_FLOAT } } attr { key: "Tshape" value { type: DT_INT64 } } with inputs (<tf.Tensor 'gradient_tape/Reshape:0' shape=(1, 3, 3, 9) dtype=float32>, <tf.Tensor 'gradient_tape/Reshape_4/shape:0' shape=(6,) dtype=int64>) , converted inputs [WrappedTensor(t=<tf.Tensor 'gradient_tape/Reshape/pfor/Reshape:0' shape=(81, 1, 3, 3, 9) dtype=float32>, is_stacked=True, is_sparse_stacked=False), WrappedTensor(t=<tf.Tensor 'gradient_tape/Reshape_4/shape:0' shape=(6,) dtype=int64>, is_stacked=False, is_sparse_stacked=False)] Here are the pfor conversion stack traces: Tensors in list passed to 'values' of 'ConcatV2' Op have types [int32, int64] that don't all match. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59979/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/59979/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59978
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59978/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59978/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59978/events
https://github.com/tensorflow/tensorflow/pull/59978
1,622,518,228
PR_kwDOArmXAs5L8rrJ
59,978
Update version numbers for TensorFlow 2.11.1
{ "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-03-14T00:34:36
2023-03-14T03:30:31
2023-03-14T03:30:31
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59978", "html_url": "https://github.com/tensorflow/tensorflow/pull/59978", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59978.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59978.patch", "merged_at": "2023-03-14T03:30:31" }
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: 11 -> 11 Patch: 0 -> 1 WARNING: Below are potentially instances of lingering old version string "2.11.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! Binary file tensorflow/cc/saved_model/testdata/OptimizerSlotVariableModule/saved_model.pb matches tensorflow/tools/pip_package/setup.py:122:2.11.0 tensorflow/tools/pip_package/setup.py:123:2.11.0 tensorflow/tools/pip_package/setup.py:125:2.11.0 tensorflow/tools/ci_build/release/requirements_common.txt:26:2.11.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.11.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:157:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:386:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:389:2.11.0 WARNING: Below are potentially instances of lingering old version string "2.11.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! Binary file tensorflow/cc/saved_model/testdata/OptimizerSlotVariableModule/saved_model.pb matches tensorflow/tools/pip_package/setup.py:122:2.11.0 tensorflow/tools/pip_package/setup.py:123:2.11.0 tensorflow/tools/pip_package/setup.py:125:2.11.0 tensorflow/tools/ci_build/release/requirements_common.txt:26:2.11.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.11.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:157:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:386:2.11.0 tensorflow/lite/tools/versioning/runtime_version.cc:389:2.11.0 ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59978/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/59978/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59977
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59977/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59977/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59977/events
https://github.com/tensorflow/tensorflow/pull/59977
1,622,512,657
PR_kwDOArmXAs5L8qdO
59,977
Adds Python 3.11 support to RELEASE.md
{ "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-14T00:28:23
2023-03-14T13:03:01
2023-03-14T13:02:35
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59977", "html_url": "https://github.com/tensorflow/tensorflow/pull/59977", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59977.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59977.patch", "merged_at": "2023-03-14T13:02:35" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59977/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/59977/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59976
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59976/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59976/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59976/events
https://github.com/tensorflow/tensorflow/pull/59976
1,622,470,370
PR_kwDOArmXAs5L8hML
59,976
Update release notes for TensorFlow 2.11.1
{ "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-03-13T23:45:10
2023-03-14T17:39:26
2023-03-14T00:23:30
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59976", "html_url": "https://github.com/tensorflow/tensorflow/pull/59976", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59976.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59976.patch", "merged_at": "2023-03-14T00:23:30" }
This PR is intentionally incomplete. One of the Release Owners for 2.11.1 needs to fill in the internal release notes for this version before the PR gets submitted. Click on the :pencil2: icon in the header for `RELEASE.md` under "Files Changed" above.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59976/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/59976/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59975
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59975/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59975/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59975/events
https://github.com/tensorflow/tensorflow/pull/59975
1,622,468,314
PR_kwDOArmXAs5L8gx5
59,975
Fixed the broken link in audio_classification/overview.md
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/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": 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
[ "Hi @sirakiin Can you please review this PR ? Thank you!", "Please don't use \"update <file>\" commit messages. These make it harder to understand at a glance at commit history what the changes are.\r\n\r\nhttps://cbea.ms/git-commit/", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!" ]
2023-03-13T23:41:52
2023-10-06T07:05:09
2023-10-06T07:05:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59975", "html_url": "https://github.com/tensorflow/tensorflow/pull/59975", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59975.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59975.patch", "merged_at": "2023-10-06T07:05:08" }
Fixed the broken link for TensorFlow Lite Task Library in line 29 and TensorFlow Lite Support Library in line 32
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59975/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/59975/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59974
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59974/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59974/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59974/events
https://github.com/tensorflow/tensorflow/pull/59974
1,622,451,713
PR_kwDOArmXAs5L8dUG
59,974
Fix the broken links in overview.md and Fixing typo error in Calibrator.py
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/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": 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
[ "Hi @tiruk007 Can you please resolve conflicts? Thank you!", "Hi @gbaned \r\nResolved the conflicts. Can you please check ?\r\nThanks !\r\n\r\n", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "This is superceded by https://github.com/tensorflow/tensorflow/commit/26612c8623c828c786dcebaa3151c5ea6d9ae0ec, closing." ]
2023-03-13T23:18:46
2023-12-27T23:00:53
2023-08-30T17:54:11
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59974", "html_url": "https://github.com/tensorflow/tensorflow/pull/59974", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59974.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59974.patch", "merged_at": null }
Fixed the broken links for TensorFlow Lite Task Library in line 55 , TensorFlow Lite Interpreter Java API in line 58 and TensorFlow Lite Interpreter Swift API in line 72 and Fixing typo error `arugment` to `argument` in calibrator.py. Fixes #58383
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59974/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/59974/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59973
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59973/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59973/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59973/events
https://github.com/tensorflow/tensorflow/issues/59973
1,622,395,222
I_kwDOArmXAs5gs8lW
59,973
Tensorflow Lite Build issue - libtensorflow_framework.so.2: cannot open shared object file
{ "login": "ewenw", "id": 12105532, "node_id": "MDQ6VXNlcjEyMTA1NTMy", "avatar_url": "https://avatars.githubusercontent.com/u/12105532?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ewenw", "html_url": "https://github.com/ewenw", "followers_url": "https://api.github.com/users/ewenw/followers", "following_url": "https://api.github.com/users/ewenw/following{/other_user}", "gists_url": "https://api.github.com/users/ewenw/gists{/gist_id}", "starred_url": "https://api.github.com/users/ewenw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ewenw/subscriptions", "organizations_url": "https://api.github.com/users/ewenw/orgs", "repos_url": "https://api.github.com/users/ewenw/repos", "events_url": "https://api.github.com/users/ewenw/events{/privacy}", "received_events_url": "https://api.github.com/users/ewenw/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": 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": 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": "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 @ewenw , thanks for reporting this issue.\r\n\r\nSorry for the delayed response.\r\n\r\nCan you please provide the steps you have followed and also a toy model to reproduce the issue. That will help us to investigate the issue further.\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/59973\">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/59973\">No</a>\n" ]
2023-03-13T22:48:55
2023-04-05T01:47:55
2023-04-05T01:47:52
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.11 ### Custom Code Yes ### OS Platform and Distribution Build for Android Arm ### 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? ```shell After running the tensroflow lite build tool, the build fails about ~5 hours. This is the command used: `bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/trainable_model.tflite --target_archs=arm64-v8a` ``` ### Standalone code to reproduce the issue ```shell `bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/trainable_model.tflite --target_archs=arm64-v8a` I modified the configs based on this issue to enable experimental mode: https://discuss.tensorflow.org/t/missing-interpreter-class-in-selective-build-of-tflite-android/15325/7 ``` ### Relevant log output ```shell [9,650 / 13,797] 8 actions running ERROR: /tensorflow_src/tensorflow/BUILD:1588:19: Executing genrule //tensorflow:tf_python_api_gen_v2 failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped) 2023-03-13 19:18:47.150108: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: libtensorflow_framework.so.2: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 22, in <module> from tensorflow.python.tools.api.generator import doc_srcs File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 36, in <module> from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 77, in <module> raise ImportError( ImportError: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: libtensorflow_framework.so.2: cannot open shared object file: No such file or directory ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59973/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/59973/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59972
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59972/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59972/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59972/events
https://github.com/tensorflow/tensorflow/pull/59972
1,622,239,113
PR_kwDOArmXAs5L7ufC
59,972
[NVIDIA TF] Add remaining GPU BF16 cwise ops
{ "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/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": 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": 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" } ]
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": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }, { "login": "reedwm", "id": 6510203, "node_id": "MDQ6VXNlcjY1MTAyMDM=", "avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reedwm", "html_url": "https://github.com/reedwm", "followers_url": "https://api.github.com/users/reedwm/followers", "following_url": "https://api.github.com/users/reedwm/following{/other_user}", "gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}", "starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reedwm/subscriptions", "organizations_url": "https://api.github.com/users/reedwm/orgs", "repos_url": "https://api.github.com/users/reedwm/repos", "events_url": "https://api.github.com/users/reedwm/events{/privacy}", "received_events_url": "https://api.github.com/users/reedwm/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/received_events", "type": "User", "site_admin": false }, { "login": "chsigg", "id": 7523982, "node_id": "MDQ6VXNlcjc1MjM5ODI=", "avatar_url": "https://avatars.githubusercontent.com/u/7523982?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chsigg", "html_url": "https://github.com/chsigg", "followers_url": "https://api.github.com/users/chsigg/followers", "following_url": "https://api.github.com/users/chsigg/following{/other_user}", "gists_url": "https://api.github.com/users/chsigg/gists{/gist_id}", "starred_url": "https://api.github.com/users/chsigg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chsigg/subscriptions", "organizations_url": "https://api.github.com/users/chsigg/orgs", "repos_url": "https://api.github.com/users/chsigg/repos", "events_url": "https://api.github.com/users/chsigg/events{/privacy}", "received_events_url": "https://api.github.com/users/chsigg/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 }, { "login": "gcforster", "id": 108087815, "node_id": "U_kgDOBnFKBw", "avatar_url": "https://avatars.githubusercontent.com/u/108087815?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gcforster", "html_url": "https://github.com/gcforster", "followers_url": "https://api.github.com/users/gcforster/followers", "following_url": "https://api.github.com/users/gcforster/following{/other_user}", "gists_url": "https://api.github.com/users/gcforster/gists{/gist_id}", "starred_url": "https://api.github.com/users/gcforster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gcforster/subscriptions", "organizations_url": "https://api.github.com/users/gcforster/orgs", "repos_url": "https://api.github.com/users/gcforster/repos", "events_url": "https://api.github.com/users/gcforster/events{/privacy}", "received_events_url": "https://api.github.com/users/gcforster/received_events", "type": "User", "site_admin": false }, { "login": "xla-rotation", "id": 116104012, "node_id": "U_kgDOBuubTA", "avatar_url": "https://avatars.githubusercontent.com/u/116104012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xla-rotation", "html_url": "https://github.com/xla-rotation", "followers_url": "https://api.github.com/users/xla-rotation/followers", "following_url": "https://api.github.com/users/xla-rotation/following{/other_user}", "gists_url": "https://api.github.com/users/xla-rotation/gists{/gist_id}", "starred_url": "https://api.github.com/users/xla-rotation/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xla-rotation/subscriptions", "organizations_url": "https://api.github.com/users/xla-rotation/orgs", "repos_url": "https://api.github.com/users/xla-rotation/repos", "events_url": "https://api.github.com/users/xla-rotation/events{/privacy}", "received_events_url": "https://api.github.com/users/xla-rotation/received_events", "type": "User", "site_admin": false } ]
null
[ "cc @reedwm ", "CC @cantonios " ]
2023-03-13T20:51:17
2023-03-15T02:14:01
2023-03-15T02:14:01
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59972", "html_url": "https://github.com/tensorflow/tensorflow/pull/59972", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59972.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59972.patch", "merged_at": "2023-03-15T02:14:01" }
https://github.com/tensorflow/tensorflow/issues/59743 Previously, we added support for most BF16 ops in TF except for the cwise ops which were not used by various initializers or created by grappler. This PR enables the remaining cwise ops which have CPU bf16 implementations already. Tested `tensorflow/python/kernel_tests/math_ops/cwise_ops_test.py` and `tensorflow/python/kernel_tests/math_ops/cwise_ops_binary_test.py`
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59972/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/59972/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59971
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59971/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59971/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59971/events
https://github.com/tensorflow/tensorflow/pull/59971
1,622,161,323
PR_kwDOArmXAs5L7dwc
59,971
Generic Pattern Matching for FP8 GEMMs in XLA
{ "login": "philipphack", "id": 80296164, "node_id": "MDQ6VXNlcjgwMjk2MTY0", "avatar_url": "https://avatars.githubusercontent.com/u/80296164?v=4", "gravatar_id": "", "url": "https://api.github.com/users/philipphack", "html_url": "https://github.com/philipphack", "followers_url": "https://api.github.com/users/philipphack/followers", "following_url": "https://api.github.com/users/philipphack/following{/other_user}", "gists_url": "https://api.github.com/users/philipphack/gists{/gist_id}", "starred_url": "https://api.github.com/users/philipphack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/philipphack/subscriptions", "organizations_url": "https://api.github.com/users/philipphack/orgs", "repos_url": "https://api.github.com/users/philipphack/repos", "events_url": "https://api.github.com/users/philipphack/events{/privacy}", "received_events_url": "https://api.github.com/users/philipphack/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": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: 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
[ "CC @reedwm.", "Can you resolve conflicts? a695fffc660994e892583391d69e4c1b9ce89320 has some minor conflicts." ]
2023-03-13T19:52:43
2023-03-16T22:52:04
2023-03-16T22:52:03
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59971", "html_url": "https://github.com/tensorflow/tensorflow/pull/59971", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59971.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59971.patch", "merged_at": "2023-03-16T22:52:03" }
Matches and rewrites patterns of the form dot(unary_a1(…unary_aM(dequantize(A))…), unary_b1(…unary_bN(dequantize(B))…)) with A and B FP8 and unary_xi from a set of supported instructions into Custom Calls.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59971/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59971/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59970
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59970/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59970/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59970/events
https://github.com/tensorflow/tensorflow/issues/59970
1,622,053,553
I_kwDOArmXAs5grpKx
59,970
armeabi-v7a assembler error
{ "login": "RobertFlatt", "id": 34464649, "node_id": "MDQ6VXNlcjM0NDY0NjQ5", "avatar_url": "https://avatars.githubusercontent.com/u/34464649?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RobertFlatt", "html_url": "https://github.com/RobertFlatt", "followers_url": "https://api.github.com/users/RobertFlatt/followers", "following_url": "https://api.github.com/users/RobertFlatt/following{/other_user}", "gists_url": "https://api.github.com/users/RobertFlatt/gists{/gist_id}", "starred_url": "https://api.github.com/users/RobertFlatt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RobertFlatt/subscriptions", "organizations_url": "https://api.github.com/users/RobertFlatt/orgs", "repos_url": "https://api.github.com/users/RobertFlatt/repos", "events_url": "https://api.github.com/users/RobertFlatt/events{/privacy}", "received_events_url": "https://api.github.com/users/RobertFlatt/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": 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": 2726299159, "node_id": "MDU6TGFiZWwyNzI2Mjk5MTU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-xnnpack", "name": "comp:lite-xnnpack", "color": "97F7B2", "default": false, "description": "TensorFlow Lite XNNPack related issues" } ]
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,\r\n\r\nIs there any way to track `stat:awaiting tensorflower` ?\r\n\r\nThanks", "Hi, Any update or information will be posted in this issue thread.", "Hi @RobertFlatt \r\n\r\nI have tried to build for `armeabi-v7a` using the android cross compilation build [instructions](https://www.tensorflow.org/lite/guide/build_cmake#specifics_of_android_cross-compilation) on r2.12 and was able build successfully without any error. Please find the screenshot below.\r\n\r\n<img width=\"655\" alt=\"Screenshot 2023-04-22 at 9 11 52 AM\" src=\"https://user-images.githubusercontent.com/118897289/233760390-c4493dd8-713d-4fff-92ad-b16c19b6c51a.png\">\r\n\r\nWith XNNPACK using the command \r\n`cmake -DCMAKE_TOOLCHAIN_FILE=android-ndk-r25/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a tensorflow/lite -DTFLITE_ENABLE_XNNPACK=ON`\r\n\r\nCan you please let us know if you are still facing the issue?\r\n\r\nThanks.", "> Can you please let us know if you are still facing the issue?\r\n\r\nyes ☹️\r\n\r\n- I can replicate your response (I used `git clone -b v2.12.0 --single-branch https://github.com/tensorflow/tensorflow.git tensorflow_src` and `ndk 25b`), **but** a following `cmake --build . -j` fails with the same issue that was reported in the original post:\r\n\r\n```\r\nIn file included from /home/bobf/ex/tflite_build/xnnpack/src/qc8-gemm/gen/qc8-gemm-1x1c4-minmax-fp32-armsimd32.c:15:\r\n/home/bobf/ex/tflite_build/xnnpack/src/xnnpack/math.h:316:13: error: invalid output constraint '=t' in asm\r\n : [i] \"=t\" (i)\r\n```\r\n\r\n- FYI my use case is slightly different as I am building a pip package for Python (yes, on Android), but the use case in your post illustrates presumably the same issue.\r\n\r\n**Edit**: same result with NDK \"current LTS release\" `25c` https://github.com/android/ndk/wiki#current-lts-release", "I was able to replicate on r2.13 branch:\r\n\r\n```\r\ncmake -DCMAKE_TOOLCHAIN_FILE=~/Android/Sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a ../tensorflow/lite -DTFLITE_ENABLE_XNNPACK=ON\r\ncmake --build . -j\r\n```\r\n\r\n```\r\n...\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16694: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-igemm/gen/qs8-igemm-1x2c4-minmax-fp32-armsimd32.c.o] Error 1\r\nIn file included from In file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qu8-gemm/gen/qu8-gemm-1x1c4-minmax-fp32-armsimd32.c/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qs8-vlrelu/gen/qs8-vlrelu-armsimd32-x4.c::1515:\r\n:\r\n/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h:332:13/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h: :332:error: 13: invalid output constraint '=t' in asm\r\nerror: invalid output constraint '=t' in asm\r\n : [i] \"=t\" (i)\r\n ^\r\n : [i] \"=t\" (i)\r\n ^\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16680: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-igemm/gen/qs8-igemm-1x1c4-minmax-fp32-armsimd32.c.o] Error 1\r\n1 error generated.\r\n1 error generated.\r\n1 error generated.\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16554: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qc8-gemm/gen/qc8-gemm-2x2c4-minmax-fp32-armsimd32.c.o] Error 1\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16666: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-gemm/gen/qs8-gemm-2x2c4-minmax-fp32-armsimd32.c.o] Error 1\r\nIn file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qs8-vlrelu/gen/qs8-vlrelu-armsimd32-x8.c:15:\r\n/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h:332:13: error: invalid output constraint '=t' in asm\r\n : [i] \"=t\" (i)\r\n ^\r\n1 error generated.\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16708: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-igemm/gen/qs8-igemm-2x1c4-minmax-fp32-armsimd32.c.o] Error 1\r\nIn file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qu8-igemm/gen/qu8-igemm-1x1c4-minmax-fp32-armsimd32.c:15:\r\n/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h:332:13: gmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16736: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-vcvt/gen/qs8-vcvt-armsimd32-x4.c.o] Error 1\r\nerror: invalid output constraint '=t' in asm\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16750: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-vcvt/gen/qs8-vcvt-armsimd32-x8.c.o] Error 1\r\n : [i] \"=t\" (i)\r\n ^\r\nIn file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qu8-gemm/gen/qu8-gemm-2x2c4-minmax-fp32-armsimd32.c:15:\r\n/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h:332:13: error: invalid output constraint '=t' in asm\r\n : [i] \"=t\" (i)\r\n ^\r\n1 error generated.\r\n1 error generated.\r\nIn file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qu8-vcvt/gen/qu8-vcvt-armsimd32-x4.c:15:\r\n/usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/xnnpack/math.h:332:13: error: invalid output constraint '=t' in asm\r\ngmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:16596: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qc8-igemm/gen/qc8-igemm-2x1c4-minmax-fp32-armsimd32.c.o] Error 1\r\n : [i] \"=t\" (i)\r\n ^\r\nIn file included from /usr/local/google/home/pisethk/tensorflow/tflite_build/xnnpack/src/qu8-vlrelu/gen/qu8-vlrelu-armsimd32-x4.c:15:\r\n```", "There seems to have been some analysis \r\n\r\nhttps://github.com/google/XNNPACK/issues/4775#issuecomment-1542579254\r\nand\r\nhttps://github.com/google/XNNPACK/issues/4775#issuecomment-1542725430\r\n\r\nBut I can't see (I'm outside Google) if this has resulted in an updated implementation.....\r\n\r\nAnd I can infer from some of those posts 'just wait for some future NDK where some future Clang will be fixed', I would consider that an insufficient response.\r\n\r\n", "@RobertFlatt \r\n\r\nDoes the recommended work around in both those threads suffice for you so far?", "Hi @RobertFlatt\r\n\r\nAndroid NDK version=25 is actually not currently supported, the official documentation https://www.tensorflow.org/lite/android/lite_build currently recommends version 21e.\r\n\r\nCan you try with that version instead?", "@pkgoogle \r\n\r\nThanks for your interest.\r\n\r\nFor the recommended workaround https://github.com/google/XNNPACK/issues/4775#issuecomment-1571617394 `-DXNNPACK_ENABLE_ARM_BF16=OFF` :\r\n\r\n\r\nEDIT:\r\n\r\nDue to typo in NDK specification, my previous comments (below) were using gcc not Clang, and thus incorrect.\r\n\r\n`cmake -DCMAKE_TOOLCHAIN_FILE=../android-ndk-r25c/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DTFLITE_ENABLE_XNNPACK=ON -DXNNPACK_ENABLE_ARM_BF16=OFF ../tensorflow_src/tensorflow/lite`\r\n\r\nFails with\r\n\r\n`\r\n/home/bobf/ex/tflite_build/xnnpack/src/qc8-igemm/gen/qc8-igemm-1x2c4-minmax-fp32-armsimd32.c:15:\r\n/home/bobf/ex/tflite_build/xnnpack/src/xnnpack/math.h:316:13: error: invalid output constraint '=t' in asm\r\n : [i] \"=t\" (i)\r\n ^\r\n`\r\n\r\nI think the issue still exists. Can you confirm?\r\n\r\n==================================\r\nTHESE PREVIOUS COMMENTS ARE INCORRECT\r\nThe compile flag does enable an error free compile with the test case above, which is a good first step.\r\n\r\nBut I'm still exploring unexpected issues.\r\n\r\nFor example the value of the flag (ON/OFF) is ignored, the flag's *presence* disables the bogus assembly code error - the argument is always interpreted as OFF. \r\n\r\nSo maybe this will be usable, I need to do more testing. \r\n\r\nBut I still think the project build script should implement the fix. Because the long term viability and side effects of a workaround are not visible to an end user. And the core issue which is build interaction with Clang is clearly in the domain of the tool developers.\r\n\r\n===================================\r\n\r\n> Android NDK version=25 is actually not currently supported, the official documentation https://www.tensorflow.org/lite/android/lite_build currently recommends version 21e.\r\n\r\nI think the referenced page has bit rot.\r\n\r\nThe default NDK is 25c as shown here https://developer.android.com/ndk/downloads\r\nThis is confirmed by the tflite CMake build which defaults to 25c if an NDK is not set.\r\n\r\nI use 25c.\r\n \r\n", "Hi @RobertFlatt,\r\n\r\nWhile there is always some bit rot in documentation, I have confirmed that that part is accurate. We more or less only support NDK 19, 20, 21. We do not currently support NDK version=25 for now, as such we can't help with this issue unless we are seeing this issue with the recommended version.", "> We do not currently support NDK version=25 for now, \r\n\r\nThis statement is clearly wrong.\r\n\r\n", "Hi @RobertFlatt ,\r\n\r\nPlease check the below configuration file which mentions about the supported NDK versions.\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/6088a22ddb8fc299d18a34596b91ccf077b86b17/configure.py#L38-L41", "@sachinprasadhs \r\n\r\nOK, but that is NDK versions for Bazel https://github.com/tensorflow/tensorflow/blob/master/configure.py#L737-L738 \r\n*The issue at hand is CMake.*\r\n\r\nThe following simple tests use Tensorflow v2.13.0-rc1\r\n\r\n**Moving away from the issue at hand we use arm64-v8a to test CMake builds with 3 NDKs**\r\n\r\nBoth NDK LTS r25c and r23b build without error, try:\r\n```\r\ncmake -DCMAKE_TOOLCHAIN_FILE=../android-ndk-r25c/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a ../tensorflow_src/tensorflow/lite \r\ncmake --build . -j\r\n```\r\n```\r\ncmake -DCMAKE_TOOLCHAIN_FILE=../android-ndk-r23b/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a ../tensorflow_src/tensorflow/lite \r\ncmake --build . -j\r\n```\r\n\r\nHowever r19c fails with\r\n> clang: error: the clang compiler does not support '-march=armv8.2-a+bf16'\r\n```\r\ncmake -DCMAKE_TOOLCHAIN_FILE=../android-ndk-r19c/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a ../tensorflow_src/tensorflow/lite \r\ncmake --build . -j\r\n``` \r\n\r\nYou can easily validate this for yourself using the commands above.\r\n\r\n**Returning to the issue at hand we use armeabi-v7a and CMake to test the proposed workaround**\r\n\r\nThe proposed workaround `-DXNNPACK_ENABLE_ARM_BF16=OFF `\r\n```\r\ncmake -DCMAKE_TOOLCHAIN_FILE=../android-ndk-r25c/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DTFLITE_ENABLE_XNNPACK=ON -DXNNPACK_ENABLE_ARM_BF16=OFF ../tensorflow_src/tensorflow/lite \r\ncmake --build . -j\r\n```\r\nBut this fails in the usual `asm : [i] \"=t\" (i)` way.\r\n\r\nPresumably I don't understand how to use the workaround.\r\n\r\nPlease explain how to use `-DXNNPACK_ENABLE_ARM_BF16=OFF ` , and if you could test the explaination as well that might save us some back and forth. Thank you.\r\n\r\n\r\n", "Further investigation reveals `-DXNNPACK_ENABLE_ARM_BF16=OFF` does not workaround the issue.\r\n\r\nAnd we should not expect it to because this is defined in the default armeabi-v7a build behavior https://github.com/google/XNNPACK/blob/master/scripts/build-android-armv7.sh#L59 and we know the default fails to build.\r\n\r\nNot clear why it was suggested as a workaround, as adding it clearly has no impact.\r\n\r\nThis *not-a-workaround* was apparently suggested here https://github.com/google/XNNPACK/issues/4775#issuecomment-1571617394 by the same account that provided *non-resolutions* to this issue here https://github.com/google/XNNPACK/issues/4348#issuecomment-1465093478 , and here https://github.com/google/XNNPACK/issues/4348#issuecomment-1465239898 , and (in retrospect) here https://github.com/google/XNNPACK/issues/4348#issuecomment-1445437613 . Two of these non-resolutions are referenced in the first post in this issue.\r\n\r\nThis code used to work, but somebody broke it between 2.9 and 2.12 .\r\n\r\nEnough already! Please, a resolution.\r\n", "@terryheo can you please take a look? Also can we verify NDK supported versions for CMake Android workflow?", "@pkgoogle \r\n5 weeks have passed, any clarity on this issue? \r\n", "Trying to compile v2.15.0 for armeabi-v7a, with NDK 25c (officially supported now I believe) and running into the same problem.\r\nApplying the fixes from https://github.com/microsoft/onnxruntime/commit/8d298f6f78f3280ece8d42ddb50caa6e81a6826f to XNNPACK's CMakeLists.txt gets me past the first issue, but the build then later fails on XNNPACK microkernel compilation with below (rather cryptic) error:\r\n\r\n<details>\r\n<summary>Long cryptic error (click me)</summary>\r\n\r\n```sh\r\n[ 23%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o\r\nfatal error: error in backend: Cannot select: 0x83465a8: v4bf16 = ARMISD::VEXT 0x836ab38, 0x836ab38, Constant:i32<2>, xnnpack/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c:119:22\r\n 0x836ab38: v4bf16,ch = CopyFromReg 0x84e41b8, Register:v4bf16 %54, xnnpack/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c:117:9\r\n 0x851e1f0: v4bf16 = Register %54\r\n 0x836ab38: v4bf16,ch = CopyFromReg 0x84e41b8, Register:v4bf16 %54, xnnpack/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c:117:9\r\n 0x851e1f0: v4bf16 = Register %54\r\n 0x836afb0: i32 = Constant<2>\r\nIn function: xnn_bf16_gemm_minmax_ukernel_1x4c8__neonbf16_bfdot\r\nPLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.\r\nStack dump:\r\n0.\tProgram arguments: /home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi26 --sysroot=/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DEIGEN_MPL2_ONLY -DFXDIV_USE_INLINE_ASSEMBLY=0 -DNOMINMAX=1 -DPTHREADPOOL_NO_DEPRECATED_API=1 -DXNN_ENABLE_ARM_BF16=1 -DXNN_ENABLE_ARM_DOTPROD=1 -DXNN_ENABLE_ARM_FP16_SCALAR=1 -DXNN_ENABLE_ARM_FP16_VECTOR=1 -DXNN_ENABLE_ARM_I8MM=1 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_CPUINFO=1 -DXNN_ENABLE_DWCONV_MULTIPASS=0 -DXNN_ENABLE_GEMM_M_SPECIALIZATION=1 -DXNN_ENABLE_JIT=0 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_RISCV_VECTOR=1 -DXNN_ENABLE_SPARSE=1 -I/home/peter/dev/sandbox/tensorflow/tensorflow-2.15.0/third_party/xla/third_party/tsl -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/opencl_headers -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/vulkan_headers/include -I/home/peter/dev/sandbox/tensorflow/tensorflow-2.15.0/tensorflow/lite/delegates/gpu/common -I/home/peter/dev/sandbox/tensorflow/tensorflow-2.15.0/tensorflow/lite/delegates/gpu/common/task -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/xnnpack/src -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/pthreadpool-source/include -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/FXdiv-source/include -I/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/FP16-source/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -O3 -DNDEBUG -std=c99 -fPIC -O2 -pthread -fno-math-errno -marm -march=armv8.2-a+bf16 -mfpu=neon-fp-armv8 -MD -MT _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o -MF CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o.d -o CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o -c /home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/xnnpack/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c\r\n1.\t<eof> parser at end of file\r\n2.\tCode generation\r\n3.\tRunning pass 'Function Pass Manager' on module '/home/peter/dev/sandbox/tensorflow/build_2.15.0_ndk_25c_armeabi-v7a/xnnpack/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c'.\r\n4.\tRunning pass 'ARM Instruction Selection' on function '@xnn_bf16_gemm_minmax_ukernel_1x4c8__neonbf16_bfdot'\r\n #0 0x00000000047d91d8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x47d91d8)\r\n #1 0x00000000047d8340 llvm::sys::RunSignalHandlers() (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x47d8340)\r\n #2 0x00000000047a3dc3 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x47a3dc3)\r\n #3 0x00000000047a3d7b (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x47a3d7b)\r\n #4 0x00000000047d7a87 llvm::sys::Process::Exit(int, bool) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x47d7a87)\r\n #5 0x00000000040dc70a (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x40dc70a)\r\n #6 0x0000000003083072 llvm::report_fatal_error(llvm::Twine const&, bool) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x3083072)\r\n #7 0x000000000282b5f5 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x282b5f5)\r\n #8 0x0000000006cf4e77 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x6cf4e77)\r\n #9 0x000000000641f425 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x641f425)\r\n#10 0x0000000005e86b63 llvm::SelectionDAGISel::DoInstructionSelection() (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5e86b63)\r\n#11 0x0000000005e8710a llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5e8710a)\r\n#12 0x0000000006417d3c llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x6417d3c)\r\n#13 0x0000000006457ad3 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x6457ad3)\r\n#14 0x00000000064572df (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x64572df)\r\n#15 0x0000000005d9faea llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5d9faea)\r\n#16 0x0000000005da0113 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5da0113)\r\n#17 0x0000000005d9fc6f llvm::FPPassManager::runOnModule(llvm::Module&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5d9fc6f)\r\n#18 0x00000000063aa794 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x63aa794)\r\n#19 0x00000000065d6968 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x65d6968)\r\n#20 0x00000000060524d5 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x60524d5)\r\n#21 0x0000000005ea25a9 clang::ParseAST(clang::Sema&, bool, bool) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x5ea25a9)\r\n#22 0x00000000063c128d clang::FrontendAction::Execute() (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x63c128d)\r\n#23 0x00000000063c112d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x63c112d)\r\n#24 0x00000000063c1541 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x63c1541)\r\n#25 0x00000000066a9f54 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a9f54)\r\n#26 0x00000000066a6de3 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a6de3)\r\n#27 0x00000000066a6c92 (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a6c92)\r\n#28 0x00000000066a6c61 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a6c61)\r\n#29 0x00000000066a69f4 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool*) const (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a69f4)\r\n#30 0x00000000066a685f clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a685f)\r\n#31 0x00000000066a66f2 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66a66f2)\r\n#32 0x00000000066752ee main (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x66752ee)\r\n#33 0x00007f6833640cd0 (/usr/lib/libc.so.6+0x27cd0)\r\n#34 0x00007f6833640d8a __libc_start_main (/usr/lib/libc.so.6+0x27d8a)\r\n#35 0x00000000064cce69 _start (/home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang+0x64cce69)\r\nclang: error: clang frontend command failed with exit code 70 (use -v to see invocation)\r\nAndroid (9352603, based on r450784d1) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6)\r\nTarget: armv7-none-linux-android26\r\nThread model: posix\r\nInstalledDir: /home/peter/dev/sandbox/tensorflow/android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64/bin\r\nclang: note: diagnostic msg: \r\n********************\r\n\r\nPLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:\r\nPreprocessed source(s) and associated run script(s) are located at:\r\nclang: note: diagnostic msg: /tmp/bf16-gemm-1x4c8-minmax-neonbf16-bfdot-463081.c\r\nclang: note: diagnostic msg: /tmp/bf16-gemm-1x4c8-minmax-neonbf16-bfdot-463081.sh\r\nclang: note: diagnostic msg: \r\n\r\n********************\r\nmake[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49874: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/bf16-gemm/gen/bf16-gemm-1x4c8-minmax-neonbf16-bfdot.c.o] Error 70\r\nmake[1]: *** [CMakeFiles/Makefile2:6653: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/all] Error 2\r\nmake: *** [Makefile:136: all] Error 2\r\n```\r\n</details>\r\n\r\nAny update regarding this? \r\n\r\n----- Update\r\nBuilding with NDK 21e also fails with below error\r\n```shell\r\n[ 1%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-prod.dir/src/amalgam/gen/neoni8mm.c.o\r\nclang: error: the clang compiler does not support '-march=armv8.2-a+i8mm'\r\n```", "I was trying to build according to this docs: https://www.tensorflow.org/lite/guide/build_cmake_arm - but it failed. I was trying to use ndk in the same way as you - the same error `invalid output constraint '=t' in asm`. Bazel built without error.", "the same issue, test at r2.16 with ndk:26.1.10909125.", "Hi @pfk-beta, @RobertFlatt, I got a workaround. You can directly modifiy the xnnpack source code which is inside the tflite build folder.\r\n![image](https://github.com/tensorflow/tensorflow/assets/16487352/8a33f8e6-c26a-415d-95d7-f254d3f97217)\r\n\r\nThe main idea is to bypass the error code and use the default branch.", "related onnx issue: https://github.com/google/XNNPACK/issues/6164, pr: https://github.com/google/XNNPACK/pull/6179", "Still no solution for this problem?", "It's been a year since any meaningful or misleading comments from Google, and 3 months since the original assignee was unassigned. A separate and earlier thread https://github.com/google/XNNPACK/issues/4348 showed the developer responding with what appeared to be misdirection.\r\n\r\nI started both threads. I interpret these events as nobody at Google is interested. " ]
2023-03-13T18:42:44
2024-06-11T01:15:55
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 v2.12.0-rc1 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04 ### Mobile device N/A ### Python version N/A ### Bazel version Using CMake ### GCC/Compiler version Clang, NDK 25b ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Building tensorflow lite (v2.12.0-rc1) for Android armeabi-v7a using CMake and NDK 25b, I get the following invalid assembly code error: ```shell tflite-runtime/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/xnnpack/math.h:311:13: error: invalid output constraint \'=t\' in asm\n : [i] "=t" (i) ``` The cause is here (a more recent freeze) https://github.com/google/XNNPACK/blob/test_515720556/src/xnnpack/math.h#L332 Android arm64-v8a builds and runs without error. With an earlier tensorflow lite version (v2.8.0) both armeabi-v7a and arm64-v8a built and ran without error. As I read it `'=t'` is documented as a valid constraint for "ARM family", but the assembler thinks this is not the case. https://gcc.gnu.org/onlinedocs/gcc/Simple-Constraints.html#Simple-Constraints https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html#Machine-Constraints Support at XNNPACK said a compiler flag `-mfpu=vfp` is required to enable the assembly code https://github.com/google/XNNPACK/issues/4348#issuecomment-1445437613 , and that the flag was set. Then suggested without reference that this was a Clang bug, and did not offer a workaround. Further investigation suggested Clang was not the issue https://github.com/google/XNNPACK/issues/4348#issuecomment-1465060489 The CMake build script covers eight conditions for various arm 32 bit devices. Only two of these (both `-march=armv6`) set the required flag. The `-mfpu=vfp` flag is not set for `-march=armv7-a`, which I suspect is the cause of this issue. https://github.com/google/XNNPACK/blob/master/CMakeLists.txt#L546-L553 XNNPACK support responded, but we did not communicate successfully (as shown by https://github.com/google/XNNPACK/issues/4348#issuecomment-1465103944 and https://github.com/google/XNNPACK/issues/4348#issuecomment-1465259707) ; and we did not get a resolution. Since tflite depends on XNNPACK, I look for resolution here. Thank you. ``` ### Standalone code to reproduce the issue ```shell This is a build issue, no extra code. ``` ### Relevant log output ```shell tflite-runtime/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/xnnpack/math.h:311:13: error: invalid output constraint \'=t\' in asm\n : [i] "=t" (i) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59970/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/59970/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59969
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59969/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59969/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59969/events
https://github.com/tensorflow/tensorflow/pull/59969
1,621,914,744
PR_kwDOArmXAs5L6qJi
59,969
Update "Hello World" Example Doc and Fix Broken Links
{ "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 }
[ { "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": 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 @sirakiin Can you please review this PR ? Thank you!", "Hi @pjpratik Can you please resolve conflicts? Thank you!", "Hi @gbaned \r\n\r\nI have updated the conflicts.\r\n\r\nThanks.", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @pjpratik Can you please resolve conflicts? Thank you!", "Hi @gbaned \r\n\r\nI have resolved the conflicts.\r\n\r\nThank you.", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? 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.", "https://github.com/tensorflow/tensorflow/pull/59969/files#r1312915151 is still not resolved. If there won't be an update to that I'd suggest closing the PR instead", "Hi @mihaimaruseac @gbaned \r\n\r\nThe Hello World example has been refactored with the commit https://github.com/tensorflow/tensorflow/commit/f263e19e227da0d325f15477f57a359291fc387c and broken links are fixed.\r\n\r\nI think this PR can be closed.\r\n\r\nThanks." ]
2023-03-13T17:13:51
2023-10-27T05:10:59
2023-10-27T05:10:56
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59969", "html_url": "https://github.com/tensorflow/tensorflow/pull/59969", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59969.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59969.patch", "merged_at": null }
This commit updates the "Hello World" example documentation in the TensorFlow Lite for Microcontrollers repository to use the latest version of the `evaluate_test.cc`. Additionally, the broken links in the example documentation have been fixed to ensure that users can access all the necessary resources. These changes make it easier for users to get started with tflite on microcontrollers and ensure that the example document is up-to-date. Merging this closes the issue #59959
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59969/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/59969/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59968
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59968/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59968/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59968/events
https://github.com/tensorflow/tensorflow/issues/59968
1,620,973,180
I_kwDOArmXAs5gnhZ8
59,968
I don't get the label.txt when training the model.txt which causes me to fail to convert to tflite
{ "login": "Cranky-cat", "id": 98404856, "node_id": "U_kgDOBd2J-A", "avatar_url": "https://avatars.githubusercontent.com/u/98404856?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Cranky-cat", "html_url": "https://github.com/Cranky-cat", "followers_url": "https://api.github.com/users/Cranky-cat/followers", "following_url": "https://api.github.com/users/Cranky-cat/following{/other_user}", "gists_url": "https://api.github.com/users/Cranky-cat/gists{/gist_id}", "starred_url": "https://api.github.com/users/Cranky-cat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Cranky-cat/subscriptions", "organizations_url": "https://api.github.com/users/Cranky-cat/orgs", "repos_url": "https://api.github.com/users/Cranky-cat/repos", "events_url": "https://api.github.com/users/Cranky-cat/events{/privacy}", "received_events_url": "https://api.github.com/users/Cranky-cat/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": 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": "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
[ "@Cranky-cat,\r\nCould you please provide the complete code and the dependencies to reproduce the issue in the effective way and helps us to debug the issue and also provide the tensorflow version you are using. Thank you!", "[train_mobilenet.zip](https://github.com/tensorflow/tensorflow/files/10966111/train_mobilenet.zip)\r\nI used this py to train the model, and converting the trained H5 model file to a tflite model file caused the loss of metadata", "@tilakrayal [test.zip](https://github.com/tensorflow/tensorflow/files/10966144/test.zip)\r\nThis is the py of converting the file format I am using the tensorflow 2-11 version\r\n", "I convert file format without label .txt file, so my conversion will fail.\r\nSo I would like to ask how to get the label .txt file of the model.", "@tilakrayal I can train the model file, but I need the model file to be used on Android, so I need to convert to tflite format.\r\nThank you for your reply", "Hi @Cranky-cat \r\n\r\nI have observed that in https://github.com/tensorflow/tensorflow/files/10966111/train_mobilenet.zip, the model conversion into tflite is not done.\r\n\r\nAlso, please refer to the model compatability [requirements](https://www.tensorflow.org/lite/inference_with_metadata/task_library/object_detector#model_compatibility_requirements), which has example lable.txt for pretrained mobile net model. You can create a similar one for your case with class names according to your training dataset.\r\n\r\nI have tried metadata tutorial for [object detector](https://www.tensorflow.org/lite/models/convert/metadata_writer_tutorial#object_detectors) and I was able to run without any error. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/841aaa2471d1e75deafd253266c0be20/59968.ipynb). \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/59968\">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/59968\">No</a>\n" ]
2023-03-13T08:21:06
2023-03-31T01:56:23
2023-03-31T01:56:20
NONE
null
null
null
D:\Anaconda\lib\site-packages\tensorflow_lite_support\metadata\python\metadata.py:395: UserWarning: File, 'label.txt', does not exist in the metadata. But packing it to tflite model is still allowed. warnings.warn( from tflite_support.metadata_writers import object_detector from tflite_support.metadata_writers import writer_utils ObjectDetectorWriter = object_detector.MetadataWriter _MODEL_PATH = "D:/android files/8_Car2022_Example_v1.1/app/src/main/assets/test2_mobilenet.tflite" # Task Library expects label files that are in the same format as the one below. _LABEL_FILE = "D:/android files/8_Car2022_Example_v1.1/app/src/main/assets/label.txt" _SAVE_TO_PATH = "D:/android files/8_Car2022_Example_v1.1/app/src/main/assets/test_mobilenet_meta.tflite" # Normalization parameters is required when reprocessing the image. It is # optional if the image pixel values are in range of [0, 255] and the input # tensor is quantized to uint8. See the introduction for normalization and # quantization parameters below for more details. # https://www.tensorflow.org/lite/models/convert/metadata#normalization_and_quantization_parameters _INPUT_NORM_MEAN = 127.5 _INPUT_NORM_STD = 127.5 # Create the metadata writer. writer = ObjectDetectorWriter.create_for_inference( writer_utils.load_file(_MODEL_PATH), [_INPUT_NORM_MEAN], [_INPUT_NORM_STD], [_LABEL_FILE]) # Verify the metadata generated by metadata writer. print(writer.get_metadata_json()) # Populate the metadata into the model. writer_utils.save_file(writer.populate(), _SAVE_TO_PATH)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59968/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/59968/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59967
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59967/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59967/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59967/events
https://github.com/tensorflow/tensorflow/issues/59967
1,620,480,709
I_kwDOArmXAs5glpLF
59,967
[tensorflow-intel] Missing p39 package for tf-intel 2.10.1 on PyPi
{ "login": "PhilippWillms", "id": 38139241, "node_id": "MDQ6VXNlcjM4MTM5MjQx", "avatar_url": "https://avatars.githubusercontent.com/u/38139241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PhilippWillms", "html_url": "https://github.com/PhilippWillms", "followers_url": "https://api.github.com/users/PhilippWillms/followers", "following_url": "https://api.github.com/users/PhilippWillms/following{/other_user}", "gists_url": "https://api.github.com/users/PhilippWillms/gists{/gist_id}", "starred_url": "https://api.github.com/users/PhilippWillms/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PhilippWillms/subscriptions", "organizations_url": "https://api.github.com/users/PhilippWillms/orgs", "repos_url": "https://api.github.com/users/PhilippWillms/repos", "events_url": "https://api.github.com/users/PhilippWillms/events{/privacy}", "received_events_url": "https://api.github.com/users/PhilippWillms/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": 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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@PhilippWillms we have uploaded the Python 3.9 wheel for TF 2.10.1\r\n https://pypi.org/project/tensorflow-intel/2.10.1/#files\r\n", "Thank you very much. As of now it is working fine!", "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/59967\">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/59967\">No</a>\n" ]
2023-03-12T19:22:00
2023-03-14T23:34:38
2023-03-14T19:57:52
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 2.10.1 ### Custom Code No ### OS Platform and Distribution Windows ### 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? ```shell As identified as part of my poetry package management, the PyPi server is currently lacking a wheel for tensorflow-intel==2.10.1. I also checked "front-end wise" on the followng URL: https://pypi.org/project/tensorflow-intel/2.10.1/#files I would like to use in particular that version for tensorflow, as it is the last one with Windows-native GPU support. It is available for all other Python versions, but not 3.9. ``` ### Standalone code to reproduce the issue ```shell $ conda create -n tf39 python=3.9 $ conda activate tf39 $ pip install tensorflow-intel==2.10.1 ``` ### Relevant log output ```shell ERROR: Could not find a version that satisfies the requirement tensorflow-intel==2.10.1 (from versions: 0.0.1, 2.10.0.dev20220728, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.12.0rc0, 2.12.0rc1) ERROR: No matching distribution found for tensorflow-intel==2.10.1 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59967/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/59967/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59966
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59966/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59966/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59966/events
https://github.com/tensorflow/tensorflow/issues/59966
1,620,470,293
I_kwDOArmXAs5glmoV
59,966
Tensorflow Does Not Seem to Work With Latest cuDNN 8.8 Version
{ "login": "tsender", "id": 13563207, "node_id": "MDQ6VXNlcjEzNTYzMjA3", "avatar_url": "https://avatars.githubusercontent.com/u/13563207?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tsender", "html_url": "https://github.com/tsender", "followers_url": "https://api.github.com/users/tsender/followers", "following_url": "https://api.github.com/users/tsender/following{/other_user}", "gists_url": "https://api.github.com/users/tsender/gists{/gist_id}", "starred_url": "https://api.github.com/users/tsender/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tsender/subscriptions", "organizations_url": "https://api.github.com/users/tsender/orgs", "repos_url": "https://api.github.com/users/tsender/repos", "events_url": "https://api.github.com/users/tsender/events{/privacy}", "received_events_url": "https://api.github.com/users/tsender/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": 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": "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
[ "@tsender Could you please have a look at [this](https://www.tensorflow.org/install/source#gpu) tested build configuration for different compatible versions and let us know if it helps?\r\nThank you!", "Thank you for pointing me to that table. I am currently using cuDNN 8.1 and CUDA 11.2 without any issues. In this past, however, I may have been using a version of cuDNN between 8.1 and 8.7 without problem, hence why I thought that TF would work with any cuDNN 8.x version and submitted this ticket (though, I do not know exactly which version I was using previously as that docker image has been rewritten).", "@tsender Thank you for the response!\r\nCould you please confirm if the issue resolves in the latest TF version?\r\nThank you!", "I'm rather busy at the moment and likely won't be able to get back to this until the end of next week. But if I have time before then I will try.", "@tsender Could you please let us know if the issue still persists?\r\nThank you!", "Hi @sushreebarsa. \r\n\r\nI tried using the tensorflow/tensorflow:2.12.0-gpu docker image, however, it seems to require that I upgrade my cuda version, which I don't have the time to deal with. Seeing that this entire issue was created because I had accidentally created a setup in which TF was not tested/guaranteed to work in, I do not really see a need to keep this ticket open. Once you told me about the driver compatibility page, I had since downgraded back to cuDNN 8.1 and have not had any issues. I also do not have the time to do any further compatibility testing, nor do I even use the latest version of TF in my work. Hence, I think we can close this issue.", "@tsender Glad it is working for you!\r\nThank you for your response. Closing this ticket as per your above comment, please feel free to reopen if you still face any issue. 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/59966\">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/59966\">No</a>\n" ]
2023-03-12T18:49:15
2023-04-05T05:14:06
2023-04-05T05:13:34
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.8 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version CUDA 11.2, cuDNN 8.8 ### GPU model and memory _No response_ ### Current Behaviour? ```shell Note: I am using a custom docker container that is based on an older `tensorflow/tensorflow:latest-gpu` image. This image is Ubuntu 20.4 with tf 2.8 and CUDA 11.2. My actual computer running the container is Ubuntu 18.04 with a Quadro RTX 8000 and NVIDIA driver 460.106.0. I recently upgraded packages in my docker container, and it seems that the newest version of libcudnn8, being cudNN 8.8, conflicts with Tensorflow 2.8 (possibly other versions too, but I can only speak for TF 2.8). I am able to load one of my pre-trained Conv2d-based models just fine, but actually using the model (for both training and prediction) causes trouble. As soon as I try to run any data through my model, TF cannot create the cudnn handle and suggests that I have an insufficient driver version. I tried updating the driver version, but that newer version requires CUDA 12.0, which TF is not compatible with. After many hours of trial and error, it seems that if I do NOT upgrade the libcudnn8 library in my docker image, and keep it as the original version of 8.1, then I do not have any problems. Since someone else reported an issue with cuDNN 8.8 as well on a different matter (https://github.com/tensorflow/tensorflow/issues/59890), it would seem that TF 2 is not compatible with this newer version. ``` ### Standalone code to reproduce the issue ```shell Any piece of code that passes data through a tf.model should result in an error (especially with conv2d layers, since that's what my model uses). ``` ### Relevant log output ```shell 2023-03-12 17:40:03.421988: E tensorflow/stream_executor/cuda/cuda_dnn.cc:373] Could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED 2023-03-12 17:40:03.422120: E tensorflow/stream_executor/cuda/cuda_dnn.cc:382] Possibly insufficient driver version: 460.106.0 2023-03-12 17:40:03.422182: W tensorflow/core/framework/op_kernel.cc:1745] OP_REQUIRES failed at conv_ops.cc:1120 : UNIMPLEMENTED: DNN library is not found. Traceback (most recent call last): File "semantic_segmentation.py", line 378, in <module> SemSeg.train() File "semantic_segmentation.py", line 231, in train loss = self._train_step(image_batch, mask_batch) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/execute.py", line 54, in quick_execute tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, tensorflow.python.framework.errors_impl.UnimplementedError: Graph execution error: Detected at node 'model/conv2d/Conv2D' defined at (most recent call last): File "semantic_segmentation.py", line 378, in <module> SemSeg.train() File "semantic_segmentation.py", line 231, in train loss = self._train_step(image_batch, mask_batch) File "semantic_segmentation.py", line 213, in _train_step predicted_probs = self.model(images, training=True) File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 64, in error_handler return fn(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/engine/base_layer.py", line 1096, in __call__ outputs = call_fn(inputs, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 92, in error_handler return fn(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/engine/functional.py", line 451, in call return self._run_internal_graph( File "/usr/local/lib/python3.8/dist-packages/keras/engine/functional.py", line 589, in _run_internal_graph outputs = node.layer(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 64, in error_handler return fn(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/engine/base_layer.py", line 1096, in __call__ outputs = call_fn(inputs, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 92, in error_handler return fn(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/keras/layers/convolutional.py", line 248, in call outputs = self.convolution_op(inputs, self.kernel) File "/usr/local/lib/python3.8/dist-packages/keras/layers/convolutional.py", line 233, in convolution_op return tf.nn.convolution( Node: 'model/conv2d/Conv2D' DNN library is not found. [[{{node model/conv2d/Conv2D}}]] [Op:__inference__train_step_1535] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59966/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/59966/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59965
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59965/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59965/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59965/events
https://github.com/tensorflow/tensorflow/issues/59965
1,620,463,754
I_kwDOArmXAs5gllCK
59,965
Can't convert openimages_v4/ssd/mobilenet_v2
{ "login": "chauxb", "id": 127687388, "node_id": "U_kgDOB5xa3A", "avatar_url": "https://avatars.githubusercontent.com/u/127687388?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chauxb", "html_url": "https://github.com/chauxb", "followers_url": "https://api.github.com/users/chauxb/followers", "following_url": "https://api.github.com/users/chauxb/following{/other_user}", "gists_url": "https://api.github.com/users/chauxb/gists{/gist_id}", "starred_url": "https://api.github.com/users/chauxb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chauxb/subscriptions", "organizations_url": "https://api.github.com/users/chauxb/orgs", "repos_url": "https://api.github.com/users/chauxb/repos", "events_url": "https://api.github.com/users/chauxb/events{/privacy}", "received_events_url": "https://api.github.com/users/chauxb/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": 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": 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": "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 @chauxb Thanks for reporting this issue.\r\n\r\nCan you please mention the steps you have followed for using the hub model and tflite conversion.\r\n\r\nI have tried converting the https://tfhub.dev/google/openimages_v4/ssd/mobilenet_v2/1 model and was able to successfully convert into tflite model.\r\n\r\nPlease find the gist [here](https://colab.research.google.com/gist/pjpratik/9a5b7af9d09b2d6e988c333df8b02d47/59965.ipynb) and let us know if it helps.\r\n\r\nThanks.", "Hello @pjpratik \r\n\r\nFirst thank you for your answer and the help you gave me.\r\nYour gist indeed works very well and I was able to convert the model. I think what I was not doing is using the tensorflow hub with the kera layers and using the flag as you did.\r\nHere is the exact code I used :\r\n\r\n```\r\nimport tensorflow as tf\r\n\r\n# Convert the model\r\nconverter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) # path to the SavedModel directory\r\ntflite_model = converter.convert()\r\n\r\n# Save the model.\r\nwith open('model.tflite', 'wb') as f:\r\n f.write(tflite_model)\r\n```\r\n\r\nEdit : it seems tensorflow lite metadata needs metadata to work in the app : is it not provided by pretrained models ?\r\n\r\n```\r\njava.lang.AssertionError: Error occurred when initializing ObjectDetector: Input tensor has type kTfLiteFloat32: it requires specifying NormalizationOptions metadata to preprocess input images.\r\n```", "Hi @chauxb \r\n\r\nThe pre trained lite models in TF hub provide metadata. However, you can add metadata given a tflite model using [TFLIte meta data writer API](https://www.tensorflow.org/lite/models/convert/metadata_writer_tutorial).\r\n\r\nPlease find the overview of adding metada [here](https://www.tensorflow.org/lite/models/convert/metadata) along with examples.\r\n\r\nPlease feel free to close the issue if it is resolved.\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/59965\">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/59965\">No</a>\n" ]
2023-03-12T18:27:47
2023-03-30T01:57:41
2023-03-30T01:57:38
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Arch Linux - TensorFlow installation (pip package or built from source): pip package - TensorFlow library (version, if pip package or github SHA, if built from source): 2.11.0 ### 2. Code Provide code to help us reproduce your issues using one of the following options: #### Option B: Paste your code here or provide a link to a custom end-to-end colab I follow the code to convert a saved model to tflite from tensorflow website here : https://www.tensorflow.org/lite/models/convert/convert_models#convert_a_savedmodel_recommended_ The model I want to convert is this one : https://tfhub.dev/google/openimages_v4/ssd/mobilenet_v2/1 I would like to use it in the android example of tensorflow lite: https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android ``` (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. The conversion is unsuccessful. ### 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. ``` 2023-03-12 19:16:36.621905: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-12 19:16:36.719912: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2023-03-12 19:16:36.719933: I tensorflow/compiler/xla/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2023-03-12 19:16:37.381249: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory 2023-03-12 19:16:37.381323: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory 2023-03-12 19:16:37.381337: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. Traceback (most recent call last): File "/home/chauxb/Downloads/tensorflow/convert.py", line 4, in <module>     converter = tf.lite.TFLiteConverter.from_saved_model("/home/chauxb/Downloads/tensorflow/openimages/") # path to the SavedModel directory   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/lite/python/lite.py", line 1792, in from_saved_model     saved_model = _load(saved_model_dir, tags)   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/load.py", line 828, in load     result = load_partial(export_dir, None, tags, options)["root"]   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/load.py", line 977, in load_partial     root = load_v1_in_v2.load(export_dir, tags)   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 284, in load     result = loader.load(tags=tags)   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 209, in load     meta_graph_def = self.get_meta_graph_def_from_tags(tags)   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/load_v1_in_v2.py", line 88, in get_meta_graph_def_from_tags     return super(_EagerSavedModelLoader, self).get_meta_graph_def_from_tags(   File "/home/chauxb/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/loader_impl.py", line 391, in get_meta_graph_def_from_tags     raise RuntimeError( RuntimeError: MetaGraphDef associated with tags {'serve'} could not be found in SavedModel, with available tags '[set()]'. To inspect available tag-sets in the SavedModel, please use the SavedModel CLI: `saved_model_cli`. ``` Am I missing something in my conversion? I am new to this so maybe I am doing something wrong (first time doing a model conversion)? Thank you for your help in advance
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59965/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/59965/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59964
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59964/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59964/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59964/events
https://github.com/tensorflow/tensorflow/pull/59964
1,620,434,402
PR_kwDOArmXAs5L1u4J
59,964
include cstdint
{ "login": "trixirt", "id": 7824193, "node_id": "MDQ6VXNlcjc4MjQxOTM=", "avatar_url": "https://avatars.githubusercontent.com/u/7824193?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trixirt", "html_url": "https://github.com/trixirt", "followers_url": "https://api.github.com/users/trixirt/followers", "following_url": "https://api.github.com/users/trixirt/following{/other_user}", "gists_url": "https://api.github.com/users/trixirt/gists{/gist_id}", "starred_url": "https://api.github.com/users/trixirt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trixirt/subscriptions", "organizations_url": "https://api.github.com/users/trixirt/orgs", "repos_url": "https://api.github.com/users/trixirt/repos", "events_url": "https://api.github.com/users/trixirt/events{/privacy}", "received_events_url": "https://api.github.com/users/trixirt/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": 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
[ "Hi @trixirt Can you please check @sirakiin's [comments](https://github.com/tensorflow/tensorflow/pull/59964#discussion_r1139400198) and keep us posted ? 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-03-12T16:55:53
2023-04-21T01:53:51
2023-04-21T01:53:46
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59964", "html_url": "https://github.com/tensorflow/tensorflow/pull/59964", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59964.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59964.patch", "merged_at": null }
Building with gcc 13, there is this error tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:46:22: error: ‘uint32_t’ was not declared in this scope 46 | inline int Log2Floor(uint32_t n) { | ^~~~~~~~ tensorflow/tensorflow/lite/kernels/internal/spectrogram.cc:20:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 19 | #include <math.h> +++ |+#include <cstdint> So include cstdint
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59964/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/59964/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59963
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59963/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59963/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59963/events
https://github.com/tensorflow/tensorflow/issues/59963
1,620,335,015
I_kwDOArmXAs5glFmn
59,963
gpu/cpu time performance
{ "login": "RinnetenseiQ", "id": 49791012, "node_id": "MDQ6VXNlcjQ5NzkxMDEy", "avatar_url": "https://avatars.githubusercontent.com/u/49791012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RinnetenseiQ", "html_url": "https://github.com/RinnetenseiQ", "followers_url": "https://api.github.com/users/RinnetenseiQ/followers", "following_url": "https://api.github.com/users/RinnetenseiQ/following{/other_user}", "gists_url": "https://api.github.com/users/RinnetenseiQ/gists{/gist_id}", "starred_url": "https://api.github.com/users/RinnetenseiQ/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RinnetenseiQ/subscriptions", "organizations_url": "https://api.github.com/users/RinnetenseiQ/orgs", "repos_url": "https://api.github.com/users/RinnetenseiQ/repos", "events_url": "https://api.github.com/users/RinnetenseiQ/events{/privacy}", "received_events_url": "https://api.github.com/users/RinnetenseiQ/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": 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": 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": 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": "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
[ "@RinnetenseiQ,\r\nMay i know how many CPU cores you have? The following are the reasons why the CPU performance is higher than the GPU in some of the model training cases.\r\n- For small models there will be no performance improvements when using GPU and you are going to benefit from GPU only when you have `large weight matrices`.\r\n\r\n- For small matrices it will be faster on CPU because it has higher **frequency** and this overhead of invoking kernels and copying is only worsens the situation. Try multiplying matrices of these shapes **(10000, 10000)x(10000x10000)**. You will see that the **GPU is much faster**.\r\n\r\n- Try increasing number of parameters in your model. There is an overhead when invoking GPU kernels and copying data to/from GPU. \r\n\r\nAlso the overhead of invoking GPU kernels, and copying data to and from GPU, is very high. For operations on models with very little parameters it is not worth using GPU since frequency of CPU cores is much higher. If you compare matrix multiplication, you will see that for large matrices GPU outperforms CPU significantly. [Reference](https://github.com/tensorflow/tensorflow/issues/31654). Thank 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/59963\">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/59963\">No</a>\n" ]
2023-03-12T11:49:54
2023-03-28T01:57:17
2023-03-28T01:57:14
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Performance ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.10 ### Custom Code No ### OS Platform and Distribution Windows 10 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cuDNN = 8.1.0.77 ### GPU model and memory nVidia GTX 1050, 4GB GRAM ### Current Behaviour? ```shell I have noticed that training on cpu faster than gpu. Note that I have tried same on RTX 3090 TI and got similar results GPU performance: 2023-03-12 13:45:41.870315: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-12 13:45:42.381082: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 2787 MB memory: -> device: 0, name: NVIDIA GeForce GTX 1050, pci bus id: 0000:01:00.0, compute capability: 6.1 WARNING:tensorflow:Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. Epoch 1/100 3125/3125 [==============================] - 10s 3ms/step - loss: 0.0495 Epoch 2/100 3125/3125 [==============================] - 10s 3ms/step - loss: 0.0014 Epoch 3/100 3125/3125 [==============================] - 10s 3ms/step - loss: 0.0013 Epoch 4/100 3125/3125 [==============================] - 11s 4ms/step - loss: 0.0013 Epoch 5/100 3125/3125 [==============================] - 11s 4ms/step - loss: 0.0012 Epoch 6/100 3125/3125 [==============================] - 11s 4ms/step - loss: 0.0011 ``` CPU performance: ``` 2023-03-12 13:48:54.873454: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. WARNING:tensorflow:Please add `keras.layers.InputLayer` instead of `keras.Input` to Sequential model. `keras.Input` is intended to be used by Functional model. Epoch 1/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0511 Epoch 2/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0019 Epoch 3/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0013 Epoch 4/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0013 Epoch 5/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0013 Epoch 6/100 3125/3125 [==============================] - 4s 1ms/step - loss: 0.0012 ``` ### Standalone code to reproduce the issue ``` import numpy as np from tensorflow.keras.utils import to_categorical from tensorflow.python.keras.layers import Dense, Input from tensorflow.python.keras.models import Model, Sequential def build_std_func_model(n_inputs): inp = Input(n_inputs) h = Dense(100, activation="relu")(inp) h = Dense(100, activation="relu")(h) h = Dense(100, activation="relu")(h) h = Dense(100, activation="relu")(h) output = Dense(n_inputs, activation="linear")(h) return Model(inputs=inp, outputs=output) def build_std_seq_model(n_inputs): model = Sequential() model.add(Input(n_inputs)) model.add(Dense(100, activation="relu")) model.add(Dense(100, activation="relu")) model.add(Dense(100, activation="relu")) model.add(Dense(100, activation="relu")) model.add(Dense(n_inputs, activation="linear")) return model def make_func_dataset(n_examples=30000, n_linears=15, n_categorical=4): linear = np.random.randn(n_examples, n_linears) categorical = [np.random.choice([0, 1, 2], size=n_examples) for _ in range(n_categorical)] categorical = [to_categorical(item) for item in categorical] return [linear, *categorical] def run_simplest(): X = make_func_dataset(n_examples=10**5, n_linears=30, n_categorical=0)[0] # model = build_std_func_model(30) model = build_std_seq_model(30) model.compile(optimizer="adam", loss="mean_squared_error") model.fit(X, X, epochs=100) if __name__ == '__main__': # tf.config.set_visible_devices([], 'GPU') # run_functional() run_simplest() ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59963/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/59963/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59962
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59962/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59962/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59962/events
https://github.com/tensorflow/tensorflow/pull/59962
1,620,318,930
PR_kwDOArmXAs5L1Y5k
59,962
[macOS apple silicon] fix bfloat16.so path of installed package
{ "login": "freedomtan", "id": 3395998, "node_id": "MDQ6VXNlcjMzOTU5OTg=", "avatar_url": "https://avatars.githubusercontent.com/u/3395998?v=4", "gravatar_id": "", "url": "https://api.github.com/users/freedomtan", "html_url": "https://github.com/freedomtan", "followers_url": "https://api.github.com/users/freedomtan/followers", "following_url": "https://api.github.com/users/freedomtan/following{/other_user}", "gists_url": "https://api.github.com/users/freedomtan/gists{/gist_id}", "starred_url": "https://api.github.com/users/freedomtan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/freedomtan/subscriptions", "organizations_url": "https://api.github.com/users/freedomtan/orgs", "repos_url": "https://api.github.com/users/freedomtan/repos", "events_url": "https://api.github.com/users/freedomtan/events{/privacy}", "received_events_url": "https://api.github.com/users/freedomtan/received_events", "type": "User", "site_admin": false }
[ { "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
[ "close this, since it's fixed int de91449fde1f5c4694780a72b4637a821cec3ab4" ]
2023-03-12T10:54:43
2023-03-14T07:59:51
2023-03-14T07:59:47
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59962", "html_url": "https://github.com/tensorflow/tensorflow/pull/59962", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59962.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59962.patch", "merged_at": null }
in addition to x86_64 fixes, we need arm64 ones
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59962/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/59962/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59961
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59961/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59961/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59961/events
https://github.com/tensorflow/tensorflow/issues/59961
1,620,239,182
I_kwDOArmXAs5gkuNO
59,961
Tensorflow optimizer.apply_gradients is very slow.
{ "login": "anshkumar", "id": 8944361, "node_id": "MDQ6VXNlcjg5NDQzNjE=", "avatar_url": "https://avatars.githubusercontent.com/u/8944361?v=4", "gravatar_id": "", "url": "https://api.github.com/users/anshkumar", "html_url": "https://github.com/anshkumar", "followers_url": "https://api.github.com/users/anshkumar/followers", "following_url": "https://api.github.com/users/anshkumar/following{/other_user}", "gists_url": "https://api.github.com/users/anshkumar/gists{/gist_id}", "starred_url": "https://api.github.com/users/anshkumar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anshkumar/subscriptions", "organizations_url": "https://api.github.com/users/anshkumar/orgs", "repos_url": "https://api.github.com/users/anshkumar/repos", "events_url": "https://api.github.com/users/anshkumar/events{/privacy}", "received_events_url": "https://api.github.com/users/anshkumar/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": 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": 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" } ]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@anshkumar \r\nThis issue seems to be a keras related issue. Please post this issue on [keras-team/keras repo.](https://github.com/keras-team/keras/issues)\r\nTo know more see;\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!", "Posted issue to [keras](https://github.com/keras-team/tf-keras/issues/238)", "@anshkumar \r\nThis issue will be triaged on [Keras repo](https://github.com/keras-team/tf-keras/issues/238). So, Could you please close this issue ?\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/59961\">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/59961\">No</a>\n" ]
2023-03-12T05:18:17
2023-09-22T18:11:07
2023-03-15T03:19:47
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.13 ### Custom Code No ### OS Platform and Distribution Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I'm using a custom training loop for training a model made using EfficientNetV2 with biFPN. I found that `optimizer.apply_gradients` was running very slow. It took around 1.7 seconds to `apply_gradients` while model was taking only 0.1 seconds. I tried to replicate this using smaller example, so followed tutorial [here](https://www.tensorflow.org/guide/keras/writing_a_training_loop_from_scratch). I found a similar issue here also. `apply_gradients` here also is taking twice the time compared to model+loss. Is it fine to have such behavior? I tried a different version of tensorflow, but found the same behavior. ``` ### Standalone code to reproduce the issue ```shell The code used can be found here: https://colab.research.google.com/github/tensorflow/docs/blob/snapshot-keras/site/en/guide/keras/writing_a_training_loop_from_scratch.ipynb ``` ### Relevant log output ```shell Model+Loss 0.027350187301635742 Grad 0.027795791625976562 Apply Grad 0.056526899337768555 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59961/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/59961/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59960
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59960/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59960/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59960/events
https://github.com/tensorflow/tensorflow/issues/59960
1,620,196,069
I_kwDOArmXAs5gkjrl
59,960
quantize_and_dequantize_v2 crashes when computing gradients in forward mode
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/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": 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" } ]
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
[ "assign this to me\r\ni have a working solution in mind", "Based on the error message, it appears that the issue is with the _QuantizeAndDequantizeV4GradGrad() function in TensorFlow's backend. One possible workaround is to use a custom gradient for the quantize_and_dequantize_v2 function. \r\n\r\nbelow is code with the custom gradient implementation:\r\n\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ntensor = tf.random.normal(shape=[1, 1], mean=127, stddev=50, dtype=tf.float32)\r\n\r\[email protected]_gradient\r\ndef func(tensor):\r\n quanti = tf.quantization.quantize_and_dequantize_v2(tensor, \r\n input_min = 0.0,\r\n input_max = 255.0,\r\n num_bits = 8,\r\n range_given=False)\r\n \r\n def grad(dy):\r\n return dy\r\n return quanti, grad\r\n\r\noutput = func(tensor) # pass\r\nwith tf.autodiff.ForwardAccumulator(tensor, tf.constant([[0.], [1.]])) as acc:\r\n output = func(tensor)\r\n\r\nHere, we've wrapped the quantize_and_dequantize_v2 call inside a @tf.custom_gradient decorator. This allows us to define a custom gradient function that overrides the default gradient implementation.\r\n\r\nIn this case, we've defined the gradient function as def grad(dy): return dy, which simply returns the incoming gradient dy unchanged. This is the identity gradient, which is appropriate for this operation because it doesn't modify the input tensor in any way.\r\n\r\nWith this change, the code should now run without errors.", "@CrazyShenanigan Thank you for your response here. \r\n@trickiwoo Thank you for raising this issue! Could you please refer to the comment above and let us know if that helped?\r\n\r\n ", "@sushreebarsa @CrazyShenanigan Sorry for the delay. Thanks for providing the workaround for the issue! I tried implementing the workaround you suggested, but it doesn't seem to resolve the problem. It fails in gradient computation with the same error message:\r\n```\r\nTypeError: in user code:\r\n TypeError: _QuantizeAndDequantizeV4GradGrad() takes 2 positional arguments but 4 were given\r\n```", "Hi @trickiwoo ,\r\n\r\nIt seems you are not using the API correct way. I am not sure why you are calling `tf.quantization.quantize_and_dequantize_v2` under the accumulator `tf.autodiff.ForwardAccumulator`. \r\n\r\nThe API `tf.autodiff.ForwardAccumulator` expects `loss` function to be defined under this context like we do under GradientTape class and then the method `.jvp(loss)` shall be called to compute JVPs.\r\n\r\nI have rewritten the code that the API `tf.autodiff.ForwardAccumulator` expects and it throws no error and JVPs are None as there is no connection between the `primals` and the Tensor returned by `quantize_and_dequantize_v2`.\r\n\r\nPlease refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/ad96bef34d45bc2a8e95c0fa84069ee2/59960.ipynb).", "Hi @SuryanarayanaY , thanks for taking a look into it!\r\n\r\nI followed the example in the [documentation](https://www.tensorflow.org/api_docs/python/tf/autodiff/ForwardAccumulator), where it also calls the function within the scope of `tf.autodiff.ForwardAccumulator`." ]
2023-03-12T01:12:14
2023-03-30T07:59:24
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 _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell quantize_and_dequantize_v2 crashes when computing gradients in forward mode. According to the error message, `quantize_and_dequantize_v2` seems to link with the wrong version of the operator. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np tensor = tf.random.normal(shape=[1, 1], mean=127, stddev=50, dtype=tf.float32) def func(tensor): quanti = tf.quantization.quantize_and_dequantize_v2(tensor, input_min = 0.0, input_max = 255.0, num_bits = 8, range_given=False) return quanti output = func(tensor) # pass with tf.autodiff.ForwardAccumulator(tensor, tf.constant([[0.], [1.]])) as acc: output = func(tensor) ``` ### Relevant log output ```shell TypeError: _QuantizeAndDequantizeV4GradGrad() takes 2 positional arguments but 4 were given ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59960/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/59960/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59959
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59959/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59959/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59959/events
https://github.com/tensorflow/tensorflow/issues/59959
1,620,120,187
I_kwDOArmXAs5gkRJ7
59,959
Tensorflow lite for microcontrollers documentation has broken links to .cc files
{ "login": "acridland", "id": 127619759, "node_id": "U_kgDOB5tSrw", "avatar_url": "https://avatars.githubusercontent.com/u/127619759?v=4", "gravatar_id": "", "url": "https://api.github.com/users/acridland", "html_url": "https://github.com/acridland", "followers_url": "https://api.github.com/users/acridland/followers", "following_url": "https://api.github.com/users/acridland/following{/other_user}", "gists_url": "https://api.github.com/users/acridland/gists{/gist_id}", "starred_url": "https://api.github.com/users/acridland/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/acridland/subscriptions", "organizations_url": "https://api.github.com/users/acridland/orgs", "repos_url": "https://api.github.com/users/acridland/repos", "events_url": "https://api.github.com/users/acridland/events{/privacy}", "received_events_url": "https://api.github.com/users/acridland/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" } ]
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
[ "@acridland Thanks for reporting this.\r\n\r\nPR #59969 has been created. Issue will be closed once PR is merged.\r\n\r\nThanks.", "Hi @acridland \r\n\r\nThe Hello World example has been refactored with the commit https://github.com/tensorflow/tensorflow/commit/f263e19e227da0d325f15477f57a359291fc387c and broken links are fixed.\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/59959\">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/59959\">No</a>\n" ]
2023-03-11T19:32:10
2023-11-11T01:48:04
2023-11-11T01:48:02
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 2.11 ### 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? ```shell Documentation links to .cc files are broken. https://www.tensorflow.org/lite/microcontrollers/get_started_low_level In section 'Run Inference', link to 'hello_world_test.cc' and the other remaining .cc files linked cannot be opened. ``` ### Standalone code to reproduce the issue ```shell N/A ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59959/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/59959/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59958
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59958/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59958/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59958/events
https://github.com/tensorflow/tensorflow/issues/59958
1,619,980,064
I_kwDOArmXAs5gju8g
59,958
Build issue by way of third party benchmark from head
{ "login": "DavidKorczynski", "id": 657617, "node_id": "MDQ6VXNlcjY1NzYxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/657617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidKorczynski", "html_url": "https://github.com/DavidKorczynski", "followers_url": "https://api.github.com/users/DavidKorczynski/followers", "following_url": "https://api.github.com/users/DavidKorczynski/following{/other_user}", "gists_url": "https://api.github.com/users/DavidKorczynski/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidKorczynski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidKorczynski/subscriptions", "organizations_url": "https://api.github.com/users/DavidKorczynski/orgs", "repos_url": "https://api.github.com/users/DavidKorczynski/repos", "events_url": "https://api.github.com/users/DavidKorczynski/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidKorczynski/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" } ]
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
[ "CC @fcoUnda @mihaimaruseac @learning-to-play ", "This issue might be related: https://github.com/google/benchmark/issues/1543" ]
2023-03-11T11:52:01
2023-03-14T20:30:01
null
CONTRIBUTOR
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 Head ### Custom Code No ### OS Platform and Distribution Linux, Ubuntu 20.04 ### 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? The OSS-Fuzz build started failing a few days ago: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56922 The bazel log shows: ```shell Step #3 - "compile-libfuzzer-address-x86_64": ERROR: /src/tensorflow/tensorflow/tsl/platform/BUILD:335:11: no such package '@libpfm//': The repository '@libpfm' could not be resolved: Repository '@libpfm' is not defined and referenced by '//tensorflow/tsl/platform:test_benchmark' ``` If I revert commit https://github.com/tensorflow/tensorflow/commit/03b51b52df3a09c39585ac3fe0227606f414651e the build works well again. ### Standalone code to reproduce the issue ```shell Build by way of OSS-Fuzz [build script](https://github.com/google/oss-fuzz/blob/master/projects/tensorflow/build.sh): git clone https://github.com/google/oss-fuzz cd oss-fuzz python3 infra/helper.py build_fuzzers tensorflow ``` ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59958/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/59958/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59957
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59957/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59957/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59957/events
https://github.com/tensorflow/tensorflow/issues/59957
1,619,715,859
I_kwDOArmXAs5giucT
59,957
fvr
{ "login": "rfesfsfdxc", "id": 127566174, "node_id": "U_kgDOB5qBXg", "avatar_url": "https://avatars.githubusercontent.com/u/127566174?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rfesfsfdxc", "html_url": "https://github.com/rfesfsfdxc", "followers_url": "https://api.github.com/users/rfesfsfdxc/followers", "following_url": "https://api.github.com/users/rfesfsfdxc/following{/other_user}", "gists_url": "https://api.github.com/users/rfesfsfdxc/gists{/gist_id}", "starred_url": "https://api.github.com/users/rfesfsfdxc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rfesfsfdxc/subscriptions", "organizations_url": "https://api.github.com/users/rfesfsfdxc/orgs", "repos_url": "https://api.github.com/users/rfesfsfdxc/repos", "events_url": "https://api.github.com/users/rfesfsfdxc/events{/privacy}", "received_events_url": "https://api.github.com/users/rfesfsfdxc/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": 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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "Please don't spam" ]
2023-03-10T22:44:34
2023-03-13T01:05:57
2023-03-13T01:05:42
NONE
spam
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version dewxc ### Custom Code Yes ### OS Platform and Distribution sdac ### Mobile device sx ### Python version c ### Bazel version xsxd ### GCC/Compiler version scdx ### CUDA/cuDNN version dc ### GPU model and memory wsc ### Current Behaviour? ```shell A bug happened! ``` ### Standalone code to reproduce the issue ```shell sdacv ``` ### Relevant log output ```shell recfdssdc ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59957/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/59957/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59956
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59956/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59956/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59956/events
https://github.com/tensorflow/tensorflow/issues/59956
1,619,665,214
I_kwDOArmXAs5giiE-
59,956
SavedModel in C++ with Multiple Signatures gives "You must feed a value for placeholder tensor 'infer_float_board_state' with dtype float and shape [?,19,19,7]"
{ "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": 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)" }, { "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
[ "To call a specific signature, you need to use the **GetSignatures()** method to get a map of all available signatures and their corresponding input and output tensors. You can then use this map to create input and output tensor maps that you can pass to **Session::Run()**.\r\n```\r\nauto signatures = model_bundle_->GetSignatures();\r\nauto& signature = signatures.at(\"sig_a\");\r\n\r\n// create input tensor map\r\ntensorflow::Tensor input_tensor(tensorflow::DT_FLOAT, tensorflow::TensorShape({1, 1}));\r\nauto input_tensor_map = std::map<std::string, tensorflow::Tensor>{{\"sig_a_x:0\", input_tensor}};\r\n\r\n// create output tensor map\r\nstd::vector<tensorflow::Tensor> output_tensors;\r\nfor (const auto& output : signature.outputs()) {\r\n output_tensors.emplace_back();\r\n output_tensors.back().set_shape(output.second.shape());\r\n}\r\nauto output_tensor_map = std::map<std::string, tensorflow::Tensor>{{\"StatefulPartitionedCall:0\", output_tensors[0]}};\r\n\r\n// run the session\r\nmodel_bundle_->GetSession()->Run(input_tensor_map, output_tensor_map, {}, &output_tensors);\r\n```" ]
2023-03-10T21:52:50
2023-03-29T18:17: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 2.11 ### Custom Code Yes ### OS Platform and Distribution Debian GNU/Linux 10 ### Mobile device n/a ### Python version 3.9 ### Bazel version 6.1.0 ### GCC/Compiler version LLVM 12 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? ```shell I have a Keras model that I save with 2 signatures--one for full precision, and one for mixed precision. After loading in C++ and trying to run, I get this error: You must feed a value for placeholder tensor 'infer_float_board_state' with dtype float and shape [?,19,19,7] ``` I see a method `GetSignatureDefs` in `SavedModelBundleLite`, but no way to actually use them. How can I call the signature that I actually need? ``` ### Standalone code to reproduce the issue ```shell Python class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() def call(self, x): return x + 1.0 @tf.function(input_signature=[ tf.TensorSpec([None, 1], tf.float32), ]) def sig_a(self, x): return self(x) @tf.function(input_signature=[ tf.TensorSpec([None, 1], tf.float16), ]) def sig_a(self, x): return self(x) model.save(local_path, signatures={ 'sig_a': model.sig_a, 'sig_b': model.sig_b }) ``` C++ ``` const static std::vector<std::string> kInputNames = { "sig_a_x:0" }; const static std::vector<std::string> kPlaceHolderNames = { "sig_b_x:0" }; const static std::vector<std::string> kOutputNames = { "StatefulPartitionedCall:0", }; int main(int argc, char** argv) { model = LoadSavedModel(session_options_, run_options_, path, {tensorflow::kSavedModelTagServe}, &model_bundle_); model.GetSession()->Run(<inputs>, <outputs>, <targets>, <output>); } ``` ``` ### Relevant log output ```shell 2023-03-10 21:44:24.929526: E cc/scripts/play_model.cc:91] Eval Failed: 3, msg: You must feed a value for placeholder tensor 'infer_float_board_state' with dtype float and shape [?,19,19,7] [[{{node infer_float_board_state}}]] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59956/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/59956/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59955
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59955/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59955/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59955/events
https://github.com/tensorflow/tensorflow/pull/59955
1,619,517,626
PR_kwDOArmXAs5Ly61h
59,955
Remove references to the Bazel flag `--distinct_host_configuration`.
{ "login": "katre", "id": 326527, "node_id": "MDQ6VXNlcjMyNjUyNw==", "avatar_url": "https://avatars.githubusercontent.com/u/326527?v=4", "gravatar_id": "", "url": "https://api.github.com/users/katre", "html_url": "https://github.com/katre", "followers_url": "https://api.github.com/users/katre/followers", "following_url": "https://api.github.com/users/katre/following{/other_user}", "gists_url": "https://api.github.com/users/katre/gists{/gist_id}", "starred_url": "https://api.github.com/users/katre/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/katre/subscriptions", "organizations_url": "https://api.github.com/users/katre/orgs", "repos_url": "https://api.github.com/users/katre/repos", "events_url": "https://api.github.com/users/katre/events{/privacy}", "received_events_url": "https://api.github.com/users/katre/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": 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
[ "If you are not yet on Bazel 6.0 you can close this and I won't migrate you, but do note the the delta between Bazel 5 and the next release is growing.", "Also, the internal LSC may also send CLs that you'll need to tell me to revert.", "Thanks! What needs to be done to merge this?", "It will be imported by copybara, run more CI internally and then automatically merged." ]
2023-03-10T19:31:50
2023-03-15T12:29:45
2023-03-14T21:46:20
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59955", "html_url": "https://github.com/tensorflow/tensorflow/pull/59955", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59955.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59955.patch", "merged_at": "2023-03-14T21:46:20" }
Part of https://github.com/bazelbuild/bazel/issues/17731.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59955/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/59955/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59954
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59954/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59954/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59954/events
https://github.com/tensorflow/tensorflow/issues/59954
1,619,473,386
I_kwDOArmXAs5ghzPq
59,954
Cannot save model when not giving a name in Layer.add_weight call in "build"
{ "login": "Mastiff37", "id": 50179383, "node_id": "MDQ6VXNlcjUwMTc5Mzgz", "avatar_url": "https://avatars.githubusercontent.com/u/50179383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mastiff37", "html_url": "https://github.com/Mastiff37", "followers_url": "https://api.github.com/users/Mastiff37/followers", "following_url": "https://api.github.com/users/Mastiff37/following{/other_user}", "gists_url": "https://api.github.com/users/Mastiff37/gists{/gist_id}", "starred_url": "https://api.github.com/users/Mastiff37/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mastiff37/subscriptions", "organizations_url": "https://api.github.com/users/Mastiff37/orgs", "repos_url": "https://api.github.com/users/Mastiff37/repos", "events_url": "https://api.github.com/users/Mastiff37/events{/privacy}", "received_events_url": "https://api.github.com/users/Mastiff37/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": 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
[ "Hi @Mastiff37 Thanks for reporting this issue.\r\n\r\nI was able to reproduce this issue on TF Nightly 2.13.0-dev20230313 as well. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/ae1b620bd93ebfff636632a6add7f1a8/59954.ipynb).\r\n\r\nThe workaround is to add name to the layer.\r\n\r\n@SuryanarayanaY could you please look into this?", "`The build()` method’s role is to create the layer’s variables by calling the `add_weight()`\r\n method for each weight. The `build()` method is called the first time the layer is used.\r\n At that point, Keras will know the shape of this layer’s inputs, and it will pass it to the `build()` method.\r\nThe constructor uses the `add_weight()` method to create the variables which will be used to track the operations used further.\r\nIt is. suggested to pass the name to the `add_weight()` method else as you see in the error message it fails in the below condition.\r\nhttps://github.com/tensorflow/tensorflow/blob/f8163bd5bb373d622a69672eb3bdfd087c9bb5d7/tensorflow/python/trackable/trackable_utils.py#L120-L127", "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/59954\">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/59954\">No</a>\n" ]
2023-03-10T18:56:51
2023-03-29T02:01:55
2023-03-29T02:01:53
NONE
null
null
null
I have the identical issue to https://github.com/tensorflow/tensorflow/issues/36962, except I'm on 2.11.0. Was it really resolved? The issue is that the model will not save and returns: `AttributeError: 'NoneType' object has no attribute 'replace'` It would have taken a very long time to run this down if I hadn't found the linked issue, but I also have `self.add_weight` in a custom layer with no name.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59954/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/59954/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59953
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59953/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59953/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59953/events
https://github.com/tensorflow/tensorflow/pull/59953
1,619,473,166
PR_kwDOArmXAs5Lyxnu
59,953
test
{ "login": "Young768", "id": 7083506, "node_id": "MDQ6VXNlcjcwODM1MDY=", "avatar_url": "https://avatars.githubusercontent.com/u/7083506?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Young768", "html_url": "https://github.com/Young768", "followers_url": "https://api.github.com/users/Young768/followers", "following_url": "https://api.github.com/users/Young768/following{/other_user}", "gists_url": "https://api.github.com/users/Young768/gists{/gist_id}", "starred_url": "https://api.github.com/users/Young768/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Young768/subscriptions", "organizations_url": "https://api.github.com/users/Young768/orgs", "repos_url": "https://api.github.com/users/Young768/repos", "events_url": "https://api.github.com/users/Young768/events{/privacy}", "received_events_url": "https://api.github.com/users/Young768/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: 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
[ "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/59953/checks?check_run_id=11917829949) 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-03-10T18:56:39
2023-03-10T20:19:28
2023-03-10T20:19:28
CONTRIBUTOR
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59953", "html_url": "https://github.com/tensorflow/tensorflow/pull/59953", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59953.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59953.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59953/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/59953/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59952
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59952/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59952/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59952/events
https://github.com/tensorflow/tensorflow/pull/59952
1,618,951,376
PR_kwDOArmXAs5LxA0L
59,952
Added option for Arm NN delegate
{ "login": "wwwind", "id": 1513336, "node_id": "MDQ6VXNlcjE1MTMzMzY=", "avatar_url": "https://avatars.githubusercontent.com/u/1513336?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wwwind", "html_url": "https://github.com/wwwind", "followers_url": "https://api.github.com/users/wwwind/followers", "following_url": "https://api.github.com/users/wwwind/following{/other_user}", "gists_url": "https://api.github.com/users/wwwind/gists{/gist_id}", "starred_url": "https://api.github.com/users/wwwind/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wwwind/subscriptions", "organizations_url": "https://api.github.com/users/wwwind/orgs", "repos_url": "https://api.github.com/users/wwwind/repos", "events_url": "https://api.github.com/users/wwwind/events{/privacy}", "received_events_url": "https://api.github.com/users/wwwind/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": 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
[ "Hi @wwwind Can you please check @fergushenderson's comments and keep us posted ? 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.", "It looks like\r\nhttps://github.com/tensorflow/tensorflow/pull/60352\r\nis a more recent and more complete version of this pull request.", "Hi @wwwind Can you please check @fergushenderson's comments and resolve conflicts?. Thank you!" ]
2023-03-10T13:06:07
2023-05-09T12:06:54
2023-05-05T11:45:55
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59952", "html_url": "https://github.com/tensorflow/tensorflow/pull/59952", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59952.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59952.patch", "merged_at": null }
Added option to configuration.proto for Arm NN delegate
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59952/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/59952/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59951
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59951/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59951/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59951/events
https://github.com/tensorflow/tensorflow/pull/59951
1,618,613,551
PR_kwDOArmXAs5Lv4i5
59,951
add support for conv+bias+relu6+leakyrelu.
{ "login": "Young768", "id": 7083506, "node_id": "MDQ6VXNlcjcwODM1MDY=", "avatar_url": "https://avatars.githubusercontent.com/u/7083506?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Young768", "html_url": "https://github.com/Young768", "followers_url": "https://api.github.com/users/Young768/followers", "following_url": "https://api.github.com/users/Young768/following{/other_user}", "gists_url": "https://api.github.com/users/Young768/gists{/gist_id}", "starred_url": "https://api.github.com/users/Young768/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Young768/subscriptions", "organizations_url": "https://api.github.com/users/Young768/orgs", "repos_url": "https://api.github.com/users/Young768/repos", "events_url": "https://api.github.com/users/Young768/events{/privacy}", "received_events_url": "https://api.github.com/users/Young768/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: 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
[ "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/59951/checks?check_run_id=11904311550) 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-03-10T09:08:16
2023-03-10T09:10:47
2023-03-10T09:08:49
CONTRIBUTOR
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59951", "html_url": "https://github.com/tensorflow/tensorflow/pull/59951", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59951.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59951.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59951/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/59951/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59950
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59950/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59950/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59950/events
https://github.com/tensorflow/tensorflow/issues/59950
1,618,313,591
I_kwDOArmXAs5gdYF3
59,950
tf.io.FixedLenSequenceFeature shows error when padding value for unformant serialized features
{ "login": "Zaoyee", "id": 43198202, "node_id": "MDQ6VXNlcjQzMTk4MjAy", "avatar_url": "https://avatars.githubusercontent.com/u/43198202?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Zaoyee", "html_url": "https://github.com/Zaoyee", "followers_url": "https://api.github.com/users/Zaoyee/followers", "following_url": "https://api.github.com/users/Zaoyee/following{/other_user}", "gists_url": "https://api.github.com/users/Zaoyee/gists{/gist_id}", "starred_url": "https://api.github.com/users/Zaoyee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zaoyee/subscriptions", "organizations_url": "https://api.github.com/users/Zaoyee/orgs", "repos_url": "https://api.github.com/users/Zaoyee/repos", "events_url": "https://api.github.com/users/Zaoyee/events{/privacy}", "received_events_url": "https://api.github.com/users/Zaoyee/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": 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
[ "@Zaoyee The error indicates the number of values in the sequence feature with name f1 does not match the expected output shape, which is [] (empty shape). FixedLenSequenceFeature expects all lists to have a length of 3. \r\n\r\nTo fix the error, you can either ensure that all lists in the sequence have the same length, or you can use a VarLenFeature to allow sequences of different lengths. Hope this helps.\r\n\r\n", "Thanks for your quick reply. @apmanikandan \r\n\r\nI was expected `FixedLenSequenceFeature` is able to pad a default value for the missing, as shown in API doc.\r\nI checked the doc, the comment shows it should allow me to get a dense result for the sequence data instead of using `VarLenFeature` for sparse result.\r\n\r\nIs it possible to handle that?", "Hi @Zaoyee ,\r\n\r\nCould you please fill the issue in the attached format [here](https://github.com/tensorflow/tensorflow/issues/new?assignees=&labels=&template=tensorflow_issue_template.yaml).\r\n\r\nI tried replicating the issue and refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/99735ae7c767698a830247589af4329a/59950.ipynb#scrollTo=yqLOC68gFeGk). It seems there is some difference in error trace.Could you please check and confirm. Thanks!\r\n", "@Zaoyee ,\r\n\r\nI did some debugging here.For `tf.io.FixedLenSequenceFeature()` if passed `default_value=None` the reported error by you arising.If I pass the Input as Non Ragged Tensor then the error will be gone. \r\nI assume you are trying to pass input as Sparse tensor and padding it with some default value(`\"-1\"` here).This seems not supported by the API `tf.io.parse_single_sequence_example`. \r\n\r\nFrom the API `tf.io.FixedLenSequenceFeature()` see the highlighted line for the argument `default_value` below. \r\n\r\n\r\n> default_value | Scalar value to be used to pad multiple Examples to their maximum length. **_Irrelevant for parsing a single Example or SequenceExample_**. Defaults to \"\" for dtype string and 0 otherwise (optional).\r\n\r\nThis states this is irrelevant for parsing a single example or SeqneceExample in our case we have used the API `tf.io.parse_single_sequence_example` which is used for parsing a single SequenceExample proto.Combination of both are not allowed.\r\n\r\nI hope this explains the reason for the error.Please also refer to the attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/2cab24cfe2e4f66ecdfed99eef6bf101/59950_r1.ipynb).\r\n\r\n", "@SuryanarayanaY ,\r\n\r\nReally appreciate your work. I understand what you say, but the method description still confuse me.\r\nThe following is descripted in `parsing_ops.py`.\r\n> `sequence_features` contains `VarLenFeature`, `RaggedFeature`, and\r\n `FixedLenSequenceFeature` objects. Each `VarLenFeature` is mapped to a\r\n `SparseTensor`; each `RaggedFeature` is mapped to a `RaggedTensor`; and each\r\n `FixedLenSequenceFeature` is mapped to a `Tensor`, each of the specified type.\r\n The shape will be `(T,) + df.dense_shape` for `FixedLenSequenceFeature` `df`,\r\n where `T` is the length of the associated `FeatureList` in the\r\n `SequenceExample`. For instance, `FixedLenSequenceFeature([])` yields a scalar\r\n 1-D `Tensor` of static shape `[None]` and dynamic shape `[T]`, while\r\n `FixedLenSequenceFeature([k])` (for `int k >= 1`) yields a 2-D matrix `Tensor`\r\n of static shape `[None, k]` and dynamic shape `[T, k]`.\r\n\r\n, which i understand should allow me to use a general `FixedLenSequenceFeature` for `tf.io.parse_single_sequence_example`.\r\n\r\nBesides, i was wondering if I am able to parse the `**'actors'**` features in the [example](https://www.tensorflow.org/api_docs/python/tf/train/SequenceExample) using ``FixedLenSequenceFeature``.\r\n/\r\n```\r\n context: {\r\n feature: {\r\n key : \"locale\"\r\n value: {\r\n bytes_list: {\r\n value: [ \"pt_BR\" ]\r\n }\r\n }\r\n }\r\n feature: {\r\n key : \"age\"\r\n value: {\r\n float_list: {\r\n value: [ 19.0 ]\r\n }\r\n }\r\n }\r\n feature: {\r\n key : \"favorites\"\r\n value: {\r\n bytes_list: {\r\n value: [ \"Majesty Rose\", \"Savannah Outen\", \"One Direction\" ]\r\n }\r\n }\r\n }\r\n }\r\n feature_lists: {\r\n feature_list: {\r\n key : \"movie_ratings\"\r\n value: {\r\n feature: {\r\n float_list: {\r\n value: [ 4.5 ]\r\n }\r\n }\r\n feature: {\r\n float_list: {\r\n value: [ 5.0 ]\r\n }\r\n }\r\n }\r\n }\r\n feature_list: {\r\n key : \"movie_names\"\r\n value: {\r\n feature: {\r\n bytes_list: {\r\n value: [ \"The Shawshank Redemption\" ]\r\n }\r\n }\r\n feature: {\r\n bytes_list: {\r\n value: [ \"Fight Club\" ]\r\n }\r\n }\r\n }\r\n }\r\n feature_list: {\r\n key : \"actors\"\r\n value: {\r\n feature: {\r\n bytes_list: {\r\n value: [ \"Tim Robbins\", \"Morgan Freeman\" ]\r\n }\r\n }\r\n feature: {\r\n bytes_list: {\r\n value: [ \"Brad Pitt\", \"Edward Norton\", \"Helena Bonham Carter\" ]\r\n }\r\n }\r\n }\r\n }\r\n }\r\n```", "@Zaoyee ,\r\n\r\nFor this case it seems `tf.io.parse_single_sequence_example` not working when `context_features =FixedLenSequenceFeature()` with Sparse input. Workaround seems to use` tf.io.VarLenFeature()` instead of `FixedLenSequenceFeature()`. Could you confirm whether this works for your case or do you have your case to use only with` FixedLenSequenceFeature()` ? ", "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/59950\">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/59950\">No</a>\n" ]
2023-03-10T03:51:10
2023-03-28T01:57:20
2023-03-28T01:57:17
NONE
null
null
null
I got an error when deserialize the data like the following code. the sequence data would be like ``` feature_list { key: "f1" value { feature { int64_list { value: 1 value: 2 } } feature { int64_list { value: 1 value: 0 value: 2 } } } ``` I want to use ```tf.io.FixedLenSequenceFeature``` to fit sequence data into a dense tensor with padded value -1. ```python import tensorflow as tf if __name__ == '__main__': sequence_feature_names = "f1" featurelists = {} x = [[1,2], [1, 0, 2]] feature_list = tf.train.FeatureList( feature=[tf.train.Feature(int64_list=tf.train.Int64List(value=x_)) for x_ in x]) featurelists[sequence_feature_names] = feature_list featurelists_features = tf.train.FeatureLists(feature_list=featurelists) sequence_example = tf.train.SequenceExample( context=None, feature_lists=featurelists_features ) print(sequence_example) data = sequence_example.SerializeToString() des_data = tf.io.parse_single_sequence_example(data, context_features={}, sequence_features={ # 'sequence_feature_1': tf.io.VarLenFeature(dtype='int64'), 'f1': tf.io.FixedLenSequenceFeature(shape=[3], dtype=tf.int64, allow_missing=True, default_value=-1 ) }, ) print(des_data) print(tf.sparse.to_dense(des_data[1]['sequence_feature_1'])) ``` The traceback is like: ``` Traceback (most recent call last): File "D:/cloud-service-ai/dev/fc-dev/honor-feature-columns/tests/parse_seq_example.py", line 28, in <module> des_data = tf.io.parse_single_sequence_example(data, File "D:\Libraries\Anaconda3\envs\tf2py38\lib\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "D:\Libraries\Anaconda3\envs\tf2py38\lib\site-packages\tensorflow\python\eager\execute.py", line 54, in quick_execute tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __wrapped__ParseSequenceExampleV2_Ncontext_sparse_0_Nfeature_list_dense_1_Nfeature_list_sparse_0_Tcontext_dense_0_context_ragged_split_types_0_context_ragged_value_types_0_context_sparse_types_0_feature_list_dense_types_1_feature_list_ragged_split_types_0_feature_list_ragged_value_types_0_feature_list_sparse_types_0_device_/job:localhost/replica:0/task:0/device:CPU:0}} Name: <unknown>, Key: sequence_feature_1, Index: 0. Number of values != expected. values size: 2 but output shape: [] [Op:ParseSequenceExampleV2] ``` ···
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59950/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/59950/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59949
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59949/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59949/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59949/events
https://github.com/tensorflow/tensorflow/pull/59949
1,618,247,422
PR_kwDOArmXAs5Lurhk
59,949
[oneDNN] Fix for failures while fusing Mul-Maximum into LeakyRelu
{ "login": "othakkar", "id": 87341429, "node_id": "MDQ6VXNlcjg3MzQxNDI5", "avatar_url": "https://avatars.githubusercontent.com/u/87341429?v=4", "gravatar_id": "", "url": "https://api.github.com/users/othakkar", "html_url": "https://github.com/othakkar", "followers_url": "https://api.github.com/users/othakkar/followers", "following_url": "https://api.github.com/users/othakkar/following{/other_user}", "gists_url": "https://api.github.com/users/othakkar/gists{/gist_id}", "starred_url": "https://api.github.com/users/othakkar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/othakkar/subscriptions", "organizations_url": "https://api.github.com/users/othakkar/orgs", "repos_url": "https://api.github.com/users/othakkar/repos", "events_url": "https://api.github.com/users/othakkar/events{/privacy}", "received_events_url": "https://api.github.com/users/othakkar/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": 1097545273, "node_id": "MDU6TGFiZWwxMDk3NTQ1Mjcz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:grappler", "name": "comp:grappler", "color": "0052cc", "default": false, "description": "Grappler related issues" }, { "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 @ezhulenev Can you please review this PR ? Thank you!" ]
2023-03-10T02:06:54
2023-04-12T17:39:40
2023-04-12T17:39:40
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59949", "html_url": "https://github.com/tensorflow/tensorflow/pull/59949", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59949.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59949.patch", "merged_at": "2023-04-12T17:39:40" }
For several BF16 models, it was observed that if the Mul-Maximum pattern is not fused in the first remapper pass, then the `Cast` gets converted to a `Const` before the second remapper pass, which results in a `core dumped` failure while fetching the value of alpha for LeakyRelu because it is not a `float` val: [`alpha_val = alpha_tensor.flat<float>()(0);`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/optimizers/remapper.cc#L1735). This PR provides a fix for that failure.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59949/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/59949/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59948
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59948/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59948/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59948/events
https://github.com/tensorflow/tensorflow/issues/59948
1,618,174,067
I_kwDOArmXAs5gc2Bz
59,948
Why is the graph for the 'TFOpLambda' layer's 'call' method not stored in the SavedModel object_graph_def?
{ "login": "meghendra", "id": 4872638, "node_id": "MDQ6VXNlcjQ4NzI2Mzg=", "avatar_url": "https://avatars.githubusercontent.com/u/4872638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/meghendra", "html_url": "https://github.com/meghendra", "followers_url": "https://api.github.com/users/meghendra/followers", "following_url": "https://api.github.com/users/meghendra/following{/other_user}", "gists_url": "https://api.github.com/users/meghendra/gists{/gist_id}", "starred_url": "https://api.github.com/users/meghendra/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meghendra/subscriptions", "organizations_url": "https://api.github.com/users/meghendra/orgs", "repos_url": "https://api.github.com/users/meghendra/repos", "events_url": "https://api.github.com/users/meghendra/events{/privacy}", "received_events_url": "https://api.github.com/users/meghendra/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@meghendra Pls check whether the solution works for you or not.\r\n\r\nRegarding your first question, as far as I know, there is no way to force the serialization of the 'call' method graph for TFOpLambda layers in newer versions of TensorFlow. This change in serialization was made intentionally, and it is not recommended to rely on internal details of the SavedModel format in order to recreate a model in another framework.\r\n\r\nRegarding your second question, the main benefit of using TFOpLambda layers over TensorFlowOpLayers is that they are more general and flexible. TFOpLambda layers allow you to use any TensorFlow operation (not just those provided by tf.keras.layers) as a layer in your model. This can be useful for example when you want to use a custom TensorFlow operation that is not available as a pre-built layer in tf.keras. TFOpLambda layers also allow you to easily wrap a TensorFlow function (or any Python function) as a layer. This can be useful when you want to use a complex computation that cannot be expressed as a single TensorFlow operation, but you still want to treat it as a layer in your model.\r\n\r\nOne possible solution would be to manually reconstruct the 'call' method graph for TFOpLambda layers based on their metadata. In the example you provided, the metadata contains information about the function used ('nn.relu') and its inbound nodes (in this case, the previous layer 'conv1d_13'). ", "@NiharJani2002 thank you so much for your quick answer!\r\nTo an extent, I am already using the solution you suggested. What I am doing right now is to map these well-known activation function names, viz. nn.relu, math.tanh to implementations in MATLAB and using the inbound nodes for the function arguments. \r\n\r\nBut for arbitrary TensorFlow or Python functions wrapped in TFOpLambda layers, this won't be the case. Hence my follow up question is:\r\n While the metadata for the TFOpLambda layer in this example specifies the name of the function being used (say, nn.relu), is the graph for this function serialized somewhere in the SavedModel? ", "@meghendra\r\nIn general, the graph for a function wrapped in a TFOpLambda layer is not serialized in the SavedModel format. When you define a TFOpLambda layer using a TensorFlow or Python function, what gets saved in the SavedModel is the name of the function, as well as any arguments that were passed to the function at the time the layer was created.\r\n\r\nWhen the SavedModel is loaded and the TFOpLambda layer is instantiated, the function is reconstructed using the name and arguments that were saved. However, the actual graph for the function is not included in the SavedModel, and must be available at runtime in order for the layer to work.\r\n\r\nFor well-known activation functions like nn.relu or math.tanh, the implementation of the function is typically available in most frameworks, including MATLAB. This allows you to map the function name to the implementation and use it in your MATLAB code.\r\n\r\nHowever, for arbitrary TensorFlow or Python functions wrapped in TFOpLambda layers, the implementation may not be available in other frameworks. In this case, you would need to manually.\r\n", "@NiharJani2002 thanks for the clarification." ]
2023-03-10T00:24:12
2023-03-10T19:50:28
2023-03-10T19:50:28
NONE
null
null
null
### Describe the problem I work on importing TensorFlow models into MATLAB, this includes de-serializing the SavedModel format, identifying the different tf.keras.layers present in the SavedModel and creating an equivalent deep learning network in MATLAB. In TensorFlow 2.3.0 and earlier , if we use a TF symbol (like: tf.nn.relu()) between tf.keras.layers instances, it was serialized as a 'TensorFlowOpLayer', that was similar to a layer subclassing tf.keras.layer, i.e., the graph for its 'call' method (call_and_return_conditional_losses) was stored in the SavedModel. Specifically, this 'call_and_return_conditional_losses' function was stored as a child of the node corresponding to the TensorFlowOpLayer in the SavedModel's object_graph_def. In TensorFlow 2.6.0 and later, a TF symbol used between tf.keras.layers instances is serialized as a 'TFOpLambda' layer. Saving models containing these TFOpLambda layers into a SavedModel does not serialize the graph for its 'call' method (call_and_return_conditional_losses) anymore. There is no child node of the TFOpLambda node in the SavedModel's object_graph_def that corresponds to the 'call_and_return_conditional_losses' function anymore. This creates a problem for me since I rely on decoding the 'call_and_return_conditional_losses' function, in order to import these TensorFlowOpLayer / TFOpLambda into MATLAB. Consider the following model as an example: ``` x = tf.keras.layers.Input(shape=[None, 1]) z = tf.keras.layers.Conv1D(32, kernel_size=2, padding="causal")(x) z = tf.nn.relu(z)  model = tf.keras.models.Model(inputs=[x], outputs=[z]) model.summary() model.save('ModelWithTFSymbol') ``` Saving this in TensorFlow 2.3.0 will give you a TensorFlowOpLayer that has its 'call' graph serialized, containing the tf.raw_ops.Relu node that I use to concretely identify this as a ReLU activation operation. Model: "functional_1" ``` _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_1 (InputLayer) [(None, None, 1)] 0 conv1d (Conv1D) (None, None, 32) 96 tf_op_layer_Relu (TensorFlo (None, None, 32) 0 wOpLayer) ================================================================= ``` Saving the same model in TensorFlow 2.6.0+ will give you a TFOpLambda layer for the 'tf.nn.relu' symbol, that does not have its 'call' graph serialized in the object_graph_def. Model: "model_9" ``` _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_13 (InputLayer) [(None, None, None, 1)] 0 conv1d_13 (Conv1D) (None, None, None, 32) 96 tf.nn.relu_2 (TFOpLambda) (None, None, None, 32) 0 ================================================================= ``` The most information we have in this case is in the TFOpLambda node's metadata (meta_graphs > object_graph_def > TFOpLambda node >user_object > metadata) as follows: ``` { "name": "tf.nn.relu_13", "trainable": true, "expects_training_arg": false, "dtype": "float32", "batch_input_shape": null, "stateful": false, "must_restore_from_config": true, "class_name": "TFOpLambda", "config": { "name": "tf.nn.relu_13", "trainable": true, "dtype": "float32", "function": "nn.relu" }, "inbound_nodes": [ [ "conv1d_100", 0, 0, { "name": null } ] ], "shared_object_id": 4 } ``` I have the following questions regarding TFOpLambda layers: 1. Is there a way to always save the 'call' method graph in SavedModels for TFOpLambda layers? Basically a way to keep the older TensorFlowOpLayer behavior in newer versions of TensorFlow? 2. What is the benefit of saving TF Symbols as TFOpLambda layers over the original TensorFlowOpLayers?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59948/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/59948/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59947
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59947/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59947/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59947/events
https://github.com/tensorflow/tensorflow/pull/59947
1,617,863,533
PR_kwDOArmXAs5LtZXa
59,947
[oneDNN] Move Mean op back to auto_mixed_precision deny list due to potential a…
{ "login": "yimeisun123", "id": 42156420, "node_id": "MDQ6VXNlcjQyMTU2NDIw", "avatar_url": "https://avatars.githubusercontent.com/u/42156420?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yimeisun123", "html_url": "https://github.com/yimeisun123", "followers_url": "https://api.github.com/users/yimeisun123/followers", "following_url": "https://api.github.com/users/yimeisun123/following{/other_user}", "gists_url": "https://api.github.com/users/yimeisun123/gists{/gist_id}", "starred_url": "https://api.github.com/users/yimeisun123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yimeisun123/subscriptions", "organizations_url": "https://api.github.com/users/yimeisun123/orgs", "repos_url": "https://api.github.com/users/yimeisun123/repos", "events_url": "https://api.github.com/users/yimeisun123/events{/privacy}", "received_events_url": "https://api.github.com/users/yimeisun123/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": 1097545273, "node_id": "MDU6TGFiZWwxMDk3NTQ1Mjcz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:grappler", "name": "comp:grappler", "color": "0052cc", "default": false, "description": "Grappler 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": "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-03-09T19:21:44
2023-03-21T20:02:28
2023-03-21T20:02:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59947", "html_url": "https://github.com/tensorflow/tensorflow/pull/59947", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59947.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59947.patch", "merged_at": "2023-03-21T20:02:27" }
…ccuracy loss
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59947/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/59947/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59946
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59946/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59946/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59946/events
https://github.com/tensorflow/tensorflow/issues/59946
1,617,271,275
I_kwDOArmXAs5gZZnr
59,946
Fails to build tf-opt with llvm-project repository override
{ "login": "isolateFeng", "id": 60765824, "node_id": "MDQ6VXNlcjYwNzY1ODI0", "avatar_url": "https://avatars.githubusercontent.com/u/60765824?v=4", "gravatar_id": "", "url": "https://api.github.com/users/isolateFeng", "html_url": "https://github.com/isolateFeng", "followers_url": "https://api.github.com/users/isolateFeng/followers", "following_url": "https://api.github.com/users/isolateFeng/following{/other_user}", "gists_url": "https://api.github.com/users/isolateFeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/isolateFeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/isolateFeng/subscriptions", "organizations_url": "https://api.github.com/users/isolateFeng/orgs", "repos_url": "https://api.github.com/users/isolateFeng/repos", "events_url": "https://api.github.com/users/isolateFeng/events{/privacy}", "received_events_url": "https://api.github.com/users/isolateFeng/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" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "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/59946\">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/59946\">No</a>\n" ]
2023-03-09T13:33:22
2023-03-10T10:00:06
2023-03-10T10:00: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.9 ### Custom Code Yes ### OS Platform and Distribution mac(M2) ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version 5.3.0 ### GCC/Compiler version 15.0.5 (llvm version) ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I want to build the tf-opt and tf-mlir-translate I followed the steps given in the [readme](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir), and roll back the version of llvm-project to [corresponding version](https://github.com/tensorflow/tensorflow/tree/master/third_party/llvm). I got Error output below: when build tf-opt: cannot load '@llvm-project//:vars.bzl': no such file and referenced by '@llvm-project//mlir:Transforms' when build tf-mlir-translate: cannot load '@llvm-project//:vars.bzl': no such file and referenced by '//tensorflow/compiler/mlir:tf-mlir-translate' ``` ### Standalone code to reproduce the issue ```shell LLVM_SRC=/Volumes/back/mlir_project/llvm-project LLVM_BAZEL_OVERLAY=${LLVM_SRC}/bazel # Note: this can be anywhere mkdir -p ${LLVM_BAZEL_OVERLAY} # This will symlink your LLVM sources with the BUILD files to be usable by Bazel. python ${LLVM_SRC}/utils/bazel/overlay_directories.py \ --src ${LLVM_SRC} \ --overlay ${LLVM_SRC}/utils/bazel/llvm-project-overlay/ \ --target ${LLVM_BAZEL_OVERLAY} touch ${LLVM_BAZEL_OVERLAY}/BUILD.bazel ${LLVM_BAZEL_OVERLAY}/WORKSPACE echo 'llvm_targets = ["X86","NVPTX","AMDGPU","AArch64","ARM"]' > ${LLVM_BAZEL_OVERLAY}/llvm/targets.bzl ``` ### Relevant log output ```shell ERROR: /private/var/tmp/_bazel_isolateya/af219aaee912b96bcf0876417404d886/external/llvm-project/mlir/BUILD.bazel:5904:11: error loading package '@llvm-project//llvm': at /private/var/tmp/_bazel_isolateya/af219aaee912b96bcf0876417404d886/external/llvm-project/llvm/config.bzl:8:5: cannot load '@llvm-project//:vars.bzl': no such file and referenced by '@llvm-project//mlir:Transforms' ERROR: Analysis of target '//tensorflow/compiler/mlir:tf-opt' failed; build aborted: INFO: Elapsed time: 38.684s INFO: 0 processes. FAILED: Build did NOT complete successfully (122 packages loaded, 463 targets \ configured) currently loading: @com_google_protobuf// ... (4 packages) Fetching https://storage.googleapis.com/.../nsync/archive/1.25.0.tar.gz Fetching https://storage.googleapis.com/.../archive/v2.0.6.tar.gz Fetching https://storage.googleapis.com/...65082ee350509af1d113344d.tar.gz ```shell ERROR: /Volumes/back/mlir_project/tensorflow/tensorflow/compiler/mlir/BUILD:219:13: error loading package '@llvm-project//llvm': at /private/var/tmp/_bazel_isolateya/af219aaee912b96bcf0876417404d886/external/llvm-project/llvm/config.bzl:8:5: cannot load '@llvm-project//:vars.bzl': no such file and referenced by '//tensorflow/compiler/mlir:tf-mlir-translate' ERROR: Analysis of target '//tensorflow/compiler/mlir:tf-mlir-translate' failed; build aborted: Analysis failed INFO: Elapsed time: 27.395s INFO: 0 processes. FAILED: Build did NOT complete successfully (54 packages loaded, 247 targets configured) currently loading: @llvm-project//llvm Fetching @local_config_cc; Building xcode-locator Fetching https://storage.googleapis.com/.../abseil-cpp/archive/273292d1cfc0a94a65082ee350509af1d113344d.tar.gz ``` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59946/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/59946/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59945
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59945/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59945/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59945/events
https://github.com/tensorflow/tensorflow/pull/59945
1,617,151,906
PR_kwDOArmXAs5Lq9Nu
59,945
[ROCm] add reserved gpu memory for rocm libraries with overflow check
{ "login": "i-chaochen", "id": 913790, "node_id": "MDQ6VXNlcjkxMzc5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/913790?v=4", "gravatar_id": "", "url": "https://api.github.com/users/i-chaochen", "html_url": "https://github.com/i-chaochen", "followers_url": "https://api.github.com/users/i-chaochen/followers", "following_url": "https://api.github.com/users/i-chaochen/following{/other_user}", "gists_url": "https://api.github.com/users/i-chaochen/gists{/gist_id}", "starred_url": "https://api.github.com/users/i-chaochen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/i-chaochen/subscriptions", "organizations_url": "https://api.github.com/users/i-chaochen/orgs", "repos_url": "https://api.github.com/users/i-chaochen/repos", "events_url": "https://api.github.com/users/i-chaochen/events{/privacy}", "received_events_url": "https://api.github.com/users/i-chaochen/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": 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": 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
[]
2023-03-09T12:38:04
2023-03-13T22:44:58
2023-03-13T18:31:04
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59945", "html_url": "https://github.com/tensorflow/tensorflow/pull/59945", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59945.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59945.patch", "merged_at": "2023-03-13T18:31:04" }
This PR has added reserved gpu memory for rocm libraries with an overflow check at size_t to int64_t, which can help us easily to debug overflow in the further. Thanks! /cc @cheshire
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59945/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/59945/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59944
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59944/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59944/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59944/events
https://github.com/tensorflow/tensorflow/issues/59944
1,617,080,514
I_kwDOArmXAs5gYrDC
59,944
Movie recommender model doesn't converge
{ "login": "OmerSheinbox", "id": 127404110, "node_id": "U_kgDOB5gITg", "avatar_url": "https://avatars.githubusercontent.com/u/127404110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OmerSheinbox", "html_url": "https://github.com/OmerSheinbox", "followers_url": "https://api.github.com/users/OmerSheinbox/followers", "following_url": "https://api.github.com/users/OmerSheinbox/following{/other_user}", "gists_url": "https://api.github.com/users/OmerSheinbox/gists{/gist_id}", "starred_url": "https://api.github.com/users/OmerSheinbox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OmerSheinbox/subscriptions", "organizations_url": "https://api.github.com/users/OmerSheinbox/orgs", "repos_url": "https://api.github.com/users/OmerSheinbox/repos", "events_url": "https://api.github.com/users/OmerSheinbox/events{/privacy}", "received_events_url": "https://api.github.com/users/OmerSheinbox/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": 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": 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": 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": "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
[ "@pjpratik. I am trying for a solution.\r\n@orlean12 Pls Review whether it is appropriate or not.\r\n\r\nOne possible issue is related to the embedding layer. The code uses an embedding layer to encode the user input, but the embedding layer is not defined in the code. It is possible that the Embedding layer is defined outside the provided code, but it is unclear. Another possible issue is the input shape of the user input. The shape is defined as (1,), which may not be appropriate for the task at hand.\r\n\r\nAnother possible issue is related to the hyperparameters of the model, such as the number of hidden layers, the number of units in each layer, and the dropout rate. It is unclear whether the hyperparameters are optimized for the task at hand.\r\n\r\nBased on the provided code, there are several issues that might be causing the high loss and low accuracy:\r\n\r\nNo preprocessing of input data: Before feeding the input data into the model, it's important to preprocess it to make it suitable for the model. In this case, the user's and movie data are being used as is, without any preprocessing. You might want to consider normalizing or scaling the input data.\r\n\r\nNo regularization: The model seems to have a lot of capacity and could be overfitting to the training data. To prevent this, it's important to include regularization techniques such as L1/L2 regularization, dropout or batch normalization layers.\r\n\r\nLoss function: It's important to choose the right loss function for the problem at hand. In this case, since it's a regression problem, using mean squared error (MSE) as the loss function might be more appropriate.\r\n\r\nCode Which might help:\r\n\r\nmean_user = np.mean(users)\r\nstd_user = np.std(users)\r\nusers_norm = (users - mean_user) / std_user\r\n\r\nmean_movies = np.mean(movies, axis=0)\r\nstd_movies = np.std(movies, axis=0)\r\nmovies_norm = (movies - mean_movies) / std_movies\r\n\r\nuser_NN = tf.keras.models.Sequential([\r\n tf.keras.layers.Dense(256, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(128, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(64, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(num_outputs, activation='linear'),\r\n])\r\n\r\nitem_NN = tf.keras.models.Sequential([\r\n tf.keras.layers.Dense(256, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(128, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(64, activation='relu'),\r\n tf.keras.layers.Dropout(0.5),\r\n tf.keras.layers.Dense(num_outputs, activation='linear'), \r\n])\r\nmodel.compile(optimizer='adam', loss='mse')\r\n", "Hi @orlean12 Thanks for reporting the issue. \r\n\r\nIn order to expedite the trouble-shooting process, please provide accessible files with colab gist/code snippet to reproduce the issue reported here. That will help better understand and investigate the issue further.\r\n\r\nAre you trying to reproduce https://www.tensorflow.org/recommenders/examples/quickstart locally for custom data and hitting problems?\r\n\r\nIf so, can you please mention what steps have you changed?\r\n\r\nThanks!", "hello. I tried @NiharJani2002 's input, changing things around in the dataset, and yet I still struggle with low success rates- that is, until I removed the l2.normalize layer for the input vector. after doing so the loss rate had jumped to incrediably low numbers- 0.004 at times. I think that something is bugged with the calculation as that is fairly impossible, and the R2 calculation for this comes out to be -10(also impossible). the hyperparameters of the model should probably be just fine, because changing them did not make any significant diffrence in my loss rates. additionally the model is already regularized, using a MSE function.\r\nI am adding a direct link to my project on colab labratory as with @pjpratik 's suggestion. Feel free to move around and change anything may that be worth changing. I think the problem has to do either with the embedding layer or the model itself.\r\nAnyways, thank you SO SO MUCH to both of you for trying to help my project. I dont know if 'tipping' is allowed or recommended in this website, but if it is i'll donate a bit to both of you as thanks once this thing works.\r\n\r\nLink to project(so far) : https://colab.research.google.com/drive/1yIqyRNw0PEcLCx9WSjHiOPyUz_Z5cHV5?usp=sharing\r\neverything beyond the R2 might be bugged.", "Hi @orlean12 I have run the code provided in Tensorflow 2.11 and observed that loss comes down as the epochs progress. Also, the resultant mse on test set is 0.003 which seems to be good. The r2 score is 0.99 and I am not sure why mean is added to the test pred. \r\n\r\n![image](https://user-images.githubusercontent.com/118897289/224649493-fd4b0125-13e7-4904-b0bc-60ba66adf522.png)\r\n\r\nPlease find the gist [here](https://colab.research.google.com/gist/pjpratik/b31c05ec01e0d0f9cbc664bba965e3f8/59944.ipynb) and let us know if it helps.\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.", "Hey @orlean12 you can check out my movie recommendation system built using content based filtering and python\r\nIt is truly a working solution\r\nhttps://github.com/amangupta201/MovieRecommendationSystem/blob/master/main.py", "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/59944\">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/59944\">No</a>\n" ]
2023-03-09T12:00:47
2023-04-04T01:55:10
2023-04-04T01:55:07
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Performance ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.8 ### Custom Code Yes ### OS Platform and Distribution Windows ### 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? ```shell I had started to train my Movie Recommender System (content based filtering) in order to guess user ratings for certain movies. However, my loss is incrediably high(7.3) my accuracy is very low(0.03) and the code barely improves- going from 7.357 loss to 7.355 in 50 epochs or so. I have no idea how to fix this problem and I tried many things including adding dropout layers, more layers, changing output and so. I think my problem might be related to the embedding layer? note: num_item_features = 21 , and the movies vector is a list of all the attributes of a certain movie. users vector is used in embedding. ``` ### Standalone code to reproduce the issue ```shell num_outputs = 32 #hyperparameter K= 32 #hyperparameter, size of embedding vector tf.random.set_seed(1) user_NN = tf.keras.models.Sequential([ tf.keras.layers.Dense(256, activation='relu'), tf.keras.layers.Dense(128, activation='relu'), tf.keras.layers.Dense(64, activation='relu'), tf.keras.layers.Dropout(.2, ), tf.keras.layers.Dense(num_outputs, activation='linear'), ]) item_NN = tf.keras.models.Sequential([ tf.keras.layers.Dense(256, activation='relu'), tf.keras.layers.Dense(128, activation='relu'), tf.keras.layers.Dense(64, activation='relu'), tf.keras.layers.Dropout(.2, ), tf.keras.layers.Dense(num_outputs, activation='linear'), ]) # create the user input and point to the base network input_user = tf.keras.layers.Input(shape=(1,)) u_emb = Embedding(N, K)(input_user) # output is (num_samples, 1, K) u_emb = Flatten()(u_emb) # now it's (num_samples, K) vu = user_NN(u_emb) vu = tf.linalg.l2_normalize(vu, axis=1) # create the item input and point to the base network input_item = tf.keras.layers.Input(shape=(num_item_features)) vm = item_NN(input_item) vm = tf.linalg.l2_normalize(vm, axis=1) # compute the dot product of the two vectors vu and vm output = tf.keras.layers.Dot(axes=1)([vu, vm]) # specify the inputs and output of the model model = tf.keras.Model([input_user, input_item], output) model.summary() history = model.fit([users, movies], ratings,callbacks=[callback], epochs=1000,batch_size=256,verbose=1,shuffle=True) num_item_features=movies.shape[1] users=df3['userId'].to_numpy() ratings=df3['rating'].to_numpy() ``` ### Relevant log output ```shell Epoch 1/1000 511/511 [==============================] - 8s 12ms/step - loss: 7.5963 - accuracy: 0.0308 Epoch 2/1000 511/511 [==============================] - 8s 16ms/step - loss: 7.5560 - accuracy: 0.0311 Epoch 3/1000 511/511 [==============================] - 6s 12ms/step - loss: 7.5555 - accuracy: 0.0311 Epoch 4/1000 511/511 [==============================] - 8s 15ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 5/1000 511/511 [==============================] - 6s 13ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 6/1000 511/511 [==============================] - 7s 14ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 7/1000 511/511 [==============================] - 7s 13ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 8/1000 511/511 [==============================] - 7s 13ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 9/1000 511/511 [==============================] - 8s 15ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 10/1000 511/511 [==============================] - 6s 12ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 11/1000 511/511 [==============================] - 8s 16ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 12/1000 511/511 [==============================] - 6s 12ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 13/1000 511/511 [==============================] - 8s 16ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 14/1000 511/511 [==============================] - 9s 17ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 15/1000 511/511 [==============================] - 8s 15ms/step - loss: 7.5554 - accuracy: 0.0311 Epoch 16/1000 511/511 [==============================] - 6s 12ms/step - loss: 7.5554 - accuracy: 0.0311 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59944/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/59944/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59943
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59943/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59943/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59943/events
https://github.com/tensorflow/tensorflow/issues/59943
1,616,815,332
I_kwDOArmXAs5gXqTk
59,943
Errors building Tensorflow from source
{ "login": "mikcla", "id": 57093584, "node_id": "MDQ6VXNlcjU3MDkzNTg0", "avatar_url": "https://avatars.githubusercontent.com/u/57093584?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mikcla", "html_url": "https://github.com/mikcla", "followers_url": "https://api.github.com/users/mikcla/followers", "following_url": "https://api.github.com/users/mikcla/following{/other_user}", "gists_url": "https://api.github.com/users/mikcla/gists{/gist_id}", "starred_url": "https://api.github.com/users/mikcla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mikcla/subscriptions", "organizations_url": "https://api.github.com/users/mikcla/orgs", "repos_url": "https://api.github.com/users/mikcla/repos", "events_url": "https://api.github.com/users/mikcla/events{/privacy}", "received_events_url": "https://api.github.com/users/mikcla/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": 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": 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 @mikcla ,\r\n\r\nThanks for reporting the issues.\r\nCould you please confirm whether you have followed all the instructions mentioned [here](https://www.tensorflow.org/install/source_windows#setup_for_windows).\r\n\r\nAlso the options from .bazelrc file for AVX instructions:\r\n```\r\nbuild:native_arch_linux --copt=-march=native\r\nbuild:avx_win --copt=/arch=AVX\r\nbuild:avx2_win --copt=/arch=AVX2\r\n```\r\nThe command you have used --copt=-march=native might be for linux only. Could you try the remaining two options.\r\n\r\nAlso for TF2.11 tested Bazel version is 5.3.0 which some times may raise compatibility issues.Please see tested configurations from [here](https://www.tensorflow.org/install/source_windows#tested_build_configurations).", "I have follwed the instructions to my best abillty, and i am using TF 2.11.0 and Bazel 5.3.0. And what command should i type? You typed 3.", "Did you tried adding `--copt=/arch=AVX ` `--copt=/arch=AVX2` to the command ? Please confirm.\r\n", "@mikcla @SuryanarayanaY I was able to run the bazel build --config=opt --copt=-march=native //tensorflow/tools/pip_package:build_pip_package successfully for TF 2.11.0 with Bazel 5.3.0 on Windows 10 and for Python 3.10. I think this error is related to the path/environmental variable setup", "@mraunak I think so to, but I don't how to fix this, I have tried to set system variables, change the path in one of the config files and also tried to change the path in cmd. I am using windows 11 btw.\r\n\r\nI’m sorry I don't have everything on hand because I kept moving on with my project, so I took some steps back, and ran simply ran pip install. However I’m willing to try to build from source again some time, but want to have something new to try beforehand.", "@mikcla ,\r\n\r\nFrom the error log I observed that Python3 library not being detected.This seems issue with some path setting.Also please ensure all the REQUIRED_PACKAGES mentioned in [setup.py](https://github.com/tensorflow/tensorflow/blob/r2.11/tensorflow/tools/pip_package/setup.py) installed before bazel build.\r\n\r\nWhile installing bazel please ensure all these steps mentioned [here](https://bazel.build/install/windows) were followed correctly or not.As other contributor confirmed that he succeeded the build with same commands of your's it might be mostly related to your environment.\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/59943\">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/59943\">No</a>\n", "Hi @mikcla Python path setup, please follow the commands below. To check the path setup of a specific variable if the path set up is correct run sample commands: 'echo %PATH%' or echo %PYTHON_BIN_PATH%\r\n\r\nset PATH=path/to/python [e.g. (C:/Python310)]\r\nset PATH=path/to/python/Scripts [e.g. (C:/Python310/Scripts)] \r\nset PYTHON_BIN_PATH=path/to/python_virtualenv/Scripts/python.exe \r\nset PYTHON_LIB_PATH=path/to/python virtualenv/lib/site-packages \r\nset PYTHON_DIRECTORY=path/to/python_virtualenv/Scripts " ]
2023-03-09T09:43:30
2023-04-14T22:45:49
2023-03-31T01:56:23
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.11.0 ### Custom Code No ### OS Platform and Distribution Windows 11 ### Mobile device _No response_ ### Python version 3.10.10 ### Bazel version 5.3.0 ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I am trying to build Tensorflow from source, so i can use AVX, AVX2 and so on. I typed this command, expecting to build Tensorflow with all supported instruction-sets, my pc supports: bazel build --config=opt --copt=-march=native //tensorflow/tools/pip_package:build_pip_package ``` ### Standalone code to reproduce the issue ```shell I get these errors: ERROR: An error occurred during the fetch of repository 'llvm-project': Traceback (most recent call last): File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary ERROR: C:/users/micla/code/python/diceml/tensorflow/WORKSPACE:15:14: fetching llvm_configure rule //external:llvm-project: Traceback (most recent call last): File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary ERROR: C:/users/micla/code/python/diceml/tensorflow/tensorflow/tools/pip_package/BUILD:276:10: //tensorflow/tools/pip_package:build_pip_package depends on //tensorflow/compiler/mlir/tensorflow:gen_mlir_passthrough_op_py in repository @ which failed to fetch. no such package '@llvm-project//mlir': Failed to find python3 binary ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed FAILED: Build did NOT complete successfully (51 packages loaded, 12 targets config\ ured) currently loading: tensorflow/lite/tools ... (3 packages) Fetching https://storage.googleapis.com/.../flatbuffers/archive/v2.0.6.tar.gz ``` ### Relevant log output ```shell INFO: Reading 'startup' options from c:\users\micla\code\python\diceml\tensorflow\.bazelrc: --output_user_root=C:/tmp, --windows_enable_symlinks INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=84 INFO: Reading rc options for 'build' from c:\users\micla\code\python\diceml\tensorflow\.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Options provided by the client: 'build' options: --python_path=C:/Users/micla/AppData/Local/Microsoft/WindowsApps/python.exe INFO: Reading rc options for 'build' from c:\users\micla\code\python\diceml\tensorflow\.bazelrc: 'build' options: --enable_runfiles --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 c:\users\micla\code\python\diceml\tensorflow\.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=C:/Users/micla/AppData/Local/Programs/Python/Python310/python.exe --action_env PYTHON_LIB_PATH=C:/Users/micla/AppData/Local/Programs/Python/Python310/lib/site-packages --python_path=C:/Users/micla/AppData/Local/Programs/Python/Python310/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true INFO: Reading rc options for 'build' from c:\users\micla\code\python\diceml\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 INFO: Found applicable config definition build:short_logs in file c:\users\micla\code\python\diceml\tensorflow\.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file c:\users\micla\code\python\diceml\tensorflow\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:opt in file c:\users\micla\code\python\diceml\tensorflow\.tf_configure.bazelrc: --copt=/arch:AVX2 --host_copt=/arch:AVX2 INFO: Found applicable config definition build:windows in file c:\users\micla\code\python\diceml\tensorflow\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file --distinct_host_configuration=false INFO: Found applicable config definition build:monolithic in file c:\users\micla\code\python\diceml\tensorflow\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/85488e9aae621ec5175b94fc5e31e41b7e5e06ac.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/65f68812d399930d4af587c7a2333e46f367c5a7.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 INFO: Repository llvm-project instantiated at: C:/users/micla/code/python/diceml/tensorflow/WORKSPACE:15:14: in <toplevel> C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:975:21: in workspace C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:539:15: in _tf_repositories C:/users/micla/code/python/diceml/tensorflow/third_party/llvm/setup.bzl:22:19: in llvm_setup Repository rule llvm_configure defined at: C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl:169:33: in <toplevel> ERROR: An error occurred during the fetch of repository 'llvm-project': Traceback (most recent call last): File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary ERROR: C:/users/micla/code/python/diceml/tensorflow/WORKSPACE:15:14: fetching llvm_configure rule //external:llvm-project: Traceback (most recent call last): File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/tmp/hn4nqluc/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary INFO: Repository build_bazel_rules_android instantiated at: C:/users/micla/code/python/diceml/tensorflow/WORKSPACE:15:14: in <toplevel> C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:975:21: in workspace C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:814:20: in _tf_repositories C:/users/micla/code/python/diceml/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive Repository rule _tf_http_archive defined at: C:/users/micla/code/python/diceml/tensorflow/third_party/repo.bzl:89:35: in <toplevel> INFO: Repository flatbuffers instantiated at: C:/users/micla/code/python/diceml/tensorflow/WORKSPACE:15:14: in <toplevel> C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:968:28: in workspace C:/users/micla/code/python/diceml/tensorflow/tensorflow/workspace2.bzl:65:16: in _initialize_third_party C:/users/micla/code/python/diceml/tensorflow/third_party/flatbuffers/workspace.bzl:6:20: in repo C:/users/micla/code/python/diceml/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive Repository rule _tf_http_archive defined at: C:/users/micla/code/python/diceml/tensorflow/third_party/repo.bzl:89:35: in <toplevel> ERROR: C:/users/micla/code/python/diceml/tensorflow/tensorflow/tools/pip_package/BUILD:276:10: //tensorflow/tools/pip_package:build_pip_package depends on //tensorflow/compiler/mlir/tensorflow:gen_mlir_passthrough_op_py in repository @ which failed to fetch. no such package '@llvm-project//mlir': Failed to find python3 binary ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed INFO: Elapsed time: 399.994s INFO: 0 processes. FAILED: Build did NOT complete successfully (51 packages loaded, 12 targets config\ ured) currently loading: tensorflow/lite/tools ... (3 packages) Fetching https://storage.googleapis.com/.../flatbuffers/archive/v2.0.6.tar.gz ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59943/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/59943/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59942
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59942/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59942/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59942/events
https://github.com/tensorflow/tensorflow/pull/59942
1,616,812,435
PR_kwDOArmXAs5Lpxt2
59,942
Use llvm-raw override for build w/ local LLVM repo
{ "login": "RoboTux", "id": 272327, "node_id": "MDQ6VXNlcjI3MjMyNw==", "avatar_url": "https://avatars.githubusercontent.com/u/272327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RoboTux", "html_url": "https://github.com/RoboTux", "followers_url": "https://api.github.com/users/RoboTux/followers", "following_url": "https://api.github.com/users/RoboTux/following{/other_user}", "gists_url": "https://api.github.com/users/RoboTux/gists{/gist_id}", "starred_url": "https://api.github.com/users/RoboTux/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RoboTux/subscriptions", "organizations_url": "https://api.github.com/users/RoboTux/orgs", "repos_url": "https://api.github.com/users/RoboTux/repos", "events_url": "https://api.github.com/users/RoboTux/events{/privacy}", "received_events_url": "https://api.github.com/users/RoboTux/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": 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
[ "Michael, I think you're a better reviewer for this (or able to find one) than me.", "Thanks Mihai, It looks fine to me but let me ask someone working closer on the mlir side to take a look. ", "Geoffrey i was pointed your way as someone who would be good to take a look if you don't mind. ", "Looks like there's a typo in L33 of this PR: `LLVM_BAZEL_OVERLAY` should be `LLVM_SRC` as overlay is not used here.", "(Sorry for the late comments, I had missed the submit comment button)" ]
2023-03-09T09:41:56
2023-03-15T09:23:18
2023-03-14T21:51:09
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59942", "html_url": "https://github.com/tensorflow/tensorflow/pull/59942", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59942.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59942.patch", "merged_at": "2023-03-14T21:51:09" }
Building with a llvm-project override to use a local LLVM repo as instructed by tensorflow/compiler/mlir/README.md fails due to missing vars.bzl. Instead of adding one more step to create this file in the Readme, this commit instead instruct to override llvm-raw target. This let llvm_configure() set up the bazel overlay and set it up and also saves on pointless LLVM download. Fixes #59739
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59942/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/59942/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59941
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59941/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59941/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59941/events
https://github.com/tensorflow/tensorflow/issues/59941
1,616,657,103
I_kwDOArmXAs5gXDrP
59,941
Experimental feature support for TFLite selective build
{ "login": "heruoxin", "id": 1999794, "node_id": "MDQ6VXNlcjE5OTk3OTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1999794?v=4", "gravatar_id": "", "url": "https://api.github.com/users/heruoxin", "html_url": "https://github.com/heruoxin", "followers_url": "https://api.github.com/users/heruoxin/followers", "following_url": "https://api.github.com/users/heruoxin/following{/other_user}", "gists_url": "https://api.github.com/users/heruoxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/heruoxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/heruoxin/subscriptions", "organizations_url": "https://api.github.com/users/heruoxin/orgs", "repos_url": "https://api.github.com/users/heruoxin/repos", "events_url": "https://api.github.com/users/heruoxin/events{/privacy}", "received_events_url": "https://api.github.com/users/heruoxin/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" } ]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "The problem has been solved.\r\nhttps://github.com/tensorflow/tensorflow/issues/59102 add the option echo -n \"build --config=monolithic\" >> /tensorflow_src/.bazelrc can avoid the _ZNK6google8protobuf7Message11GetTypeNameEv error.\r\n\r\n" ]
2023-03-09T08:11:52
2023-03-09T12:00:23
2023-03-09T12:00:22
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.11-tflite-android ### Custom Code No ### Current Behaviour? I have followed [the tutorial](https://www.tensorflow.org/lite/examples/on_device_training/overview) and made my TextCNN model have the ability of on-device-training. It works well with the prebuilt library for tensorflow-lite. When trying to [reduce the binary size](https://www.tensorflow.org/lite/guide/reduce_binary_size) with the docker environment I found that the Java API such as `Interpreter#runSignature` is a part of experimental feature, which not enabled by the [tensorflow/lite/tools/build_aar.sh](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/build_aar.sh). I have tried to add `experimental = True` to `tflite_custom_android_library()` function on line 73 of the `build_aar.sh` and rebuild, got the `tensorflow-lite.aar` and `tensorflow-lite-select-tf-ops.aar`. It seems that `tensorflow-lite.aar` does have the experimental feature code and works. But `tensorflow-lite-select-tf-ops.aar` failure to run on Android device with error: ``` java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNK6google8protobuf7Message11GetTypeNameEv" referenced by "/data/app/*/lib/arm64/libtensorflowlite_flex_jni.so"... ``` I could not find any flag like `experimental = True` for select-tf-ops to enable. Is it possible to enable experimental features for TFLite selective build? ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59941/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/59941/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59940
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59940/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59940/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59940/events
https://github.com/tensorflow/tensorflow/issues/59940
1,616,477,272
I_kwDOArmXAs5gWXxY
59,940
Tensorflow2.11 build error /root/tensorflow/tensorflow/lite/python/BUILD:68:10 Middleman _middlemen/tensorflow_Slite_Spython_Stflite_Uconvert-runfiles failed:
{ "login": "south-ocean", "id": 30514703, "node_id": "MDQ6VXNlcjMwNTE0NzAz", "avatar_url": "https://avatars.githubusercontent.com/u/30514703?v=4", "gravatar_id": "", "url": "https://api.github.com/users/south-ocean", "html_url": "https://github.com/south-ocean", "followers_url": "https://api.github.com/users/south-ocean/followers", "following_url": "https://api.github.com/users/south-ocean/following{/other_user}", "gists_url": "https://api.github.com/users/south-ocean/gists{/gist_id}", "starred_url": "https://api.github.com/users/south-ocean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/south-ocean/subscriptions", "organizations_url": "https://api.github.com/users/south-ocean/orgs", "repos_url": "https://api.github.com/users/south-ocean/repos", "events_url": "https://api.github.com/users/south-ocean/events{/privacy}", "received_events_url": "https://api.github.com/users/south-ocean/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": 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": 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": 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": "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
[ "use the same setting in the centos8 can build tensorflow2.11 successfully. but i want use the version with centos7.", "@south-ocean,\r\nOn CentOS7 while installing the python3 package, it might give the Python 3.6 interpreter which was not supported for the tensorflow 2.11. Please take a look at the official doc link for the [reference](https://www.tensorflow.org/install/source#gpu) and try to install the tf v2.11 with a compatible version as mentioned.\r\n![Screenshot 2023-03-13 1 36 18 PM](https://user-images.githubusercontent.com/81610181/224642202-fc3e0e06-2605-41ee-8610-91f5df980949.png)\r\n\r\nAnd kindly try this command and [comment](https://github.com/tensorflow/tensorflow/issues/56665) from the [contributor](https://github.com/tensorflow/tensorflow/issues/44692#issuecomment-932906041):\r\n\r\n`bazel build --config=opt --per_file_copt=//tensorflow/.*\\.cc@-g,-O0 tensorflow/tools/pip_package:build_pip_package`\r\n\r\nThank you!\r\n\r\n\r\n", "Thank you for your reply, actually, i have installed the python3.7 and upgraded the gcc to 9.4, it also meet the error.", "@south-ocean,\r\nApologies for the delay. And kindly try this command and https://github.com/tensorflow/tensorflow/issues/56665 from the https://github.com/tensorflow/tensorflow/issues/44692#issuecomment-932906041 and also try install tensorflow with python v3.8.\r\n\r\n**bazel build --config=opt --per_file_copt=//tensorflow/.*\\.cc@-g,-O0 tensorflow/tools/pip_package:build_pip_package**\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/59940\">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/59940\">No</a>\n" ]
2023-03-09T05:57:43
2023-04-05T01:47:58
2023-04-05T01:47:55
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.11 ### Custom Code Yes ### OS Platform and Distribution centos7.6 ### Mobile device _No response_ ### Python version python3.7.12 ### Bazel version 5.0.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! ``` ### Standalone code to reproduce the issue ```shell # Configuration: 97a3a0fa2bd0b7dd271cfd175d4f2e3372d12545074b079e511143f09e7a2e7c # Execution platform: @local_execution_config_platform//:platform 2023-03-09 05:22:40.181096: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 22, in <module> from tensorflow.python.tools.api.generator import doc_srcs File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 36, in <module> from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 78, in <module> f'{traceback.format_exc()}' ImportError: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common causes and solutions. If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message. Target //tensorflow/tools/pip_package:build_pip_package failed to build ERROR: /root/tensorflow/tensorflow/lite/python/BUILD:68:10 Middleman _middlemen/tensorflow_Slite_Spython_Stflite_Uconvert-runfiles failed: (Exit 1): bash failed: error executing command (cd /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow && \ exec env - \ ``` ### Relevant log output ```shell /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2 --root_init_template=tensorflow/api_template.__init__.py --apidir=bazel-out/k8-opt/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=static --loading=default bazel-out/k8-opt/bin/tensorflow/_api/v2/v2.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/autograph/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/decorator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/dispatch/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/distribute/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/distribute/combinations/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/distribute/interim/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/distribute/multi_process_runner/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/eager_context/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/feature_column/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/function/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/graph_util/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/mixed_precision/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/monitoring/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/nest/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/smart_cond/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/test/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/test/combinations/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/tf2/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/train/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/types/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/saved_model/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/saved_model/load/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__internal__/tracking/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/__operators__/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/audio/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/autograph/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/autograph/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/autodiff/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/bitwise/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/config/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/config/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/config/optimizer/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/config/threading/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/data/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/data/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/data/experimental/service/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/debugging/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/debugging/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/cluster_resolver/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/coordinator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/experimental/coordinator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/experimental/partitioners/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/distribute/experimental/rpc/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/dtypes/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/errors/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/dtensor/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/numpy/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/numpy/random/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/tensorrt/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/experimental/dlpack/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/feature_column/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/io/gfile/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/graph_util/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/image/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/io/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/queue/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/linalg/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/linalg/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/experimental/authoring/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/python/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lookup/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/lookup/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/math/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/math/special/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/mlir/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/mlir/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/nest/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/nn/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/nn/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/profiler/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/profiler/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/profiler/experimental/client/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/profiler/experimental/server/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/quantization/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/ragged/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/random/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/random/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/raw_ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/saved_model/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/saved_model/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/sets/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/signal/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/sparse/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/strings/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/summary/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/summary/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/sysconfig/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/test/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/tpu/experimental/embedding/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/tpu/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/tpu/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/train/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/train/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/types/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/types/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/types/experimental/distributed/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/version/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/xla/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/xla/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/autograph/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/decorator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/dispatch/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/combinations/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/interim/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/multi_process_runner/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/eager_context/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/feature_column/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/function/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/graph_util/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/mixed_precision/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/monitoring/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/nest/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/smart_cond/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/test/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/test/combinations/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/tf2/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/train/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/types/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/saved_model/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/saved_model/load/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/tracking/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/__operators__/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/audio/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/autograph/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/autograph/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/autodiff/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/bitwise/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/config/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/config/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/config/optimizer/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/config/threading/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/data/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/data/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/data/experimental/service/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/debugging/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/debugging/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/cluster_resolver/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/coordinator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/coordinator/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/partitioners/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/rpc/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/dtypes/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/errors/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/dtensor/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/numpy/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/numpy/random/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/tensorrt/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/experimental/dlpack/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/feature_column/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/io/gfile/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/graph_util/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/image/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/io/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/queue/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/linalg/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/linalg/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/authoring/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/python/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lookup/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/lookup/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/math/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/math/special/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/mlir/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/mlir/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/nest/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/nn/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/nn/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/profiler/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/client/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/server/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/quantization/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/ragged/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/random/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/random/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/raw_ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/saved_model/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/saved_model/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/sets/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/signal/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/sparse/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/strings/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/summary/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/summary/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/sysconfig/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/test/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/tpu/experimental/embedding/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/tpu/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/tpu/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/train/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/train/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/types/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/types/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/types/experimental/distributed/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/version/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/xla/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/xla/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/app/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/audio/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/autograph/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/autograph/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/bitwise/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/config/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/config/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/config/optimizer/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/config/threading/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/data/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/data/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/data/experimental/service/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/debugging/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/debugging/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/distribute/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/distribute/cluster_resolver/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/distribute/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/distributions/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/dtypes/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/errors/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/feature_column/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/gfile/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/io/gfile/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/graph_util/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/image/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/io/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/queue/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/initializers/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/layers/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/layers/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/linalg/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/linalg/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/constants/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/authoring/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/python/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/logging/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lookup/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/lookup/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/losses/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/manip/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/math/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/math/special/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/metrics/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/mixed_precision/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/mixed_precision/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/mlir/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/mlir/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/nest/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/nn/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/nn/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/nn/rnn_cell/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/profiler/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/python_io/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/quantization/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/ragged/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/random/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/random/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/raw_ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/resource_loader/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/strings/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/builder/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/constants/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/loader/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/main_op/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/signature_constants/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/signature_def_utils/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/tag_constants/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/utils/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/sets/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/signal/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/sparse/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/spectral/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/summary/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/sysconfig/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/test/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/tpu/experimental/embedding/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/tpu/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/tpu/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/train/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/train/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/train/queue_runner/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/types/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/types/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/user_ops/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/version/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/xla/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/xla/experimental/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/compat/v1/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/compat/v2/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/compat/v1/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v1/compat/v2/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/compat/v1/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/compat/v2/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/compat/v1/compat/__init__.py bazel-out/k8-opt/bin/tensorflow/_api/v2/compat/v2/compat/v2/compat/__init__.py') # Configuration: 97a3a0fa2bd0b7dd271cfd175d4f2e3372d12545074b079e511143f09e7a2e7c # Execution platform: @local_execution_config_platform//:platform 2023-03-09 05:22:40.181096: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 22, in <module> from tensorflow.python.tools.api.generator import doc_srcs File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 36, in <module> from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 78, in <module> f'{traceback.format_exc()}' ImportError: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common causes and solutions. If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message. Target //tensorflow/tools/pip_package:build_pip_package failed to build ERROR: /root/tensorflow/tensorflow/lite/python/BUILD:68:10 Middleman _middlemen/tensorflow_Slite_Spython_Stflite_Uconvert-runfiles failed: (Exit 1): bash failed: error executing command (cd /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow && \ ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59940/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/59940/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59939
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59939/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59939/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59939/events
https://github.com/tensorflow/tensorflow/pull/59939
1,616,427,407
PR_kwDOArmXAs5Loc8X
59,939
Updated the broken link in customized_task_api.md
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/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": 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
[ "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!" ]
2023-03-09T05:12:02
2023-09-07T03:42:00
2023-09-07T03:41:59
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59939", "html_url": "https://github.com/tensorflow/tensorflow/pull/59939", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59939.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59939.patch", "merged_at": "2023-09-07T03:41:59" }
Fix broken link for `BertQuestionAnswerer` in line 43 and in line 106
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59939/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/59939/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59938
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59938/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59938/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59938/events
https://github.com/tensorflow/tensorflow/issues/59938
1,616,159,558
I_kwDOArmXAs5gVKNG
59,938
Windows build fails with "pywrap_tensorflow_import_lib_file: variable '$<' : no input file"
{ "login": "AndrewVallette", "id": 11849403, "node_id": "MDQ6VXNlcjExODQ5NDAz", "avatar_url": "https://avatars.githubusercontent.com/u/11849403?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AndrewVallette", "html_url": "https://github.com/AndrewVallette", "followers_url": "https://api.github.com/users/AndrewVallette/followers", "following_url": "https://api.github.com/users/AndrewVallette/following{/other_user}", "gists_url": "https://api.github.com/users/AndrewVallette/gists{/gist_id}", "starred_url": "https://api.github.com/users/AndrewVallette/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AndrewVallette/subscriptions", "organizations_url": "https://api.github.com/users/AndrewVallette/orgs", "repos_url": "https://api.github.com/users/AndrewVallette/repos", "events_url": "https://api.github.com/users/AndrewVallette/events{/privacy}", "received_events_url": "https://api.github.com/users/AndrewVallette/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": 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": 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": 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" }, { "id": 5244472328, "node_id": "LA_kwDOArmXAs8AAAABOJhMCA", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:cpu-intel", "name": "subtype:cpu-intel", "color": "507561", "default": false, "description": "To track windows cpu issues" } ]
closed
false
{ "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/received_events", "type": "User", "site_admin": false }
[ { "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/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
[ "@AndrewVallette I was getting a similar error and I resolved it by creating a fresh virtual environment and cloning TensorFlow. Please let us know if this helps.", "@mraunak Thank you, but this did not solve my issue. Today I tried another build in a fresh environment, just in case, but no luck.", "@AndrewVallette try the command: \"bazel clean --expunge\" to clean the bazel cache and then re-rerun the build. I observed you are using --config=mkl, https://github.com/tensorflow/tensorflow/blob/master/.bazelrc#L222 as per the documentation it is yet to be supported on windows. you may need to remove --config=mkl. ", "Hi, @AndrewVallette \r\n\r\nCould you please check above workaround from @mraunak which may help you to resolve your issue ?\r\n\r\n@sachinprasadhs, Could you please look into this issue ? Thank you!", "@AndrewVallette , Thanks for your time and effort on reporting and investigating on this issue. \r\nWe will look into this issue, meanwhile, can you check the above suggestion and check if that works.\r\nAlso, TensorFlow 2.12 is released, could you please give it a try and let us know the outcome. Thanks!\r\n\r\n@nitins17 , Do you have any pointers regarding this issue.\r\ncc: @learning-to-play \r\n", "Thank you all for the responses. I don't believe my issue is related to `mkl`, since I know that this is supported (the referenced comment is out of date).\r\n\r\nI'll try a build of `2.12`, and I will let you know how that goes!", "`2.12` still has the same issue.", "@AndrewVallette please try the command: \"bazel clean --expunge\" to clean the bazel cache and then re-\r\nrun the build", "Thank you, but I have tried that and it does not resolve the issue.", "Hi @AndrewVallette and @sachinprasadhs, I ran the bazel build command with all the arguments mentioned in the code to reproduce but was not able to reproduce the error. The build was successful on my end. In such cases, we recommend users start with the basic build command(\"bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package\") and then add the arguments one by one. Also can you please change the location of TensorFlow folder, (as it will create a new bazel output folder and will refresh the third-party dependency files download)\r\n ", "@mraunak , Thanks for verifying from your end. \r\n@AndrewVallette , Could you please follow the above comment and try from your side with the latest stable branch as well as Master branch.\r\nFor detailed guide on installing from source on Windows machine, you can follow this link https://www.tensorflow.org/install/source_windows", "@mraunak Thanks for trying out the build yourself. I can make another attempt next week, where I will start with pruning down the arguments. I still think something is funky with the recent changes to the `bazel` script.. I'll let you know what I find :) ", "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.", "The issue is still present when building with just `bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package`.\r\n\r\nI still think the problem lies with the empty `\"//tensorflow:windows\"` field found in `tensorflow/python/BUILD`, which was shown in my original report: https://github.com/tensorflow/tensorflow/blob/d5b57ca93e506df258271ea00fc29cf98383a374/tensorflow/python/BUILD#L369)", "@learning-to-play , Looks like it is related to the changes you have authored in the change list here https://github.com/tensorflow/tensorflow/commit/4ac2641eadd1d190196f1bcd26b5efdc616d90a3, Could you please take a look into this. Thanks", "Can you update the Bazel version?", "Thanks for mentioning that, I did just notice the docs say `5.3.0` for Windows **CPU** builds, but, `5.2.0` is the latest version I've been able to use at this time. I'll look into updating that, and will provide another update soon.", "I updated to `bazel 5.4.1` and the issue is no longer present, so we can consider this resolved. It looks like Windows (and only Windows) really does need `5.3.0+`. Thanks again for the help everyone!", "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/59938\">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/59938\">No</a>\n" ]
2023-03-08T23:49:53
2023-05-05T23:51:53
2023-05-05T23:51:50
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.11 ### Custom Code Yes ### OS Platform and Distribution Windows 10 ### Mobile device _No response_ ### Python version 3.10.9 ### Bazel version 5.2.0 ### GCC/Compiler version MSVC 2019 ### CUDA/cuDNN version _No response_ ### GPU model and memory CPU build ### Current Behaviour? ```shell When building `tensorflow 2.11` (and nightly) for Windows (CPU), the bazel build step fails. `ERROR: C:/tensorflow211/tensorflow/python/BUILD:3776:8: in cmd attribute of genrule rule //tensorflow/python:pywrap_tensorflow_import_lib_file: variable '$<' : no input file ERROR: C:/tensorflow211/tensorflow/python/BUILD:3776:8: Analysis of target '//tensorflow/python:pywrap_tensorflow_import_lib_file' failed ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:` The failure occurs at this genrule in python/BUILD: `tensorflow/python/BUILD:3633` `genrule( name = "pywrap_tensorflow_import_lib_file", srcs = [":get_pywrap_tensorflow_import_lib_file"], outs = ["_pywrap_tensorflow_internal.lib"], cmd = select({ "//tensorflow:windows": "cp -f $< $@", "//conditions:default": "touch $@", # Just a placeholder for Unix platforms }), visibility = ["//visibility:public"], )` My knowledge of bazel is limited, but it seems that "$<" is blank due to the empty array for //tensorflow:windows here: `tensorflow/python/BUILD:366` `dynamic_deps = [":_pywrap_tensorflow_internal.so"] + select({ "//tensorflow:macos": ["//tensorflow:libtensorflow_framework.%s.dylib" % VERSION], "//conditions:default": ["//tensorflow:libtensorflow_framework.so.%s" % VERSION], "//tensorflow:windows": [], }),` Any help getting this to build is appreciated. Thanks! ``` ### Standalone code to reproduce the issue ```shell /c/tf211/tensorflow-base/_h_env/Library/bin/bazel build --config=mkl --define=no_tensorflow_py_deps=true --verbose_failures --config=opt --copt=-D_copysign=copysign --host_copt=-D_copysign=copysign --cxxopt=-D_copysign=copysign --host_cxxopt=-D_copysign=copysign --python_path=/c/tf211/tensorflow-base/_h_env/python.exe --action_env=PYTHON_BIN_PATH=/c/tf211/tensorflow-base/_h_env/python.exe --action_env=PYTHON_LIB_PATH=/c/tf211/tensorflow-base/_h_env/Lib/site-packages '--linkopt=-LC:\tf211\tensorflow-base\_h_env\Library' --strip=always --experimental_cc_shared_library //tensorflow/tools/pip_package:build_pip_package ``` ### Relevant log output ```shell + /c/tf211/tensorflow-base/_h_env/Library/bin/bazel build --config=mkl --define=no_tensorflow_py_deps=true --verbose_failures --config=opt --copt=-D_copysign=copysign --host_copt=-D_copysign=copysign --cxxopt=-D_copysign=copysign --host_cxxopt=-D_copysign=copysign --python_path=/c/tf211/tensorflow-base/_h_env/python.exe --action_env=PYTHON_BIN_PATH=/c/tf211/tensorflow-base/_h_env/python.exe --action_env=PYTHON_LIB_PATH=/c/tf211/tensorflow-base/_h_env/Lib/site-packages '--linkopt=-LC:\tf211\tensorflow-base\_h_env\Library' --strip=always --experimental_cc_shared_library //tensorflow/tools/pip_package:build_pip_package Starting local Bazel server and connecting to it... WARNING: Option 'java_toolchain' is deprecated WARNING: Option 'host_java_toolchain' is deprecated WARNING: Option 'experimental_strict_action_env' is deprecated: Use --incompatible_strict_action_env instead INFO: Reading 'startup' options from c:\tf211\tensorflow-base\work\.bazelrc: --output_user_root=C:/tmp INFO: Options provided by the client: Inherited 'common' options: --isatty=0 --terminal_columns=80 INFO: Reading rc options for 'build' from c:\tf211\tensorflow-base\work\.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Options provided by the client: 'build' options: --python_path=C:/tf211/tensorflow-base/_h_env/python.exe INFO: Reading rc options for 'build' from c:\tf211\tensorflow-base\work\.bazelrc: 'build' options: --define framework_shared_object=true --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain --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 --config=short_logs --config=v2 INFO: Reading rc options for 'build' from c:\tf211\tensorflow-base\work\.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=C:/tf211/tensorflow-base/_h_env/python.exe --action_env PYTHON_LIB_PATH=C:/tf211/tensorflow-base/_h_env/Lib/site-packages --python_path=C:/tf211/tensorflow-base/_h_env/python.exe --define=with_xla_support=false --define=PREFIX=C:/tf211/tensorflow-base/_h_env --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true INFO: Found applicable config definition build:short_logs in file c:\tf211\tensorflow-base\work\.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file c:\tf211\tensorflow-base\work\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:mkl in file c:\tf211\tensorflow-base\work\.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 c:\tf211\tensorflow-base\work\.tf_configure.bazelrc: --copt=/arch:AVX --host_copt=/arch:AVX INFO: Found applicable config definition build:windows in file c:\tf211\tensorflow-base\work\.bazelrc: --copt=/W0 --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/experimental:preprocessor --host_copt=/experimental:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --experimental_strict_action_env=true --verbose_failures --distinct_host_configuration=false --copt=/Zc:__cplusplus INFO: Found applicable config definition build:monolithic in file c:\tf211\tensorflow-base\work\.bazelrc: --define framework_shared_object=false 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 Loading: 0 packages loaded Loading: 0 packages loaded Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (285 packages loaded, 4132 targets configured) ERROR: C:/tf211/tensorflow-base/work/tensorflow/python/BUILD:3633:8: in cmd attribute of genrule rule //tensorflow/python:pywrap_tensorflow_import_lib_file: variable '$<' : no input file ERROR: C:/tf211/tensorflow-base/work/tensorflow/python/BUILD:3633:8: Analysis of target '//tensorflow/python:pywrap_tensorflow_import_lib_file' failed ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59938/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/59938/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59937
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59937/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59937/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59937/events
https://github.com/tensorflow/tensorflow/pull/59937
1,616,146,325
PR_kwDOArmXAs5Lngg1
59,937
[TFLite] Add support for int8 quantized DivOp
{ "login": "lgeiger", "id": 13285808, "node_id": "MDQ6VXNlcjEzMjg1ODA4", "avatar_url": "https://avatars.githubusercontent.com/u/13285808?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lgeiger", "html_url": "https://github.com/lgeiger", "followers_url": "https://api.github.com/users/lgeiger/followers", "following_url": "https://api.github.com/users/lgeiger/following{/other_user}", "gists_url": "https://api.github.com/users/lgeiger/gists{/gist_id}", "starred_url": "https://api.github.com/users/lgeiger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lgeiger/subscriptions", "organizations_url": "https://api.github.com/users/lgeiger/orgs", "repos_url": "https://api.github.com/users/lgeiger/repos", "events_url": "https://api.github.com/users/lgeiger/events{/privacy}", "received_events_url": "https://api.github.com/users/lgeiger/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": 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" } ]
open
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 @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @lgeiger Can you please resolve conflicts? Thank you!", "Hi @lgeiger Can you please resolve conflicts? Thank you!", "Hi @lgeiger Can you please resolve conflicts? Thank you!", "> Hi @lgeiger Can you please resolve conflicts? Thank you!\r\n\r\n@gbaned Rebased the PR. Out of interest will this ever be merged? It's been 10 months since I opened it without a response...", "Hi @rascani Can you please review this PR ? Thank you!", "Hi @rascani Can you please review this PR ? Thank you!" ]
2023-03-08T23:34:57
2024-06-05T08:25:32
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59937", "html_url": "https://github.com/tensorflow/tensorflow/pull/59937", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59937.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59937.patch", "merged_at": null }
This PR adds support for quantized int8 inputs and outputs to the `div` op. TFLite Micro added support for int8 quantized divides in https://github.com/tensorflow/tflite-micro/pull/1196, but until now the MLIR based converter would force the op to stay in float due to missing TFLite support for it. This PR fixes this and adds support for int8 quantized divide ops to TFLite and the converter.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59937/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/59937/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59936
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59936/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59936/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59936/events
https://github.com/tensorflow/tensorflow/pull/59936
1,615,642,140
PR_kwDOArmXAs5Llzl3
59,936
[NVIDIA XLA] Disable TF32 evaluation for SelfAdjointEigTest cases.
{ "login": "nluehr", "id": 1873655, "node_id": "MDQ6VXNlcjE4NzM2NTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1873655?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nluehr", "html_url": "https://github.com/nluehr", "followers_url": "https://api.github.com/users/nluehr/followers", "following_url": "https://api.github.com/users/nluehr/following{/other_user}", "gists_url": "https://api.github.com/users/nluehr/gists{/gist_id}", "starred_url": "https://api.github.com/users/nluehr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nluehr/subscriptions", "organizations_url": "https://api.github.com/users/nluehr/orgs", "repos_url": "https://api.github.com/users/nluehr/repos", "events_url": "https://api.github.com/users/nluehr/events{/privacy}", "received_events_url": "https://api.github.com/users/nluehr/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": 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
[]
2023-03-08T17:26:42
2023-04-04T17:52:07
2023-03-09T13:10:58
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59936", "html_url": "https://github.com/tensorflow/tensorflow/pull/59936", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59936.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59936.patch", "merged_at": "2023-03-09T13:10:58" }
When run on Ampere and newer GPUs some of the self adjoint eigenvalue test cases may fall outside of the float32-calibrated tolerances. This PR disabled TF32 for these tests.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59936/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/59936/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59935
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59935/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59935/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59935/events
https://github.com/tensorflow/tensorflow/issues/59935
1,615,488,651
I_kwDOArmXAs5gSmaL
59,935
third_party/icu/data missing big-endian conversion data files
{ "login": "jonathan-albrecht-ibm", "id": 74002225, "node_id": "MDQ6VXNlcjc0MDAyMjI1", "avatar_url": "https://avatars.githubusercontent.com/u/74002225?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathan-albrecht-ibm", "html_url": "https://github.com/jonathan-albrecht-ibm", "followers_url": "https://api.github.com/users/jonathan-albrecht-ibm/followers", "following_url": "https://api.github.com/users/jonathan-albrecht-ibm/following{/other_user}", "gists_url": "https://api.github.com/users/jonathan-albrecht-ibm/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathan-albrecht-ibm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathan-albrecht-ibm/subscriptions", "organizations_url": "https://api.github.com/users/jonathan-albrecht-ibm/orgs", "repos_url": "https://api.github.com/users/jonathan-albrecht-ibm/repos", "events_url": "https://api.github.com/users/jonathan-albrecht-ibm/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathan-albrecht-ibm/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" } ]
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 @jonathan-albrecht-ibm ,\r\n\r\nCould you please confirm the bazel command you have used for the tests? Thankyou!", "Hi @SuryanarayanaY, here is the bazel command I used that will run the failed tests:\r\n\r\n```bash\r\nTF_SYSTEM_LIBS=\"boringssl\" bazel --host_jvm_args=\"-Xms1024m\" --host_jvm_args=\"-Xmx2048m\" test --build_tests_only --build_event_json_file=../logs/bazel-build-events-unicode.json --define=tflite_with_xnnpack=false -- //tensorflow/python/kernel_tests/strings_ops:unicode_decode_op_test //tensorflow/python/kernel_tests/strings_ops:unicode_transcode_op_test\r\n```\r\n\r\nNote that when building on s390x, there are some extra changes required for ssl (`TF_SYSTEM_LIBS=\"boringssl\"`) and xnnpack (`--define=tflite_with_xnnpack=false` since not available on s390x) that are unrelated to the unicode tests.\r\n\r\nI've dug into it a bit more and I'll add some more info in a follow up comment.", "Hi @SuryanarayanaY,\r\n\r\nFollowing the instructions in https://github.com/tensorflow/tensorflow/blob/6537d7f689b234c7f945fe3b5d094317716148b0/third_party/icu/data/BUILD.bazel#L16-L43 I was able to generate the big-endian format files on a little-endian x86_64 VM with icu version release-69-1.\r\n\r\nAfter creating icudt69l_dat.c:\r\n\r\n* generate the big-endian .dat file with `icupkg -tb ./icudt69l.dat icudt69b.dat`\r\n* generate the big-endian icudt69b_dat.c file with `genccode icudt69b.dat`\r\n* add the conversion wrapper function with `echo \"U_CAPI const void * U_EXPORT2 uprv_getICUData_conversion() { return icudt69b_dat.bytes; }\" >> icudt69b_dat.c`\r\n\r\nThen the icudt69b_dat.c can be gzip'd and split to a set of eg. icu_conversion_data_big_endian.c.gz.* files.\r\n\r\nThe `conversion_files` filegroup (https://github.com/tensorflow/tensorflow/blob/6537d7f689b234c7f945fe3b5d094317716148b0/third_party/icu/data/BUILD.bazel#L44-L47) can also be updated to select the big-endian files on s390x. Something like this:\r\n\r\n```bazel\r\nfilegroup(\r\n name = \"conversion_files\",\r\n srcs = select({\r\n \"@org_tensorflow//tensorflow:linux_s390x\": glob([\"icu_conversion_data_big_endian.c.gz.*\"]),\r\n \"//conditions:default\": glob([\"icu_conversion_data.c.gz.*\"]),\r\n }),\r\n)\r\n```\r\n\r\nWith those changes in place, the unicode tests all pass and I didn't see any regressions in other tests when running the full test suite.", "Hi, Could you please check the comment on the above linked PR and explain on handling big-endian conversion( which is solved in your case).", "H @sachinprasadhs, Thanks for helping with this. \r\n\r\nYour PR also needs to include the big-endian conversion which can be generated from the little-endian .dat file. My comment above (https://github.com/tensorflow/tensorflow/issues/59935#issuecomment-1466304945) explains how to do that:\r\n\r\nYou will need to follow all of the existing instructions to generate the little-endian conversion files in: https://github.com/tensorflow/tensorflow/blob/6537d7f689b234c7f945fe3b5d094317716148b0/third_party/icu/data/BUILD.bazel#L16-L43\r\n\r\nthen follow these instructions to generate the big-endian conversion files.\r\n\r\n> After creating icudt69l_dat.c:\r\n> \r\n> * generate the big-endian .dat file with `icupkg -tb ./icudt69l.dat icudt69b.dat`\r\n> * generate the big-endian icudt69b_dat.c file with `genccode icudt69b.dat`\r\n> * add the conversion wrapper function with `echo \"U_CAPI const void * U_EXPORT2 uprv_getICUData_conversion() { return icudt69b_dat.bytes; }\" >> icudt69b_dat.c`\r\n> \r\n> Then the icudt69b_dat.c can be gzip'd and split to a set of eg. icu_conversion_data_big_endian.c.gz.* files.\r\n> \r\n\r\nFinally the new big-endian conversion files will need to be included in your PR.\r\n\r\nLet me know if you have any questions and I will try to help.", "Thanks for pointing me to the details, would you be interested to work on this PR, since you already have the workflow ready. I can go ahead and close the PR.\r\n", "Hi @sachinprasadhs, I'll need to get internal approval on my side before I can submit a PR and it could take some time. I appreciate your time looking at this. If you are still interested I could work with you to help you generate the big-endian files otherwise I will try to get approval to create a PR.", "Yes please, I would need your help in making this PR, since I have limited knowledge on this topic.", "Thanks for offering to help @sachinprasadhs! The first step would be to generate the little-endian data file using the instructions at: https://github.com/tensorflow/tensorflow/blob/6537d7f689b234c7f945fe3b5d094317716148b0/third_party/icu/data/BUILD.bazel#L16-L43\r\n\r\nIf you have any specific questions I'd be happy to help.", "@nitins17 , Can you take a look into this request or help me connecting with the right person who can look into it. Thanks!", "Hi @nitins17, would you have some time to look into this issue? I probably won't be able to get internal approval to submit a PR for some time.", "Thanks for flagging this issue and sorry about the late reply! Unfortunately, I do not have familiarity with the failing tests so I don't think I can review your PR.\r\n\r\n@rohan100jain Do you think someone from your team would be a better fit to review this?\r\n\r\n\r\n\r\n", "@mihaimaruseac hope you don't mind my reaching out directly but from looking at the git history, I think you might be able to help with this `third_party/icu` issue.\r\n\r\nDue to internal reasons, I'm not going to be able to open a PR for this anytime soon. I figured out how to generate the big-endian format data files on amd64 and added the [details above](https://github.com/tensorflow/tensorflow/issues/59935#issuecomment-1466304945).\r\n\r\nWould generating the big-endian data files and adding them into `third_party/icu/data` be something you would have time to do? Any help would be greatly appreciated but I certainly understand if time or other reasons won't allow.", "Unfortunately I not longer work in TF (left the team nearly a year ago). I am consulting from time to time (especially on security topics, but also on OSS), and might contribute here and there with some PRs, but my main bulk of work is no longer in TF. So it will take some time until I can handle this.", "Thanks @mihaimaruseac, I appreciate it!", "I'm starting to think that the solution here might be to just generate the conversion files at build time, instead of storing them in the repo. There are several requirements that could be pushing towards that", "@mihaimaruseac generating the conversion files at build time would help this issue. It's straight forward to generate the big endian version of the conversion files, once all the setup of the icu build is in place, on either big or little endian machines. ", "Adding @MichaelHudgins for visibility", "Thanks for the ping @mihaimaruseac. I think if we could move towards generation at build time instead of storing all of those conversion in third_party that would be best." ]
2023-03-08T15:42:14
2023-10-11T15:30:32
null
CONTRIBUTOR
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.11 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 s390x ### Mobile device _No response_ ### Python version 3.10 ### Bazel version 5.3.0 ### GCC/Compiler version gcc 9 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Two of the unicode unit tests fail on s390x due to the icu_conversion_data.c.gz.* files being in little-endian format. Could big-endian formatted versions of the icu_conversion_data.c.gz.* files be added so that they can be selected when building on s390x? ``` ### Standalone code to reproduce the issue ```shell The unit tests: * //tensorflow/python/kernel_tests/strings_ops:unicode_decode_op_test * //tensorflow/python/kernel_tests/strings_ops:unicode_transcode_op_test fail on s390x. ``` ### Relevant log output ```shell ====================================================================== ERROR: testDecodeWithDifferentEncodings5 ('SHIFT-JIS', ['Hello', 'こんにちは']) (__main__.UnicodeDecodeTest) UnicodeDecodeTest.testDecodeWithDifferentEncodings5 ('SHIFT-JIS', ['Hello', 'こんにちは']) testDecodeWithDifferentEncodings('SHIFT-JIS', ['Hello', 'こんにちは']) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jalbrecht/.cache/bazel/_bazel_jalbrecht/d88fb95a52e214eb99836e3d1a65a951/execroot/org_tensorflow/bazel-out/s390x-opt/bin/tensorflow/python/kernel_tests/strings_ops/unicode_decode_op_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1378, in _do_call return fn(*args) File "/home/jalbrecht/.cache/bazel/_bazel_jalbrecht/d88fb95a52e214eb99836e3d1a65a951/execroot/org_tensorflow/bazel-out/s390x-opt/bin/tensorflow/python/kernel_tests/strings_ops/unicode_decode_op_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1361, in _run_fn return self._call_tf_sessionrun(options, feed_dict, fetch_list, File "/home/jalbrecht/.cache/bazel/_bazel_jalbrecht/d88fb95a52e214eb99836e3d1a65a951/execroot/org_tensorflow/bazel-out/s390x-opt/bin/tensorflow/python/kernel_tests/strings_ops/unicode_decode_op_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1454, in _call_tf_sessionrun return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict, tensorflow.python.framework.errors_impl.InvalidArgumentError: Could not create converter for input encoding: SHIFT-JIS [[{{node UnicodeDecode/UnicodeDecode}}]] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59935/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/59935/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59934
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59934/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59934/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59934/events
https://github.com/tensorflow/tensorflow/issues/59934
1,615,268,259
I_kwDOArmXAs5gRwmj
59,934
Wrong metric calculations for masked out timeseries with sample weights
{ "login": "samdabadei", "id": 68996046, "node_id": "MDQ6VXNlcjY4OTk2MDQ2", "avatar_url": "https://avatars.githubusercontent.com/u/68996046?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samdabadei", "html_url": "https://github.com/samdabadei", "followers_url": "https://api.github.com/users/samdabadei/followers", "following_url": "https://api.github.com/users/samdabadei/following{/other_user}", "gists_url": "https://api.github.com/users/samdabadei/gists{/gist_id}", "starred_url": "https://api.github.com/users/samdabadei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samdabadei/subscriptions", "organizations_url": "https://api.github.com/users/samdabadei/orgs", "repos_url": "https://api.github.com/users/samdabadei/repos", "events_url": "https://api.github.com/users/samdabadei/events{/privacy}", "received_events_url": "https://api.github.com/users/samdabadei/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": 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": 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": 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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "here is my current workaround with a custom metric. It also does rescaling if wanted:\r\n`class Masked_MAE(tf.keras.metrics.Metric):\r\n\r\n def __init__(self, name='masked_mae', mean=0, std=1.0, **kwargs):\r\n super(Masked_MAE, self).__init__(name=name, **kwargs)\r\n self.mean = mean,\r\n self.std = std\r\n self.factor = self.std\r\n self.total = self.add_weight(name='total', initializer='zeros')\r\n self.count = self.add_weight(name='count', initializer='zeros')\r\n\r\n def update_state(self, y_true, y_pred, sample_weight=None):\r\n if sample_weight is not None:\r\n mask = K.cast(K.not_equal(sample_weight, 0), K.floatx())\r\n mask = tf.expand_dims(mask, axis=-1)\r\n multp = y_true.shape[-1]\r\n else:\r\n mask = tf.ones_like(y_true)\r\n multp = tf.constant(1.0)\r\n masked_error = K.abs(y_true - y_pred) * mask\r\n self.total.assign_add(K.sum(masked_error))\r\n self.count.assign_add(K.sum(mask) * multp)\r\n\r\n def result(self):\r\n return tf.math.divide_no_nan(self.total, self.count) * self.factor`", "okay i just overlooked what weighted_metrics does. Solved!", "@samdabadei \r\nSorry for the late reply, this is expected behaviour.\r\n\r\nFrom the [Keras documentation](https://keras.io/api/models/model_training_apis/#fit-method) on the fit method:\r\n\r\n- sample_weight: Optional Numpy array of weights for the training samples, used for weighting the loss function (during training only). You can either pass a flat (1D) Numpy array with the same length as the input samples (1:1 mapping between weights and samples), or in the case of temporal data, you can pass a 2D array with shape (samples, sequence_length), to apply a different weight to every timestep of every sample. This argument is not supported when x is a dataset, generator, or keras.utils.Sequence instance, instead provide the sample_weights as the third element of x. Note that sample weighting does not apply to metrics specified via the metrics argument in compile(). To apply sample weighting to your metrics, you can specify them via the weighted_metrics in compile() instead.\r\n\r\nThis signifies that \"sample_weight\" serves the sole purpose of weighing the loss function during training. To implement weighting on your metrics, you can specify it via \"weighted_metrics\" in the \"compile()\" method instead.\r\n\r\nCan you please close the issue if it is resolved ?\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/59934\">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/59934\">No</a>\n" ]
2023-03-08T13:24:23
2023-03-15T13:07:45
2023-03-15T13:07:43
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.10 ### Custom Code Yes ### OS Platform and Distribution Windows 10 ### 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? ```shell I allready have posted the bug on tensorflow forum but since i think it realy is a bug which silently produces wrong result, i should post it here as well: i got a timeseries dataset where i mask out missing data of shorter sequences with sample_weight_mode=‘temporal’. So far so good. the losses are computed as expected but the metrics seem to ignore the sample-weights completly. is it a bug or am i doiing something wrong. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf from keras import layers import numpy as np input_layer = layers.Input(shape=(500, 5)) input_lstm = layers.LSTM(30, return_sequences=True)(input_layer) output1 = layers.Dense(1)(input_lstm) output2 = layers.Dense(1)(input_lstm) model = tf.keras.Model(inputs=input_layer, outputs=[output1, output2]) model.compile(optimizer="adam", run_eagerly=False, sample_weight_mode='temporal', loss="mse", metrics=[["mae"], ["mae"]]) #dataset x = np.random.random((2000, 500, 5)) sample_weights = np.ones(x.shape[:-1]) amnt_zeros = np.random.choice(500, 2000) for idx, zeros in enumerate(amnt_zeros): sample_weights[idx, -zeros:] = 0.0 x = x*sample_weights[...,None] y1 = ((np.sum(x, axis=-1) + 20) * sample_weights)[..., None] y2 = ((np.sum(x, axis=-1) + 10) * sample_weights)[...,None] #masked y3 data is increased drasically to show the wrong calculation of the metrics y2_testsample_weights = np.full_like(y2, -50000) * ((sample_weights - 1)[...,None]) y2 = y2 + y2_testsample_weights history = model.fit(x=x, y=[y1, y2], sample_weight=sample_weights, epochs=500) ``` ### Relevant log output ```shell 46/63 [====================>.........] - ETA: 4s - loss: 297.1746 - dense_loss: 226.9913 - dense_1_loss: 70.1834 - dense_mae: 10.7948 - dense_1_mae: 25511.7363 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59934/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/59934/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59933
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59933/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59933/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59933/events
https://github.com/tensorflow/tensorflow/issues/59933
1,615,112,162
I_kwDOArmXAs5gRKfi
59,933
error using the Dispatch
{ "login": "MXA404", "id": 102682889, "node_id": "U_kgDOBh7RCQ", "avatar_url": "https://avatars.githubusercontent.com/u/102682889?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MXA404", "html_url": "https://github.com/MXA404", "followers_url": "https://api.github.com/users/MXA404/followers", "following_url": "https://api.github.com/users/MXA404/following{/other_user}", "gists_url": "https://api.github.com/users/MXA404/gists{/gist_id}", "starred_url": "https://api.github.com/users/MXA404/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MXA404/subscriptions", "organizations_url": "https://api.github.com/users/MXA404/orgs", "repos_url": "https://api.github.com/users/MXA404/repos", "events_url": "https://api.github.com/users/MXA404/events{/privacy}", "received_events_url": "https://api.github.com/users/MXA404/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": "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
[ "@MXA404. To troubleshoot the issue further, we need more information about the custom code that is causing the error. Can you provide the relevant code snippet that is causing the error? Additionally, please provide any relevant details about the inputs and expected behavior of the code, as well as any steps that you have already taken to try and solve the issue.", "@MXA404,\r\nCould you please provide the complete code to debug the issue and also it looks like you are overriding **__call__** directly instead of the call method, which is what subclasses of Layer should override (see [Layer docs](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer))\r\n\r\nAnd also there is a clean way of preventing accidental override of __call__ because there are valid use cases for overriding it.\r\n\r\nPlease take a look through the [Layer docs](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer#call) and between the docstrings about **call and __call__** and the examples, I guess there is currently sufficient guidance toward overriding call for use cases like this one.\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/59933\">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/59933\">No</a>\n" ]
2023-03-08T11:27:48
2023-03-28T01:57:26
2023-03-28T01:57:23
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.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! ``` ### Standalone code to reproduce the issue ```shell in op_dispatch_handler result = api_dispatcher.Dispatch(args, kwargs) TypeError: Got an unexpected keyword argument 'dim' ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59933/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/59933/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59932
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59932/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59932/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59932/events
https://github.com/tensorflow/tensorflow/issues/59932
1,615,077,192
I_kwDOArmXAs5gRB9I
59,932
//tensorflow/tools/api/tests:api_compatibility_test fails with protobuf > 3.20.3
{ "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": 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": 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": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/received_events", "type": "User", "site_admin": false }
[ { "login": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/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 @elfringham ,\r\n\r\nI tried the same commands but my build is success and test also passes.Please refer to attached log below.Please check and confirm if any deviation.Please note I have not installed any protobuf specifically but gone with default from master branch.I observed 3.19.6 is default protobuf version with Pip install and same might be considered by Bazel. Hence for my case there is no error right?\r\n\r\n```\r\n(bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ bazel test --test_timeout=300,500,-1,-1 --flaky_test_attempts=3 --test_output=all --cache_test_results=no --noremote_accept_cached --test_env=TF_ENABLE_ONEDNN_OPTS=1 --build_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --verbose_failures --build_tests_only --jobs=16 -- //tensorflow/python/util/protobuf:protobuf_compare_test\r\nWARNING: Running Bazel server needs to be killed, because the startup options are different.\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=100\r\nINFO: Reading rc options for 'test' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'test' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n Inherited '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 --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\r\nINFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.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\r\nINFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/5eff7fb0cf49215d9f68646512797a2258aa00cc.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Analyzed target //tensorflow/python/util/protobuf:protobuf_compare_test (555 packages loaded, 34029 targets configured).\r\nINFO: Found 1 test target...\r\nINFO: From Testing //tensorflow/python/util/protobuf:protobuf_compare_test:\r\n==================== Test output for //tensorflow/python/util/protobuf:protobuf_compare_test:\r\n2023-03-13 12:55:09.249927: 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-03-13 12:55:09.298935: 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: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\nRunning tests under Python 3.9.16: /home/suryanarayanay/miniconda3/envs/bazel/bin/python3\r\n[ RUN ] AssertTest.testAssertEqualWithStringArg\r\n[ OK ] AssertTest.testAssertEqualWithStringArg\r\n[ RUN ] AssertTest.testCheckInitialized\r\n[ OK ] AssertTest.testCheckInitialized\r\n[ RUN ] AssertTest.testLargeProtoData\r\n[ OK ] AssertTest.testLargeProtoData\r\n[ RUN ] AssertTest.testMessage\r\n[ OK ] AssertTest.testMessage\r\n[ RUN ] AssertTest.testMsgPassdown\r\n[ OK ] AssertTest.testMsgPassdown\r\n[ RUN ] AssertTest.testNormalizesFloat\r\n[ OK ] AssertTest.testNormalizesFloat\r\n[ RUN ] AssertTest.testNormalizesNumbers\r\n[ OK ] AssertTest.testNormalizesNumbers\r\n[ RUN ] AssertTest.testPrimitives\r\n[ OK ] AssertTest.testPrimitives\r\n[ RUN ] AssertTest.testRepeatedMessage\r\n[ OK ] AssertTest.testRepeatedMessage\r\n[ RUN ] AssertTest.testRepeatedPrimitives\r\n[ OK ] AssertTest.testRepeatedPrimitives\r\n[ RUN ] MixinTests.testAssertEqualWithStringArg\r\n[ OK ] MixinTests.testAssertEqualWithStringArg\r\n[ RUN ] NormalizeNumbersTest.testNormalizesDoubles\r\n[ OK ] NormalizeNumbersTest.testNormalizesDoubles\r\n[ RUN ] NormalizeNumbersTest.testNormalizesFloats\r\n[ OK ] NormalizeNumbersTest.testNormalizesFloats\r\n[ RUN ] NormalizeNumbersTest.testNormalizesInts\r\n[ OK ] NormalizeNumbersTest.testNormalizesInts\r\n[ RUN ] NormalizeNumbersTest.testNormalizesMaps\r\n[ OK ] NormalizeNumbersTest.testNormalizesMaps\r\n[ RUN ] NormalizeNumbersTest.testNormalizesRepeatedFloats\r\n[ OK ] NormalizeNumbersTest.testNormalizesRepeatedFloats\r\n[ RUN ] NormalizeNumbersTest.testNormalizesRepeatedInts\r\n[ OK ] NormalizeNumbersTest.testNormalizesRepeatedInts\r\n[ RUN ] ProtoEqTest.testEmpty\r\n[ OK ] ProtoEqTest.testEmpty\r\n[ RUN ] ProtoEqTest.testIsClose\r\n[ OK ] ProtoEqTest.testIsClose\r\n[ RUN ] ProtoEqTest.testMessage\r\n[ OK ] ProtoEqTest.testMessage\r\n[ RUN ] ProtoEqTest.testNans\r\n[ OK ] ProtoEqTest.testNans\r\n[ RUN ] ProtoEqTest.testNansMap\r\n[ OK ] ProtoEqTest.testNansMap\r\n[ RUN ] ProtoEqTest.testNansRepeatedField\r\n[ OK ] ProtoEqTest.testNansRepeatedField\r\n[ RUN ] ProtoEqTest.testNestedMessage\r\n[ OK ] ProtoEqTest.testNestedMessage\r\n[ RUN ] ProtoEqTest.testPrimitiveFields\r\n[ OK ] ProtoEqTest.testPrimitiveFields\r\n[ RUN ] ProtoEqTest.testPrimitives\r\n[ OK ] ProtoEqTest.testPrimitives\r\n[ RUN ] ProtoEqTest.testRepeatedPrimitives\r\n[ OK ] ProtoEqTest.testRepeatedPrimitives\r\n[ RUN ] ProtoEqTest.testTagOrder\r\n[ OK ] ProtoEqTest.testTagOrder\r\n----------------------------------------------------------------------\r\nRan 28 tests in 0.363s\r\n\r\nOK\r\n================================================================================\r\nTarget //tensorflow/python/util/protobuf:protobuf_compare_test up-to-date:\r\n bazel-bin/tensorflow/python/util/protobuf/protobuf_compare_test\r\nINFO: Elapsed time: 5496.134s, Critical Path: 456.21s\r\nINFO: 14759 processes: 1651 internal, 13108 local.\r\nINFO: Build completed successfully, 14759 total actions\r\n//tensorflow/python/util/protobuf:protobuf_compare_test PASSED in 1.2s\r\n\r\nINFO: Build completed successfully, 14759 total actions\r\n(bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ \r\n\r\n```\r\n\r\n", "1) Default install of protobuf is 4.22.1, see https://pypi.org/project/protobuf/ - I do not understand where you got 3.19.6 from.\r\n2) Supported versions of protobuf for use with TensorFlow are shown here https://github.com/tensorflow/tensorflow/blob/3ad732b85ef2dc174c36d7db2b6dc8629961722e/tensorflow/tools/pip_package/setup.py#L100 which shows a minimum version of 3.20.3 but also includes 4.x with some exceptions early in the 4.x range.\r\n3) The important thing is that protobuf versions > 3.20.3 are supported for use with TensorFlow and this test will fail with those versions. The test should pass with all supported versions.\r\n4) Your test with protobuf==3.19.6 is not a supported configuration.\r\nYes there is an error.", "@elfringham ,\r\n\r\nActually earlier I did not downloaded any protobuf version explicitly. I tried to test the command by installing latest protobuf version (4.22.1) now and the test is failing.The log is attached below for reference.\r\n\r\n[#59932.log](https://github.com/tensorflow/tensorflow/files/10967721/59932.log)\r\n\r\n\r\n", "@SuryanarayanaY You are missing an install of keras and tensorflow-estimator. Or alternatively keras-nightly and tf-estimator-nightly.", "@elfringham ,\r\nThanks for that.It seems I actually missed this step.I will crosscheck all the dependencies mentioned in setup.py and update.", "@elfringham ,\r\n\r\nI am unable to replicate the reported problem.For me build is success and test also passed. I am attaching the logs for your review. Please have a look and confirm if anything missing. Thanks!\r\n[#59932-r1.txt](https://github.com/tensorflow/tensorflow/files/10979369/59932-r1.txt)\r\n", "Hi @SuryanarayanaY it is hard to see what is the difference in our environments that is causing your test to pass. Your use of the 'pip' command masks which version of Python is used and that may not be the same as the Python that is picked up by the TensorFlow test build. Also as you have not run 'configure' the log does not show which Python is in use. Also there may be environment variables such as PYTHON_BIN_PATH or PYTHON_LIB_PATH that affects things.\r\nI am trying to put a gist together to show the issue but that may be tomorrow before its ready.", "Thanks @elfringham ,I Will definitely wait for your gist.", "[api_compat_test_fail.zip](https://github.com/tensorflow/tensorflow/files/10991956/api_compat_test_fail.zip)\r\nAttached log of fail with Python pip etc commands at beginning to show that protobuf 4.22.1 was indeed installed into the place that TensorFlow used in its build.\r\nI think the gist is not going to happen, sorry, I only have a free account and its going to hit the runtime limit well before it finishes.", "You can see the gist here https://colab.research.google.com/drive/1r8ssFOenTKYlWf0Ca00y2ffg8ifq4ntN?usp=sharing in case you can run it yourself with more resource privileges.", "@elfringham ,\r\n\r\nI too don't have privilege access to google colab.It will time out before completion. I can test only in VM for now. I am surprised that with same environment I replicated the issue mentioned at #59931 but not here. Could you please refer the issue there and confirm whether any changes \r\n\r\nIf you ask me I can test with python==3.9.16 explicitly using .configure step and will give it a try.", "@SuryanarayanaY I found the three issues, #59930 , #59931 and this one #59932 all at the same time with the same environment. So I too am surprised that you see different behaviour between #59931 and here. For me they all pass if I install protobuf==3.20.3 and all fail with protobuf > 3.20.3. I only entered three separate issues as they all have different errors.", "@elfringham ,\r\n\r\nI have used same build that has been used for `59931` and tested all the three reported issues 59930,59931 and 59932 and here also 59932 is success but remaining two tests failed with same error as reported by you. I am attaching the log below for all three in same file.\r\n\r\nIt shows Python 3.9.16 being used for running tests.But I noticed one test being skipped automatically.\r\n\r\nPlease check the tests(6/7) that are executed.\r\n```\r\nRunning tests under Python 3.9.16: /home/suryanarayanay/miniconda3/envs/bazel/bin/python3\r\n[ RUN ] ApiCompatibilityTest.testAPIBackwardsCompatibility\r\nINFO:tensorflow:No differences found between API and golden.\r\nI0318 04:49:06.249608 140189728887424 api_compatibility_test.py:398] No differences found between API and golden.\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibility): 1.03s\r\nI0318 04:49:06.251941 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibility): 1.03s\r\n[ OK ] ApiCompatibilityTest.testAPIBackwardsCompatibility\r\n[ RUN ] ApiCompatibilityTest.testAPIBackwardsCompatibilityV1\r\nWARNING:tensorflow:From /home/suryanarayanay/.cache/bazel/_bazel_suryanarayanay/e93ef42332b258ebf8397106d59e39e3/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/python/util/decorator_utils.py:153: GraphKeys.VARIABLES (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `tf.GraphKeys.GLOBAL_VARIABLES` instead.\r\nW0318 04:49:06.337129 140189728887424 deprecation.py:364] From /home/suryanarayanay/.cache/bazel/_bazel_suryanarayanay/e93ef42332b258ebf8397106d59e39e3/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/python/util/decorator_utils.py:153: GraphKeys.VARIABLES (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `tf.GraphKeys.GLOBAL_VARIABLES` instead.\r\nINFO:tensorflow:No differences found between API and golden.\r\nI0318 04:49:07.151268 140189728887424 api_compatibility_test.py:398] No differences found between API and golden.\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibilityV1): 0.9s\r\nI0318 04:49:07.154043 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibilityV1): 0.9s\r\n[ OK ] ApiCompatibilityTest.testAPIBackwardsCompatibilityV1\r\n[ RUN ] ApiCompatibilityTest.testAPIBackwardsCompatibilityV2\r\nINFO:tensorflow:No differences found between API and golden.\r\nI0318 04:49:07.826159 140189728887424 api_compatibility_test.py:398] No differences found between API and golden.\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibilityV2): 0.67s\r\nI0318 04:49:07.829506 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testAPIBackwardsCompatibilityV2): 0.67s\r\n[ OK ] ApiCompatibilityTest.testAPIBackwardsCompatibilityV2\r\n[ RUN ] ApiCompatibilityTest.testNoSubclassOfMessage\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testNoSubclassOfMessage): 0.28s\r\nI0318 04:49:08.110209 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testNoSubclassOfMessage): 0.28s\r\n[ OK ] ApiCompatibilityTest.testNoSubclassOfMessage\r\n[ RUN ] ApiCompatibilityTest.testNoSubclassOfMessageV1\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testNoSubclassOfMessageV1): 0.13s\r\nI0318 04:49:08.236025 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testNoSubclassOfMessageV1): 0.13s\r\n[ OK ] ApiCompatibilityTest.testNoSubclassOfMessageV1\r\n[ RUN ] ApiCompatibilityTest.testNoSubclassOfMessageV2\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testNoSubclassOfMessageV2): 0.13s\r\n\r\n```\r\nAfter above log , I observed in the below immediate log where one of the test being skipped.\r\n\r\n```\r\nINFO:tensorflow:time(__main__.ApiCompatibilityTest.testNoSubclassOfMessageV2): 0.13s\r\nI0318 04:49:08.367611 140189728887424 test_util.py:2467] time(__main__.ApiCompatibilityTest.testNoSubclassOfMessageV2): 0.13s\r\n[ OK ] ApiCompatibilityTest.testNoSubclassOfMessageV2\r\n[ RUN ] ApiCompatibilityTest.test_session\r\n[ SKIPPED ] ApiCompatibilityTest.test_session\r\n----------------------------------------------------------------------\r\nRan 7 tests in 3.145s\r\n\r\nOK (skipped=1)\r\n```\r\nThe same test being skipped in earlier build also where I have attached logs in [comment-1469880441](https://github.com/tensorflow/tensorflow/issues/59932#issuecomment-1469880441).\r\n\r\nCould you please cross check whether the above skipped test in your environment also skipped or executed?\r\n\r\nThanks!", "I see the same skipped test. The failures I see are in testAPIBackwardsCompatibility, testAPIBackwardsCompatibilityV1 and testAPIBackwardsCompatibilityV2. Please see the log I attached above.\r\n```\r\n[ RUN ] ApiCompatibilityTest.test_session\r\n[ SKIPPED ] ApiCompatibilityTest.test_session\r\n======================================================================\r\nFAIL: testAPIBackwardsCompatibility (__main__.ApiCompatibilityTest)\r\nApiCompatibilityTest.testAPIBackwardsCompatibility\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 511, in testAPIBackwardsCompatibility\r\n self._checkBackwardsCompatibility(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 488, in _checkBackwardsCompatibility\r\n self._AssertProtoDictEquals(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 395, in _AssertProtoDictEquals\r\n self.fail('%d differences found between API and golden.' % diff_count)\r\nAssertionError: 1 differences found between API and golden.\r\n\r\n======================================================================\r\nFAIL: testAPIBackwardsCompatibilityV1 (__main__.ApiCompatibilityTest)\r\nApiCompatibilityTest.testAPIBackwardsCompatibilityV1\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 528, in testAPIBackwardsCompatibilityV1\r\n self._checkBackwardsCompatibility(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 488, in _checkBackwardsCompatibility\r\n self._AssertProtoDictEquals(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 395, in _AssertProtoDictEquals\r\n self.fail('%d differences found between API and golden.' % diff_count)\r\nAssertionError: 4 differences found between API and golden.\r\n\r\n======================================================================\r\nFAIL: testAPIBackwardsCompatibilityV2 (__main__.ApiCompatibilityTest)\r\nApiCompatibilityTest.testAPIBackwardsCompatibilityV2\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 550, in testAPIBackwardsCompatibilityV2\r\n self._checkBackwardsCompatibility(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 488, in _checkBackwardsCompatibility\r\n self._AssertProtoDictEquals(\r\n File \"/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py\", line 395, in _AssertProtoDictEquals\r\n self.fail('%d differences found between API and golden.' % diff_count)\r\nAssertionError: 1 differences found between API and golden.\r\n\r\n----------------------------------------------------------------------\r\nRan 7 tests in 6.893s\r\n\r\nFAILED (failures=3, skipped=1)\r\n```", "CC- @learning-to-play ", "Hi @vam-google, Could you please take a look?", "I have cross checked with r2.12 branch and here also the test passed for me.Please refer to attached logs below.\r\n\r\n[59932_r2.12_logs.txt](https://github.com/tensorflow/tensorflow/files/11136352/59932_r2.12_logs.txt)\r\n", "I'm struggling to understand what is going on in all three bugs reported here.\r\nDo the same tests pass in our CI? \r\n\r\nIf during the tests it somehow got resolved to `<= protobuf-3.19` it means already is something wrong in the setup, as it should have failed earlier than running the test itself. On a proper python environment there should be no protobuf of version older than 3.20.3. I'm confused why protobuf 3.19 is being discussed and tried here, as it is irrelevant, that version is not supported so it does not matter if it works or not (it may work for most cases because 3.19 is actually the first version of prorotobuf with compatibility leayer between 3.x and 4.x versions, but we chose to not support it for TF for various reasons).\r\n\r\nCurrently TF bazel build is not hermetic in terms of python dependencies (we are working on fixing it), so whatever gets actually installed on your machine will be used by your TF build. \r\n\r\nIn terms of compatibility. Honestly I don't know what those failing tests are testing for, but in general protobuf 3.18, 3.19, 3.20 and 4.21 are very different versions, and they represent a transition path to a non-compatible versions (4.21 is not compatible with 3.18). So in principle some breackage in terms of compatibility is logical here.\r\n\r\nOne other important piece: we depend on protobuf in both phases: generaiton/compilation and runtime. This is important because generation time is what is responsible for creation of those `*_pb2.py` stub files. TF build currently uses `protoc 3.21.9` which corresponds to `protobuf 4.21.9` runtime dependency. The stubs produced by protoc 3.21.x are not compatible with older versions of protobuf runtime and in general the files themselves (the _pb2.py ones) look different, so it could be related.\r\n", "Theses tests do pass the CI but that is because that is run using protobuf==3.20.3, see https://github.com/tensorflow/tensorflow/blob/968a8dccbd3dbc7738fa2f7cbe16a07f6efdf6b2/tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt#L18\r\nYes the tests using 3.19 are irrelevant, it is not supported.\r\nThe unit tests that fail are being run in the source tree and so of course they are using the same protobuf for the build and the test. This is not testing a wheel installed into a separate environment.\r\nMy point is that TensorFlow claims to be compatible with protobuf 4.x and yet it fails these tests when protobuf > 3.20.3 is installed. https://github.com/tensorflow/tensorflow/blob/025f1b270c8863727efaba8d5060a83d1ba2dac8/tensorflow/tools/pip_package/setup.py#L100" ]
2023-03-08T10:59:57
2023-04-04T14:17:22
null
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 5.3.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? ```shell The test fails ``` ### Standalone code to reproduce the issue ```shell bazel test --test_timeout=300,500,-1,-1 --flaky_test_attempts=3 --test_output=all --cache_test_results=no --noremote_accept_cached --test_env=TF_ENABLE_ONEDNN_OPTS=1 --build_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --verbose_failures --build_tests_only --jobs=16 -- //tensorflow/tools/api/tests:api_compatibility_test ``` ### Relevant log output ```shell ====================================================================== FAIL: testAPIBackwardsCompatibility (__main__.ApiCompatibilityTest) ApiCompatibilityTest.testAPIBackwardsCompatibility ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 511, in testAPIBackwardsCompatibility self._checkBackwardsCompatibility( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 488, in _checkBackwardsCompatibility self._AssertProtoDictEquals( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 395, in _AssertProtoDictEquals self.fail('%d differences found between API and golden.' % diff_count) AssertionError: 1 differences found between API and golden. ====================================================================== FAIL: testAPIBackwardsCompatibilityV1 (__main__.ApiCompatibilityTest) ApiCompatibilityTest.testAPIBackwardsCompatibilityV1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 528, in testAPIBackwardsCompatibilityV1 self._checkBackwardsCompatibility( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 488, in _checkBackwardsCompatibility self._AssertProtoDictEquals( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 395, in _AssertProtoDictEquals self.fail('%d differences found between API and golden.' % diff_count) AssertionError: 4 differences found between API and golden. ====================================================================== FAIL: testAPIBackwardsCompatibilityV2 (__main__.ApiCompatibilityTest) ApiCompatibilityTest.testAPIBackwardsCompatibilityV2 ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 550, in testAPIBackwardsCompatibilityV2 self._checkBackwardsCompatibility( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 488, in _checkBackwardsCompatibility self._AssertProtoDictEquals( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/tools/api/tests/api_compatibility_test.runfiles/org_tensorflow/tensorflow/tools/api/tests/api_compatibility_test.py", line 395, in _AssertProtoDictEquals self.fail('%d differences found between API and golden.' % diff_count) AssertionError: 1 differences found between API and golden. ---------------------------------------------------------------------- ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59932/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/59932/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59931
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59931/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59931/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59931/events
https://github.com/tensorflow/tensorflow/issues/59931
1,615,073,425
I_kwDOArmXAs5gRBCR
59,931
//tensorflow/python/util/protobuf:protobuf_compare_test fails with protobuf > 3.20.3
{ "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" } ]
open
false
{ "login": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/received_events", "type": "User", "site_admin": false }
[ { "login": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/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 @elfringham ,\r\nI have replicated the reported test fail.The test fails with the error reported by you.\r\n\r\n ```\r\nFile \"/home/suryanarayanay/.cache/bazel/_bazel_suryanarayanay/e93ef42332b258ebf8397106d59e39e3/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/util/protobuf/protobuf_compare_test.runfiles/org_tensorflow/tensorflow/python/util/protobuf/compare_test.py\", line 324, in testCheckInitialized\r\n b = copy.deepcopy(a)\r\n File \"/home/suryanarayanay/miniconda3/envs/bazel/lib/python3.9/copy.py\", line 153, in deepcopy\r\n y = copier(memo)\r\n File \"/home/suryanarayanay/miniconda3/envs/bazel/lib/python3.9/site-packages/google/protobuf/message.py\", line 83, in __deepcopy__\r\n clone.MergeFrom(self)\r\ngoogle.protobuf.message.EncodeError: Message compare_test.Labeled is missing required fields: required\r\n```\r\n\r\nAlso may please refer the logs attached below.\r\n\r\n[59931-logs.txt](https://github.com/tensorflow/tensorflow/files/11001084/59931-logs.txt)\r\n", "CC - @learning-to-play ", "Hi @SuryanarayanaY, Please feel free to add @vam-google for protobuf related issues." ]
2023-03-08T10:57:08
2023-03-23T08:52:09
null
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 5.3.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? ```shell The test fails ``` ### Standalone code to reproduce the issue ```shell bazel test --test_timeout=300,500,-1,-1 --flaky_test_attempts=3 --test_output=all --cache_test_results=no --noremote_accept_cached --test_env=TF_ENABLE_ONEDNN_OPTS=1 --build_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --verbose_failures --build_tests_only --jobs=16 -- //tensorflow/python/util/protobuf:protobuf_compare_test ``` ### Relevant log output ```shell ERROR: testCheckInitialized (__main__.AssertTest) AssertTest.testCheckInitialized ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/util/protobuf/protobuf_compare_test.runfiles/org_tensorflow/tensorflow/python/util/protobuf/compare_test.py", line 324, in testCheckInitialized b = copy.deepcopy(a) File "/usr/lib/python3.9/copy.py", line 153, in deepcopy y = copier(memo) File "/usr/local/lib/python3.9/dist-packages/google/protobuf/message.py", line 83, in __deepcopy__ clone.MergeFrom(self) google.protobuf.message.EncodeError: Message compare_test.Labeled is missing required fields: required ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59931/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/59931/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59930
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59930/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59930/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59930/events
https://github.com/tensorflow/tensorflow/issues/59930
1,615,070,230
I_kwDOArmXAs5gRAQW
59,930
//tensorflow/python/kernel_tests/proto:decode_proto_op_test fails with protobuf > 3.20.3
{ "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": 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": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/received_events", "type": "User", "site_admin": false }
[ { "login": "vam-google", "id": 25311427, "node_id": "MDQ6VXNlcjI1MzExNDI3", "avatar_url": "https://avatars.githubusercontent.com/u/25311427?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vam-google", "html_url": "https://github.com/vam-google", "followers_url": "https://api.github.com/users/vam-google/followers", "following_url": "https://api.github.com/users/vam-google/following{/other_user}", "gists_url": "https://api.github.com/users/vam-google/gists{/gist_id}", "starred_url": "https://api.github.com/users/vam-google/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vam-google/subscriptions", "organizations_url": "https://api.github.com/users/vam-google/orgs", "repos_url": "https://api.github.com/users/vam-google/repos", "events_url": "https://api.github.com/users/vam-google/events{/privacy}", "received_events_url": "https://api.github.com/users/vam-google/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, @SuryanarayanaY \r\n\r\nCould you please look into this issue ? Thank you!", "@elfringham ,\r\n\r\nI have replicated the reported test failure and got the same error reported by you.\r\n\r\n`AttributeError: 'google._upb._message.FieldDescriptor' object has no attribute 'CPPTYPE_FLOAT'`\r\n\r\nPlease refer to attached log below and acknowledge.Please note that I used the same bazel environment that used for #59931, in which ticket also reported error replicated.\r\n\r\n[59930_logs.txt](https://github.com/tensorflow/tensorflow/files/11007494/59930_logs.txt)\r\n", "@SuryanarayanaY Yes, that matches the failure I see.", "CC - @learning-to-play ", "@SuryanarayanaY Please feel free to add @vam-google for issues related to protobuf version mismatch." ]
2023-03-08T10:54:33
2023-03-23T08:51:52
null
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 5.3.0 ### GCC/Compiler version 9.4.0 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? ```shell The test fails ``` ### Standalone code to reproduce the issue ```shell bazel test --test_timeout=300,500,-1,-1 --flaky_test_attempts=3 --test_output=all --cache_test_results=no --noremote_accept_cached --test_env=TF_ENABLE_ONEDNN_OPTS=1 --build_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-requires-gpu --verbose_failures --build_tests_only --jobs=16 -- //tensorflow/python/kernel_tests/proto:decode_proto_op_test ``` ### Relevant log output ```shell ERROR: testBinaryDisordereddefaults (__main__.DecodeProtoOpTest) DecodeProtoOpTest.testBinaryDisordereddefaults testBinaryDisordereddefaults(values { ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/proto/decode_proto_op_test.runfiles/absl_py/absl/testing/parameterized.py", line 316, in bound_param_test return test_method(self, *testcase_params) File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/proto/decode_proto_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py", line 223, in testBinaryDisordered self._runDecodeProtoTests( File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/proto/decode_proto_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py", line 206, in _runDecodeProtoTests self._compareProtos(batch_shape, sizes, fields, field_dict) File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/proto/decode_proto_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py", line 142, in _compareProtos self._compareValues(fd, values.flat, File "/root/.cache/bazel/_bazel_root/e953b164f58eb4c9598ad736d787ff39/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/proto/decode_proto_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/proto/decode_proto_op_test_base.py", line 57, in _compareValues if fd.cpp_type == fd.CPPTYPE_FLOAT: AttributeError: 'google._upb._message.FieldDescriptor' object has no attribute 'CPPTYPE_FLOAT' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59930/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/59930/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59929
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59929/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59929/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59929/events
https://github.com/tensorflow/tensorflow/issues/59929
1,614,587,950
I_kwDOArmXAs5gPKgu
59,929
java.lang.UnsatisfiedLinkError:Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary():
{ "login": "hgchenkai", "id": 6070649, "node_id": "MDQ6VXNlcjYwNzA2NDk=", "avatar_url": "https://avatars.githubusercontent.com/u/6070649?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hgchenkai", "html_url": "https://github.com/hgchenkai", "followers_url": "https://api.github.com/users/hgchenkai/followers", "following_url": "https://api.github.com/users/hgchenkai/following{/other_user}", "gists_url": "https://api.github.com/users/hgchenkai/gists{/gist_id}", "starred_url": "https://api.github.com/users/hgchenkai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hgchenkai/subscriptions", "organizations_url": "https://api.github.com/users/hgchenkai/orgs", "repos_url": "https://api.github.com/users/hgchenkai/repos", "events_url": "https://api.github.com/users/hgchenkai/events{/privacy}", "received_events_url": "https://api.github.com/users/hgchenkai/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": 2671354709, "node_id": "MDU6TGFiZWwyNjcxMzU0NzA5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteNNAPIDelegate", "name": "TFLiteNNAPIDelegate", "color": "65916E", "default": false, "description": "For issues related to TFLite NNAPI Delegate" }, { "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": "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 @hgchenkai Thanks for reporting the issue.\r\n\r\nSorry for the delayed response.\r\n\r\nCan you please provide the steps you have followed to better understand the issue.\r\n\r\nAlso, can you try on latest 2.11 version and tf-nightly and see if the issue still persists.\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/59929\">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/59929\">No</a>\n" ]
2023-03-08T03:20:14
2023-04-04T01:55:13
2023-04-04T01:55:09
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 tensorflow-lite:2.8.0 ### Custom Code Yes ### OS Platform and Distribution macOS Monterey 12.5.1 ### Mobile device Huawei Mate 20 (HMA-AL00) ### 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? ```shell Hello, this error occurs on some models when my application loads tflite: java.lang.UnsatisfiedLinkError:Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary(): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/packagename/base.apk"],nativeLibraryDirectories=[/data/app/packagename/lib/arm64, /data/app/packagename/base.apk!/lib/arm64-v8a, /data/user/0/packagename/files/dynamic/arm64-v8a, /system/priv-app/HwCameraKit/HwCameraKit.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /system/lib64, /hw_product/lib64, /system/product/lib64]]] couldn't find "libtensorflowlite_jni.so" org.tensorflow.lite.TensorFlowLite.a(SourceFile:5) org.tensorflow.lite.nnapi.NnApiDelegate.<init>(SourceFile:2) ``` ### Standalone code to reproduce the issue ```shell dependencies { implementation 'org.tensorflow:tensorflow-lite:2.8.0' } abiFilters "armeabi-v7a", 'arm64-v8a' ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59929/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/59929/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59928
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59928/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59928/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59928/events
https://github.com/tensorflow/tensorflow/issues/59928
1,614,584,022
I_kwDOArmXAs5gPJjW
59,928
Crash due to CUDA_ERROR_ILLEGAL_ADDRESS can be triggered in SparseReorder, SparseFillEmptyRowsGrad, SparseSlice and SparseTensorToCSRSparseMatrix
{ "login": "shijy16", "id": 31403391, "node_id": "MDQ6VXNlcjMxNDAzMzkx", "avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shijy16", "html_url": "https://github.com/shijy16", "followers_url": "https://api.github.com/users/shijy16/followers", "following_url": "https://api.github.com/users/shijy16/following{/other_user}", "gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shijy16/subscriptions", "organizations_url": "https://api.github.com/users/shijy16/orgs", "repos_url": "https://api.github.com/users/shijy16/repos", "events_url": "https://api.github.com/users/shijy16/events{/privacy}", "received_events_url": "https://api.github.com/users/shijy16/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": 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" } ]
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 @shijy16 ,\r\n\r\nThanks for reporting. All these are valid issues with tf-nightly(2.13.0-dev20230308) and needs Fix. I have replicated the behaviour in Colab and attached screenshots of logs below.\r\n\r\n**With tf.raw_ops.SparseSlice:**\r\n\r\n<img width=\"1512\" alt=\"Screenshot 2023-03-09 at 12 10 23 PM\" src=\"https://user-images.githubusercontent.com/116063290/223942996-f4f92961-1779-4eb8-a7c1-d725cfe79608.png\">\r\n\r\n**With SparseTensorToCSRSparseMatrix:**\r\n\r\n<img width=\"1505\" alt=\"Screenshot 2023-03-09 at 12 13 30 PM\" src=\"https://user-images.githubusercontent.com/116063290/223943017-fc4d1704-2572-4f36-b853-406cd0311bb9.png\">\r\n\r\n**With SparseReorder:**\r\n\r\n<img width=\"1502\" alt=\"Screenshot 2023-03-09 at 12 15 00 PM\" src=\"https://user-images.githubusercontent.com/116063290/223943038-363e2dcf-a748-4f2a-a2c1-08c45010615c.png\">\r\n\r\n**with SparseFillEmptyRowsGrad:**\r\n\r\n<img width=\"1503\" alt=\"Screenshot 2023-03-09 at 12 16 13 PM\" src=\"https://user-images.githubusercontent.com/116063290/223943059-a04bff3c-9f4d-4b16-89e8-e4d9c1ae5b07.png\">\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/59928\">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/59928\">No</a>\n" ]
2023-03-08T03:15:24
2023-06-30T16:52:17
2023-06-30T16:52:15
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.13.0-dev20230307 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version CUDA 11.5 ### GPU model and memory _No response_ ### Current Behaviour? ```shell Crashes due to "CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered" can be triggered in 4 operators, which are SparseReorder, SparseFillEmptyRowsGrad, SparseSlice and SparseTensorToCSRSparseMatrix. The cuase of the crashes might be the same. ``` ### Standalone code to reproduce the issue ```shell # SparseTensorToCSRSparseMatrix import tensorflow as tf print(tf.__version__) for i in range(100): with tf.device("GPU:0"): indices = tf.saturate_cast(tf.random.uniform([15, 0], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) values = tf.random.uniform([3, 6], dtype=tf.float32) dense_shape = [33, 73, 91] res = tf.raw_ops.SparseTensorToCSRSparseMatrix( indices=indices, values=values, dense_shape=dense_shape, ) # SparseReorder import tensorflow as tf print(tf.__version__) with tf.device("GPU:0"): for i in range(100): input_indices = tf.saturate_cast(tf.random.uniform([1, 3], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) input_values = tf.saturate_cast(tf.random.uniform([8], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int8) input_shape = [] res = tf.raw_ops.SparseReorder( input_indices=input_indices, input_values=input_values, input_shape=input_shape, ) # SparseFillEmptyRowsGrad import tensorflow as tf print(tf.__version__) for i in range(100): with tf.device("GPU:0"): reverse_index_map = tf.saturate_cast(tf.random.uniform([9], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) grad_values = tf.saturate_cast(tf.random.uniform([0], minval=0, maxval=64, dtype=tf.int64), dtype=tf.uint8) res = tf.raw_ops.SparseFillEmptyRowsGrad( reverse_index_map=reverse_index_map, grad_values=grad_values, ) # SparseSlice import tensorflow as tf print(tf.__version__) for i in range(100): with tf.device("GPU:0"): indices = tf.saturate_cast(tf.random.uniform([13, 0], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) values = tf.random.uniform([9], dtype=tf.float64) shape = [100, 100] start = tf.saturate_cast(tf.random.uniform([2], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) size = tf.saturate_cast(tf.random.uniform([2], minval=0, maxval=64, dtype=tf.int64), dtype=tf.int64) res = tf.raw_ops.SparseSlice( indices=indices, values=values, shape=shape, start=start, size=size, ) ``` ### Relevant log output ```shell All the crashes have similar output: 2023-03-08 11:09:51.182519: 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-03-08 11:09:51.231134: 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 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-08 11:09:51.979378: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2.13.0-dev20230307 2023-03-08 11:09:53.602923: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14581 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0 2023-03-08 11:09:53.626782: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped____EagerConst_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.871921: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped____EagerConst_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.876076: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__RandomUniformInt_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.881562: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__ClipByValue_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.882676: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__Cast_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.884133: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__SparseReorder_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 11:09:53.919158: E tensorflow/compiler/xla/stream_executor/cuda/cuda_event.cc:29] Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered 2023-03-08 11:09:53.919227: F tensorflow/core/common_runtime/device/device_event_mgr.cc:223] Unexpected Event status: 1 Aborted (core dumped) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59928/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/59928/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59927
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59927/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59927/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59927/events
https://github.com/tensorflow/tensorflow/issues/59927
1,614,558,659
I_kwDOArmXAs5gPDXD
59,927
A crash due to check-fail can be triggered in QuantizedConv2D
{ "login": "shijy16", "id": 31403391, "node_id": "MDQ6VXNlcjMxNDAzMzkx", "avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shijy16", "html_url": "https://github.com/shijy16", "followers_url": "https://api.github.com/users/shijy16/followers", "following_url": "https://api.github.com/users/shijy16/following{/other_user}", "gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shijy16/subscriptions", "organizations_url": "https://api.github.com/users/shijy16/orgs", "repos_url": "https://api.github.com/users/shijy16/repos", "events_url": "https://api.github.com/users/shijy16/events{/privacy}", "received_events_url": "https://api.github.com/users/shijy16/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": 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" } ]
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 @shijy16 ,\r\n\r\nI have replicated the reported issues with tf-nightly(2.13.0-dev20230308) with colab. \r\n\r\nPlease refer to snapshot below. Thanks for reporting.\r\n\r\n\r\n<img width=\"1506\" alt=\"Screenshot 2023-03-09 at 12 46 09 PM\" src=\"https://user-images.githubusercontent.com/116063290/223949104-65f18094-00db-47ad-b540-ae6afac0407a.png\">\r\n", "Still an issue with tf-nightly(2.15.0-dev20231004). Crash with not so clear logs.\r\n\r\n<img width=\"1508\" alt=\"Screenshot 2023-10-04 at 2 52 16 PM\" src=\"https://github.com/tensorflow/tensorflow/assets/116063290/508c2803-0399-40af-a968-77d988adf8ab\">\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/59927\">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/59927\">No</a>\n" ]
2023-03-08T02:46:25
2024-03-13T17:56:06
2024-03-13T17:56:02
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.13.0.dev20230307 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version CUDA 11.5 ### GPU model and memory _No response_ ### Current Behaviour? ```shell A crash due to check-fail can be triggered in QuantizedConv2D and its external api `tf.compat.v1.nn.quantized_conv2d`. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf print(tf.__version__) strides = [1, 128, 128, 1] padding = "SAME" dilations = [1, 1, 1, 1] input = tf.cast(tf.random.uniform([2, 1, 0, 1], minval=0, maxval=64, dtype=tf.int64), dtype=tf.quint8) filter = tf.cast(tf.random.uniform([1, 1, 1, 1], minval=0, maxval=64, dtype=tf.int64), dtype=tf.quint8) min_input = tf.random.uniform([], dtype=tf.float32) max_input = tf.random.uniform([], dtype=tf.float32) min_filter = tf.random.uniform([], dtype=tf.float32) max_filter = tf.random.uniform([], dtype=tf.float32) # res = tf.raw_ops.QuantizedConv2D( res = tf.compat.v1.nn.quantized_conv2d( strides=strides, padding=padding, dilations=dilations, input=input, filter=filter, min_input=min_input, max_input=max_input, min_filter=min_filter, max_filter=max_filter, ) ``` ### Relevant log output ```shell 2023-03-08 10:44:27.398763: 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-03-08 10:44:27.448284: 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 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-08 10:44:28.229207: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2.13.0-dev20230307 2023-03-08 10:44:29.975476: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 7865 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0 2023-03-08 10:44:30.000649: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped____EagerConst_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 10:44:30.179857: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped____EagerConst_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 10:44:30.185432: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__RandomUniformInt_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 10:44:30.193600: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__Cast_device_/job:localhost/replica:0/task:0/device:CPU:0" with target device "/job:localhost/replica:0/task:0/device:CPU:0". Took 0 secs. 2023-03-08 10:44:30.195940: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__RandomUniform_device_/job:localhost/replica:0/task:0/device:GPU:0" with target device "/job:localhost/replica:0/task:0/device:GPU:0". Took 0 secs. 2023-03-08 10:44:30.201918: I tensorflow/core/common_runtime/process_function_library_runtime.cc:586] Finished graph optimizations for MultiDevice function "__wrapped__QuantizedConv2D_device_/job:localhost/replica:0/task:0/device:CPU:0" with target device "/job:localhost/replica:0/task:0/device:CPU:0". Took 0 secs. 2023-03-08 10:44:30.202557: F tensorflow/core/kernels/quantized_conv_ops.cc:572] Check failed: out_cols > 0 (0 vs. 0) Aborted (core dumped) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59927/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/59927/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59926
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59926/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59926/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59926/events
https://github.com/tensorflow/tensorflow/issues/59926
1,614,214,041
I_kwDOArmXAs5gNvOZ
59,926
`tf.data.Dataset.from_generator(...)` fails when the `output_signature` argument is a dictionary that has a value `tf.RaggedTensorSpec(...)` for some key
{ "login": "Leengit", "id": 35611400, "node_id": "MDQ6VXNlcjM1NjExNDAw", "avatar_url": "https://avatars.githubusercontent.com/u/35611400?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Leengit", "html_url": "https://github.com/Leengit", "followers_url": "https://api.github.com/users/Leengit/followers", "following_url": "https://api.github.com/users/Leengit/following{/other_user}", "gists_url": "https://api.github.com/users/Leengit/gists{/gist_id}", "starred_url": "https://api.github.com/users/Leengit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Leengit/subscriptions", "organizations_url": "https://api.github.com/users/Leengit/orgs", "repos_url": "https://api.github.com/users/Leengit/repos", "events_url": "https://api.github.com/users/Leengit/events{/privacy}", "received_events_url": "https://api.github.com/users/Leengit/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": 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": 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": 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
[ "Specifically I am getting an error when I give a dataset's `.element_spec` as an `output_signature`\r\n```python\r\noutput_signature = {\r\n \"top\": tf.RaggedTensorSpec(tf.TensorShape([None]), tf.int32, 0, tf.int64),\r\n \"left\": tf.RaggedTensorSpec(tf.TensorShape([None]), tf.int32, 0, tf.int64),\r\n}\r\n```\r\nto `tf.data.Dataset.from_generator(...)`", "seems you are trying to convert a TensorSpec or a RaggedTensorSpec object into a DType object directly using tf.dtypes.as_dtype() method, which is not possible. the as_dtype() method is used to convert a string or numpy dtype object to a tensorflow DType object. replace your code for d2 and d3 as below , this shall solve the TypeError\r\n...\r\nd2 = type_value0.dtype\r\nd3 = type_value1.dtype\r\n....\r\n", "As best as I can tell, it is the internals of the `tf.data.Dataset.from_generator()` call that is trying to directly use `tf.dtypes.as_dtype()` in parsing its `output_signature` argument, when that argument is a dictionary that contains a `(key, value)` pair with a value that is `tf.RaggedTensorSpec(tf.TensorShape([None]), tf.int32, 0, tf.int64)`. Thanks!", "Hi, @SuryanarayanaY \r\n\r\nCould you please look into this issue ? Thank you!", "Hi @Leengit ,\r\n\r\nThe code `d2 = tf.dtypes.as_dtype(type_value0)` fails obviously because the function `as_dtype()` expects the input to be:\r\n\r\n> Inputs can be existing [tf.DType](https://www.tensorflow.org/api_docs/python/tf/dtypes/DType) objects, a [DataType enum](https://www.tensorflow.org/code/tensorflow/core/framework/types.proto), a string type name, or a [numpy.dtype](https://numpy.org/doc/stable/reference/generated/numpy.dtype.html).\r\n\r\n\r\nAs you are providing `TensorSpec()` and `RaggedTensorSpec()` as inputs which does not belongs to any of the supporting arguments,and hence it is raising the intended error. There is no problem with this API here\r\n\r\nIf you find any problem with `tf.data.Dataset.from_generator()` please point to that exact issue with reproducible code and we will definitely have a look into the issue. Thanks!\r\n", "Perhaps I am doing something wrong. Here is small example that shows the problem that I am having.\r\n```python\r\nimport tensorflow as tf\r\n\r\nprint(\"=== The version of tensorflow ===\")\r\nprint(f\"tensorflow.__version__ = {repr(tf.__version__)}\")\r\n\r\norganized_by_rows = [dict(normal=[1], ragged=[2]), dict(normal=[3], ragged=[4, 5])]\r\n\r\norganized_by_columns = {\r\n key: (tf.constant if key == \"normal\" else tf.ragged.constant)(\r\n [row[key] for row in organized_by_rows]\r\n )\r\n for key in organized_by_rows[0].keys()\r\n}\r\n\r\ndataset_works = tf.data.Dataset.from_tensor_slices(organized_by_columns)\r\nelement_spec = dataset_works.element_spec\r\n\r\nprint(\"=== The working dataset ===\")\r\nfor row in dataset_works:\r\n print(f\"row = {repr(row)}\")\r\nprint(\"=== The working element_spec ===\")\r\nprint(f\"element_spec = {repr(element_spec)}\")\r\n\r\n\r\ndef gen():\r\n for row in organized_by_rows:\r\n yield {\r\n normal: tf.constant(row[\"normal\"]),\r\n ragged: tf.ragged.constant(row[\"ragged\"]),\r\n }\r\n\r\n\r\nprint(\"=== This command fails ===\")\r\ndataset_fails = tf.data.Dataset.from_generator(gen, element_spec)\r\n\r\n\"\"\"\r\nThe output I get is:\r\n\r\n=== The version of tensorflow ===\r\ntensorflow.__version__ = '2.11.0'\r\n=== The working dataset ===\r\nrow = {'normal': <tf.Tensor: shape=(1,), dtype=int32, numpy=array([1], dtype=int32)>, 'ragged': <tf.Tensor: shape=(1,), dtype=int32, numpy=array([2], dtype=int32)>}\r\nrow = {'normal': <tf.Tensor: shape=(1,), dtype=int32, numpy=array([3], dtype=int32)>, 'ragged': <tf.Tensor: shape=(2,), dtype=int32, numpy=array([4, 5], dtype=int32)>}\r\n=== The working element_spec ===\r\nelement_spec = {'normal': TensorSpec(shape=(1,), dtype=tf.int32, name=None), 'ragged': RaggedTensorSpec(TensorShape([None]), tf.int32, 0, tf.int64)}\r\n=== This command fails ===\r\nTraceback (most recent call last):\r\n File \"tensorflow_gen.py\", line 30, in <module>\r\n dataset_fails = tf.data.Dataset.from_generator(gen, element_spec)\r\n File \".../tensorflow/python/util/deprecation.py\", line 561, in new_func\r\n return func(*args, **kwargs)\r\n File \".../tensorflow/python/data/ops/dataset_ops.py\", line 982, in from_generator\r\n output_signature = nest.map_structure_up_to(output_types,\r\n File \".../tensorflow/python/data/util/nest.py\", line 453, in map_structure_up_to\r\n results = [func(*tensors) for tensors in zip(*all_flattened_up_to)]\r\n File \".../tensorflow/python/data/util/nest.py\", line 453, in <listcomp>\r\n results = [func(*tensors) for tensors in zip(*all_flattened_up_to)]\r\n File \".../tensorflow/python/framework/tensor_spec.py\", line 79, in __init__\r\n self._dtype = dtypes.as_dtype(dtype)\r\n File \".../tensorflow/python/framework/dtypes.py\", line 762, in as_dtype\r\n raise TypeError(f\"Cannot convert the argument `type_value`: {type_value!r} \"\r\nTypeError: Cannot convert the argument `type_value`: TensorSpec(shape=(1,), dtype=tf.int32, name=None) to a TensorFlow DType.\r\n\"\"\"\r\n```", "Hi @Leengit ,\r\n\r\nYou are passing `element_spec` as positional argument which is causing the error. You should pass it as key word argument to `output_signature` like below.\r\n\r\n`dataset_fails = tf.data.Dataset.from_generator(gen, output_signature=element_spec)`\r\n\r\nWith this the code execution success. Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/a6a01f58bdd0360f3f009a70e32cebd5/59926_r1.ipynb).", "Excellent, 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/59926\">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/59926\">No</a>\n", "Would it make sense to adjust the error message to something that includes \"Did you mean to supply the output_signature parameter instead of output_types?\"", "Hi @Leengit ,\r\n\r\nSince the function `tf.data.Dataset.from_generator() `has 1 positional and 5 keyword args by default if you pass the arguments as positional it will assign in the order of arguments defined in the function. That is the default Python behaviour.Hence we need to specify the keyword argument specifically in such case.\r\n", "My suggestion about the error message arises because the two parameters are similarly named and one deprecates the other. To be explicit, if the `output_types` argument cannot be handled as supplied, the error message could suggest that maybe the user meant to instead supply the argument as `output_signature`. It would have saved me a bunch of trouble. But if the suggestion is problematic to implement or has downsides that outweigh the upsides then please ignore it. Thanks!", "This API calls many other APIs internally and the error raised in internal APIs and hence its hard to implement your suggestion. However user can use stack trace to checkout the root cause." ]
2023-03-07T21:10:12
2023-04-02T08:19:43
2023-03-31T12:31:52
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 v2.11.0-rc2-17-gd5b57ca93e5 2.11.0 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.8.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```python import tensorflow as tf # With these: type_value0 = tf.TensorSpec(shape=(), dtype=tf.string) type_value1 = tf.RaggedTensorSpec(tf.TensorShape([None]), tf.int32, 0, tf.int64) # These work: d0 = type_value0.dtype d1 = type_value1.dtype # But these do not work d2 = tf.dtypes.as_dtype(type_value0) d3 = tf.dtypes.as_dtype(type_value1) ``` ... and it appears that it is `tf.dtypes.as_dtype(type_value)` that is used to parse an `output_signature` provided to `tf.data.Dataset.from_generator`. ### Standalone code to reproduce the issue See above ### Relevant log output TypeError: Cannot convert the argument `type_value`: TensorSpec(shape=(), dtype=tf.string, name=None) to a TensorFlow DType. TypeError: Cannot convert the argument `type_value`: RaggedTensorSpec(TensorShape([None]), tf.int32, 0, tf.int64) to a TensorFlow DType. </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59926/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/59926/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59924
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59924/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59924/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59924/events
https://github.com/tensorflow/tensorflow/issues/59924
1,613,788,937
I_kwDOArmXAs5gMHcJ
59,924
crosstool_wrapper_driver_is_not_gcc error while building TF v2.11
{ "login": "predrag12", "id": 1883256, "node_id": "MDQ6VXNlcjE4ODMyNTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1883256?v=4", "gravatar_id": "", "url": "https://api.github.com/users/predrag12", "html_url": "https://github.com/predrag12", "followers_url": "https://api.github.com/users/predrag12/followers", "following_url": "https://api.github.com/users/predrag12/following{/other_user}", "gists_url": "https://api.github.com/users/predrag12/gists{/gist_id}", "starred_url": "https://api.github.com/users/predrag12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/predrag12/subscriptions", "organizations_url": "https://api.github.com/users/predrag12/orgs", "repos_url": "https://api.github.com/users/predrag12/repos", "events_url": "https://api.github.com/users/predrag12/events{/privacy}", "received_events_url": "https://api.github.com/users/predrag12/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": "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 @predrag12, please let us know if you are trying to build Tensorflow in Docker. Thank you!\r\n ", "Hi, yes, container name is under exact commands to reproduce.", "@predrag12,\r\nCould you please confirm whether you are trying to install from the official tensorflow docker image\r\nhttps://hub.docker.com/r/tensorflow/tensorflow/\r\nIf No, I suggest you to use one of the tested build configurations (please check versions):\r\n\r\nhttps://www.tensorflow.org/install/source#tested_build_configurations. \r\nAlso Please let us know after testing with tested configs. ( GCC 9.3.1 , Bazel 5.3.0, cuDNN 8.1, CUDA 11.2, 2.11) and the reference [issue](https://github.com/tensorflow/tensorflow/issues/58419). Thank you!\r\n", "Hi, official tensorflow docker images do not contain any aarch64 tags.\r\n\r\nBuilding using gcc 9.3 Bazel 5.3 just newer cuDNN 8.7 Cuda 11.8 listed in the problem description.\r\n\r\nBased on nvcr.io/nvidia/tensorflow:22.12-tf2-py3, 8.7 and 11.8 are compatible with 2.10.1, but build based on https://www.tensorflow.org/install/source instructions fails with error above.\r\n\r\nBased on referenced issue #58419 Cuda 11.8 is compatible once TensorRT is turned off, which is also the case here (off), but build still fails with said error above.\r\n\r\nBuilding within nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 (cudNN 8.1 Cuda 11.2) fails with even worse errors, below. Thanks.\r\n\r\n\r\nERROR: /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/external/local_config_python/BUILD:78:8: in outs attribute of genrule rule @local_config_python//:python_include: Genrules without outputs don't make sense\r\n\r\nERROR: /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/external/local_config_python/BUILD:78:8: Analysis of target '@local_config_python//:python_include' failed\r\n\r\nERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: \r\nFAILED: Build did NOT complete successfully (391 packages loaded, 5912 targets configured)", "Hi @predrag12 ,\r\n\r\nPlease check the version compatibility w.r.t CUDA and cuDNN.Supported configurations are CUDA=11.2 and cuDNN=8.1. Though for the referenced issue it may worked but Architecture may be different and compatibility issues may arise.\r\n\r\nWhile installing bazel did you covered all the 3-steps mentioned [here](https://bazel.build/install/ubuntu#install-packages).\r\n\r\nAlso check the compatibility of g++ version w.r.t gcc version in your environment and ensure compatible versions installed.\r\n\r\nPlease refer to this command [here](https://github.com/tensorflow/tensorflow/issues/44692#issuecomment-917543931) for similar problem here some resource links here [link1](https://github.com/tensorflow/serving/issues/976) & [link2](https://askubuntu.com/questions/749441/tensorflow-crosstool-wrapper-driver-is-not-gcc-failed-error-executing-command) and check whether they are of any help.\r\n\r\nAfter checking all above mentioned checks please let us know the result. Thankyou!", "Hi,\r\n\r\nFor nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 (cudNN **8.1** Cuda **11.2**) there are errors at the onset of the compilation during configuration. Downgrading to gcc to 9.3.0, 9.2.1 doesn't change the outcome.\r\n\r\nInstallation of bazel 5.3.0 for aarch64 is different then those steps, but it works in nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04, at least until linking.\r\n\r\nBased on all the crosstool_wrapper_driver_is_not_gcc links above, it looks like there are many causes for the same reported error, most were not resolved, and likely different cause since x86_64 build works.\r\n\r\nWould you be able to provide specific container tag and build commands that that work for aarch, even though might be different from ones in https://www.tensorflow.org/install/source that do not work? Based on nvcr.io/nvidia/tensorflow:22.12-tf2-py3, TF 2.10.1 is buildable, just that instructions are not documented either on NV or TF site? Thanks.", "@predrag12 ,\r\n\r\nAFAIK, We don't have separate instructions for Arm/AArch builds. As you mentioned those earlier with TF2.8v the same instructions worked we need to look whether this is a regression issue.Could you please confirm the last TF versions it worked well.\r\n\r\nAlso I am trying to access the instructions at `nvcr.io/nvidia/tensorflow:22.12-tf2-py3` which I don't have access.\r\n\r\nIf it is OK to provide the instructions mentioned there, I may cross check it definitely and might have some useful info there which helps us in debugging this issue.\r\n\r\n", "Hi,\r\nDon't recall if it was 2.8 or 2.4 or earlier and earlier Cuda.\r\n\r\nIf you docker run nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 for arrch64 and execute pip install tensorflow, it lists 2.10.0rc0 to 2.12.0 including 2.11.0, so question is how is it being build for aarch64 if official TF instructions don't work and there are no separate TF instructions for aarch64?\r\n\r\nI don't have any special access to nvcr.io/nvidia/tensorflow:22.12-tf2-py3, it is a public docker image for aarch64 which you can get with docker pull and could look at its image history.\r\n\r\nThanks.", "Confirmed that **2.8.0** builds with bazel 4.2.1 within nvidia/cuda:**11.2**.2-cudnn**8**-devel-ubuntu20.04. So build with https://www.tensorflow.org/install/source instructions was broken sometime between 2.8.1 and 2.11.0.", "@nitins17 , @learning-to-play " ]
2023-03-07T16:26:30
2023-05-30T05:12:51
null
NONE
null
null
null
------------------------ ### System information - **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: no - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 20.04 aarch64 - **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on a mobile device**: no - **TensorFlow installed from (source or binary)**: source - **TensorFlow version (use command below)**: v2.11.0 - **Python version**: 3.8.10 - **Bazel version (if compiling from source)**: 5.3.0 - **GCC/Compiler version (if compiling from source)**: gcc 9.4.0/9.3.0 - **CUDA/cuDNN version**: 11.8/8.7 - **GPU model and memory**: RTX A5000 - **Exact command to reproduce**: follow https://www.tensorflow.org/install/source with cuda enabled - docker run -it -rm nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04 - wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel-5.3.0-linux-arm64 - git clone -b v2.11.0 https://github.com/tensorflow/tensorflow.git - ./config with CUDA support? [y/N]: y - bazel build --config=cuda --enable_runfiles //tensorflow/tools/pip_package:build_pip_package ### Describe the problem TF is configured with gcc and compiles until linking, looks for clang (10.0.0 installed but not used) and fails. Same issue if downgrading to gcc 9.3. Worked on older v2.8 or v2.4. Works on x86_64. ### Source code / logs ERROR: /home/ubuntu/tensorflow/tensorflow/tensorflow/BUILD:1263:21: Linking tensorflow/libtensorflow_cc.so.2.13.0 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** @bazel-out/aarch64-opt/bin/tensorflow/libtensorflow_cc.so.2.13.0-2.params collect2: error: ld returned 1 exit status ... Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 3256.167s, Critical Path: 1408.99s INFO: 37283 processes: 12379 internal, 24904 local. FAILED: Build did NOT complete successfully
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59924/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/59924/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59923
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59923/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59923/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59923/events
https://github.com/tensorflow/tensorflow/pull/59923
1,613,745,665
PR_kwDOArmXAs5LfdXz
59,923
[NVIDIA TF] Optimize mixed-precision finite check for sparse tensors.
{ "login": "nluehr", "id": 1873655, "node_id": "MDQ6VXNlcjE4NzM2NTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1873655?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nluehr", "html_url": "https://github.com/nluehr", "followers_url": "https://api.github.com/users/nluehr/followers", "following_url": "https://api.github.com/users/nluehr/following{/other_user}", "gists_url": "https://api.github.com/users/nluehr/gists{/gist_id}", "starred_url": "https://api.github.com/users/nluehr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nluehr/subscriptions", "organizations_url": "https://api.github.com/users/nluehr/orgs", "repos_url": "https://api.github.com/users/nluehr/repos", "events_url": "https://api.github.com/users/nluehr/events{/privacy}", "received_events_url": "https://api.github.com/users/nluehr/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": 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
[ "@fchollet what's the status of the code in `tensorflow/python/keras`? Should we still update it and accept PRs to it? Note there is a corresponding Keras PR https://github.com/keras-team/keras/pull/17638.", "This is failing tests: https://source.cloud.google.com/results/invocations/2c6a3700-5008-4e42-882c-81fe07b7b9cd/targets/pkg%2Fpip_and_nonpip_tests/tests", "Sorry about that. Tests fixed. @Reedwm PTAL." ]
2023-03-07T15:59:51
2023-04-04T17:53:13
2023-04-03T14:39:40
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59923", "html_url": "https://github.com/tensorflow/tensorflow/pull/59923", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59923.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59923.patch", "merged_at": "2023-04-03T14:39:39" }
Mixed precision can be very slow and memory inefficient with sparse tensors, common, for example, in recommender-type models. The largest inefficiencies come from checking sparse tensors for NaN values when dynamic loss scaling is enabled. This PR implements a simple optimization to use the dense values of IndexedSlices directly during NaN checks. c.f., Keras PR https://github.com/keras-team/keras/pull/17638 Atten: @reedwm
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59923/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/59923/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59922
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59922/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59922/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59922/events
https://github.com/tensorflow/tensorflow/issues/59922
1,613,472,214
I_kwDOArmXAs5gK6HW
59,922
Problems with converted 8-bit TFLite models of CycleGAN and running inference (specially allocating tensors)
{ "login": "judeharis", "id": 25208518, "node_id": "MDQ6VXNlcjI1MjA4NTE4", "avatar_url": "https://avatars.githubusercontent.com/u/25208518?v=4", "gravatar_id": "", "url": "https://api.github.com/users/judeharis", "html_url": "https://github.com/judeharis", "followers_url": "https://api.github.com/users/judeharis/followers", "following_url": "https://api.github.com/users/judeharis/following{/other_user}", "gists_url": "https://api.github.com/users/judeharis/gists{/gist_id}", "starred_url": "https://api.github.com/users/judeharis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/judeharis/subscriptions", "organizations_url": "https://api.github.com/users/judeharis/orgs", "repos_url": "https://api.github.com/users/judeharis/repos", "events_url": "https://api.github.com/users/judeharis/events{/privacy}", "received_events_url": "https://api.github.com/users/judeharis/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": 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": "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": "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 @judeharis Thanks for reporting this issue.\r\n\r\nSorry for the delayed response.\r\n\r\nI was able to reproduce the issue from pix2pix generator as used in [this](https://github.com/tensorflow/docs/blob/master/site/en/tutorials/generative/cyclegan.ipynb) tutorial. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/8b8b1dfb0c5d756630cc36f22b91b358/59922.ipynb).\r\n\r\nHowever I was successfully able to convert into 8-bit tflite model and invoke the interpreter using the resnet generator used in the keras cycle gan [tutorial](https://keras.io/examples/generative/cyclegan/). Please find the gist [here](https://colab.research.google.com/gist/pjpratik/0cc01304eefdd47111abf72fefa2965e/cyclegan_liteint8.ipynb).\r\n\r\nThanks.", "Hi @pjpratik, I was able to verify your findings. The CycleGAN model from keras is able to be converted properly. \r\n\r\nThat being said, it doesn't really tackle the issues. Also, CycleGAN with pix2pix generator and ResNet generator are effectively two different models. \r\n\r\nI thought the conversion should produce a valid model, especially if the model is valid in TF?\r\nAlso, why does the discriminator model produce \"BytesRequired number of elements overflowed.\" error for basic CONV2D layers?\r\n\r\nIn regards to the quantization errors, it seems similar issues have been found previously for different operations (and apparently fixed): (https://github.com/tensorflow/tensorflow/issues/43661#issue-711575230).\r\nIs it not possible to create a similar fix for the \"SquaredDifference\" operation?", "Hi @judeharis, thanks for the clarification.\r\n\r\nI did observe that using `BatchNorm` instead of `InstanceNorm` in UNet generator doesn't cause any problem in allocating the tensors. Please find the same in this [gist](https://colab.research.google.com/gist/pjpratik/9a75ef84aa4530089acf56ccc0abf034/59922.ipynb).\r\n\r\n@sachinprasadhs Could you please look into this issue. Thanks.\r\n" ]
2023-03-07T13:37:09
2023-03-28T22:22:06
null
NONE
null
null
null
### System information - **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No, problem are found on normal TF code. - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: WSL2 Ubuntu 22.04 - **TensorFlow installed from (source or binary)**: python version is installed using pip, and the benchmark binary is built from TF branch "v2.11.0" - **TensorFlow version (use command below)**: Tested initially on TF2.7 but also on TF2.11 - **Python version**: 3.9.16 - **Bazel version (if compiling from source)**: 5.3.0 - **GCC/Compiler version (if compiling from source)**: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 ------------------------ ### Description of task - I wanted to to convert CycleGAN model provided by Tensorflow into a TFLite model and run inference. - I am using this https://github.com/tensorflow/docs/blob/master/site/en/tutorials/generative/cyclegan.ipynb to first define and train the model in TensorFlow - To convert the models ( 2 Generative and 2 Discriminative) I use the model.save() function ``` generator_g.save('saved_model/cycle_gan_g') generator_f.save('saved_model/cycle_gan_f') discriminator_x.save('saved_model/cycle_disc_x') discriminator_y.save('saved_model/cycle_disc_y') ``` - Following this I convert the model using the TFLiteConverter. ``` def representative_dataset(): for _ in range(1): data = tf.random.normal([1,256,256,3]) yield [(tf.cast(data, tf.float32) / 127.5) - 1.0] converter = tf.lite.TFLiteConverter.from_saved_model(mdir) converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.representative_dataset = representative_dataset converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8,tf.lite.OpsSet.SELECT_TF_OPS] tflite_model = converter.convert() with open(mdir+'cycle_gan_g.tflite', 'wb') as f: f.write(tflite_model) ``` - During conversion I get the following warning which I don't know if it is important for the problems I am facing : ``` "fully_quantize: 0, inference_type: 6WARNING:absl:Buffer deduplication procedure will be skipped when flatbuffer library is not properly loaded , input_inference_type: 0, output_inference_type: 0" ``` ------------------------ ### Description of problems Quick note: Problems 2 and 3 occur for the generative TFLite models of Cycle GAN and problem 4 is for the discriminative TFLite models of CycleGAN. **1.** When trying to simply allocate tensors for the converted TFLite models on the python interpreter I get the following error: **Aborted (core dumped)** ``` interpreter = tf.lite.Interpreter(mdir+'cycle_gan_g.tflite') interpreter.allocate_tensors() ``` ------------------------ **2.** Since the error message was not useful I wanted to run the model using the C++ to understand the problem better. So I built the "benchmark_model" tool from https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark using Bazel and tried to run the same tflite model using the benchmark tool with the following cmd calls: ``` .\benchmark_model --enable_op_profiling=true --graph=./models/cycle_gan_f.tflite ``` Running this gave me better idea of the problem: * While allocating tensors, node 71 throws an assertion error while dealing with the quantization parameters. * Link to the specific assert statement https://github.com/tensorflow/tensorflow/blob/be3ea70b27668ed621c8a1f89be899c6ecd0e2b2/tensorflow/lite/kernels/internal/quantization_util.cc#L117 * So it seems for the node 71 (a squared_difference operation) the "double multiplier" is greater than 1 which can not be handled by the current code it seems. * I am not sure if this is a fault of the conversion step or the backend, if the converter is creating bad values for the quantization parameters is there a way to fix this? ------------------------ **3.** Since I was able to access and rebuilt the code I made a small adjustment in the code to artificially reduce the "double multiplier" below 1 for this node to see if the model is able to run completely with out any errors. * This enabled the allocate_tensor function to complete but I get new error for during inference: ``` ERROR: tensorflow/lite/kernels/concatenation.cc:158 t->dims->data[d] != t0->dims->data[d] (1 != 2) ERROR: Node number 97 (CONCATENATION) failed to prepare. ``` * It seems that there is a mismatch between dimension of the input tensors and the output tensor but doing a quick check in netron I can see that the dimension are what I believe to be correct: ![image](https://user-images.githubusercontent.com/25208518/223431513-93b50da8-a9cf-4532-b2b8-06019ee283c2.png) * I have yet to come up with any temporary fix for this issue ------------------------ **4.** When I tried to run inference using the benchmark tool for the discriminative models I get the following error * This enabled the allocate_tensor function to complete but I get new error for during inference: ``` ERROR: tensorflow/lite/core/subgraph.cc BytesRequired number of elements overflowed. ERROR: Node number 38 (CONV_2D) failed to prepare. ERROR: Failed to apply the default TensorFlow Lite delegate indexed at 0. Failed to allocate tensors! ``` * Again I have yet to come up with any temporary fix for this issue ------------------------ Overall there seems to be problem converting some trivial operations from TF to TFLite. I am not sure if its because of the way Cycle GAN are defined in TF initially or if I am performing the conversion steps wrong. Any help in this matter would be great, I want to convert CycleGAN to int8 TFLite mode and run it.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59922/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/59922/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59921
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59921/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59921/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59921/events
https://github.com/tensorflow/tensorflow/issues/59921
1,613,055,497
I_kwDOArmXAs5gJUYJ
59,921
Problems of tflite conversion,about the file of tflite(.h5 to .tflite)
{ "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": 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" }, { "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": "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
[ "@panhu,\r\nCould you please provide the complete code to reproduce the issue and also the error log which helps us to debug the issue in the effective way. Thank you!", "The code:\r\n\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model)\r\n\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\ndef representative_dataset_gen():\r\n...\r\n\r\nyield [inp_data]\r\nconverter.representative_dataset = representative_dataset_gen\r\n\r\nconverter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8,tf.lite.OpsSet.SELECT_TF_OPS,tf.lite.OpsSet.TFLITE_BUILTINS]\r\n\r\nconverter.inference_input_type = tf.int8\r\nconverter.inference_output_type = tf.int8\r\n\r\ntflite_model = converter.convert()\r\n\r\nwith tf.io.gfile.GFile('denoise_quante1.tflite','wb') as f:\r\nf.write(tflite_model)\r\n\r\n##\r\nIn the model my GRU(....,unroll=True)\r\n", "Hi @panhu \r\n\r\nSorry for the delayed response.\r\n\r\nUsing `unroll=True` tends to be more memory-intensive and it is only suitable for short sequences. \r\n\r\nHave you tried converting the model without using select ops and can you mention the size of .h5 when `unroll=True` is used. Also, can you please check in TF 2.11 and TF Nightly and share your observation.\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/59921\">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/59921\">No</a>\n" ]
2023-03-07T09:33:50
2023-03-28T01:57:29
2023-03-28T01:57:26
NONE
null
null
null
Hi: ### 1. System information - Linux - pip: - TensorFlow 2.10 ### 2. Code ### My Model part ### ... gru = GRU(64,activation='tanh', recurrent_activation='sigmoid', return_sequences=True,unroll=True)(tmp) gru_1 = GRU(128,activation='tanh', recurrent_activation='sigmoid', return_sequences=True,unroll=True)(vad_gru) ... ##Converter### converter = tf.lite.TFLiteConverter.from_keras_model(model) converter.optimizations = [tf.lite.Optimize.DEFAULT] def representative_dataset_gen(): ... yield [inp_data] converter.representative_dataset = representative_dataset_gen converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8,tf.lite.OpsSet.SELECT_TF_OPS,tf.lite.OpsSet.TFLITE_BUILTINS] converter.inference_input_type = tf.int8 converter.inference_output_type = tf.int8 tflite_model = converter.convert() with tf.io.gfile.GFile('denoise_quante1.tflite','wb') as f: f.write(tflite_model) ### 3. Question When I convert. h5 to. tflite, if my unroll=False in the GRU layer of the model, the converted tflite (300K) file is much smaller than the. h5 (3M) file, but when I use unroll=True, the tflite (39M) file will become large. Why? Is there any solution? Thanks!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59921/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/59921/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59920
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59920/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59920/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59920/events
https://github.com/tensorflow/tensorflow/issues/59920
1,613,038,169
I_kwDOArmXAs5gJQJZ
59,920
Input Layer can't be defined in tensorflow 2.11.0
{ "login": "fmanstein", "id": 121288986, "node_id": "U_kgDOBzq5Gg", "avatar_url": "https://avatars.githubusercontent.com/u/121288986?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fmanstein", "html_url": "https://github.com/fmanstein", "followers_url": "https://api.github.com/users/fmanstein/followers", "following_url": "https://api.github.com/users/fmanstein/following{/other_user}", "gists_url": "https://api.github.com/users/fmanstein/gists{/gist_id}", "starred_url": "https://api.github.com/users/fmanstein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fmanstein/subscriptions", "organizations_url": "https://api.github.com/users/fmanstein/orgs", "repos_url": "https://api.github.com/users/fmanstein/repos", "events_url": "https://api.github.com/users/fmanstein/events{/privacy}", "received_events_url": "https://api.github.com/users/fmanstein/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": 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": 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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "Try using tf.keras.layers.InputLayer instead. \n\nYou can skip defining the input layer and give the input shape to the first layer and keras will add a input for a model behind the scenes.", "Hi, @fmanstein \r\n\r\nApologize for the delayed response and It seems like the issue is with importing layers so May I know how are you importing models or layers, if possible share the documentation link or all the imports which you're using in your code please ? meanwhile could you please try to imports like below, \r\n\r\n```\r\nfrom tensorflow import keras\r\nfrom tensorflow.keras import layers\r\n```\r\n\r\nPlease do it like below in your code :\r\n\r\n```\r\ndef __init__(self, height, width, channels):\r\n input_layer = keras.Input(shape=(height, width, channels,))\r\n\r\n ...\r\n```\r\n\r\nI have to tried to replicate the same issue on Google Colab and it's working as expected with `Tensorflow==2.11` version here is [gist-file](https://colab.research.google.com/gist/gaikwadrahul8/2a195767d6e77b604a3260999d3e2d05/-59920-test.ipynb) and please refer this [official documentation tutorial ](https://www.tensorflow.org/guide/keras/functional)so could you please try above workaround from your end and let me know whether is it working as expected or not ? 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/59920\">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/59920\">No</a>\n" ]
2023-03-07T09:22:09
2023-03-28T01:57:32
2023-03-28T01:57:29
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.11.0 ### Custom Code Yes ### OS Platform and Distribution Windows ### 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? ```shell When trying to define an input layer, an error occured. I expected it to work just like in the documentation. Downgrading to Tensorflow 2.10.0 solved the problem ``` ### Standalone code to reproduce the issue ```shell def __init__(self, height, width, channels): input_layer = tf.keras.layers.Input(shape=(height, width, channels,)) ... ``` ### Relevant log output ```shell Traceback (most recent call last): File "C:\Users\Noocoon\PycharmProjects\instanceSegmentation\src\center_mask\Unet.py", line 50, in <module> unet = Unet(128, 128, 3) File "C:\Users\Noocoon\PycharmProjects\instanceSegmentation\src\center_mask\Unet.py", line 28, in __init__ self.input = tf.keras.layers.Input((height, width, channels, )) File "C:\Users\Noocoon\PycharmProjects\instanceSegmentation\venv\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users\Noocoon\PycharmProjects\instanceSegmentation\venv\lib\site-packages\keras\engine\input_layer.py", line 442, in Input outputs = input_layer._inbound_nodes[0].output AttributeError: 'Node' object has no attribute 'output' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59920/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/59920/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59919
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59919/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59919/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59919/events
https://github.com/tensorflow/tensorflow/pull/59919
1,613,033,926
PR_kwDOArmXAs5LdBP0
59,919
Fixed action workflow error in stale-issue.yaml
{ "login": "shmishra99", "id": 124146945, "node_id": "U_kgDOB2ZVAQ", "avatar_url": "https://avatars.githubusercontent.com/u/124146945?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shmishra99", "html_url": "https://github.com/shmishra99", "followers_url": "https://api.github.com/users/shmishra99/followers", "following_url": "https://api.github.com/users/shmishra99/following{/other_user}", "gists_url": "https://api.github.com/users/shmishra99/gists{/gist_id}", "starred_url": "https://api.github.com/users/shmishra99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shmishra99/subscriptions", "organizations_url": "https://api.github.com/users/shmishra99/orgs", "repos_url": "https://api.github.com/users/shmishra99/repos", "events_url": "https://api.github.com/users/shmishra99/events{/privacy}", "received_events_url": "https://api.github.com/users/shmishra99/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": 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
[ "@shmishra99 Can you please resolve conflicts? Thank you!" ]
2023-03-07T09:19:08
2023-03-09T18:07:07
2023-03-09T18:07:06
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59919", "html_url": "https://github.com/tensorflow/tensorflow/pull/59919", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59919.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59919.patch", "merged_at": "2023-03-09T18:07:06" }
**Issue**: Workflow is giving error while running.Error msg-The workflow is not valid. .github/workflows/stale-issues.yml **Fixed**: Followed stale/action workflow [docs](https://github.com/actions/stale#any-of-labels). Changed any-of-labels value to ',' string. Changed only-issue-labels to only-labels to work for both PR and issues.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59919/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/59919/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59918
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59918/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59918/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59918/events
https://github.com/tensorflow/tensorflow/issues/59918
1,613,028,253
I_kwDOArmXAs5gJNud
59,918
Please bring back native Windows CUDA support!
{ "login": "GatGit12", "id": 64150673, "node_id": "MDQ6VXNlcjY0MTUwNjcz", "avatar_url": "https://avatars.githubusercontent.com/u/64150673?v=4", "gravatar_id": "", "url": "https://api.github.com/users/GatGit12", "html_url": "https://github.com/GatGit12", "followers_url": "https://api.github.com/users/GatGit12/followers", "following_url": "https://api.github.com/users/GatGit12/following{/other_user}", "gists_url": "https://api.github.com/users/GatGit12/gists{/gist_id}", "starred_url": "https://api.github.com/users/GatGit12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GatGit12/subscriptions", "organizations_url": "https://api.github.com/users/GatGit12/orgs", "repos_url": "https://api.github.com/users/GatGit12/repos", "events_url": "https://api.github.com/users/GatGit12/events{/privacy}", "received_events_url": "https://api.github.com/users/GatGit12/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": 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": 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": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/received_events", "type": "User", "site_admin": false }
[ { "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/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 }, { "login": "rishikasinha-tf", "id": 100816685, "node_id": "U_kgDOBgJXLQ", "avatar_url": "https://avatars.githubusercontent.com/u/100816685?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rishikasinha-tf", "html_url": "https://github.com/rishikasinha-tf", "followers_url": "https://api.github.com/users/rishikasinha-tf/followers", "following_url": "https://api.github.com/users/rishikasinha-tf/following{/other_user}", "gists_url": "https://api.github.com/users/rishikasinha-tf/gists{/gist_id}", "starred_url": "https://api.github.com/users/rishikasinha-tf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rishikasinha-tf/subscriptions", "organizations_url": "https://api.github.com/users/rishikasinha-tf/orgs", "repos_url": "https://api.github.com/users/rishikasinha-tf/repos", "events_url": "https://api.github.com/users/rishikasinha-tf/events{/privacy}", "received_events_url": "https://api.github.com/users/rishikasinha-tf/received_events", "type": "User", "site_admin": false } ]
null
[ "Hello,\r\n\r\nHe is totally right and Windows is still used by so many people even if not all developers using Tensorflow use it mainly, so I find it really stupid to drop the native-Windows GPU support when we know that a lot of people still use Windows from the development to the production deployment(even if it's not perfect and I'm not necessarily talking about companies).\r\nEven if I can be wrong in what I'm saying because I don't have any actual stats for it, It is unfair to just drop it like this it mean a lot of work will be lost and need a big or massive rebase so initiate a lot of changes and it would not be worth it for a lot of projects. For people that would want to update their project they would be forced to work with a kinda outdated version of Tensorflow.\r\n\r\nNote: I'm sorry if I'm wrong on things I'm not a professional or even working in a company but programming is a hobby that I love and I would like to be able to continue it in good conditions and stay up to date for the longest time possible.\r\n\r\nRegards.", "Absolutely precise, multitudes of researchers continue to employ TensorFlow on Windows; please reinstate support for native Windows GPU.", "low performance and inconvenience with WSL2 IO, It means that it's hard to apply for large scale dataset via TensorFlow", "This change has been made along with the changes in the release for different platforms build with the help of official build collaborators.\r\nWith the inclusion of WSL will be comparatively easy to maintain the framework for both Linux and Windows. \r\nHere is the [link](https://blog.tensorflow.org/2022/09/announcing-tensorflow-official-build-collaborators.html) to the announcement blog which talks about official build collaborators. Thanks!", "It seems that you just repeat the same answer as in all the other issues, without really caring about the question I asked. The problem is not that tensorflow doesn’t support gpus on windows anymore, but that there is no way to use cuda natively on windows. Maybe the framework is easier to build and maintain now, but before version 2.11 it worked fine…\r\n\r\nWith this change, tensorflow is almost impossible to use on **native cuda windows** (or be stuck at v2.10.1), for example if you need cuda custom ops or you can’t use wsl2 or you depend on the TF C-API…\r\n\r\nPerhaps a native cuda windows custom tensorflow build could be enabled for the users who wish to retain the functionality of the previous versions before 2.11 while also benefiting from the latest updates. That would be a reasonable compromise and a minor step back to native cuda on windows.\r\n\r\nI feel like you don’t understand me and you just want to ignore the problem like in the other issues I linked. That makes me very sad and disappointed, because tensorflow used to be my favorite framework. :(", "> It seems that you just repeat the same answer as in all the other issues, without really caring about the question I asked. The problem is not that tensorflow doesn’t support gpus on windows anymore, but that there is no way to use cuda natively on windows. Maybe the framework is easier to build and maintain now, but before version 2.11 it worked fine…\r\n> \r\n> With this change, tensorflow is almost impossible to use on **native cuda windows** (or be stuck at v2.10.1), for example if you need cuda custom ops or you can’t use wsl2 or you depend on the TF C-API…\r\n> \r\n> Perhaps a native cuda windows custom tensorflow build could be enabled for the users who wish to retain the functionality of the previous versions before 2.11 while also benefiting from the latest updates. That would be a reasonable compromise and a minor step back to native cuda on windows.\r\n> \r\n> I feel like you don’t understand me and you just want to ignore the problem like in the other issues I linked. That makes me very sad and disappointed, because tensorflow used to be my favorite framework. :(\r\n\r\nI used to love tensorflow too but I feel like they kinda want to kill users that work from development to production on Windows.\r\n\r\nWell okay it made it easier to update but at what cost ? You are just cutting of \"the legs\" of many projects.. That's really unfair in my opinion, If you want quality you always do what it takes to achieve it no ? So why not just continue with cuda support for Windows when it was literally very useful for many people ? Not everything are easy in life and this decition to remove tensorflow really sucks. Don't forget there are even companies that work with Windows from the development to production(even if not a lot) so you are cutting some companies because not everyone want to waste money to pay the developers to rewrite the \"whole\" project, it's not cheap and also a hard work.", "In [this TensorFlow blog](https://blog.tensorflow.org/2022/09/whats-new-in-tensorflow-210.html) please see section \"Expanded GPU support on Windows\". Also please see [TensorFlow install page](https://www.tensorflow.org/install/pip) and [this page](https://learn.microsoft.com/en-us/windows/ai/directml/gpu-tensorflow-plugin) for more info. Please feel free to sign up to the mailing list [email protected] to be notified of the most recent updates.\r\n", "I have tried to build TensorFlow 2.12 with CUDA on windows 10. Errors as follows:\r\n\r\n> C:\\Users\\tensorflow\\Downloads\\tensorflow-2.12.0>bazel build --config=opt --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=157\r\nINFO: Reading rc options for 'build' from c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Options provided by the client:\r\n 'build' options: --python_path=C:/Users/tensorflow/anaconda3/python.exe\r\nINFO: Reading rc options for 'build' from c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.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\nINFO: Reading rc options for 'build' from c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=C:/Users/tensorflow/anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/Users/tensorflow/anaconda3/lib/site-packages --python_path=C:/Users/tensorflow/anaconda3/python.exe --config=tensorrt --action_env CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8 --action_env TF_CUDA_COMPUTE_CAPABILITIES=3.5,5.0,6.1,7.0 --config=cuda --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true\r\nINFO: Reading rc options for 'build' from c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.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\r\nINFO: Found applicable config definition build:short_logs in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:tensorrt in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --repo_env TF_NEED_TENSORRT=1\r\nINFO: Found applicable config definition build:cuda in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda\r\nINFO: Found applicable config definition build:opt in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.tf_configure.bazelrc: --copt=/arch:AVX2 --host_copt=/arch:AVX2\r\nINFO: Found applicable config definition build:windows in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file --distinct_host_configuration=false\r\nINFO: Found applicable config definition build:monolithic in file c:\\users\\tensorflow\\downloads\\tensorflow-2.12.0\\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\n**ERROR: C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/compiler/xla/pjrt/BUILD:469:11: in cc_library rule //tensorflow/compiler/xla/pjrt:pjrt_future: target '@tf_runtime//:support' is not visible from target '//tensorflow/compiler/xla/pjrt:pjrt_future'. Check the visibility declaration of the former target if you think the dependency is legitimate**\r\nERROR: C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/compiler/xla/pjrt/BUILD:469:11: Analysis of target '//tensorflow/compiler/xla/pjrt:pjrt_future' failed\r\nINFO: Repository cudnn_frontend_archive instantiated at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/WORKSPACE:15:14: in <toplevel>\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:967:21: in workspace\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:171:20: in _tf_repositories\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository org_sqlite instantiated at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/WORKSPACE:15:14: in <toplevel>\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:967:21: in workspace\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:310:20: in _tf_repositories\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository mkl_dnn_v1 instantiated at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/WORKSPACE:15:14: in <toplevel>\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:967:21: in workspace\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/tensorflow/workspace2.bzl:188:20: in _tf_repositories\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/tensorflow/downloads/tensorflow-2.12.0/third_party/repo.bzl:89:35: in <toplevel>\r\nERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:\r\nINFO: Elapsed time: 221.760s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (558 packages loaded, 28119 targets configured)\r\n currently loading: @jsoncpp_git// ... (3 packages)\r\n Fetching repository @local_config_git; starting 9s\r\n Fetching https://storage.googleapis.com/mirror.tensorflow.org/github.com/oneapi-src/oneDNN/archive/refs/tags/v2.7.3.tar.gz; 1.2 MiB (1,220,608B)\r\n Fetching https://storage.googleapis.com/mirror.tensorflow.org/www.sqlite.org/2022/sqlite-amalgamation-3400100.zip; 84.4 KiB (86,386B)\r\n\r\nIs it solved in the latest 2.12 source code?", "I also think that is important. There is still many people using Windows as development environment.", "After switching back bazel to 5.3.0, I can run toolchain building until my disk has 7GB left and I stopped it. Don’t expect the build progress can be finished within a single bazel run. The server build script should run bazel command again when it failed (let say 10 times) to better handle errors like 404 not found and XXX is not defined.\r\nAlso, there should have option to let people choose prebuilt LLVM path, so we don’t need to waste days of time and GBs of space to build LLVM from code.\r\n\r\nBuild environment:\r\nWindows 10 1909\r\nVisual Studio 2022 (build tools 14.35)\r\nmsys2-x86_64-20230318\r\nCUDA 11.8\r\nCUDNN 8.6.0\r\nTensorRT 8.5.3", "While native GPU support on Windows will bring back the 5% perf increase and will support a few more users, please note that the total number of users of TF on Windows is very small compared to the other usecases and that there is almost no Windows expertise at Google to maintain this build. So, more than a year ago, it was decided to drop the Windows GPU support as the maintenance burden did not justify the costs, especially given that alternatives (i.e., WSL and using a Linux environment) exist.\r\n\r\nI acknowledge that this might not be desired answer (and that previous answers from team did not treat the issue accordingly), but this is the most we can reliably do.", "@mihaimaruseac Is it still possible to build from source on Windows with cuda? I'm sad that I can't benefit from the most recent works of tensorflow and I'd like to build from source myself. However if that means I need to modify lots of cpp code, the price is too high.", "It should still be possible. There's also tensorflow/build repo and SIG Build where community can provide help for that, it's just that Google cannot effectively maintain the build itself.", "> It should still be possible.\r\n\r\nIf you try to run bazel command again for several times (2 times in my case) without clean away the build progress, the errors related to XXX is not defined should be resolved.\r\n\r\n@mihaimaruseac My suggestion of prebuilt LLVM path isn't related to CUDA. Is this improvement out of the ability of tensorflow team?", "I'd recommend opening a new issue for LLVM stuff, though I don't think that would change. Google synchronizes the LLVM repository to the internal monorepo very frequently and because TF does not have an interface to LLVM it needs to keep integrating LLVM at a similar frequency (see the \"Integrate LLVM\" commits at https://github.com/tensorflow/tensorflow/commits?author=tensorflower-gardener).\r\n\r\nI have been suggesting that TF needs a stable interface for LLVM to reduce number of breakages caused by these integrates but to no avail", "> While native GPU support on Windows will bring back the 5% perf increase and will support a few more users, please note that the total number of users of TF on Windows is very small compared to the other usecases and that there is almost no Windows expertise at Google to maintain this build. So, more than a year ago, it was decided to drop the Windows GPU support as the maintenance burden did not justify the costs, especially given that alternatives (i.e., WSL and using a Linux environment) exist.\r\n> \r\n> I acknowledge that this might not be desired answer (and that previous answers from team did not treat the issue accordingly), but this is the most we can reliably do.\r\n\r\nFinally an answer that does not simply refers to some links or repeats documentations..., even if it is not really satisfying. If the google tensorflow team is not able to support the windows build, it is hardly possible for a private person to do so. are there plans to reactivate native cuda windows support? \r\n\r\n", "I agree with @GatGit12. Although it is cleared that it's still possible to build from source on windows with CUDA, I didn't find such a document or resource on SIG build. WSL2 is a choice, but far from an alternative... I think we can accept the support of only partial versions, for example, only v2.10, 2.13, 2.16 are supported with windows cuda, However all of us hope the tensorflow team to bring back support of native windows.", "We shouldn't expect much on tensorflow team. Before they willing to resume windows GPU build server for experimental build, nobody from the team can answer what actually `tsl::int32` is for [bug fixing](https://github.com/tensorflow/tensorflow/issues/60397). They can only reassign these issues to someone else and hope bot will close our issue soon.", "> I agree with @GatGit12. Although it is cleared that it's still possible to build from source on windows with CUDA, I didn't find such a document or resource on SIG build. WSL2 is a choice, but far from an alternative... I think we can accept the support of only partial versions, for example, only v2.10, 2.13, 2.16 are supported with windows cuda, However all of us hope the tensorflow team to bring back support of native windows.\r\n\r\nUnfortunately, this doesn't really work. Having a release build entails also having presubmit and postsubmit builds, otherwise the release process -- which already is delayed more than 3x compared to what used to be the case up to a year ago -- will be severly impacted as then the release engineer has to scramble and find people with Windows knowledge and fix all breakages.\r\n\r\nBut, having Windows + CUDA presubmit is what caused this decision to drop native CUDA support. There is no internal build at Google that uses Windows + CUDA, the number of developers that know the internals of MSVC + NVCC + CUDA that can also help fix issues in TF is very tiny. So development speed is severely impacted.\r\n\r\n> ...nobody from the team can answer what actually `tsl::int32` is for [bug fixing](https://github.com/tensorflow/tensorflow/issues/60397)....\r\n\r\nhttps://github.com/google/tsl/blob/35680b213852096df805c16cfcc92946c2040f38/tsl/platform/default/integral_types.h#L28\r\n\r\nFrom what I can see, the issue has only been moved from one TVC queue to another, but no one from the triage team has looked at it. Which is why you haven't seen even the default, keyword-based default answers.\r\n", "> > It should still be possible.\r\n> \r\n> If you try to run bazel command again for several times (2 times in my case) without clean away the build progress, the errors related to XXX is not defined should be resolved.\r\n> \r\n> @mihaimaruseac My suggestion of prebuilt LLVM path isn't related to CUDA. Is this improvement out of the ability of tensorflow team?\r\n\r\nI also tried building TF2.12 and TF2.13-rc0 on Windows with native CUDA. First, one has to replace the hardcoded if is_windows() in configure.py forcing that its not going to build with CUDA on Windows. But when the build process finally runs i also get errors (LLVM, triton, and stuff...) and the build can't be completed. --> So its seems that even the ability to build the Windows native CUDA package by yourself has been destroyed, which is a shame. Going back to the last native Cuda version (2.10) that compiled correctly and worked, and digging through cpp files that broke during the development of tf2.11/2.12/2.13 is a lot of effort.\r\n\r\nI really can't understand why TF is doing this, or in other words, has already taken this direction, since other equally large frameworks like JAX (https://jax.readthedocs.io/en/latest/developer.html#additional-notes-for-building-jaxlib-from-source-on-windows) and pytorch (https://github.com/pytorch/pytorch#from-source) both support a native CUDA Windows-based build. \r\n\r\nIn the meantime, issues keep popping up asking exactly for windows native cuda support, which shows that the need for this version is still there:\r\n- #https://github.com/tensorflow/tensorflow/issues/60172\r\n- #https://github.com/tensorflow/tensorflow/issues/60156\r\n- #https://github.com/tensorflow/tensorflow/issues/60241\r\n- #https://github.com/tensorflow/tensorflow/issues/60237\r\n\r\n", "Just adding another issue in need for native windows cuda support: \r\n\r\n- #https://github.com/tensorflow/tensorflow/issues/60650\r\n", "Please bring back native Windows CUDA support!!!!!!!!!\r\n", "Another user that needs native cuda support on windows: https://github.com/tensorflow/tensorflow/issues/60830", "I'm another user who would love to have this. Haven't logged an issue for this though. Although in my org we have already started on the workaround and are replacing tf with pytorch. Most of our models were transformers models so they would be easier to migrate. Still quite a lot of work. \r\n\r\nCompletely understand why it would not be possible to support this though. On a personal front this does forces me to move out of tf as well. I use PCs for most of my dev work and unfortunately wsl comes with its own issues at this moment.\r\n", "@mihaimaruseac While I understand supporting/maintaining GPU via CUDA natively on Windows is extra work, I also can't understand why Google can't do this (if PyTorch can do it...)\r\n\r\nAnyway, concrete question:\r\nI've recently installed a new desktop Windows machine with an NVida RTX 4080 and hoped to be able to use it for more speedy work with TF2 / Keras (I did set it up in dual boot with Ubuntu, but prefer working in Windows normally).\r\nWhat are my options:\r\n1. use TF2 in WSL2 (does this work nicely with PyCharm as IDE?)\r\n2. use TF2 in native Windows, and use a DirectML plugin that can fully utilize my NVidia card (is this possible in a stable way now? more concrete info?)\r\n", "Someone using windows that is stuck to 2.10.1: https://github.com/tensorflow/tensorflow/issues/61178\r\nPlease also see: https://discuss.tensorflow.org/t/enable-windows-build-again/17806\r\n", "90% of the reports on my project are about this https://github.com/melMass/comfy_mtb/issues?q=is%3Aissue+sort%3Aupdated-desc+label%3A%22install+issue%22+is%3Aclosed\r\n\r\nFor now I'm supporting only python 3.10 so even if not ideal it was kind of working, I'm currently looking into supporting 3.11 but there 2.10 doesn't have wheels:\r\n\r\n```\r\n> pip install tensorflow==2.10.1\r\nERROR: Could not find a version that satisfies the requirement tensorflow==2.10.1 (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0)\r\nERROR: No matching distribution found for tensorflow==2.10.1\r\n```", "Building newest tensorflow is much harder than I think. If someone knows how to fix the following error, please create a pull request directly:\r\n\r\n> lld-link: error: undefined symbol: _mlir_ciface_XXX_GPU_DT_XXX_DT_XXX\r\n> referenced by gpu_XXX_op.lo.lib(gpu_op_XXX.obj):(public: virtual struct tensorflow::UnrankedMemRef __cdecl tensorflow::`anonymous namespace'::MlirXXXGPUDT_XXXDT_XXXOp::I\r\n> nvoke(class tensorflow::OpKernelContext *, class llvm::SmallVectorImpl struct tensorflow::UnrankedMemRef &))\r\n> \r\n> lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)", "@johnnkp i will need to look into it, any pointers to know about since I don't see mentions of build instructions for Windows?/", "I found out that `bazel-out\\x64_windows-opt\\bin\\tensorflow\\python\\pybind_symbol_target_libs_file.txt` is missing a line of `bazel-out/x64_windows-opt/bin/tensorflow/core/kernels/mlir_generated/base_op.lib`. Then, `bazel-out\\x64_windows-opt\\bin\\tensorflow\\python\\pywrap_tensorflow_filtered_def_file.def` is missing symbols of `base_op` and cause the above error.\r\n\r\nI have moved to ARM mac and no ML project on my hand. You need to try it yourself." ]
2023-03-07T09:15:17
2024-05-06T18:37:16
null
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.11 ### Custom Code Yes ### OS Platform and Distribution Windows 10 ### 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 very disappointed and sad that native Windows CUDA support was simply dropped. The replacement with WSL2 is not sufficient for processes and systems that are not able to use WSL2 because, for example, if they are also Windows-native applications and the port is too expensive. So we can only use version 2.10 (of both the Python and C APIs) and are stuck with it, which is a shame because it prevents us from benefiting from and participating in new developments. We also see a performance loss of about 5% in WSL2, which leads to higher power consumption and thus has a direct impact on our climate, which can make a big difference in our already very compute-intensive business. In addition, the Windows Direct-ML-Plugin interface is not sufficient, since the performance does not yet reach CUDA and optimizations like XLA and others are not supported. Also, you lose all your highly optimized and expensively developed TF CUDA Custom Ops. It is also clear that the native CUDA feature on Windows is much needed, see here in the following issues other people are looking for exactly the native CUDA feature on Windows: - #https://github.com/tensorflow/tensorflow/issues/58629 - #https://github.com/tensorflow/tensorflow/issues/58933 - #https://github.com/tensorflow/tensorflow/issues/59905 - #https://github.com/tensorflow/tensorflow/issues/59119 - #https://github.com/tensorflow/tensorflow/issues/59016 - #https://github.com/tensorflow/tensorflow/issues/58985 - #https://github.com/tensorflow/tensorflow/issues/58729 **All this leads to the simple exclusion and virtual discrimination of a large part of the Tensorflow community that uses CUDA Windows natively.** Why has support been dropped? You could at least keep support for CUDA Windows Native in custom builds. I hope and ask that you bring back Windows native CUDA support and let people decide for themselves if they want to use native CUDA or WSL2. Thank you for the development of Tensorflow! My favourite DL framework! :) ### Standalone code to reproduce the issue ```shell import tensorflow as tf print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU'))) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59918/reactions", "total_count": 42, "+1": 23, "-1": 1, "laugh": 0, "hooray": 0, "confused": 0, "heart": 18, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59918/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59917
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59917/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59917/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59917/events
https://github.com/tensorflow/tensorflow/pull/59917
1,612,781,173
PR_kwDOArmXAs5LcL0m
59,917
[XLA] Compute type for f8 gemm defaults to COMPUTE_32F
{ "login": "wenscarl", "id": 25590028, "node_id": "MDQ6VXNlcjI1NTkwMDI4", "avatar_url": "https://avatars.githubusercontent.com/u/25590028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wenscarl", "html_url": "https://github.com/wenscarl", "followers_url": "https://api.github.com/users/wenscarl/followers", "following_url": "https://api.github.com/users/wenscarl/following{/other_user}", "gists_url": "https://api.github.com/users/wenscarl/gists{/gist_id}", "starred_url": "https://api.github.com/users/wenscarl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wenscarl/subscriptions", "organizations_url": "https://api.github.com/users/wenscarl/orgs", "repos_url": "https://api.github.com/users/wenscarl/repos", "events_url": "https://api.github.com/users/wenscarl/events{/privacy}", "received_events_url": "https://api.github.com/users/wenscarl/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": 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-03-07T05:58:02
2023-03-09T11:28:16
2023-03-09T11:28:16
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59917", "html_url": "https://github.com/tensorflow/tensorflow/pull/59917", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59917.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59917.patch", "merged_at": "2023-03-09T11:28:15" }
When TF32 is enabled, `computation_type` is decided based on `output_type` which is default to TF32. But cuBLAS LT does not support the type `COMPUTE_32F_FAST_TF32` for FP8 gemm.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59917/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/59917/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59916
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59916/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59916/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59916/events
https://github.com/tensorflow/tensorflow/pull/59916
1,612,296,613
PR_kwDOArmXAs5LakSP
59,916
Update link to Hexagon delegate guide
{ "login": "klchiu", "id": 52798470, "node_id": "MDQ6VXNlcjUyNzk4NDcw", "avatar_url": "https://avatars.githubusercontent.com/u/52798470?v=4", "gravatar_id": "", "url": "https://api.github.com/users/klchiu", "html_url": "https://github.com/klchiu", "followers_url": "https://api.github.com/users/klchiu/followers", "following_url": "https://api.github.com/users/klchiu/following{/other_user}", "gists_url": "https://api.github.com/users/klchiu/gists{/gist_id}", "starred_url": "https://api.github.com/users/klchiu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klchiu/subscriptions", "organizations_url": "https://api.github.com/users/klchiu/orgs", "repos_url": "https://api.github.com/users/klchiu/repos", "events_url": "https://api.github.com/users/klchiu/events{/privacy}", "received_events_url": "https://api.github.com/users/klchiu/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": 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/59916/checks?check_run_id=11805843005) 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 @yijie-yang Can you please review this PR ? Thank you!", "Hi @gbaned, I'm not authorized to merge this PR. Could you request it from Hexagon team?" ]
2023-03-06T22:17:37
2023-04-03T20:57:31
2023-04-03T20:57:31
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59916", "html_url": "https://github.com/tensorflow/tensorflow/pull/59916", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59916.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59916.patch", "merged_at": "2023-04-03T20:57:31" }
In TensorFlow Lite C++ image classification demo, the link to the Hexagon delegate guide is outdated. This PR updates it to the correct one.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59916/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/59916/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59915
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59915/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59915/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59915/events
https://github.com/tensorflow/tensorflow/pull/59915
1,612,082,392
PR_kwDOArmXAs5LZ2Kg
59,915
[NVIDIA XLA:GPU] Do not show the C stack trace when there is a too old cudnn version.
{ "login": "nouiz", "id": 180987, "node_id": "MDQ6VXNlcjE4MDk4Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/180987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nouiz", "html_url": "https://github.com/nouiz", "followers_url": "https://api.github.com/users/nouiz/followers", "following_url": "https://api.github.com/users/nouiz/following{/other_user}", "gists_url": "https://api.github.com/users/nouiz/gists{/gist_id}", "starred_url": "https://api.github.com/users/nouiz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nouiz/subscriptions", "organizations_url": "https://api.github.com/users/nouiz/orgs", "repos_url": "https://api.github.com/users/nouiz/repos", "events_url": "https://api.github.com/users/nouiz/events{/privacy}", "received_events_url": "https://api.github.com/users/nouiz/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": 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
[ "@hawkinsp \r\n", "The CI failed, but it doesn't seem related.", "Our internal CI which is stricter about dependencies is complaining because the function you are calling is in `tensorflow/tsl/platform/errors.h` but that file is not present via a BUILD dependency. So I think you need to add a build dependency.", "I amended the commit.", "Any update? It was approved, the CI that I see passed, but it didn't got merged.", "It seem stuck. My current hypothesis is there's a merge conflict.\r\n\r\nYou can either rebase the PR on head or I can apply it for you.", "I rebased. No conflict. Hopefully it will get in this time." ]
2023-03-06T19:34:37
2023-03-16T15:08:22
2023-03-16T12:58:55
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59915", "html_url": "https://github.com/tensorflow/tensorflow/pull/59915", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59915.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59915.patch", "merged_at": "2023-03-16T12:58:55" }
Make user environment issue not raise a C stack trace to be more user readable.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59915/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/59915/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59914
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59914/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59914/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59914/events
https://github.com/tensorflow/tensorflow/pull/59914
1,611,909,648
PR_kwDOArmXAs5LZQuR
59,914
[tosa][fix] align scale_n of resize to the spec for input size of 1 case
{ "login": "tatwaichong", "id": 78814694, "node_id": "MDQ6VXNlcjc4ODE0Njk0", "avatar_url": "https://avatars.githubusercontent.com/u/78814694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tatwaichong", "html_url": "https://github.com/tatwaichong", "followers_url": "https://api.github.com/users/tatwaichong/followers", "following_url": "https://api.github.com/users/tatwaichong/following{/other_user}", "gists_url": "https://api.github.com/users/tatwaichong/gists{/gist_id}", "starred_url": "https://api.github.com/users/tatwaichong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tatwaichong/subscriptions", "organizations_url": "https://api.github.com/users/tatwaichong/orgs", "repos_url": "https://api.github.com/users/tatwaichong/repos", "events_url": "https://api.github.com/users/tatwaichong/events{/privacy}", "received_events_url": "https://api.github.com/users/tatwaichong/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": 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
[ "Hi @rsuderman, I'm not sure if tosa-to-linalg will be broken with this setting. Could you take a look at this if any chance?", "move the new tests back, and delete the new test file. " ]
2023-03-06T17:36:12
2023-04-10T21:03:14
2023-03-20T20:16:28
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59914", "html_url": "https://github.com/tensorflow/tensorflow/pull/59914", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59914.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59914.patch", "merged_at": "2023-03-20T20:16:28" }
For input size of 1, the scale should be output / 1. This creates a step through the input of 1 / output, which will always resolve to input[0]. If scale_n == 1, that would imply a step of size 1, which reads outside of the input for anything but the first output location.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59914/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/59914/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59913
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59913/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59913/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59913/events
https://github.com/tensorflow/tensorflow/issues/59913
1,611,286,175
I_kwDOArmXAs5gCkaf
59,913
Optional xnnpack feature relies on weak symbols which are unavailable on Windows
{ "login": "georgthegreat", "id": 1121500, "node_id": "MDQ6VXNlcjExMjE1MDA=", "avatar_url": "https://avatars.githubusercontent.com/u/1121500?v=4", "gravatar_id": "", "url": "https://api.github.com/users/georgthegreat", "html_url": "https://github.com/georgthegreat", "followers_url": "https://api.github.com/users/georgthegreat/followers", "following_url": "https://api.github.com/users/georgthegreat/following{/other_user}", "gists_url": "https://api.github.com/users/georgthegreat/gists{/gist_id}", "starred_url": "https://api.github.com/users/georgthegreat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/georgthegreat/subscriptions", "organizations_url": "https://api.github.com/users/georgthegreat/orgs", "repos_url": "https://api.github.com/users/georgthegreat/repos", "events_url": "https://api.github.com/users/georgthegreat/events{/privacy}", "received_events_url": "https://api.github.com/users/georgthegreat/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": 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" }, { "id": 2726299159, "node_id": "MDU6TGFiZWwyNzI2Mjk5MTU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-xnnpack", "name": "comp:lite-xnnpack", "color": "97F7B2", "default": false, "description": "TensorFlow Lite XNNPack related issues" } ]
open
false
{ "login": "alankelly", "id": 5112267, "node_id": "MDQ6VXNlcjUxMTIyNjc=", "avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alankelly", "html_url": "https://github.com/alankelly", "followers_url": "https://api.github.com/users/alankelly/followers", "following_url": "https://api.github.com/users/alankelly/following{/other_user}", "gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}", "starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alankelly/subscriptions", "organizations_url": "https://api.github.com/users/alankelly/orgs", "repos_url": "https://api.github.com/users/alankelly/repos", "events_url": "https://api.github.com/users/alankelly/events{/privacy}", "received_events_url": "https://api.github.com/users/alankelly/received_events", "type": "User", "site_admin": false }
[ { "login": "alankelly", "id": 5112267, "node_id": "MDQ6VXNlcjUxMTIyNjc=", "avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alankelly", "html_url": "https://github.com/alankelly", "followers_url": "https://api.github.com/users/alankelly/followers", "following_url": "https://api.github.com/users/alankelly/following{/other_user}", "gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}", "starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alankelly/subscriptions", "organizations_url": "https://api.github.com/users/alankelly/orgs", "repos_url": "https://api.github.com/users/alankelly/repos", "events_url": "https://api.github.com/users/alankelly/events{/privacy}", "received_events_url": "https://api.github.com/users/alankelly/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
[ "@georgthegreat,\r\nCould you please elaborate about your Feature. Also, please specify the Use Cases for this feature. Thank you!", "We operate a monorepo with single tflite configuration available to the end users (similar to Piper / build system is similar to Bazel).\r\nCertain users would like to use tflite without xnnpack delegate, while other would like to continue using it.\r\nAt the time switching xnnpack on and off is available by the means of weak linker symbol which might be overrided during link time.\r\n\r\nAs weak symbols are not supported on Windows, we can not use current approach in cross-platform software.\r\nI have managed to implement the xnnpack switch by forcing every user of tflite to add explicit dependency on either `delegates/xnnpack` or (added by myself) `delegates/xnnpack_disabled`.\r\n\r\nI would like to upstream this feature, but I would like to get OK from Google in advance.", "@alankelly, could you, please, take a look?\r\n" ]
2023-03-06T12:16:14
2023-05-15T13:59:36
null
CONTRIBUTOR
null
null
null
### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Tensorflow Version 2.4 ### Current Behaviour? At the time tflite comes with optional xnnpack feature which relies on TFLITE_ATTRIBUTE_WEAK attribute applied to a delegate function. As there are no weak symbols on Windows, this feature can not be used universally (i. e. independent from target platform). I suggest switching this feature on / off in configure time (when build with CMake) or via explicit choosing of option (when build with Bazel). This will force every client to explicitly add a dependency on either xnnpack_enabled or xnnpack_disabled library, just in the same way as with other delegates (i. e. nnapi). What do you think?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59913/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/59913/timeline
null
null
false