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/61164
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61164/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61164/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61164/events
https://github.com/tensorflow/tensorflow/issues/61164
1,786,465,460
I_kwDOArmXAs5qe0y0
61,164
//tensorflow/dtensor/mlir/tests:spmd_expansion.mlir.test is flaky
{ "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": "rainwoodman", "id": 138060, "node_id": "MDQ6VXNlcjEzODA2MA==", "avatar_url": "https://avatars.githubusercontent.com/u/138060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rainwoodman", "html_url": "https://github.com/rainwoodman", "followers_url": "https://api.github.com/users/rainwoodman/followers", "following_url": "https://api.github.com/users/rainwoodman/following{/other_user}", "gists_url": "https://api.github.com/users/rainwoodman/gists{/gist_id}", "starred_url": "https://api.github.com/users/rainwoodman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rainwoodman/subscriptions", "organizations_url": "https://api.github.com/users/rainwoodman/orgs", "repos_url": "https://api.github.com/users/rainwoodman/repos", "events_url": "https://api.github.com/users/rainwoodman/events{/privacy}", "received_events_url": "https://api.github.com/users/rainwoodman/received_events", "type": "User", "site_admin": false }
[ { "login": "rainwoodman", "id": 138060, "node_id": "MDQ6VXNlcjEzODA2MA==", "avatar_url": "https://avatars.githubusercontent.com/u/138060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rainwoodman", "html_url": "https://github.com/rainwoodman", "followers_url": "https://api.github.com/users/rainwoodman/followers", "following_url": "https://api.github.com/users/rainwoodman/following{/other_user}", "gists_url": "https://api.github.com/users/rainwoodman/gists{/gist_id}", "starred_url": "https://api.github.com/users/rainwoodman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rainwoodman/subscriptions", "organizations_url": "https://api.github.com/users/rainwoodman/orgs", "repos_url": "https://api.github.com/users/rainwoodman/repos", "events_url": "https://api.github.com/users/rainwoodman/events{/privacy}", "received_events_url": "https://api.github.com/users/rainwoodman/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
[ "@rishikasinha-tf " ]
2023-07-03T16:06:21
2023-07-11T04:36:48
null
CONTRIBUTOR
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version git HEAD ### Custom code No ### OS platform and distribution Ubuntu 20.04 ### Mobile device n/a ### Python version 3.9.16 ### Bazel version 6.1.0 ### GCC/compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current behavior? //tensorflow/dtensor/mlir/tests:spmd_expansion.mlir.test unit test fails occasionally x86 log https://source.cloud.google.com/results/invocations/88910868-abeb-4aa0-8954-df2b79ef5a26/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5420661339/jobs/9855097285 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=rbe --config=pycpp --config=build_event_export ``` ### Relevant log output ```shell FAIL: //tensorflow/dtensor/mlir/tests:spmd_expansion.mlir.test (see /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/testlogs/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test/test.log) INFO: From Testing //tensorflow/dtensor/mlir/tests:spmd_expansion.mlir.test: ==================== Test output for //tensorflow/dtensor/mlir/tests:spmd_expansion.mlir.test: -- Testing: 1 tests, 1 workers -- FAIL: MLIR tests :: spmd_expansion.mlir (1 of 1) ******************** TEST 'MLIR tests :: spmd_expansion.mlir' FAILED ******************** Script: -- : 'RUN: at line 1'; /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/dtensor-opt -- /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir -split-input-file -dtensor-annotate-global-shape -dtensor-spmd-expansion -verify-diagnostics | /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/llvm-project/llvm/FileCheck /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir -- Exit Code: 1 Command Output (stderr): -- 2023-07-03 09:20:51.133345: 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`. TensorFlow crashed, please file a bug on https://github.com/tensorflow/tensorflow/issues with the trace below. Stack dump: 0. Program arguments: /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/dtensor-opt /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/dtensor-opt /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir -split-input-file -dtensor-annotate-global-shape -dtensor-spmd-expansion -verify-diagnostics 1. Program arguments: /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/dtensor-opt /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir -split-input-file -dtensor-annotate-global-shape -dtensor-spmd-expansion -verify-diagnostics Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libtensorflow_framework.so.2 0x00007f49dfe75e6e llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 46 1 libtensorflow_framework.so.2 0x00007f49dfe73f07 llvm::sys::RunSignalHandlers() + 87 2 libtensorflow_framework.so.2 0x00007f49dfe76692 3 libpthread.so.0 0x00007f49dea05420 4 dtensor-opt 0x0000562b92fdd978 5 dtensor-opt 0x0000562b92fdd11a 6 dtensor-opt 0x0000562b92fde2b9 7 dtensor-opt 0x0000562b92f94499 8 dtensor-opt 0x0000562b92fb7b91 9 dtensor-opt 0x0000562b92fb85bf 10 dtensor-opt 0x0000562b92eca421 11 dtensor-opt 0x0000562b94e800d4 12 dtensor-opt 0x0000562b94e82d17 13 dtensor-opt 0x0000562b94e82ae5 14 dtensor-opt 0x0000562b948df256 15 dtensor-opt 0x0000562b948de53a 16 dtensor-opt 0x0000562b9502d603 17 dtensor-opt 0x0000562b9502d34e 18 dtensor-opt 0x0000562b948da857 19 dtensor-opt 0x0000562b948dad3d 20 dtensor-opt 0x0000562b92d80fcc 21 libc.so.6 0x00007f49de626083 __libc_start_main + 243 22 dtensor-opt 0x0000562b92d80d39 Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libtensorflow_framework.so.2 0x00007f49dfe75e6e llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 46 1 libtensorflow_framework.so.2 0x00007f49dfe73f37 llvm::sys::RunSignalHandlers() + 135 2 libtensorflow_framework.so.2 0x00007f49dfe76692 3 libpthread.so.0 0x00007f49dea05420 4 dtensor-opt 0x0000562b92fdd978 5 dtensor-opt 0x0000562b92fdd11a 6 dtensor-opt 0x0000562b92fde2b9 7 dtensor-opt 0x0000562b92f94499 8 dtensor-opt 0x0000562b92fb7b91 9 dtensor-opt 0x0000562b92fb85bf 10 dtensor-opt 0x0000562b92eca421 11 dtensor-opt 0x0000562b94e800d4 12 dtensor-opt 0x0000562b94e82d17 13 dtensor-opt 0x0000562b94e82ae5 14 dtensor-opt 0x0000562b948df256 15 dtensor-opt 0x0000562b948de53a 16 dtensor-opt 0x0000562b9502d603 17 dtensor-opt 0x0000562b9502d34e 18 dtensor-opt 0x0000562b948da857 19 dtensor-opt 0x0000562b948dad3d 20 dtensor-opt 0x0000562b92d80fcc 21 libc.so.6 0x00007f49de626083 __libc_start_main + 243 22 dtensor-opt 0x0000562b92d80d39 /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir:277:17: error: CHECK-LABEL: expected string not found in input // CHECK-LABEL: module @test_spmd_softmax_rank_3 ^ <stdin>:153:45: note: scanning from here module @test_spmd_softmax_last_dim_unsharded { ^ <stdin>:156:303: note: possible intended match here %0 = "tf.Softmax"(%arg0) {_global_shape = [#tf_type.shape<32x32>], _layout = ["sharding_specs:x,unsharded, mesh:TPU|x=2,y=2|0,1,2,3|0,1,2,3|/job:localhost/task:0/device:TPU:0,/job:localhost/task:0/device:TPU:1,/job:localhost/task:0/device:TPU:2,/job:localhost/task:0/device:TPU:3"]} : (tensor<16x32xf32>) -> tensor<16x32xf32> ^ Input file: <stdin> Check file: /b/f/w/bazel-out/k8-opt/bin/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir.test.runfiles/org_tensorflow/tensorflow/dtensor/mlir/tests/spmd_expansion.mlir -dump-input=help explains the following input dump. Input was: <<<<<< . . . 148: } 149: } 150: 151: 152: // ----- 153: module @test_spmd_softmax_last_dim_unsharded { label:277'0 X~~ error: no match found 154: func.func @main(%arg0: tensor<16x32xf32> {tf._global_shape = #tf_type.shape<32x32>, tf._layout = "sharding_specs:x,unsharded, mesh:TPU|x=2,y=2|0,1,2,3|0,1,2,3|/job:localhost/task:0/device:TPU:0,/job:localhost/task:0/device:TPU:1,/job:localhost/task:0/device:TPU:2,/job:localhost/task:0/device:TPU:3"}) { label:277'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 155: "tf_device.cluster"() ({ label:277'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~ 156: %0 = "tf.Softmax"(%arg0) {_global_shape = [#tf_type.shape<32x32>], _layout = ["sharding_specs:x,unsharded, mesh:TPU|x=2,y=2|0,1,2,3|0,1,2,3|/job:localhost/task:0/device:TPU:0,/job:localhost/task:0/device:TPU:1,/job:localhost/task:0/device:TPU:2,/job:localhost/task:0/device:TPU:3"]} : (tensor<16x32xf32>) -> tensor<16x32xf32> label:277'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ label:277'1 ? possible intended match 157: tf_device.return {_global_shape = [], _layout = []} label:277'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 158: }) {_global_shape = [], _mesh = "TPU|x=2,y=2|0,1,2,3|0,1,2,3|/job:localhost/task:0/device:TPU:0,/job:localhost/task:0/device:TPU:1,/job:localhost/task:0/device:TPU:2,/job:localhost/task:0/device:TPU:3"} : () -> () label:277'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159: return label:277'0 ~~~~~~~~ 160: } label:277'0 ~~~ 161: } label:277'0 ~~ 162: label:277'0 ~ >>>>>> -- ******************** ******************** Failed Tests (1): MLIR tests :: spmd_expansion.mlir ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61164/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/61164/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61163
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61163/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61163/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61163/events
https://github.com/tensorflow/tensorflow/issues/61163
1,786,277,018
I_kwDOArmXAs5qeGya
61,163
assert_shapes does not return anything and cannot be used as control dependency
{ "login": "javidcf", "id": 1098280, "node_id": "MDQ6VXNlcjEwOTgyODA=", "avatar_url": "https://avatars.githubusercontent.com/u/1098280?v=4", "gravatar_id": "", "url": "https://api.github.com/users/javidcf", "html_url": "https://github.com/javidcf", "followers_url": "https://api.github.com/users/javidcf/followers", "following_url": "https://api.github.com/users/javidcf/following{/other_user}", "gists_url": "https://api.github.com/users/javidcf/gists{/gist_id}", "starred_url": "https://api.github.com/users/javidcf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/javidcf/subscriptions", "organizations_url": "https://api.github.com/users/javidcf/orgs", "repos_url": "https://api.github.com/users/javidcf/repos", "events_url": "https://api.github.com/users/javidcf/events{/privacy}", "received_events_url": "https://api.github.com/users/javidcf/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": 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": 3911105852, "node_id": "LA_kwDOArmXAs7pHr08", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20PR%20merge", "name": "awaiting PR merge", "color": "4080bf", "default": false, "description": "awaiting PR merge" } ]
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
[ "@javidcf Could you please have a look at [this](https://github.com/tensorflow/tensorflow/commit/11fc1489d01822a2e728103c3af998976b4e7cd1) commit and the similar [issue](https://github.com/tensorflow/tensorflow/issues/36268)?\r\nPlease let me know if that helps?\r\nThank you!", "@sushreebarsa Thank you for your comment. I do not think that is the same issue, though. As far as I can tell, `assert_shapes_v2` still returns nothing (`None`) in the updated version, so the issue (`Can not convert a NoneType into a Tensor or Operation`) would still remain.", "@javidcf Thank you for the response!\r\n@sachinprasadhs I was able to replicate this issue on colab using TF [v2.13](https://colab.research.google.com/gist/sushreebarsa/c3ac3eb222690fcad0995228f8776ac1/61163.ipynb#scrollTo=DJdrqrY_gvhv) and tf-[nightly](https://colab.research.google.com/gist/sushreebarsa/d248f16d897678e057daa3fbd308bcdf/61163.ipynb#scrollTo=DJdrqrY_gvhv). Please find the attached gists. 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/61163\">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/61163\">No</a>\n" ]
2023-07-03T14:18:14
2023-11-10T21:03:26
2023-11-10T21:03:24
CONTRIBUTOR
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version 2.14.0-dev20230606 ### Custom code Yes ### OS platform and distribution Windows 11 x64 ### Mobile device NA ### Python version 3.10 ### Bazel version NA ### GCC/compiler version NA ### CUDA/cuDNN version NA ### GPU model and memory NA ### Current behavior? Calling `tf.debugging.assert_shapes(...)` does not return anything. As a consequence, unlike other assert operations, trying to use this assert as a control dependency with `tf.control_dependencies` in graph mode fails with `TypeError: Can not convert a NoneType into a Tensor or Operation`. Presumably, this would be fixed by simply adding a `return` before the call to `assert_shapes` in `assert_shapes_v2` in [`tensorflow/python/ops/check_ops.py`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/check_ops.py). But I'd rather someone familiar with the code to judge whether that is fine orif maybe there is was a reason why this op is not returned. ### Standalone code to reproduce the issue ```shell import tensorflow as tf @tf.function def my_func(x): with tf.control_dependencies([tf.debugging.assert_shapes([(x, (2,))])]): return x + 2 my_func([1, 2]) # TypeError: Can not convert a NoneType into a Tensor or Operation. ``` ### Relevant log output ```shell (...) my_func * with tf.control_dependencies([tf.debugging.assert_shapes([(x, (2,))])]): (...)\site-packages\tensorflow\python\framework\ops.py:5359 control_dependencies return get_default_graph().control_dependencies(control_inputs) (...)\site-packages\tensorflow\python\framework\func_graph.py:362 control_dependencies return super(FuncGraph, self).control_dependencies(filtered_control_inputs) (...)\site-packages\tensorflow\python\framework\ops.py:4815 control_dependencies c = self.as_graph_element(c) (...)\site-packages\tensorflow\python\framework\ops.py:3726 as_graph_element return self._as_graph_element_locked(obj, allow_tensor, allow_operation) (...)\site-packages\tensorflow\python\framework\ops.py:3815 _as_graph_element_locked (type(obj).__name__, types_str)) TypeError: Can not convert a NoneType into a Tensor or Operation. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61163/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/61163/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61162
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61162/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61162/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61162/events
https://github.com/tensorflow/tensorflow/issues/61162
1,786,152,343
I_kwDOArmXAs5qdoWX
61,162
Vectorizing a mapping function containing tf.io.read_file in tf.data pipeline is not working.
{ "login": "AkshayRoyal", "id": 10032879, "node_id": "MDQ6VXNlcjEwMDMyODc5", "avatar_url": "https://avatars.githubusercontent.com/u/10032879?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AkshayRoyal", "html_url": "https://github.com/AkshayRoyal", "followers_url": "https://api.github.com/users/AkshayRoyal/followers", "following_url": "https://api.github.com/users/AkshayRoyal/following{/other_user}", "gists_url": "https://api.github.com/users/AkshayRoyal/gists{/gist_id}", "starred_url": "https://api.github.com/users/AkshayRoyal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AkshayRoyal/subscriptions", "organizations_url": "https://api.github.com/users/AkshayRoyal/orgs", "repos_url": "https://api.github.com/users/AkshayRoyal/repos", "events_url": "https://api.github.com/users/AkshayRoyal/events{/privacy}", "received_events_url": "https://api.github.com/users/AkshayRoyal/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": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "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": "wilsingosti", "id": 93937952, "node_id": "U_kgDOBZlhIA", "avatar_url": "https://avatars.githubusercontent.com/u/93937952?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wilsingosti", "html_url": "https://github.com/wilsingosti", "followers_url": "https://api.github.com/users/wilsingosti/followers", "following_url": "https://api.github.com/users/wilsingosti/following{/other_user}", "gists_url": "https://api.github.com/users/wilsingosti/gists{/gist_id}", "starred_url": "https://api.github.com/users/wilsingosti/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wilsingosti/subscriptions", "organizations_url": "https://api.github.com/users/wilsingosti/orgs", "repos_url": "https://api.github.com/users/wilsingosti/repos", "events_url": "https://api.github.com/users/wilsingosti/events{/privacy}", "received_events_url": "https://api.github.com/users/wilsingosti/received_events", "type": "User", "site_admin": false } ]
null
[ "@sachinprasadhs,\r\nI was able to reproduce the issue on tensorflow v2.12 and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/8fee6b4c8b5090859107c7268116cc61/untitled1220.ipynb)." ]
2023-07-03T13:08:00
2023-07-14T22:21:11
null
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? No ### Source source ### TensorFlow version v2.12.0-rc1-12-g0db597d0d75 2.12.0 ### Custom code Yes ### OS platform and distribution RHEL8 .8 ### Mobile device _No response_ ### Python version 3.10.11 ### Bazel version _No response_ ### GCC/compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current behavior? I have a function that reads input files, does some processing and returns the files. Upon using that function to do processing without batching first works fine. i.e. `dataset.map(some_func).batch(batch_size)` I was trying to speed up the data pipeline by vectorizing the processing part by batching the dataset and then mapping it to the tf.py_function i.e `dataset.batch(batch_size).map(tf.py_func_wrapped_function)` I followed the tensorflow guide for [optimizing pipeline performance](https://www.tensorflow.org/guide/data_performance#vectorizing_mapping) ### Standalone code to reproduce the issue ```shell import tensorflow as tf import pathlib import os import matplotlib.pyplot as plt flowers = tf.keras.utils.get_file( 'flower_photos', 'https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz', untar=True) flowers = pathlib.Path(flowers) list_ds = tf.data.Dataset.list_files(str(flowers/'*/*'),shuffle=False) list_ds for f in list_ds.take(10): print(f.numpy()) # Reads an image from a file, decodes it into a dense tensor, and resizes it # to a fixed shape. def parse_image(filename): parts = tf.strings.split(filename, os.sep) label = parts[-2] image = tf.io.read_file(filename) image = tf.image.decode_jpeg(image) image = tf.image.convert_image_dtype(image, tf.float32) image = tf.image.resize(image, [128, 128]) return image, label dataset1 = list_ds.map(parse_image).batch(32)#map then batch, scalar mapping el = next(iter(dataset1)) plt.imshow(el[0][0]) plt.title(el[1][0].numpy().decode('utf-8')) dataset2 = list_ds.batch(32).map(parse_image) #batch then map(vectorized mapping), should work ``` ### Relevant log output ```shell --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[38], line 1 ----> 1 dataset2 = list_ds.batch(32).map(parse_image) #batch then map(vectorized mapping), should work File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/dataset_ops.py:2240, in DatasetV2.map(self, map_func, num_parallel_calls, deterministic, name) 2236 # Loaded lazily due to a circular dependency (dataset_ops -> map_op -> 2237 # dataset_ops). 2238 # pylint: disable=g-import-not-at-top,protected-access 2239 from tensorflow.python.data.ops import map_op -> 2240 return map_op._map_v2( 2241 self, 2242 map_func, 2243 num_parallel_calls=num_parallel_calls, 2244 deterministic=deterministic, 2245 name=name) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/map_op.py:37, in _map_v2(input_dataset, map_func, num_parallel_calls, deterministic, name) 34 if deterministic is not None and not debug_mode.DEBUG_MODE: 35 warnings.warn("The `deterministic` argument has no effect unless the " 36 "`num_parallel_calls` argument is specified.") ---> 37 return _MapDataset( 38 input_dataset, map_func, preserve_cardinality=True, name=name) 39 else: 40 return _ParallelMapDataset( 41 input_dataset, 42 map_func, (...) 45 preserve_cardinality=True, 46 name=name) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/map_op.py:107, in _MapDataset.__init__(self, input_dataset, map_func, use_inter_op_parallelism, preserve_cardinality, use_legacy_function, name) 105 self._use_inter_op_parallelism = use_inter_op_parallelism 106 self._preserve_cardinality = preserve_cardinality --> 107 self._map_func = structured_function.StructuredFunctionWrapper( 108 map_func, 109 self._transformation_name(), 110 dataset=input_dataset, 111 use_legacy_function=use_legacy_function) 112 self._name = name 113 variant_tensor = gen_dataset_ops.map_dataset( 114 input_dataset._variant_tensor, # pylint: disable=protected-access 115 self._map_func.function.captured_inputs, (...) 118 preserve_cardinality=self._preserve_cardinality, 119 **self._common_args) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/structured_function.py:261, in StructuredFunctionWrapper.__init__(self, func, transformation_name, dataset, input_classes, input_shapes, input_types, input_structure, add_to_graph, use_legacy_function, defun_kwargs) 254 warnings.warn( 255 "Even though the `tf.config.experimental_run_functions_eagerly` " 256 "option is set, this option does not apply to tf.data functions. " 257 "To force eager execution of tf.data functions, please use " 258 "`tf.data.experimental.enable_debug_mode()`.") 259 fn_factory = trace_tf_function(defun_kwargs) --> 261 self._function = fn_factory() 262 # There is no graph to add in eager mode. 263 add_to_graph &= not context.executing_eagerly() File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py:232, in TracingCompiler.get_concrete_function(self, *args, **kwargs) 223 def get_concrete_function(self, *args, **kwargs): 224 """Returns a `ConcreteFunction` specialized to inputs and execution context. 225 226 Args: (...) 230 `tf.Tensor` or `tf.TensorSpec`. 231 """ --> 232 concrete_function = self._get_concrete_function_garbage_collected( 233 *args, **kwargs) 234 concrete_function._garbage_collector.release() # pylint: disable=protected-access 235 return concrete_function File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py:202, in TracingCompiler._get_concrete_function_garbage_collected(self, *args, **kwargs) 199 self._function_spec.make_canonicalized_monomorphic_type(args, kwargs) 201 with self._lock: --> 202 concrete_function, _ = self._maybe_define_concrete_function(args, kwargs) 203 seen_names = set() 204 concrete_function._arg_keywords = [] # pylint: disable=protected-access File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py:166, in TracingCompiler._maybe_define_concrete_function(self, args, kwargs) 163 args = self.input_signature 164 kwargs = {} --> 166 return self._maybe_define_function(args, kwargs) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py:396, in TracingCompiler._maybe_define_function(self, args, kwargs) 393 args = placeholder_bound_args.args 394 kwargs = placeholder_bound_args.kwargs --> 396 concrete_function = self._create_concrete_function( 397 args, kwargs, func_graph) 399 # TODO(b/263520817): Remove access to private attribute. 400 graph_capture_container = concrete_function.graph._function_captures # pylint: disable=protected-access File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/eager/polymorphic_function/tracing_compiler.py:300, in TracingCompiler._create_concrete_function(self, args, kwargs, func_graph) 296 else: 297 arg_names = base_arg_names 299 concrete_function = monomorphic_function.ConcreteFunction( --> 300 func_graph_module.func_graph_from_py_func( 301 self._name, 302 self._python_function, 303 args, 304 kwargs, 305 None, 306 func_graph=func_graph, 307 autograph=self._autograph, 308 autograph_options=self._autograph_options, 309 arg_names=arg_names, 310 capture_by_value=self._capture_by_value, 311 create_placeholders=False), 312 self._function_attributes, 313 spec=self.function_spec, 314 # Tell the ConcreteFunction to clean up its graph once it goes out of 315 # scope. This is not the default behavior since it gets used in some 316 # places (like Keras) where the FuncGraph lives longer than the 317 # ConcreteFunction. 318 shared_func_graph=False) 319 return concrete_function File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/func_graph.py:1214, in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, autograph_options, add_control_dependencies, arg_names, op_return_value, collections, capture_by_value, create_placeholders, acd_record_initial_resource_uses) 1211 else: 1212 _, original_func = tf_decorator.unwrap(python_func) -> 1214 func_outputs = python_func(*func_args, **func_kwargs) 1216 # invariant: `func_outputs` contains only Tensors, CompositeTensors, 1217 # TensorArrays and `None`s. 1218 func_outputs = variable_utils.convert_variables_to_tensors(func_outputs) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/structured_function.py:238, in StructuredFunctionWrapper.__init__.<locals>.trace_tf_function.<locals>.wrapped_fn(*args) 232 @eager_function.defun_with_attributes( 233 input_signature=structure.get_flat_tensor_specs( 234 self._input_structure), 235 autograph=False, 236 attributes=defun_kwargs) 237 def wrapped_fn(*args): # pylint: disable=missing-docstring --> 238 ret = wrapper_helper(*args) 239 ret = structure.to_tensor_list(self._output_structure, ret) 240 return [ops.convert_to_tensor(t) for t in ret] File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/data/ops/structured_function.py:169, in StructuredFunctionWrapper.__init__.<locals>.wrapper_helper(*args) 167 if not _should_unpack(nested_args): 168 nested_args = (nested_args,) --> 169 ret = autograph.tf_convert(self._func, ag_ctx)(*nested_args) 170 ret = variable_utils.convert_variables_to_tensors(ret) 171 if _should_pack(ret): File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/autograph/impl/api.py:692, in convert.<locals>.decorator.<locals>.wrapper(*args, **kwargs) 690 except Exception as e: # pylint:disable=broad-except 691 if hasattr(e, 'ag_error_metadata'): --> 692 raise e.ag_error_metadata.to_exception(e) 693 else: 694 raise File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/autograph/impl/api.py:689, in convert.<locals>.decorator.<locals>.wrapper(*args, **kwargs) 687 try: 688 with conversion_ctx: --> 689 return converted_call(f, args, kwargs, options=options) 690 except Exception as e: # pylint:disable=broad-except 691 if hasattr(e, 'ag_error_metadata'): File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/autograph/impl/api.py:439, in converted_call(f, args, kwargs, caller_fn_scope, options) 437 try: 438 if kwargs is not None: --> 439 result = converted_f(*effective_args, **kwargs) 440 else: 441 result = converted_f(*effective_args) File /tmp/__autograph_generated_filezgyxt99w.py:12, in outer_factory.<locals>.inner_factory.<locals>.tf__parse_image(filename) 10 parts = ag__.converted_call(ag__.ld(tf).strings.split, (ag__.ld(filename), ag__.ld(os).sep), None, fscope) 11 label = ag__.ld(parts)[-2] ---> 12 image = ag__.converted_call(ag__.ld(tf).io.read_file, (ag__.ld(filename),), None, fscope) 13 image = ag__.converted_call(ag__.ld(tf).image.decode_jpeg, (ag__.ld(image),), None, fscope) 14 image = ag__.converted_call(ag__.ld(tf).image.convert_image_dtype, (ag__.ld(image), ag__.ld(tf).float32), None, fscope) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/autograph/impl/api.py:331, in converted_call(f, args, kwargs, caller_fn_scope, options) 329 if conversion.is_in_allowlist_cache(f, options): 330 logging.log(2, 'Allowlisted %s: from cache', f) --> 331 return _call_unconverted(f, args, kwargs, options, False) 333 if ag_ctx.control_status_ctx().status == ag_ctx.Status.DISABLED: 334 logging.log(2, 'Allowlisted: %s: AutoGraph is disabled in context', f) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/autograph/impl/api.py:459, in _call_unconverted(f, args, kwargs, options, update_cache) 457 if kwargs is not None: 458 return f(*args, **kwargs) --> 459 return f(*args) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/ops/io_ops.py:133, in read_file(filename, name) 96 @tf_export("io.read_file", v1=["io.read_file", "read_file"]) 97 def read_file(filename, name=None): 98 """Reads the contents of file. 99 100 This operation returns a tensor with the entire contents of the input (...) 131 A tensor of dtype "string", with the file contents. 132 """ --> 133 return gen_io_ops.read_file(filename, name) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/ops/gen_io_ops.py:586, in read_file(filename, name) 584 pass # Add nodes to the TensorFlow graph. 585 # Add nodes to the TensorFlow graph. --> 586 _, _, _op, _outputs = _op_def_library._apply_op_helper( 587 "ReadFile", filename=filename, name=name) 588 _result = _outputs[:] 589 if _execute.must_record_gradient(): File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/op_def_library.py:795, in _apply_op_helper(op_type_name, name, **keywords) 790 must_colocate_inputs = [val for arg, val in zip(op_def.input_arg, inputs) 791 if arg.is_ref] 792 with _MaybeColocateWith(must_colocate_inputs): 793 # Add Op to graph 794 # pylint: disable=protected-access --> 795 op = g._create_op_internal(op_type_name, inputs, dtypes=None, 796 name=scope, input_types=input_types, 797 attrs=attr_protos, op_def=op_def) 799 # `outputs` is returned as a separate return value so that the output 800 # tensors can the `op` per se can be decoupled so that the 801 # `op_callbacks` can function properly. See framework/op_callbacks.py 802 # for more details. 803 outputs = op.outputs File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/func_graph.py:707, in FuncGraph._create_op_internal(self, op_type, inputs, dtypes, input_types, name, attrs, op_def, compute_device) 705 inp = self.capture(inp) 706 captured_inputs.append(inp) --> 707 return super()._create_op_internal( # pylint: disable=protected-access 708 op_type, captured_inputs, dtypes, input_types, name, attrs, op_def, 709 compute_device) File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/ops.py:3814, in Graph._create_op_internal(self, op_type, inputs, dtypes, input_types, name, attrs, op_def, compute_device) 3811 # _create_op_helper mutates the new Operation. `_mutation_lock` ensures a 3812 # Session.run call cannot occur between creating and mutating the op. 3813 with self._mutation_lock(): -> 3814 ret = Operation( 3815 node_def, 3816 self, 3817 inputs=inputs, 3818 output_types=dtypes, 3819 control_inputs=control_inputs, 3820 input_types=input_types, 3821 original_op=self._default_original_op, 3822 op_def=op_def) 3823 self._create_op_helper(ret, compute_device=compute_device) 3824 return ret File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/ops.py:2112, in Operation.__init__(***failed resolving arguments***) 2109 control_input_ops.append(control_op) 2111 # Initialize c_op from node_def and other inputs -> 2112 c_op = _create_c_op(g, node_def, inputs, control_input_ops, op_def=op_def) 2113 self._init_from_c_op(c_op=c_op, g=g) 2115 self._original_op = original_op File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/util/traceback_utils.py:153, in filter_traceback.<locals>.error_handler(*args, **kwargs) 151 except Exception as e: 152 filtered_tb = _process_traceback_frames(e.__traceback__) --> 153 raise e.with_traceback(filtered_tb) from None 154 finally: 155 del filtered_tb File ~/anaconda3/envs/tf2_12/lib/python3.10/site-packages/tensorflow/python/framework/ops.py:1973, in _create_c_op(graph, node_def, inputs, control_inputs, op_def, extract_traceback) 1970 c_op = pywrap_tf_session.TF_FinishOperation(op_desc) 1971 except errors.InvalidArgumentError as e: 1972 # Convert to ValueError for backwards compatibility. -> 1973 raise ValueError(e.message) 1975 # Record the current Python stack trace as the creating stacktrace of this 1976 # TF_Operation. 1977 if extract_traceback: ValueError: in user code: File "/tmp/ipykernel_26855/3929380215.py", line 28, in parse_image * image = tf.io.read_file(filename) ValueError: Shape must be rank 0 but is rank 1 for '{{node ReadFile}} = ReadFile[](args_0)' with input shapes: [?]. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61162/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/61162/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61161
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61161/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61161/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61161/events
https://github.com/tensorflow/tensorflow/issues/61161
1,786,086,574
I_kwDOArmXAs5qdYSu
61,161
keras.model.predict Generates Extra Batch and Inconsistent Number of Calls with Generator Dataset
{ "login": "arthurflor23", "id": 11759042, "node_id": "MDQ6VXNlcjExNzU5MDQy", "avatar_url": "https://avatars.githubusercontent.com/u/11759042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arthurflor23", "html_url": "https://github.com/arthurflor23", "followers_url": "https://api.github.com/users/arthurflor23/followers", "following_url": "https://api.github.com/users/arthurflor23/following{/other_user}", "gists_url": "https://api.github.com/users/arthurflor23/gists{/gist_id}", "starred_url": "https://api.github.com/users/arthurflor23/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arthurflor23/subscriptions", "organizations_url": "https://api.github.com/users/arthurflor23/orgs", "repos_url": "https://api.github.com/users/arthurflor23/repos", "events_url": "https://api.github.com/users/arthurflor23/events{/privacy}", "received_events_url": "https://api.github.com/users/arthurflor23/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": 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": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @arthurflor23 ,\r\n\r\nI have replicated the reported behaviour with tf-nightly and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/72026e6487102834b802491f531e7b53/61169.ipynb) here. It seems valid bug for me and needs to dig more.\r\n\r\nThanks !", "Hi,\r\nAny news on this?" ]
2023-07-03T12:30:21
2023-12-19T00:27:00
null
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version 2.14.0.dev20230703 ### Custom code Yes ### OS platform and distribution Linux ### 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 behavior? When providing a Python generator to the `keras.Model.predict` function with a specified number of steps (`N`), the generator is called `N+1` times instead of `N` times. This behavior causes difficulties in resuming predictions and leads to an unused batch in the prediction output. I found the same issue on the TensorFlow GitHub repository ([link to issue](https://github.com/tensorflow/tensorflow/issues/45459)). However, the issue was closed without a resolution, and the problem persists in my environment today. I believe this issue is worth revisiting and resolving, as it affects the predict function when using a generator dataset. ### Standalone code to reproduce the issue I managed to replicate the problem in the same gist reported before ([gist for nightly](https://colab.research.google.com/gist/Saduf2019/552f6674aa5f547a6f2898c1a4edf9c2/untitled.ipynb)) ### Relevant log output _No response_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61161/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/61161/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61160
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61160/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61160/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61160/events
https://github.com/tensorflow/tensorflow/issues/61160
1,786,082,972
I_kwDOArmXAs5qdXac
61,160
tf.data Dataset: Warning when caching validation set. "You should use `dataset.take(k).cache().repeat()` instead."
{ "login": "munsteraner", "id": 138491168, "node_id": "U_kgDOCEE1IA", "avatar_url": "https://avatars.githubusercontent.com/u/138491168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/munsteraner", "html_url": "https://github.com/munsteraner", "followers_url": "https://api.github.com/users/munsteraner/followers", "following_url": "https://api.github.com/users/munsteraner/following{/other_user}", "gists_url": "https://api.github.com/users/munsteraner/gists{/gist_id}", "starred_url": "https://api.github.com/users/munsteraner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/munsteraner/subscriptions", "organizations_url": "https://api.github.com/users/munsteraner/orgs", "repos_url": "https://api.github.com/users/munsteraner/repos", "events_url": "https://api.github.com/users/munsteraner/events{/privacy}", "received_events_url": "https://api.github.com/users/munsteraner/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
closed
false
{ "login": "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
[ "@munsteraner \r\nIn order to expedite the trouble-shooting process, please provide the complete code snippet to reproduce the issue reported here. I tried to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/f58fda9edac09f76d7016a66cf691452/61160.ipynb). 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/61160\">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/61160\">No</a>\n" ]
2023-07-03T12:28:21
2023-07-21T01:57:01
2023-07-21T01:56:58
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? No ### Source source ### TensorFlow version tf 2.9.0 ### Custom code Yes ### OS platform and distribution Ubuntu 22.04 LTS ### Mobile device _No response_ ### Python version 3.9.5 ### Bazel version _No response_ ### GCC/compiler version _No response_ ### CUDA/cuDNN version cuda_11.3.r11.3/compiler.29920130_0 ### GPU model and memory NVIDIA A100-SXM4-80GB ### Current behavior? Whenever I use the cache function on my tf.data validation dataset I get the warning below. When I use the cache only and without the validation set, no warning appears. ### Standalone code to reproduce the issue ```shell dataset = tf.data.Dataset.from_generator(pygen.generator, args=[files,minmax],output_signature=( tf.TensorSpec(shape=s[0], dtype=tf.float32), tf.TensorSpec(shape=s[1], dtype=tf.float32))) val_dataset = tf.data.Dataset.from_generator(pygen.generator, args=[val_files,minmax],output_signature=( tf.TensorSpec(shape=s[0], dtype=tf.float32), tf.TensorSpec(shape=s[1], dtype=tf.float32))) dataset = dataset.take(len(files)).cache().batch(args.bs).repeat(args.epochs).prefetch(tf.data.AUTOTUNE) val_dataset = val_dataset.take(len(val_files)).cache(filename=f'{tempfile.gettempdir()}/val').batch(64).repeat(args.epochs).prefetch(tf.data.AUTOTUNE) strategy = tf.distribute.MultiWorkerMirroredStrategy() with strategy.scope(): m = unet28.build(s[0]) m.fit(dataset,validation_data=val_dataset, epochs=args.ep, steps_per_epoch = spe,validation_steps = vspe,callbacks=[model_checkpoint_callback,save50,model_csv_logger,model_tensorboard,model_earlystopping_30],verbose=2) ``` ### Relevant log output ```shell 2023-07-03 13:47:14.532355: W tensorflow/core/kernels/data/cache_dataset_ops.cc:296] The calling iterator did not fully read the dataset being cached. In order to avoid unexpected truncation of the dataset, the partially cached contents of the dataset will be discarded. This can happen if you have an input pipeline similar to `dataset.cache().take(k).repeat()`. You should use `dataset.take(k).cache().repeat()` instead. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61160/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/61160/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61159
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61159/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61159/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61159/events
https://github.com/tensorflow/tensorflow/issues/61159
1,786,046,858
I_kwDOArmXAs5qdOmK
61,159
Built from source Tensorflow is not linking (undefined references)
{ "login": "SuperKogito", "id": 15731839, "node_id": "MDQ6VXNlcjE1NzMxODM5", "avatar_url": "https://avatars.githubusercontent.com/u/15731839?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuperKogito", "html_url": "https://github.com/SuperKogito", "followers_url": "https://api.github.com/users/SuperKogito/followers", "following_url": "https://api.github.com/users/SuperKogito/following{/other_user}", "gists_url": "https://api.github.com/users/SuperKogito/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuperKogito/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuperKogito/subscriptions", "organizations_url": "https://api.github.com/users/SuperKogito/orgs", "repos_url": "https://api.github.com/users/SuperKogito/repos", "events_url": "https://api.github.com/users/SuperKogito/events{/privacy}", "received_events_url": "https://api.github.com/users/SuperKogito/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": 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": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" }, { "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" } ]
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
[ "According to this https://github.com/gvne/spleeterpp/blob/v0.1/docs/source/build.rst\r\nI should add the following lines to `tensorflow/tools/def_file_filter/def_file_filter.py.tpl`\r\n```\r\ndef_fp.write(\"\\t ??0SessionOptions@tensorflow@@QEAA@XZ\\n\")\r\ndef_fp.write(\"\\t ?LoadSavedModel@tensorflow@@YA?AVStatus@1@AEBUSessionOptions@1@AEBVRunOptions@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$unordered_set@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@6@QEAUSavedModelBundle@1@@Z\\n\")\r\ndef_fp.write(\"\\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@XZ\\n\")\r\ndef_fp.write(\"\\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z\\n\")\r\n```\r\n\r\nHowever these steps are for TF 1.14.0, and when I try the above for TF 2.9, I get the following error: \r\n\r\n```\r\nERROR: D:/users/superkogito/_bazel_superkogito/6mghjs3w/external/llvm-project/llvm/BUILD.bazel:623:11: Generating code from table: include/llvm/IR/Intrinsics.td @llvm-project//llvm:intrinsic_NVPTX_gen__gen_intrinsic_enums__intrinsic_prefix_nvvm_genrule failed: (Exit -1073741819): bash.exe failed: error executing command\r\n cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow\r\n SET PATH=C:\\msys64\\usr\\bin;C:\\msys64\\bin;C:\\windows;C:\\windows\\System32;C:\\windows\\System32\\WindowsPowerShell\\v1.0;D:\\Users\\superkogito\\AppData\\Local\\bazelisk\\downloads\\bazelbuild\\bazel-5.0.0-windows-x86_64\\bin;C:\\ProgramData\\Anaconda3\\condabin;C:\\windows;C:\\windows\\system32;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\Program Files\\VSCode-huawei\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Meld\\;C;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Windows Kits\\10\\Microsoft Application Virtualization\\Sequencer\\;C:\\Program Files\\Go\\bin;C:\\msys64\\usr\\bin;C:\\msys64\\mingw64\\bin;C:\\Program Files\\dotnet\\;D:\\Users\\superkogito\\AppData\\Local\\Microsoft\\WindowsApps;C:\\ProgramData\\Anaconda3;C:\\ProgramData\\Anaconda3\\Scripts;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;D:\\wecode_build_tools\\mingw\\bin;C:\\Program Files\\Vim\\vim90;D:\\Users\\superkogito\\AppData\\Local\\Programs\\oh-my-posh\\bin;D:\\Users\\superkogito\\AppData\\Local\\Pandoc\\;D:\\Users\\superkogito\\AppData\\Roaming\\npm;D:\\Users\\superkogito\\go\\bin;D:\\Users\\superkogito\\.dotnet\\tools\r\n SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe\r\n SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages\r\n SET RUNFILES_MANIFEST_ONLY=1\r\n SET TF2_BEHAVIOR=1\r\n C:\\msys64\\usr\\bin\\bash.exe -c source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/x64_windows-opt/bin/external/llvm-project/llvm/llvm-tblgen.exe -I external/llvm-project/llvm/include -I external/llvm-project/clang/include -I $(dirname external/llvm-project/llvm/include/llvm/IR/Intrinsics.td) -gen-intrinsic-enums -intrinsic-prefix=nvvm external/llvm-project/llvm/include/llvm/IR/Intrinsics.td -o bazel-out/x64_windows-opt/bin/external/llvm-project/llvm/include/llvm/IR/IntrinsicsNVPTX.h\r\n# Configuration: ba54b48ce4c79231b8df54f05b418e10c258e9f9f8bc4e1d4ed12ca6643cbb5a\r\n# Execution platform: @local_execution_config_platform//:platform\r\n 1 [main] bash (42124) C:\\msys64\\usr\\bin\\bash.exe: *** fatal error - add_item (\"\\??\\C:\\msys64\", \"/\", ...) failed, errno 1\r\nStack trace:\r\nFrame Function Args\r\n0007FFFFCD30 0001800611BE (00018028FD8A, 000180271B51, 00000000007F, 0007FFFF8B30) msys-2.0.dll+0x211BE\r\n0007FFFFCD30 0001800469BA (000000000000, 0007FFFFCD30, 0001A1000010, 0007FFFFABDA) msys-2.0.dll+0x69BA\r\n0007FFFFCD30 0001800469F2 (0007FFFF9BC0, 000000000001, 00000000007F, 000000000001) msys-2.0.dll+0x69F2\r\n0007FFFFCD30 00018007E5E7 (000700000000, 000040000024, 000000000000, 000000000000) msys-2.0.dll+0x3E5E7\r\n0007FFFFCD30 000180182B05 (000180073224, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x142B05\r\n0007FFFFCD30 000180047012 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7012\r\n0007FFFFFFF0 000180045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86\r\n0007FFFFFFF0 000180045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34\r\nEnd of stack trace\r\nLoaded modules:\r\n000100400000 bash.exe\r\n7FF8D5F30000 ntdll.dll\r\n7FF8D4EE0000 KERNEL32.DLL\r\n7FF8D38D0000 KERNELBASE.dll\r\n7FF8A57F0000 ghijt64win10.dll\r\n7FF8D4350000 ADVAPI32.dll\r\n7FF8D5080000 msvcrt.dll\r\n7FF8D4710000 sechost.dll\r\n7FF8D45E0000 RPCRT4.dll\r\n7FF8D4190000 USER32.dll\r\n7FF8D3F60000 win32u.dll\r\n7FF8D5120000 GDI32.dll\r\n7FF8D3D90000 gdi32full.dll\r\n7FF8D3800000 msvcp_win.dll\r\n7FF8D3BD0000 ucrtbase.dll\r\n000180040000 msys-2.0.dll\r\n7FF88EBE0000 VCOMP140.DLL\r\n7FF8D4160000 IMM32.DLL\r\n7FF8D3310000 oleLoader.dll\r\n7FF8D2F30000 CRYPTBASE.DLL\r\n7FF8D3770000 bcryptPrimitives.dll\r\nTarget //tensorflow:tensorflow_cc.dll failed to build\r\nINFO: Elapsed time: 2349.371s, Critical Path: 663.47s\r\nINFO: 5431 processes: 2009 internal, 3422 local.\r\nFAILED: Build did NOT complete successfully\r\n\r\n``` ", "moving the following lines to line 275 in the `tensorflow/tools/def_file_filter/def_file_filter.py.tpl` causes a different error. \r\n```\r\ndef_fp.write(\"\\t ??0SessionOptions@tensorflow@@QEAA@XZ\\n\")\r\ndef_fp.write(\"\\t ?LoadSavedModel@tensorflow@@YA?AVStatus@1@AEBUSessionOptions@1@AEBVRunOptions@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$unordered_set@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@6@QEAUSavedModelBundle@1@@Z\\n\")\r\ndef_fp.write(\"\\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@XZ\\n\")\r\ndef_fp.write(\"\\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z\\n\")\r\n```\r\n\r\nThe build almost terminated correctly in this case, but eventually I ended up with these linking errors:\r\n```\r\n[10,494 / 10,810] 8 actions running\r\n Compiling tensorflow/core/kernels/mkl/mkl_quantize_op.cc; 29s local\r\n[10,494 / 10,810] 8 actions running\r\n Compiling tensorflow/core/kernels/mkl/mkl_quantize_op.cc; 30s local\r\n[10,496 / 10,810] 7 actions running\r\n[10,497 / 10,810] 8 actions, 7 running\r\n[10,498 / 10,812] 8 actions running\r\n[10,500 / 10,814] 8 actions running\r\n[10,500 / 10,814] 8 actions running\r\n[10,505 / 10,817] 8 actions running\r\n[10,506 / 10,817] 8 actions, 7 running\r\n[10,506 / 10,817] 8 actions running\r\n[10,508 / 10,819] 8 actions running\r\n[10,613 / 10,896] 8 actions running\r\n[10,656 / 10,923] 8 actions, 7 running\r\nERROR: D:/users/superkogito/downloads/tensorflow-2.9.0/tensorflow/BUILD:1048:20: Linking tensorflow/tensorflow_cc.dll failed: (Exit 1120): link.exe failed: error executing command\r\n cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow\r\n SET LIB=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64\r\n SET PATH=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\;;C:\\windows\\system32;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe\r\n SET PWD=/proc/self/cwd\r\n SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe\r\n SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages\r\n SET RUNFILES_MANIFEST_ONLY=1\r\n SET TEMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n SET TF2_BEHAVIOR=1\r\n SET TMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\link.exe @bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll-2.params\r\n# Configuration: e6cdbc5f9ea1d062c246ab7d360b46f14ec764581d9f093d895b4b2995265b6c\r\n# Execution platform: @local_execution_config_platform//:platform\r\nLINK : warning LNK4044: unrecognized option '/lm'; ignored\r\nbazel-out/x64_windows-opt/bin/tensorflow/tensorflow_filtered_def_file.def : warning LNK4197: export '?_GraphDef_default_instance_@tensorflow@@3VGraphDefDefaultTypeInternal@1@A' specified multiple times; using first specification\r\nbazel-out/x64_windows-opt/bin/tensorflow/tensorflow_filtered_def_file.def : warning LNK4197: export '?_TensorShapeProto_default_instance_@tensorflow@@3VTensorShapeProtoDefaultTypeInternal@1@A' specified multiple times; using first specification\r\n Creating library bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.lib and object bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.exp\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem_registration.obj)' in function '\"class tensorflow::Status __cdecl tensorflow::RegisterFileSystem(struct TF_FilesystemPluginInfo const *,int)\" (?RegisterFileSystem@tensorflow@@YA?AVStatus@1@PEBUTF_FilesystemPluginInfo@@H@Z)'\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)'\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem_registration.obj)' in function '\"class tensorflow::Status __cdecl tensorflow::RegisterFileSystem(struct TF_FilesystemPluginInfo const *,int)\" (?RegisterFileSystem@tensorflow@@YA?AVStatus@1@PEBUTF_FilesystemPluginInfo@@H@Z)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'\r\nLINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)' in function '\"public: virtual class tensorflow::Status __cdecl tensorflow::ModularFileSystem::NewAppendableFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct tensorflow::TransactionToken *,class std::unique_ptr<class tensorflow::WritableFile,struct std::default_delete<class tensorflow::WritableFile> > *)\" (?NewAppendableFile@ModularFileSystem@tensorflow@@UEAA?AVStatus@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTransactionToken@2@PEAV?$unique_ptr@VWritableFile@tensorflow@@U?$default_delete@VWritableFile@tensorflow@@@std@@@5@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'\r\nLINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'bfc_allocator.lib(bfc_allocator.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'allocator_registry_impl.lo.lib(cpu_allocator_impl.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'batch_resource_base.lib(batch_resource_base.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'snapshot_utils.lib(snapshot_utils.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'captured_function.lib(captured_function.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_device.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'execute.lib(execute.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'remote_tensor_handle_data.lib(remote_tensor_handle_data.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'graph_mgr.lib(graph_mgr.obj)'\r\nLINK : warning LNK4217: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'cpu_runtime.lib(cpu_runtime.obj)' in function '\"public: static bool __cdecl tensorflow::profiler::TraceMeRecorder::Active(int)\" (?Active@TraceMeRecorder@profiler@tensorflow@@SA_NH@Z)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'grpc_master_service.lo.lib(grpc_master_service.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'eager_service_impl.lib(eager_service_impl.obj)'\r\nLINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'utils.lib(utils.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'Utils.lib(utils.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'captured_function.lib(captured_function.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'arithmetic_optimizer.lib(arithmetic_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'memory_optimizer.lib(memory_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'pin_to_host_optimizer.lib(pin_to_host_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'window_dataset.lib(window_dataset.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'ragged_tensor_variant.lib(ragged_tensor_variant.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'snapshot_utils.lib(snapshot_utils.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'tpu_rewrite_device_util.lib(tpu_rewrite_device_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_op_registry.lo.lib(xla_op_registry.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'collective_param_resolver_distributed.lib(collective_param_resolver_distributed.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_platform_info.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_ops_on_regular_devices.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_launch_util.lib(xla_launch_util.obj)'\r\nLINK : warning LNK4217: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)' in function '\"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_11''(void)\" (??__Eregister_kernel_11@tensorflow@@YAXXZ)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(mark_for_compilation_pass.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(encapsulate_xla_computations_pass.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(clone_constants_for_better_clustering.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'utils.lib(utils.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'arithmetic_optimizer.lib(arithmetic_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'memory_optimizer.lib(memory_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'pin_to_host_optimizer.lib(pin_to_host_optimizer.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'gpu_id_impl.lib(gpu_id_manager.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_cluster_util.lib(xla_cluster_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'tf_ops_device_helper.lib(tf_ops_device_helper.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_ops_on_regular_devices.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_launch_util.lib(xla_launch_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_op_registry.lo.lib(xla_op_registry.obj)'\r\nLINK : warning LNK4217: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)' in function '\"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_10''(void)\" (??__Eregister_kernel_10@tensorflow@@YAXXZ)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(encapsulate_xla_computations_pass.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'\r\nLINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_platform_info.obj)'\r\nLINK : warning LNK4217: symbol '?DEVICE_TPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_TPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)' in function '\"class tensorflow::Status __cdecl tensorflow::ResolveDeviceAssignment(class tensorflow::OpKernelContext *,struct tensorflow::XlaCompilationResult::CollectiveInfo const &,class xla::ExecutableRunOptions &,class xla::DeviceAssignment &,class xla::gpu::GpuExecutableRunOptions &)\" (?ResolveDeviceAssignment@tensorflow@@YA?AVStatus@1@PEAVOpKernelContext@1@AEBUCollectiveInfo@XlaCompilationResult@1@AEAVExecutableRunOptions@xla@@AEAVDeviceAssignment@7@AEAVGpuExecutableRunOptions@gpu@7@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'tf_tensor.lib(tf_tensor.obj)'\r\nLINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4286: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'\r\nLINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const \" (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const \" (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'\r\nLINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const \" (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'\r\nLINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '\"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '\"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '\"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'\r\nLINK : warning LNK4217: symbol '?DEVICE_DEFAULT@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_DEFAULT)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)' in function '\"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_3''(void)\" (??__Eregister_kernel_3@tensorflow@@YAXXZ)'\r\nLINK : warning LNK4217: symbol 'TF_NumDims' defined in 'tf_tensor.lib(tf_tensor.obj)' is imported by 'tensor_shape_utils.lib(tensor_shape_utils.obj)' in function '\"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl tensorflow::ShapeDebugString(struct TF_Tensor *)\" (?ShapeDebugString@tensorflow@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTF_Tensor@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_Dim' defined in 'tf_tensor.lib(tf_tensor.obj)' is imported by 'tensor_shape_utils.lib(tensor_shape_utils.obj)' in function '\"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl tensorflow::ShapeDebugString(struct TF_Tensor *)\" (?ShapeDebugString@tensorflow@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTF_Tensor@@@Z)'LINK : warning LNK4217: symbol 'TF_DataTypeSize' defined in 'tf_datatype.lo.lib(tf_datatype.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4286: symbol 'TF_DataTypeSize' defined in 'tf_datatype.lo.lib(tf_datatype.obj)' is imported by 'tf_tensor.lib(tf_tensor.obj)'\r\nLINK : warning LNK4217: symbol 'TF_NewShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextGetInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextVectorFromSize' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_NewDimensionHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContext_GetAttrType' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextRankKnown' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextWithRankAtLeast' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextDim' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSubshape' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetUnknownShape' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)\" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DimensionHandleValueKnown' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DimensionHandleValue' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_ShapeInferenceContextConcatenateShapes' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\nLINK : warning LNK4217: symbol 'TF_DeleteDimensionHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '\"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)\" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'\r\ntensorflow_cc.dll.if.exp : error LNK2001: unresolved external symbol \"public: __cdecl tensorflow::TensorShapeBase<class tensorflow::TensorShape>::TensorShapeBase<class tensorflow::TensorShape>(class absl::Span<__int64 const >)\" (??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z)\r\nbazel-out\\x64_windows-opt\\bin\\tensorflow\\tensorflow_cc.dll : fatal error LNK1120: 1 unresolved externals\r\nTarget //tensorflow:tensorflow_cc.dll failed to build\r\nINFO: Elapsed time: 33926.242s, Critical Path: 16255.84s\r\nINFO: 11145 processes: 2381 internal, 8764 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "@mraunak , Could you please take a look into this. Thanks!", "Hi, @SuperKogito could you please try the latest version of TF? TF 2.9.0 is out of support.", "Hello @mraunak, \r\nthank you for responding. Testing with the TF 2.12.0 yields the following logs: \r\n```\r\n\r\nD:\\Users\\superkogito\\Downloads\\tensorflow-2.12.0\\tensorflow-2.12.0>bazel build --verbose_failures //tensorflow:tensorflow_cc.dll\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=162\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\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:/ProgramData/chocolatey/bin/python.exe\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\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 d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\tensorflow-2.12.0\\.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\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 d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\tensorflow-2.12.0\\.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\tensorflow-2.12.0\\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:windows in file d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\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 d:\\users\\superkogito\\downloads\\tensorflow-2.12.0\\tensorflow-2.12.0\\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Analyzed target //tensorflow:tensorflow_cc.dll (426 packages loaded, 26557 targets configured).\r\nINFO: Found 1 target...\r\n[15,423 / 15,487] 8 actions running\r\n Compiling tensorflow/compiler/tf2xla/mlir_tf2xla.cc; 95s local\r\n Compiling tensorflow/compiler/mlir/python/mlir.cc; 74s local\r\n Compiling tensorflow/c/c_api_experimental.cc; 51s local\r\n Compiling tensorflow/dtensor/cc/dtensor_device.cc; 36s local\r\n Compiling tensorflow/dtensor/cc/default_parallel_executor.cc; 32s local\r\n Compiling tensorflow/dtensor/cc/dtensor_device_util.cc; 30s local\r\n Compiling tensorflow/dtensor/cc/small_constant_optimization.cc; 24s local\r\n Compiling tensorflow/c/experimental/grappler/grappler.cc; 17s local\r\n\r\n\r\n\r\n\r\nERROR: D:/users/superkogito/downloads/tensorflow-2.12.0/tensorflow-2.12.0/tensorflow/BUILD:1219:21: Linking tensorflow/tensorflow_cc.dll failed: (Exit 1120): link.exe failed: error executing command\r\n cd /d D:/users/superkogito/_bazel_superkogito/pgrhg4gw/execroot/org_tensorflow\r\n SET LIB=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64\r\n SET PATH=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\;;C:\\windows\\system32;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe\r\n SET PWD=/proc/self/cwd\r\n SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe\r\n SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages\r\n SET RUNFILES_MANIFEST_ONLY=1\r\n SET TEMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n SET TF2_BEHAVIOR=1\r\n SET TMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\link.exe @bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll-2.params\r\n# Configuration: a79860a0d1687bd8970a1182bada4b0594dbd5b735f159e1a6dbf0738820df8d\r\n# Execution platform: @local_execution_config_platform//:platform\r\nstdout (D:/users/superkogito/_bazel_superkogito/pgrhg4gw/execroot/org_tensorflow/bazel-out/_tmp/actions/stdout-23848) exceeds maximum size of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping\r\nTarget //tensorflow:tensorflow_cc.dll failed to build\r\nINFO: Elapsed time: 26239.027s, Critical Path: 1212.69s\r\nINFO: 15504 processes: 3616 internal, 11888 local.\r\nFAILED: Build did NOT complete successfully\r\n```\r\nI will try with TF 2.13.0 tomorrow. ", "These are my error logs for the 2.13.0 version: \r\n```\r\nD:\\Users\\superkogito\\Downloads\\tensorflow-2.13.0\\tensorflow-2.13.0>bazel build --distdir ../deps --verbose_failures //tensorflow:tensorflow_cc.dll\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=162\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.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:/ProgramData/chocolatey/bin/python.exe\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.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 d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.0\\.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true\r\nINFO: Reading rc options for 'build' from d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.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,tensorflow/core/tfrt/utils/debug\r\nINFO: Found applicable config definition build:short_logs in file d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.0\\.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.0\\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:windows in file d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.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\r\nINFO: Found applicable config definition build:monolithic in file d:\\users\\superkogito\\downloads\\tensorflow-2.13.0\\tensorflow-2.13.0\\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Analyzed target //tensorflow:tensorflow_cc.dll (4 packages loaded, 1578 targets configured).\r\nINFO: Found 1 target...\r\nERROR: D:/users/superkogito/downloads/tensorflow-2.13.0/tensorflow-2.13.0/tensorflow/compiler/xla/stream_executor/tpu/BUILD:411:11: Compiling tensorflow/compiler/xla/stream_executor/tpu/tpu_initializer_helper.cc failed: (Exit 2): cl.exe failed: error executing command\r\n cd /d D:/users/superkogito/_bazel_superkogito/p5ozjjvs/execroot/org_tensorflow\r\n SET INCLUDE=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\ATLMFC\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt\r\n SET PATH=C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\;;C:\\windows\\system32;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe\r\n SET PWD=/proc/self/cwd\r\n SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe\r\n SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages\r\n SET RUNFILES_MANIFEST_ONLY=1\r\n SET TEMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n SET TF2_BEHAVIOR=1\r\n SET TMP=D:\\Users\\superkogito\\AppData\\Local\\Temp\r\n C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\cl.exe @bazel-out/x64_windows-opt/bin/tensorflow/compiler/xla/stream_executor/tpu/_objs/tpu_initializer_helper/tpu_initializer_helper.obj.params\r\n# Configuration: 1a4ecd2543753db384ad1cfa25664150d07aba5da20fac955f60cd7a7229e057\r\n# Execution platform: @local_execution_config_platform//:platform\r\ntensorflow/compiler/xla/stream_executor/tpu/tpu_initializer_helper.cc(18): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory\r\nTarget //tensorflow:tensorflow_cc.dll failed to build\r\nINFO: Elapsed time: 11178.880s, Critical Path: 747.21s\r\nINFO: 11473 processes: 3291 internal, 8182 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "Hi @SuperKogito, please try MSVC 2019" ]
2023-07-03T12:07:12
2023-07-19T22:54:48
null
NONE
null
null
null
### Issue type Build/Install ### Have you reproduced the bug with TensorFlow Nightly? No ### Source source ### TensorFlow version 2.9.0 ### Custom code Yes ### OS platform and distribution Windows 10 ### Mobile device 11th Gen Intel(R) Core(TM) i7-1165G7, 4 Core(s), 8 Logical Processor(s) ### Python version 3.9.13 ### Bazel version Bazel 5.0.0 ### GCC/compiler version gcc.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 12.2.0 ### CUDA/cuDNN version Not used ### GPU model and memory Not used ### Current behavior? I am trying to build this open source project https://github.com/gvne/spleeterpp/tree/master that uses Tensorflow. When I use the online available C-API builds (available here https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.0.zip), this works without an issue. However, when I build my dll and lib files from source so I can take advantage from the `/:arch:AVX2`, I get the following errors: ``` D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/vst3sdk/build/VST3/Debug/ "C:/Program Files/Common Files/VST3/" && "C:\Program Files\JetBrains\CLion 2023.1.2\bin\cmake\win\x64\bin\cmake.exe" -E echo [SMTG] Finished."" D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_common.a(spleeter_common.cc.obj): in function `spleeter::Initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, spleeter::SeparationType, std::error_code&)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:28: undefined reference to `__imp_TF_NewSessionOptions' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:28: undefined reference to `__imp_TF_DeleteSessionOptions' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:29: undefined reference to `__imp_TF_NewGraph' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:29: undefined reference to `__imp_TF_DeleteGraph' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:30: undefined reference to `__imp_TF_NewBuffer' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:30: undefined reference to `__imp_TF_DeleteBuffer' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:31: undefined reference to `__imp_TF_NewBuffer' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:31: undefined reference to `__imp_TF_DeleteBuffer' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:32: undefined reference to `__imp_TF_NewStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:32: undefined reference to `__imp_TF_DeleteStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:35: undefined reference to `__imp_TF_LoadSessionFromSavedModel' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:40: undefined reference to `__imp_TF_GetCode' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_common.a(tf_handle.cc.obj): in function `spleeter::SessionDeleter(TF_Session*)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:6: undefined reference to `__imp_TF_NewStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:6: undefined reference to `__imp_TF_DeleteStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:7: undefined reference to `__imp_TF_DeleteSession' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:8: undefined reference to `__imp_TF_GetCode' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `spleeter::Filter::AsyncProcessTransformedBlock(std::vector<std::complex<float>*, std::allocator<std::complex<float>*> >, unsigned int)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:233: undefined reference to `__imp_TF_GraphOperationByName' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:238: undefined reference to `__imp_TF_GraphOperationByName' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:244: undefined reference to `__imp_TF_NewStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:244: undefined reference to `__imp_TF_DeleteStatus' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:245: undefined reference to `__imp_TF_SessionRun' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:249: undefined reference to `__imp_TF_GetCode' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:256: undefined reference to `__imp_TF_DeleteTensor' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `void spleeter::Copy<float>(TF_Tensor const*, std::vector<long long, std::allocator<long long> >, std::shared_ptr<spleeter::TFHandle<TF_Tensor> >)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:146: undefined reference to `__imp_TF_TensorData' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:147: undefined reference to `__imp_TF_TensorData' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `void spleeter::Copy<std::complex<float> >(TF_Tensor const*, std::vector<long long, std::allocator<long long> >, std::shared_ptr<spleeter::TFHandle<TF_Tensor> >)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:146: undefined reference to `__imp_TF_TensorData' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:147: undefined reference to `__imp_TF_TensorData' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `spleeter::internal::Adapter<std::complex<float> >::operator()(unsigned long long, unsigned long long, unsigned long long)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:33: undefined reference to `__imp_TF_TensorData' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj):D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:33: more undefined references to `__imp_TF_TensorData' follow D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(tensor.cc.obj): in function `spleeter::TensorAlloc(TF_DataType, std::vector<long long, std::allocator<long long> >)': D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.cc:34: undefined reference to `__imp_TF_NewTensor' D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.cc:36: undefined reference to `__imp_TF_DeleteTensor' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ``` I tried to make some edits to the source code to fix this, as mentioned here under step 11 from https://medium.com/vitrox-publication/deep-learning-frameworks-tensorflow-build-from-source-on-windows-python-c-cpu-gpu-d3aa4d0772d8. > Some Bug Fixing Before Compiling : > Before we start, we should edit the TensorFlow source code, because you will end up with linking errors (unresolved external symbols) as shown below if you follow the typical framework building steps. > > > Session and SessionOptions symbols are not exported > So what are these errors? > > Dynamic-link library(DLL) can only expose a maximum of 60,000 symbols which is one of DLL limitation. As TensorFlow has more than 60,000 symbols, so we have to manually choose which symbols to be exposed if they are not exposed from TensorFlow by default. > > According to the experience, in order to deploy a TensorFlow model, the TensorFlow Session and SessionOptions Classes are required to be exported. The steps include: However, this did not build and caused the following log when running: `bazel build --config=opt tensorflow:tensorflow.dll` ``` D:\Users\superkogito\Downloads\tensorflow-2.9.0>bazel build --config=opt tensorflow:tensorflow.dll INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=162 INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Options provided by the client: 'build' options: --python_path=C:/ProgramData/chocolatey/bin/python.exe INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: 'build' options: --define framework_shared_object=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 INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/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/common,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 d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:opt in file d:\users\superkogito\downloads\tensorflow-2.9.0\.tf_configure.bazelrc: --copt=/arch:AVX2 --host_copt=/arch:AVX2 INFO: Found applicable config definition build:windows in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --copt=/W0 --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --cxxopt=/std:c++14 --host_cxxopt=/std:c++14 --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 --verbose_failures --features=compiler_param_file --distinct_host_configuration=false INFO: Found applicable config definition build:monolithic in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --define framework_shared_object=false INFO: Analyzed target //tensorflow:tensorflow.dll (257 packages loaded, 20074 targets configured). INFO: Found 1 target... ERROR: D:/users/superkogito/downloads/tensorflow-2.9.0/tensorflow/core/common_runtime/BUILD:1654:11: Compiling tensorflow/core/common_runtime/session_options.cc failed: (Exit 2): cl.exe failed: error executing command cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe SET PWD=/proc/self/cwd SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages SET RUNFILES_MANIFEST_ONLY=1 SET TEMP=D:\Users\superkogito\AppData\Local\Temp SET TF2_BEHAVIOR=1 SET TMP=D:\Users\superkogito\AppData\Local\Temp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\cl.exe @bazel-out/x64_windows-opt/bin/tensorflow/core/common_runtime/_objs/session_options/session_options.obj.params # Configuration: e6cdbc5f9ea1d062c246ab7d360b46f14ec764581d9f093d895b4b2995265b6c # Execution platform: @local_execution_config_platform//:platform cl : Command line warning D9035 : option 'experimental:preprocessor' has been deprecated and will be removed in a future release cl : Command line warning D9036 : use 'Zc:preprocessor' instead of 'experimental:preprocessor' .\tensorflow/core/public/session_options.h(28): error C2143: syntax error: missing ';' before '<class-head>' .\tensorflow/core/public/session_options.h(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int .\tensorflow/core/public/session_options.h(60): error C3646: 'SessionOptions': unknown override specifier .\tensorflow/core/public/session_options.h(60): error C2059: syntax error: '(' .\tensorflow/core/public/session_options.h(60): error C2238: unexpected token(s) preceding ';' tensorflow/core/common_runtime/session_options.cc(22): error C2600: 'tensorflow::SessionOptions::SessionOptions': cannot define a compiler-generated special member function (must be declared in the class first) Target //tensorflow:tensorflow.dll failed to build INFO: Elapsed time: 5602.387s, Critical Path: 708.69s INFO: 7456 processes: 2165 internal, 5291 local. FAILED: Build did NOT complete successfully ``` Any help or advice regarding this is appreciated. Thank you. ### Standalone code to reproduce the issue ```shell - Clone https://github.com/gvne/spleeterpp/tree/master - Build with tensorflow 2.9.0 downloaded from here https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.0.zip - Build Tensorflow 2.9.0 from source. - Try to rebuild https://github.com/gvne/spleeterpp/tree/master with the tensorflow built from source. ``` ### Relevant log output _No response_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61159/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/61159/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61158
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61158/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61158/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61158/events
https://github.com/tensorflow/tensorflow/issues/61158
1,785,842,383
I_kwDOArmXAs5qccrP
61,158
clip_by_norm incorrectly receives negative clip_norm and outputs unexpected result
{ "login": "drewshark", "id": 128925028, "node_id": "U_kgDOB689ZA", "avatar_url": "https://avatars.githubusercontent.com/u/128925028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/drewshark", "html_url": "https://github.com/drewshark", "followers_url": "https://api.github.com/users/drewshark/followers", "following_url": "https://api.github.com/users/drewshark/following{/other_user}", "gists_url": "https://api.github.com/users/drewshark/gists{/gist_id}", "starred_url": "https://api.github.com/users/drewshark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/drewshark/subscriptions", "organizations_url": "https://api.github.com/users/drewshark/orgs", "repos_url": "https://api.github.com/users/drewshark/repos", "events_url": "https://api.github.com/users/drewshark/events{/privacy}", "received_events_url": "https://api.github.com/users/drewshark/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": 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": 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": 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 @drewshark ,\r\n\r\nThanks for reporting this.I have replicated the issue in both Tf2.12 and tf-nightly versions and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/3b9b6fd41484b540171c2f87f7d60d90/61158.ipynb) for reference.\r\n\r\nI quickly gone through the source code and It seems the API not validating the `clip_norm` argument. Needs to check more details for fixing it. If you have plan for submitting fix please feel to raise a PR. Thanks!\r\n\r\n", "@drewshark ,\r\nThe proposed PR has been merged and changes replicable in tf-nightly. Please verify and feel free to close the issue now.\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/61158\">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/61158\">No</a>\n" ]
2023-07-03T10:13:36
2023-11-16T01:49:31
2023-11-16T01:49:27
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version 2.12.0 ### Custom code Yes ### OS platform and distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current behavior? Following the documentation, tf.clip_by_norm should not accept negative clip_norm (https://www.tensorflow.org/api_docs/python/tf/clip_by_norm). But it can. ``` import tensorflow as tf import numpy as np t = tf.constant(np.ones((3, 3)),) res = tf.clip_by_norm(t, clip_norm=-10, axes=[1]) print(res) ``` ``` tf.Tensor( [[-5.77350269 -5.77350269 -5.77350269] [-5.77350269 -5.77350269 -5.77350269] [-5.77350269 -5.77350269 -5.77350269]], shape=(3, 3), dtype=float64) ``` If I change t to all zero tensor, it even outputs NaN: ``` import tensorflow as tf import numpy as np t = tf.constant(np.zeros((3, 3)),) res = tf.clip_by_norm(t, clip_norm=-10, axes=[1]) print(res) ``` ``` tf.Tensor( [[nan nan nan] [nan nan nan] [nan nan nan]], shape=(3, 3), dtype=float64) ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np t = tf.constant(np.ones((3, 3)),) res = tf.clip_by_norm(t, clip_norm=-10, axes=[1]) print(res) t = tf.constant(np.zeros((3, 3)),) res = tf.clip_by_norm(t, clip_norm=-10, axes=[1]) print(res) ``` ``` ### Relevant log output _No response_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61158/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/61158/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61157
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61157/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61157/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61157/events
https://github.com/tensorflow/tensorflow/issues/61157
1,785,566,538
I_kwDOArmXAs5qbZVK
61,157
[MLIR] Fix tf.StridedSlice lowering to tosa with new_axis_mask/shrink_axis_mask
{ "login": "AviadCo", "id": 12224702, "node_id": "MDQ6VXNlcjEyMjI0NzAy", "avatar_url": "https://avatars.githubusercontent.com/u/12224702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AviadCo", "html_url": "https://github.com/AviadCo", "followers_url": "https://api.github.com/users/AviadCo/followers", "following_url": "https://api.github.com/users/AviadCo/following{/other_user}", "gists_url": "https://api.github.com/users/AviadCo/gists{/gist_id}", "starred_url": "https://api.github.com/users/AviadCo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AviadCo/subscriptions", "organizations_url": "https://api.github.com/users/AviadCo/orgs", "repos_url": "https://api.github.com/users/AviadCo/repos", "events_url": "https://api.github.com/users/AviadCo/events{/privacy}", "received_events_url": "https://api.github.com/users/AviadCo/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 3911105852, "node_id": "LA_kwDOArmXAs7pHr08", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20PR%20merge", "name": "awaiting PR merge", "color": "4080bf", "default": false, "description": "awaiting PR merge" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "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
[ "@AviadCo Thank you for raising the PR to fix this issue. This issue will be closed once the PR is merged. \r\nThank you!", "@sushreebarsa thanks for responding.\r\nI am unable to put more reviewers to the PR, can it be only one reviewer for my MR? can you add relevant reviewers?", "Hello, @AviadCo ! Another reviewer is being assigned to that PR now. Thank you!" ]
2023-07-03T07:56:16
2023-07-11T13:43:22
null
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version tf 2.13.0rc2 ### Custom code Yes ### OS platform and distribution Linux Ubunto 18.04 ### Mobile device _No response_ ### Python version 3.9.1 ### Bazel version 6.1.2 ### GCC/compiler version clang 15.0.2 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current behavior? The following MLIR input is not support: ``` func.func @test_strided_slice_new_axis_mask(%arg0: tensor<1x14x8xf32>) -> tensor<1x14x8x1xf32> { %strides = "tf.Const"() {device = "", value = dense<1> : tensor<4xi32>} : () -> tensor<4xi32> %begin_end = "tf.Const"() {device = "", value = dense<0> : tensor<4xi32>} : () -> tensor<4xi32> %res = "tf.StridedSlice"(%arg0, %begin_end, %begin_end, %strides) {begin_mask = 7 : i64, device = "", ellipsis_mask = 0 : i64, end_mask = 7 : i64, new_axis_mask = 8 : i64, shrink_axis_mask = 0 : i64} : (tensor<1x14x8xf32>, tensor<4xi32>, tensor<4xi32>, tensor<4xi32>) -> tensor<1x14x8x1xf32> func.return %res : tensor<1x14x8x1xf32> } // ----- func.func @test_strided_slice_shrink_axis_mask(%arg0: tensor<1x14x8x1xf32>) -> tensor<1x14x8xf32> { %strides = "tf.Const"() {device = "", value = dense<1> : tensor<4xi32>} : () -> tensor<4xi32> %begin = "tf.Const"() {device = "", value = dense<0> : tensor<4xi32>} : () -> tensor<4xi32> %end = "tf.Const"() {device = "", value = dense<[0, 0, 0, 1]> : tensor<4xi32>} : () -> tensor<4xi32> %res = "tf.StridedSlice"(%arg0, %begin, %end, %strides) {begin_mask = 7 : i64, device = "", ellipsis_mask = 0 : i64, end_mask = 7 : i64, new_axis_mask = 0 : i64, shrink_axis_mask = 8 : i64} : (tensor<1x14x8x1xf32>, tensor<4xi32>, tensor<4xi32>, tensor<4xi32>) -> tensor<1x14x8xf32> func.return %res : tensor<1x14x8xf32> } ``` ### Standalone code to reproduce the issue ```shell Use MLIR new tests in https://github.com/tensorflow/tensorflow/pull/60939 to see the error. ``` ### Relevant log output ```shell I create pull request to fix the issue: https://github.com/tensorflow/tensorflow/pull/60939 ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61157/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/61157/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61150
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61150/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61150/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61150/events
https://github.com/tensorflow/tensorflow/issues/61150
1,784,570,231
I_kwDOArmXAs5qXmF3
61,150
TF Lite produces wrong graph when tensor broadcasting exists
{ "login": "YaoJiayi", "id": 82156730, "node_id": "MDQ6VXNlcjgyMTU2NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/82156730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YaoJiayi", "html_url": "https://github.com/YaoJiayi", "followers_url": "https://api.github.com/users/YaoJiayi/followers", "following_url": "https://api.github.com/users/YaoJiayi/following{/other_user}", "gists_url": "https://api.github.com/users/YaoJiayi/gists{/gist_id}", "starred_url": "https://api.github.com/users/YaoJiayi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YaoJiayi/subscriptions", "organizations_url": "https://api.github.com/users/YaoJiayi/orgs", "repos_url": "https://api.github.com/users/YaoJiayi/repos", "events_url": "https://api.github.com/users/YaoJiayi/events{/privacy}", "received_events_url": "https://api.github.com/users/YaoJiayi/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "miaout17", "id": 22063, "node_id": "MDQ6VXNlcjIyMDYz", "avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miaout17", "html_url": "https://github.com/miaout17", "followers_url": "https://api.github.com/users/miaout17/followers", "following_url": "https://api.github.com/users/miaout17/following{/other_user}", "gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}", "starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miaout17/subscriptions", "organizations_url": "https://api.github.com/users/miaout17/orgs", "repos_url": "https://api.github.com/users/miaout17/repos", "events_url": "https://api.github.com/users/miaout17/events{/privacy}", "received_events_url": "https://api.github.com/users/miaout17/received_events", "type": "User", "site_admin": false }
[ { "login": "miaout17", "id": 22063, "node_id": "MDQ6VXNlcjIyMDYz", "avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miaout17", "html_url": "https://github.com/miaout17", "followers_url": "https://api.github.com/users/miaout17/followers", "following_url": "https://api.github.com/users/miaout17/following{/other_user}", "gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}", "starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miaout17/subscriptions", "organizations_url": "https://api.github.com/users/miaout17/orgs", "repos_url": "https://api.github.com/users/miaout17/repos", "events_url": "https://api.github.com/users/miaout17/events{/privacy}", "received_events_url": "https://api.github.com/users/miaout17/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @YaoJiayi \r\n\r\nI was able to reproduce the issue. Seems like broadcasting to shape [2,1] does gives the intended result.\r\n\r\nPlease find the gist [here](https://colab.research.google.com/gist/pjpratik/1be8972c67d458ffa1d6eaa8943618b8/61150.ipynb).\r\n\r\n@pkgoogle Can you check this issue?\r\n\r\nThanks.", "I was able to reproduce with tf-nightly as well.\r\n\r\nHi @miaout17, this is similar to https://github.com/tensorflow/tensorflow/issues/60929, can you please take a look? Thanks!" ]
2023-07-02T10:28:45
2023-07-06T17:51:35
null
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.14.0-dev20230701 ### 2. Code This is the minimized code to reproduce the issue: ```python import tensorflow as tf import numpy as np input_shape = [2, 2] x1 = tf.constant([[0., 0.], [0., 0.]], shape=input_shape) class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() self.w1 = tf.Variable([[0.], [1.]]) self.m1 = tf.Variable([[1.], [1.]]) @tf.function(input_signature=[tf.TensorSpec(x1.shape, x1.dtype)]) def call(self, x1): x2 = tf.constant([1.], shape=[1]) x3 = x1 + x2 #broadcast return tf.matmul(x3, self.w1) + self.m1 m = Model() expected_value = m(x1) print(expected_value.numpy()) converter = tf.lite.TFLiteConverter.from_keras_model(m) tflite_model = converter.convert() def _evaluateTFLiteModel(tflite_model, input_data): interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for i in range(len(input_data)): interpreter.set_tensor(input_details[i]['index'], input_data[i]) interpreter.invoke() output_data = [interpreter.get_tensor(output_details[i]['index']) for i in range(len(output_details))] return output_data actual_value = _evaluateTFLiteModel(tflite_model,[x1]) print(actual_value[0]) tf.lite.experimental.Analyzer.analyze(model_content=tflite_model) ``` ### 3. Failure after conversion Output: ``` Keras mode output: [[2.] [2.]] Lite mode output: [[1.] [1.]] ``` Lite IR: ``` Subgraph#0 main(T#0) -> [T#3] Op#0 FULLY_CONNECTED(T#0, T#2, T#1) -> [T#3] Tensors of Subgraph#0 T#0(serving_default_args_0:0) shape:[2, 2], type:FLOAT32 T#1(Const) shape:[1], type:FLOAT32 RO 4 bytes, buffer: 2, data:[1] T#2(MatMul) shape:[1, 2], type:FLOAT32 RO 8 bytes, buffer: 3, data:[0, 1] T#3(StatefulPartitionedCall:0) shape:[2, 1], type:FLOAT32 ``` Model produces wrong results: - Using ```tf.lite.experimental.Analyzer.analyze```, we can see the bias (```T#1```) equals to [1]. However, the correct bias should be [2].
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61150/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/61150/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61149
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61149/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61149/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61149/events
https://github.com/tensorflow/tensorflow/issues/61149
1,784,563,028
I_kwDOArmXAs5qXkVU
61,149
tf.image.extract_patches error for tf.RaggedTensor inputs
{ "login": "RaminNateghi", "id": 65801650, "node_id": "MDQ6VXNlcjY1ODAxNjUw", "avatar_url": "https://avatars.githubusercontent.com/u/65801650?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RaminNateghi", "html_url": "https://github.com/RaminNateghi", "followers_url": "https://api.github.com/users/RaminNateghi/followers", "following_url": "https://api.github.com/users/RaminNateghi/following{/other_user}", "gists_url": "https://api.github.com/users/RaminNateghi/gists{/gist_id}", "starred_url": "https://api.github.com/users/RaminNateghi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RaminNateghi/subscriptions", "organizations_url": "https://api.github.com/users/RaminNateghi/orgs", "repos_url": "https://api.github.com/users/RaminNateghi/repos", "events_url": "https://api.github.com/users/RaminNateghi/events{/privacy}", "received_events_url": "https://api.github.com/users/RaminNateghi/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": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
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 @RaminNateghi ,\r\n\r\nThe reason for this behaviour is not all Ops supports Ragged Tensors. You can find the list of supported Ops [here](https://www.tensorflow.org/api_docs/python/tf/ragged). For `tf.image` module only the following Ops support Ragged Tensors.\r\n\r\n> [tf.image.adjust_brightness](https://www.tensorflow.org/api_docs/python/tf/image/adjust_brightness)(image, delta)\r\n> [tf.image.adjust_gamma](https://www.tensorflow.org/api_docs/python/tf/image/adjust_gamma)(image, gamma=1, gain=1)\r\n> [tf.image.convert_image_dtype](https://www.tensorflow.org/api_docs/python/tf/image/convert_image_dtype)(image, dtype, saturate=False, name=None)\r\n> [tf.image.random_brightness](https://www.tensorflow.org/api_docs/python/tf/image/random_brightness)(image, max_delta, seed=None)\r\n> [tf.image.resize](https://www.tensorflow.org/api_docs/python/tf/image/resize)(images, size, method='bilinear', preserve_aspect_ratio=False, antialias=False, name=None)\r\n> [tf.image.stateless_random_brightness](https://www.tensorflow.org/api_docs/python/tf/image/stateless_random_brightness)(image, max_delta, seed)\r\n\r\nHope this will resolve your query. Thanks!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "@SuryanarayanaY, thank you for your explanation.", "Hi @RaminNateghi ,\r\n\r\nCan we considered it as resolved now. Please feel free to close the issue if resolved for you.\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/61149\">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/61149\">No</a>\n" ]
2023-07-02T10:13:52
2023-08-10T01:54:27
2023-08-10T01:54:25
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version tf 2.12.0 ### Custom code Yes ### OS platform and distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current behavior? `tf.image.extract_patches` should be able to extract patches from `ragged `tensors. ### Standalone code to reproduce the issue ```shell def build_model(): input = tf.keras.Input([None, None, 3], ragged=True, name="image") patches = tf.image.extract_patches( images=input, sizes=[1, 4, 4, 1], strides=[1, 4, 4, 1], rates=[1, 1, 1, 1], padding="SAME", ) return tf.keras.Model( inputs=input, outputs=patches) model = build_model() ``` ### Relevant log output ```shell --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-48-0f2eac36aeae> in <cell line: 16>() 14 15 ---> 16 model = build_model() 3 frames /usr/local/lib/python3.10/dist-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs) 68 # To get the full stack trace, call: 69 # `tf.debugging.disable_traceback_filtering()` ---> 70 raise e.with_traceback(filtered_tb) from None 71 finally: 72 del filtered_tb TypeError: Exception encountered when calling layer "tf.image.extract_patches_3" (type TFOpLambda). Failed to convert elements of tf.RaggedTensor(values=tf.RaggedTensor(values=Tensor("Placeholder:0", shape=(None, 3), dtype=float32), row_splits=Tensor("Placeholder_1:0", shape=(None,), dtype=int64)), row_splits=Tensor("Placeholder_2:0", shape=(None,), dtype=int64)) to Tensor. Consider casting elements to a supported type. See https://www.tensorflow.org/api_docs/python/tf/dtypes for supported TF dtypes. Call arguments received by layer "tf.image.extract_patches_3" (type TFOpLambda): • images=tf.RaggedTensor(values=tf.RaggedTensor(values=Tensor("Placeholder:0", shape=(None, 3), dtype=float32), row_splits=Tensor("Placeholder_1:0", shape=(None,), dtype=int64)), row_splits=Tensor("Placeholder_2:0", shape=(None,), dtype=int64)) • sizes=['1', '4', '4', '1'] • strides=['1', '4', '4', '1'] • rates=['1', '1', '1', '1'] • padding='SAME' • name=None ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61149/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/61149/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61140
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61140/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61140/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61140/events
https://github.com/tensorflow/tensorflow/pull/61140
1,783,952,519
PR_kwDOArmXAs5UaGnm
61,140
Update README.md
{ "login": "inshalbaig123", "id": 108182605, "node_id": "U_kgDOBnK8TQ", "avatar_url": "https://avatars.githubusercontent.com/u/108182605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/inshalbaig123", "html_url": "https://github.com/inshalbaig123", "followers_url": "https://api.github.com/users/inshalbaig123/followers", "following_url": "https://api.github.com/users/inshalbaig123/following{/other_user}", "gists_url": "https://api.github.com/users/inshalbaig123/gists{/gist_id}", "starred_url": "https://api.github.com/users/inshalbaig123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/inshalbaig123/subscriptions", "organizations_url": "https://api.github.com/users/inshalbaig123/orgs", "repos_url": "https://api.github.com/users/inshalbaig123/repos", "events_url": "https://api.github.com/users/inshalbaig123/events{/privacy}", "received_events_url": "https://api.github.com/users/inshalbaig123/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "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/61140/checks?check_run_id=14708113574) 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 @inshalbaig123 Can you please sign CLA ?\r\n\r\nPlease don't use \"add file\"/\"update file\"/\"fix file\"/etc. commit messages. These are hard to reason about when looking at the history of the file/repository. Instead, please write explanatory git commit messages.\r\n\r\nThe commit message is also the title of the PR if the PR has only one commit. It is thus twice important to have commit messages that are relevant, as PRs would be easier to understand and easier to analyze in search results.\r\n\r\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/\r\n\r\nThank you for your contribution." ]
2023-07-01T14:08:22
2023-07-04T17:54:43
2023-07-04T17:54:28
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61140", "html_url": "https://github.com/tensorflow/tensorflow/pull/61140", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61140.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61140.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61140/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/61140/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61139
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61139/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61139/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61139/events
https://github.com/tensorflow/tensorflow/pull/61139
1,783,949,672
PR_kwDOArmXAs5UaF-P
61,139
Update configure.cmd
{ "login": "inshalbaig123", "id": 108182605, "node_id": "U_kgDOBnK8TQ", "avatar_url": "https://avatars.githubusercontent.com/u/108182605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/inshalbaig123", "html_url": "https://github.com/inshalbaig123", "followers_url": "https://api.github.com/users/inshalbaig123/followers", "following_url": "https://api.github.com/users/inshalbaig123/following{/other_user}", "gists_url": "https://api.github.com/users/inshalbaig123/gists{/gist_id}", "starred_url": "https://api.github.com/users/inshalbaig123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/inshalbaig123/subscriptions", "organizations_url": "https://api.github.com/users/inshalbaig123/orgs", "repos_url": "https://api.github.com/users/inshalbaig123/repos", "events_url": "https://api.github.com/users/inshalbaig123/events{/privacy}", "received_events_url": "https://api.github.com/users/inshalbaig123/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "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/61139/checks?check_run_id=14708084921) 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.", "I have update this file you can check", "Hi @inshalbaig123 Can you please sign CLA ?\r\n\r\nPlease don't use \"add file\"/\"update file\"/\"fix file\"/etc. commit messages. These are hard to reason about when looking at the history of the file/repository. Instead, please write explanatory git commit messages.\r\n\r\nThe commit message is also the title of the PR if the PR has only one commit. It is thus twice important to have commit messages that are relevant, as PRs would be easier to understand and easier to analyze in search results.\r\n\r\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/\r\n\r\nThank you for your contribution." ]
2023-07-01T14:05:11
2023-07-04T17:51:38
2023-07-04T17:51:11
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61139", "html_url": "https://github.com/tensorflow/tensorflow/pull/61139", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61139.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61139.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61139/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/61139/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61138
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61138/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61138/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61138/events
https://github.com/tensorflow/tensorflow/pull/61138
1,783,946,013
PR_kwDOArmXAs5UaFH0
61,138
Update .zenodo.json
{ "login": "inshalbaig123", "id": 108182605, "node_id": "U_kgDOBnK8TQ", "avatar_url": "https://avatars.githubusercontent.com/u/108182605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/inshalbaig123", "html_url": "https://github.com/inshalbaig123", "followers_url": "https://api.github.com/users/inshalbaig123/followers", "following_url": "https://api.github.com/users/inshalbaig123/following{/other_user}", "gists_url": "https://api.github.com/users/inshalbaig123/gists{/gist_id}", "starred_url": "https://api.github.com/users/inshalbaig123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/inshalbaig123/subscriptions", "organizations_url": "https://api.github.com/users/inshalbaig123/orgs", "repos_url": "https://api.github.com/users/inshalbaig123/repos", "events_url": "https://api.github.com/users/inshalbaig123/events{/privacy}", "received_events_url": "https://api.github.com/users/inshalbaig123/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "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/61138/checks?check_run_id=14708058666) 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.", "I have update this file", "Hi @inshalbaig123 Can you please sign CLA ? \r\n\r\nPlease don't use \"add file\"/\"update file\"/\"fix file\"/etc. commit messages. These are hard to reason about when looking at the history of the file/repository. Instead, please write explanatory git commit messages.\r\n\r\nThe commit message is also the title of the PR if the PR has only one commit. It is thus twice important to have commit messages that are relevant, as PRs would be easier to understand and easier to analyze in search results.\r\n\r\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/\r\n\r\nThank you for your contribution." ]
2023-07-01T14:02:40
2023-07-04T17:52:42
2023-07-04T17:52:37
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61138", "html_url": "https://github.com/tensorflow/tensorflow/pull/61138", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61138.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61138.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61138/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/61138/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61137
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61137/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61137/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61137/events
https://github.com/tensorflow/tensorflow/issues/61137
1,783,774,851
I_kwDOArmXAs5qUj6D
61,137
Not correct result from tf.split()
{ "login": "FGMphys", "id": 82268906, "node_id": "MDQ6VXNlcjgyMjY4OTA2", "avatar_url": "https://avatars.githubusercontent.com/u/82268906?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FGMphys", "html_url": "https://github.com/FGMphys", "followers_url": "https://api.github.com/users/FGMphys/followers", "following_url": "https://api.github.com/users/FGMphys/following{/other_user}", "gists_url": "https://api.github.com/users/FGMphys/gists{/gist_id}", "starred_url": "https://api.github.com/users/FGMphys/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FGMphys/subscriptions", "organizations_url": "https://api.github.com/users/FGMphys/orgs", "repos_url": "https://api.github.com/users/FGMphys/repos", "events_url": "https://api.github.com/users/FGMphys/events{/privacy}", "received_events_url": "https://api.github.com/users/FGMphys/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": 4511033337, "node_id": "LA_kwDOArmXAs8AAAABDODn-Q", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10", "name": "TF 2.10", "color": "C15088", "default": false, "description": "" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @FGMphys ,\r\n\r\nThanks for reaching us. I have tested the code and yes it seems bug present in TF2.10 and it got resolved in TF2.11 and later versions and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/6d55357a00c452054a54b2a975816967/61137.ipynb) for reference.. As the error resolved since last 3 versions it is unlikely to cherry pick to old versions.\r\n\r\nShall we mark it as closed as it resolved with latest versions. Thanks!", "Thanks for the response. ", "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/61137\">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/61137\">No</a>\n" ]
2023-07-01T10:11:36
2023-07-04T09:13:41
2023-07-04T09:13:38
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? No ### Source binary ### TensorFlow version tf 2.8-2.9-2.10 ### Custom code No ### OS platform and distribution Both on Mac and on Ubuntu ### 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 behavior? Tryng to split a four axes tensor, I got some unexpected zeros in the splitted tensors. This behaviour is not presented in the tf 2.12. Is an old bug? ### Standalone code to reproduce the issue ```shell import tensorflow as tf vec=tf.ones((1,768,3,1400)) splitted=tf.split(vec,[256,512],axis=1) print(splitted) ##zeros have occured in the tensor ``` ### Relevant log output ```shell No ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61137/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/61137/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61136
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61136/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61136/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61136/events
https://github.com/tensorflow/tensorflow/issues/61136
1,783,590,236
I_kwDOArmXAs5qT21c
61,136
Label of image looks pretty small in detection
{ "login": "MuhammadSaad-ml", "id": 57999664, "node_id": "MDQ6VXNlcjU3OTk5NjY0", "avatar_url": "https://avatars.githubusercontent.com/u/57999664?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MuhammadSaad-ml", "html_url": "https://github.com/MuhammadSaad-ml", "followers_url": "https://api.github.com/users/MuhammadSaad-ml/followers", "following_url": "https://api.github.com/users/MuhammadSaad-ml/following{/other_user}", "gists_url": "https://api.github.com/users/MuhammadSaad-ml/gists{/gist_id}", "starred_url": "https://api.github.com/users/MuhammadSaad-ml/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MuhammadSaad-ml/subscriptions", "organizations_url": "https://api.github.com/users/MuhammadSaad-ml/orgs", "repos_url": "https://api.github.com/users/MuhammadSaad-ml/repos", "events_url": "https://api.github.com/users/MuhammadSaad-ml/events{/privacy}", "received_events_url": "https://api.github.com/users/MuhammadSaad-ml/received_events", "type": "User", "site_admin": false }
[ { "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" } ]
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
[ "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/61136\">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/61136\">No</a>\n" ]
2023-07-01T06:39:54
2023-07-01T06:41:49
2023-07-01T06:41:47
NONE
null
null
null
### Issue type Performance ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version tf 2.11 ### Custom code Yes ### OS platform and distribution * ### Mobile device * ### Python version python 3.7 ### Bazel version * ### GCC/compiler version * ### CUDA/cuDNN version * ### GPU model and memory Mac OS 2012 ### Current behavior? * ### Standalone code to reproduce the issue ```shell I am working on final year project of Pakistani sign language detecteion project is complete but when I tried to detect image in real time the label is shown very small and barely able to read it is there any way we can modified the label to look bigger ``` ### Relevant log output ```shell I am working on final year project of Pakistani sign language detecteion project is complete but when I tried to detect image in real time the label is shown very small and barely able to read it is there any way we can modified the label to look bigger thanks ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61136/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/61136/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61134
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61134/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61134/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61134/events
https://github.com/tensorflow/tensorflow/pull/61134
1,783,254,384
PR_kwDOArmXAs5UXpo9
61,134
unpin gast dependency for pip_package
{ "login": "h-vetinari", "id": 33685575, "node_id": "MDQ6VXNlcjMzNjg1NTc1", "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "gravatar_id": "", "url": "https://api.github.com/users/h-vetinari", "html_url": "https://github.com/h-vetinari", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "repos_url": "https://api.github.com/users/h-vetinari/repos", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Fixed some missing `=` in `!=`", "I will be gone for a week (due to 4th of July) but will check again when I'm back (and probably earlier on the github side)", "I can't really do something about the failing linter check, the line for excluding protobuf versions is pre-existing, and probably needs to be that long anyway.\r\n\r\nI also cannot see what's failing with the Internal CI build. Other than that, everything looks green. 🥳 ", "This worked! 🎉 \r\n\r\nThank you very much for pushing this through!", "Thanks for merging! :)" ]
2023-06-30T23:31:25
2023-07-07T09:13:27
2023-07-06T16:34:44
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61134", "html_url": "https://github.com/tensorflow/tensorflow/pull/61134", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61134.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61134.patch", "merged_at": "2023-07-06T16:34:43" }
Commit c762c4501ca017994c1fa5554c3c8e47b7c80b66 noted that "I also know that gast 0.5.2 breaks one of our tests" and committed "gast versions above 0.4.0 are incompatible with some of TF's tests." In #56244, it was suggested to raise a PR to remove the cap. In view of the above-mentioned constraints, I've excluded everything after 0.4.0 up to 0.5.2; note that 0.5.0 directly followed 0.4.0, see https://github.com/serge-sans-paille/gast/tags
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61134/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/61134/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61133
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61133/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61133/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61133/events
https://github.com/tensorflow/tensorflow/pull/61133
1,783,248,310
PR_kwDOArmXAs5UXoWd
61,133
Rename tensorflow_issue_template
{ "login": "rylan-justice", "id": 119366377, "node_id": "U_kgDOBx1i6Q", "avatar_url": "https://avatars.githubusercontent.com/u/119366377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rylan-justice", "html_url": "https://github.com/rylan-justice", "followers_url": "https://api.github.com/users/rylan-justice/followers", "following_url": "https://api.github.com/users/rylan-justice/following{/other_user}", "gists_url": "https://api.github.com/users/rylan-justice/gists{/gist_id}", "starred_url": "https://api.github.com/users/rylan-justice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rylan-justice/subscriptions", "organizations_url": "https://api.github.com/users/rylan-justice/orgs", "repos_url": "https://api.github.com/users/rylan-justice/repos", "events_url": "https://api.github.com/users/rylan-justice/events{/privacy}", "received_events_url": "https://api.github.com/users/rylan-justice/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-06-30T23:18:48
2023-08-25T19:28:17
2023-08-25T19:28:14
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61133", "html_url": "https://github.com/tensorflow/tensorflow/pull/61133", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61133.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61133.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61133/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/61133/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61132
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61132/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61132/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61132/events
https://github.com/tensorflow/tensorflow/issues/61132
1,783,054,992
I_kwDOArmXAs5qR0KQ
61,132
_SparseSparseMaximumGrad throws TypeError in forward gradient computation
{ "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": 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": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @trickiwoo ,\r\n\r\nThanks for reporting. I have replicated the issue with Tf2.12 and tf-nightly as well and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/994d408ba5d5e3728644b2224a28a6c4/61132.ipynb) for reference.\r\n\r\nNeeds to dig more to check the reason for this behaviour. Thanks!" ]
2023-06-30T19:23:24
2023-07-31T14:17:33
null
NONE
null
null
null
### Issue type Bug ### Have you reproduced the bug with TensorFlow Nightly? Yes ### Source source ### TensorFlow version 2.14.0-dev20230630 ### Custom code Yes ### 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 behavior? When the function has a `tf.sparse.maximum` call, the forward-mode gradient computation fails with `TypeError: _SparseSparseMaximumGrad() takes 2 positional arguments but 3 were given`. After inspection, i find that SparseTensor is not supported for differentiation. In the example code below, computing reverse-mode gradient of `y` (sparse tensor) will result in a `TypeError: Type SparseTensor is not supported as a gradient source or gradient target.` However, in the forward mode gradient computation, I am trying to compute gradient for a non-sparse tensor `complex_data`, and I think it should not be affected by the `tf.sparse.maximum` call? ### Standalone code to reproduce the issue ```shell import tensorflow as tf real_data = tf.random.uniform([4, 4], dtype=tf.float32) imag_data = tf.random.uniform([4, 4], dtype=tf.float32) def foo(real_data, imag_data): complex_data = tf.complex(real_data, imag_data) y = tf.sparse.maximum(tf.sparse.from_dense(real_data), tf.sparse.from_dense(imag_data)) return complex_data, y with tf.GradientTape(persistent=True) as t: t.watch(real_data) t.watch(imag_data) complex_data, y = foo(real_data, imag_data) g = t.gradient(complex_data, real_data) # works # g = t.gradient(y, real_data) # ValueError: Type SparseTensor is not supported as a gradient source or gradient target. tangents = tf.ones((4,4)) with tf.autodiff.ForwardAccumulator(real_data,tangents) as acc: complex_data, y = foo(real_data, imag_data) # TypeError # Never reach here # jvp = acc.jvp(complex_data) # print(jvp) ``` ### Relevant log output ```shell TypeError: _SparseSparseMaximumGrad() takes 2 positional arguments but 3 were given ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61132/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/61132/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61131
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61131/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61131/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61131/events
https://github.com/tensorflow/tensorflow/issues/61131
1,783,047,296
I_kwDOArmXAs5qRySA
61,131
SavedModel is not deterministic when saved with enable_op_determinism=True
{ "login": "Krasner", "id": 7035109, "node_id": "MDQ6VXNlcjcwMzUxMDk=", "avatar_url": "https://avatars.githubusercontent.com/u/7035109?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Krasner", "html_url": "https://github.com/Krasner", "followers_url": "https://api.github.com/users/Krasner/followers", "following_url": "https://api.github.com/users/Krasner/following{/other_user}", "gists_url": "https://api.github.com/users/Krasner/gists{/gist_id}", "starred_url": "https://api.github.com/users/Krasner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Krasner/subscriptions", "organizations_url": "https://api.github.com/users/Krasner/orgs", "repos_url": "https://api.github.com/users/Krasner/repos", "events_url": "https://api.github.com/users/Krasner/events{/privacy}", "received_events_url": "https://api.github.com/users/Krasner/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": 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": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
closed
false
{ "login": "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
[ "To clarify, in this saving block:\r\n```\r\ntf.keras.utils.set_random_seed(42)\r\ntf.config.experimental.enable_op_determinism()\r\nmodel.seed = 42\r\n\r\n# Model is deterministic here\r\n\r\ntf.keras.models.save_model(model, save_path, save_format=\"tf\")\r\n```\r\n\r\nSo, before saving the model and after the seed update the model acting deterministically, but after the save (and upon reloading) the determinism is lost", "I have an update which might be a solution.\r\nIf I set: `self._seed = tf.Variable([42, 42], trainable=False)`\r\n\r\nThen tfp.distribution will sample reproducibly\r\n```\r\n# tf.random.set_seed(seed)\r\nsamples= dist.sample(num_samples, seed=seed) \r\n```\r\nNote: I don't use `tf.random.set_seed` instead passing the size 2 seed to `dist.sample` because of the underlying `tf.random.stateless_xxxx` function", "@Krasner Sorry for the late response!\r\nCould you please share the code in colab gist or notebook as it seems that some dependencies are missing[ here](https://colab.research.google.com/gist/sushreebarsa/c0f957a1b2d66fe6bdf54d08b197d321/61131.ipynb). Also please refer to this [link](https://www.tensorflow.org/api_docs/python/tf/keras/saving/save_model) to save the model and let us know if it helps?\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/61131\">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/61131\">No</a>\n" ]
2023-06-30T19:15:29
2023-07-23T01:59:33
2023-07-23T01:59:31
NONE
null
null
null
### Issue type Support ### Have you reproduced the bug with TensorFlow Nightly? No ### Source source ### TensorFlow version 2.9.2 ### Custom code No ### OS platform and distribution 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 behavior? I have a model with monte-carlo sampling layers. At train time it is ok for sampling to be random and I do not set a seed. At inference this model MUST output deterministic results - so the sampled values must be reproducible. I need to save this model after training using `tf.keras.models.save_model()` and then load it with `tf.keras.models.load_model()` When training is complete I save the model like so: ``` tf.keras.utils.set_random_seed(42) tf.config.experimental.enable_op_determinism() model.seed = 42 tf.keras.models.save_model(model, save_path, save_format="tf") ``` To load it: ``` import tensorflow as tf tf.keras.utils.set_random_seed(42) tf.config.experimental.enable_op_determinism() model = tf.keras.models.load_model(save_path) for _ in range(10): output = model(input_tensor, training=False) ``` I expect output to be always the same for the same input - within one python process and when reloading, however it is not. This is what my model looks like (only the relevant portions): ``` class CustomModel(tf.keras.Model): def __init__(self, *args, **kwargs): self._seed = None self.mc_layer = CustomMonteCarloSamplingLayer() @tf.keras.utils.register_keras_serializable(name="seed") @property def seed(self): return self._seed @seed.setter def seed(self, value): if is_op_determinism_enabled(): lgr.info("Setting random seed") self._seed = value tf.random.set_seed(value) else: lgr.info("TF OP Determinism not set") def call(self, inputs, training=True): return self.mc_layer(inputs, seed=self._seed) ``` Internally in `CustomMonteCarloSamplingLayer` I use the seed value like so: ``` tf.random.set_seed(seed) samples= dist.sample(num_samples, seed=seed) ``` where dist is a distribution from tensorflow_probability. When `self._seed = None` which is the case in training, `dist.sample` will randomly generate values. When `self._seed` is set then I need `dist.sample` to be reproducible. The loaded model, even with op determinism enabled during saving and loading, is not reproducible. ### Standalone code to reproduce the issue ```shell See above ``` ### Relevant log output _No response_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61131/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/61131/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61129
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61129/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61129/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61129/events
https://github.com/tensorflow/tensorflow/issues/61129
1,782,843,703
I_kwDOArmXAs5qRAk3
61,129
mutiple issues with the new parameter server strategy
{ "login": "chengmengli06", "id": 31561586, "node_id": "MDQ6VXNlcjMxNTYxNTg2", "avatar_url": "https://avatars.githubusercontent.com/u/31561586?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chengmengli06", "html_url": "https://github.com/chengmengli06", "followers_url": "https://api.github.com/users/chengmengli06/followers", "following_url": "https://api.github.com/users/chengmengli06/following{/other_user}", "gists_url": "https://api.github.com/users/chengmengli06/gists{/gist_id}", "starred_url": "https://api.github.com/users/chengmengli06/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chengmengli06/subscriptions", "organizations_url": "https://api.github.com/users/chengmengli06/orgs", "repos_url": "https://api.github.com/users/chengmengli06/repos", "events_url": "https://api.github.com/users/chengmengli06/events{/privacy}", "received_events_url": "https://api.github.com/users/chengmengli06/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": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 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
[ "> 1. how to shard data by files, how to use the later binding mechanism to shard data by files, which is critical for high performance training using tf.data.Dataset apis, all workers reading the total data is not scalable.\r\n\r\n> 3. how to ensure even the workers are with uneven amount of data, the training process with model.fit could end elegantly instead of having to using try catch or data.repeat, as recommendation models generally assume one epoch training.\r\n\r\n\r\n\r\nDue to the nature of the parameter server training environment (unsynchronized workers, higher preemption rate), iterating over the training data exactly once is hard to enforce. For this reason the [default recommendation](https://www.tensorflow.org/tutorials/distribute/parameter_server_training#input_data) is to shuffle data (approximately ensuring workers see different data) and repeat it infinitely, then train for a fixed number of steps. \r\n\r\nThere is a [new experimental API](https://www.tensorflow.org/api_docs/python/tf/distribute/coordinator/experimental_get_current_worker_index) to let workers see disjoint datasets, so there would be no data overlap between workers. This should provide the late binding you're looking for. (However if a worker fails and recovers it will still iterate over parts of its data shard more than once). \r\n\r\n> 2. how to control the placement of ops, in one attempt, we build dataset using tf.data.Dataset.from_tensor_slices and.\r\ndataset = dataset.interleave(lambda x: tf.data.TextLineDataset(x).skip(1), cycle_length=15, num_parallel_calls=15)\r\nwith parameter server strategy, the dataset related ops runs on workers, however, if I add one more op dataset.repeat(), the dataset ops all runs on chief, which is surprising.\r\n\r\nThis is surprising, are you able to provide the exact dataset building code that could help reproduce this? ", "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/61129\">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/61129\">No</a>\n" ]
2023-06-30T16:50:24
2023-08-10T01:54:30
2023-08-10T01:54:26
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.10.1 ### Custom Code Yes ### OS Platform and Distribution ubuntu 16.04 ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? We meet multiple issues in using the Tensorflow 2.x strategy: 1. how to shard data by files, how to use the later binding mechanism to shard data by files, which is critical for high performance training using tf.data.Dataset apis, all workers reading the total data is not scalable. 2. how to control the placement of ops, in one attempt, we build dataset using tf.data.Dataset.from_tensor_slices and. dataset = dataset.interleave(lambda x: tf.data.TextLineDataset(x).skip(1), cycle_length=15, num_parallel_calls=15) with parameter server strategy, the dataset related ops runs on workers, however, if I add one more op dataset.repeat(), the dataset ops all runs on chief, which is surprising. 4. how to ensure even the workers are with uneven amount of data, the training process with model.fit could end elegantly instead of having to using try catch or data.repeat, as recommendation models generally assume one epoch training. [[email protected]](mailto:[email protected]) [[email protected]](mailto:[email protected]) ### Standalone code to reproduce the issue ```shell # for chief: file_list = tf.io.gfile.glob(input_pattern) dataset = tf.data.Dataset.from_tensor_slices(file_list) dataset = dataset.shard(worker_num, worker_id) # how to later bind worker_id? dataset = dataset.interleave(lambda x: tf.data.TextLineDataset(x).skip(1), cycle_length=15, num_parallel_calls=15) def _parse_csv(line): record_defaults = [] for x in all_columns: record_defaults.append(0) with tf.control_dependencies([tf.print(tf.shape(line), line[0], output_stream=sys.stderr)]): fields = tf.io.decode_csv( line, field_delim=',', record_defaults=record_defaults, name='decode_csv') return fields dataset = dataset.map(_parse_csv, num_parallel_calls=8) dataset = dataset.repeat() strategy = tf.distribute.experimental.ParameterServerStrategy( cluster_resolver, variable_partitioner=variable_partitioner) with strategy.scope(): model = build_model(...) model.fit(dataset, epochs=num_epoch, callbacks=[ tf.keras.callbacks.ProgbarLogger(count_mode='steps'), tf.keras.callbacks.TensorBoard(log_dir='/train/tensorboard/', histogram_freq=0) ], steps_per_epoch=steps_per_epoch) # for workers and ps: server = tf.distribute.Server( cluster_resolver.cluster_spec(), job_name=cluster_resolver.task_type, task_index=cluster_resolver.task_id, protocol=cluster_resolver.rpc_layer or 'grpc', start=True) server.join() ``` ### Relevant log output ```shell # tf.print outputs are all on chief stdout, and no improvements if we place the dataset built process under strategy.scope() or using ops.device() operations. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61129/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/61129/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61126
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61126/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61126/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61126/events
https://github.com/tensorflow/tensorflow/issues/61126
1,781,858,438
I_kwDOArmXAs5qNQCG
61,126
Internal error: Error applying delegate when trying to use TensorFlow Lite NNAPI delegate on Google Pixel 7
{ "login": "soupslurpr", "id": 92235850, "node_id": "U_kgDOBX9oSg", "avatar_url": "https://avatars.githubusercontent.com/u/92235850?v=4", "gravatar_id": "", "url": "https://api.github.com/users/soupslurpr", "html_url": "https://github.com/soupslurpr", "followers_url": "https://api.github.com/users/soupslurpr/followers", "following_url": "https://api.github.com/users/soupslurpr/following{/other_user}", "gists_url": "https://api.github.com/users/soupslurpr/gists{/gist_id}", "starred_url": "https://api.github.com/users/soupslurpr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/soupslurpr/subscriptions", "organizations_url": "https://api.github.com/users/soupslurpr/orgs", "repos_url": "https://api.github.com/users/soupslurpr/repos", "events_url": "https://api.github.com/users/soupslurpr/events{/privacy}", "received_events_url": "https://api.github.com/users/soupslurpr/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": 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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "sirakiin", "id": 4479310, "node_id": "MDQ6VXNlcjQ0NzkzMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4479310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sirakiin", "html_url": "https://github.com/sirakiin", "followers_url": "https://api.github.com/users/sirakiin/followers", "following_url": "https://api.github.com/users/sirakiin/following{/other_user}", "gists_url": "https://api.github.com/users/sirakiin/gists{/gist_id}", "starred_url": "https://api.github.com/users/sirakiin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sirakiin/subscriptions", "organizations_url": "https://api.github.com/users/sirakiin/orgs", "repos_url": "https://api.github.com/users/sirakiin/repos", "events_url": "https://api.github.com/users/sirakiin/events{/privacy}", "received_events_url": "https://api.github.com/users/sirakiin/received_events", "type": "User", "site_admin": false }
[ { "login": "sirakiin", "id": 4479310, "node_id": "MDQ6VXNlcjQ0NzkzMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4479310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sirakiin", "html_url": "https://github.com/sirakiin", "followers_url": "https://api.github.com/users/sirakiin/followers", "following_url": "https://api.github.com/users/sirakiin/following{/other_user}", "gists_url": "https://api.github.com/users/sirakiin/gists{/gist_id}", "starred_url": "https://api.github.com/users/sirakiin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sirakiin/subscriptions", "organizations_url": "https://api.github.com/users/sirakiin/orgs", "repos_url": "https://api.github.com/users/sirakiin/repos", "events_url": "https://api.github.com/users/sirakiin/events{/privacy}", "received_events_url": "https://api.github.com/users/sirakiin/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 @soupslurpr \r\n\r\nCould you please try using the nightly snapshot and let us know if you are still facing the issue?\r\n\r\nThanks.", "Hello, thanks for responding. I just tried version 0.0.0-nightly-SNAPSHOT and the error still occurs.", "Hi @soupslurpr, There is a similar issue here: https://github.com/tensorflow/tensorflow/issues/61095, can you try 2.11 or 2.10 for now?", "Hello @pkgoogle, I just tried with both 2.11.0 and 2.10.0, and it didn't work, same error. Also tried with 2.0.0.", "Hi @soupslurpr, can you please let us know the minimum SDK (API Level) you are targeting? Also if you are comfortable exporting your Android project or a toy version which reproduces this issue that'll be extremely helpful! Including the .tflite model would be easiest, otherwise letting us know how you got it could also work.", "@pkgoogle The minimum SDK is 28 and target SDK is 33. Here is the project that reproduces this issue: https://github.com/soupslurpr/NNAPI-whisper-test", "Also, I got the .tflite from running this google colab: https://colab.research.google.com/github/usefulsensors/openai-whisper/blob/main/notebooks/generate_tflite_from_whisper.ipynb", "Hi @soupslurpr, I'm having issues opening the Android Studio project (hangs on loading), what platform are you using to open/edit your project? (MacOS, Windows, or *nix?), are there any dependencies you think I may need to install (Such as Java SDK version?)", "> Hi @soupslurpr, I'm having issues opening the Android Studio project (hangs on loading), what platform are you using to open/edit your project? (MacOS, Windows, or *nix?), are there any dependencies you think I may need to install (Such as Java SDK version?)\r\n\r\nI'm running Fedora, its using Java 17, that is probably why. I'm also using the latest alpha of Android Studio which also seems to be why it isn't working for you. You can try using the latest alpha of it, or use the below stable version. \r\n\r\nI made a version that is compatible with the latest stable version of Android Studio here: https://github.com/soupslurpr/nnapi-whisper-test-android-studio-stable", "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/61126\">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/61126\">No</a>\n", "Misclick, oops", "It seems this project requires a real device or a machine which supports VT-x or SVM.\r\n\r\nHi @sirakiin, can you please take a look? Thanks!", "@soupslurpr if you haven't figured it out yet, the tflite model file you use is the culprit and It's a [weights-only quantized one](https://www.tensorflow.org/lite/performance/post_training_quant), which doesn't work with NNAPI delegate. ", "> @soupslurpr if you haven't figured it out yet, the tflite model file you use is the culprit and It's a [weights-only quantized one](https://www.tensorflow.org/lite/performance/post_training_quant), which doesn't work with NNAPI delegate.\r\n\r\nAh, I see. Thanks for informing me of this. Do you know of a way to make it compatible?", "> @soupslurpr if you haven't figured it out yet, the tflite model file you use is the culprit and It's a [weights-only quantized one](https://www.tensorflow.org/lite/performance/post_training_quant), which doesn't work with NNAPI delegate.\r\n\r\ni have this problem with whisper-tiny.tflite model but i use many other models like this one:\r\nhttps://tfhub.dev/tulasiram58827/lite-model/hifi-gan/float16/1\r\nand still get this error without any success : \r\nCaused by: java.lang.IllegalArgumentException: Internal error: Error applying delegate: \r\n at org.tensorflow.lite.NativeInterpreterWrapper.createInterpreter(Native Method)\r\n \r\nand my code simply is:\r\nNnApiDelegate nnApiDelegate = new NnApiDelegate();\r\nInterpreter.Options options = (new Interpreter.Options()).addDelegate(nnApiDelegate);\r\nInterpreter mInterpreter = new Interpreter(tfliteModel,options); <-- where Error shows up ", "I meant to comment on this previously, but forgot. I've also been working with a TFLite model of Whisper and there are problems beyond quantization. If using the one from https://github.com/nyadla-sys/whisper.tflite, many of the ops simply aren't supported for the GPU delegate.\r\n\r\nSome of these are the control flow ops in the decoding process (such as `If` and `While`). None of these types of control flow ops are supported by the GPU delegate (or the NNAPI version either probably). Additionally, there are computation ops that aren't supported either by the delegate (I forget it at the moment, but I believe it is something like `NDScatterAndUpdate` that causes problems).\r\n\r\nRegardless, without modifying the graph definition to only supported ops, how it was quantized won't matter.", "@mitchelldehaven how would you go about creating a tiny model that supports GPU or NNAPI?", "> @mitchelldehaven how would you go about creating a tiny model that supports GPU or NNAPI?\r\n\r\nYou would need to do a couple things:\r\n\r\n- First, you would need to separate the encoder and decoder and re-implement the control flow in whatever language you are using (presumably Java if you are using NNAPI). \r\n- Second, the particular op `NDScatterAndUpdate` is not supported. You would need to re-implement this functionality with supported ops (presumably possible, I'm not sure exactly how)." ]
2023-06-30T04:21:02
2024-01-23T16:22:38
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version tensorflow-lite 2.12.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device Google Pixel 7 ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? When I try to use the NNAPI delegate to run the OpenAI whisper model on a Pixel 7, it crashes when trying to initialize the TFLite interpreter. ### Standalone code to reproduce the issue ```shell MainActivity.kt class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { NNAPIWhisperTestTheme { // A surface container using the 'background' color from the theme Surface( modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background ) { Test(applicationContext) } } } } } @Composable fun Test(applicationContext: Context, modifier: Modifier = Modifier, viewModel: NnApiViewModel = viewModel()) { Scaffold { innerPadding -> Column { Button(modifier = Modifier.padding(innerPadding), onClick = { viewModel.initialize(applicationContext) }) { Text(text = "INITIALIZE") } Button( onClick = { viewModel.runInference() }, modifier = Modifier.padding(innerPadding) ) { Text(viewModel.output + viewModel.elapsed) } } } } NnApiViewModel.kt class NnApiViewModel : ViewModel() { var options = Interpreter.Options() var nnApiDelegate: NnApiDelegate? = null var tfLite: Interpreter? = null var output by mutableStateOf("") var elapsed by mutableStateOf(0L) // Initialize interpreter with NNAPI delegate for Android Pie or above fun initialize(applicationContext: Context) { nnApiDelegate = NnApiDelegate() options.useNNAPI = true NnApiDelegate.Options().useNnapiCpu = false options.addDelegate(nnApiDelegate) val model = applicationContext.assets.open("models/whisper-tiny.tflite") val file = model.readBytes() val fileName = "whisper-tiny.tflite" applicationContext.openFileOutput(fileName, Context.MODE_PRIVATE).use { it.write(file) } val modelFile = File(applicationContext.filesDir,"whisper-tiny.tflite") // Initialize TFLite interpreter try { tfLite = Interpreter(modelFile, options) } catch (e: Exception) { throw RuntimeException(e) } } fun runInference() { try { val outputShape = tfLite?.getOutputTensor(0) val input = TensorBuffer.createFixedSize(intArrayOf(1, 80, 3000), DataType.FLOAT32) val output = TensorBuffer.createFixedSize(outputShape?.shape(), DataType.FLOAT32) val start = System.currentTimeMillis() tfLite?.run(input.buffer, output.buffer) elapsed = System.currentTimeMillis() - start } catch (e: RuntimeException) { throw RuntimeException(e) } } fun unload() { tfLite?.close() nnApiDelegate?.close() } } ``` ### Relevant log output ```shell I Loaded native library: tensorflowlite_jni I Didn't load native library: tensorflowlite_jni_gms_client I Initialized TensorFlow Lite runtime. I DeviceManager::DeviceManager I findAvailableDevices E Error opening trace file: No such file or directory (2) I Found interface google-edgetpu (version = 2.0) I Found interface google-armnn (version = ArmNN) I Created TensorFlow Lite delegate for NNAPI. E FATAL EXCEPTION: main java.lang.RuntimeException: java.lang.IllegalArgumentException: Internal error: Error applying delegate: ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61126/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/61126/timeline
null
reopened
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61124
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61124/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61124/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61124/events
https://github.com/tensorflow/tensorflow/pull/61124
1,781,135,499
PR_kwDOArmXAs5UQhmU
61,124
Remove Python 3.9 and 3.10 silicon CI tests
{ "login": "cjflan", "id": 89868659, "node_id": "MDQ6VXNlcjg5ODY4NjU5", "avatar_url": "https://avatars.githubusercontent.com/u/89868659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cjflan", "html_url": "https://github.com/cjflan", "followers_url": "https://api.github.com/users/cjflan/followers", "following_url": "https://api.github.com/users/cjflan/following{/other_user}", "gists_url": "https://api.github.com/users/cjflan/gists{/gist_id}", "starred_url": "https://api.github.com/users/cjflan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cjflan/subscriptions", "organizations_url": "https://api.github.com/users/cjflan/orgs", "repos_url": "https://api.github.com/users/cjflan/repos", "events_url": "https://api.github.com/users/cjflan/events{/privacy}", "received_events_url": "https://api.github.com/users/cjflan/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
[]
2023-06-29T16:09:03
2023-06-30T19:00:47
2023-06-30T19:00:47
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61124", "html_url": "https://github.com/tensorflow/tensorflow/pull/61124", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61124.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61124.patch", "merged_at": "2023-06-30T19:00:47" }
Reduce the tests run for CI down to just min and max python versions
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61124/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/61124/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61123
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61123/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61123/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61123/events
https://github.com/tensorflow/tensorflow/pull/61123
1,780,951,067
PR_kwDOArmXAs5UP7Dt
61,123
Update to ACL 23.05.1, add ACL reorders
{ "login": "davsva01", "id": 117736650, "node_id": "U_kgDOBwSEyg", "avatar_url": "https://avatars.githubusercontent.com/u/117736650?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davsva01", "html_url": "https://github.com/davsva01", "followers_url": "https://api.github.com/users/davsva01/followers", "following_url": "https://api.github.com/users/davsva01/following{/other_user}", "gists_url": "https://api.github.com/users/davsva01/gists{/gist_id}", "starred_url": "https://api.github.com/users/davsva01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davsva01/subscriptions", "organizations_url": "https://api.github.com/users/davsva01/orgs", "repos_url": "https://api.github.com/users/davsva01/repos", "events_url": "https://api.github.com/users/davsva01/events{/privacy}", "received_events_url": "https://api.github.com/users/davsva01/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": 1104829434, "node_id": "MDU6TGFiZWwxMTA0ODI5NDM0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:mkl", "name": "comp:mkl", "color": "0052cc", "default": false, "description": "MKL related issues" }, { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "This PR depends on and includes changes from this PR by @cfRod:\r\nhttps://github.com/tensorflow/tensorflow/pull/61093\r\nIt also depends on and includes this PR merging in a patch by @kawakami-k:\r\nhttps://github.com/tensorflow/tensorflow/pull/61114", "@penpornk @nSircombe @cfRod ", "> Is this PR a superset of #61114? It has two patch files that #61114 has.\r\n> \r\n> cc: @cantonios\r\n\r\nHi @penpornk . Yes it is, #61114 can be closed if this is merged in first.", "Hi @penpornk, thank you for the merge!\r\nMy apologies but this PR has caused some build issues downstream when building unit tests, we're seeing some linking issues during the build. Could I please get the merge of this PR reverted so that our build goes green again until we get a fix up for this next week?\r\nThank you.\r\n@elfringham", "@davsva01 Got it. Working on the revert." ]
2023-06-29T14:27:58
2023-07-14T16:55:51
2023-07-13T17:19:23
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61123", "html_url": "https://github.com/tensorflow/tensorflow/pull/61123", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61123.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61123.patch", "merged_at": "2023-07-13T17:19:23" }
This PR updates ACL to 23.05.1. It updates patches in oneDNN as required for this update. Additionally it adds ACL based reorders for select shapes.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61123/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/61123/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61122
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61122/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61122/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61122/events
https://github.com/tensorflow/tensorflow/pull/61122
1,780,463,217
PR_kwDOArmXAs5UOP_e
61,122
Migrate fuzzers to FuzzTest format
{ "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": 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": "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
[ "@fcoUnda ", "Hi @fcoUnda Can you please review this PR ? Thank you!", "This has been superseded by https://github.com/tensorflow/tensorflow/pull/61221\r\n\r\nClosing" ]
2023-06-29T09:34:09
2023-08-23T10:24:12
2023-08-23T10:24:09
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61122", "html_url": "https://github.com/tensorflow/tensorflow/pull/61122", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61122.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61122.patch", "merged_at": null }
Creates a set of fuzzers to FuzzTest style. One of the benefits is that this will reduce storage size required for the fuzzers, because the fuzzers will all be based off the same binary whereas the non-FuzzTest fuzzers will have a binary per fuzzer. This storage requirement has caused an issue on the OSS-Fuzz side: https://github.com/google/oss-fuzz/issues/9792 Migrating to FuzzTest will make it easier to add new ops-specific fuzzers since we won't have to worry about disk size. The existing fuzzesr can be several GBs of storage and it quickly goes beyond what we have available at OSS-Fuzz. It would however be nice to re-use the existing fuzzer helper logic from fuzz_session.h so I added a macro similar to what we have for libFuzzer but simple for FuzzTest. I migrated a set of the existing fuzzers. I figured it would be nice to do a soft transition, so we can remove the existing fuzzers after the ones introduced in this PR has shown to run for a while. I'm also curious in whether we will see a difference in performance from the FuzzTest and libFuzzer harnesses.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61122/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/61122/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61121
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61121/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61121/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61121/events
https://github.com/tensorflow/tensorflow/issues/61121
1,780,398,834
I_kwDOArmXAs5qHrry
61,121
` #include "include/float8.h" // from @ml_dtypes` is missing
{ "login": "JanuszL", "id": 39967756, "node_id": "MDQ6VXNlcjM5OTY3NzU2", "avatar_url": "https://avatars.githubusercontent.com/u/39967756?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JanuszL", "html_url": "https://github.com/JanuszL", "followers_url": "https://api.github.com/users/JanuszL/followers", "following_url": "https://api.github.com/users/JanuszL/following{/other_user}", "gists_url": "https://api.github.com/users/JanuszL/gists{/gist_id}", "starred_url": "https://api.github.com/users/JanuszL/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JanuszL/subscriptions", "organizations_url": "https://api.github.com/users/JanuszL/orgs", "repos_url": "https://api.github.com/users/JanuszL/repos", "events_url": "https://api.github.com/users/JanuszL/events{/privacy}", "received_events_url": "https://api.github.com/users/JanuszL/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": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 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": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "It seems to work again with the latest nightly.", "Hi, Thanks for confirming that it works with Nightly version, feel free to close the issue if it is resolved.\r\n\r\nFor the latest Nightly and Stable Tensorflow docker versions, please refer the page here https://hub.docker.com/r/tensorflow/tensorflow/tags", "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/61121\">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/61121\">No</a>\n" ]
2023-06-29T08:49:35
2023-07-18T15:14:38
2023-07-18T07:14:33
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.14.0 ### Custom Code Yes ### OS Platform and Distribution docker/tensorflow/tensorflow:nightly-gpu ### Mobile device No ### Python version 3.8 ### Bazel version NA ### GCC/Compiler version NR ### CUDA/cuDNN version NR ### GPU model and memory NR ### Current Behaviour? create a test.cc: ``` #include "tensorflow/core/framework/op.h" ``` compile it with flags provided by TensorFlow: get_compile_flags(): ```-I/usr/local/lib/python3.8/dist-packages/tensorflow/include -D_GLIBCXX_USE_CXX11_ABI=1 --std=c++17 -DEIGEN_MAX_ALIGN_BYTES=64``` get_link_flags(): ```-L/usr/local/lib/python3.8/dist-packages/tensorflow -l:libtensorflow_framework.so.2``` ```g++ -Wl,-R,'$ORIGIN/..' -Wl,-rpath,'$ORIGIN' --std=c++17 -DNDEBUG -shared test.cc -o /tmp/test.so -fPIC -I/usr/local/lib/python3.8/dist-packages/tensorflow/include -D_GLIBCXX_USE_CXX11_ABI=1 --std=c++17 -DEIGEN_MAX_ALIGN_BYTES=64 -I/usr/include -I/usr/local/cuda/include -L/usr/local/lib/python3.8/dist-packages/tensorflow -l:libtensorflow_framework.so.2 -O2``` The result is: ``` In file included from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/tsl/platform/types.h:22, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/tsl/framework/numeric_types.h:22, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/numeric_types.h:24, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/bfloat16.h:19, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/types.h:24, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/op_def_builder.h:28, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/full_type_inference_util.h:24, from /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:27, from /tmp/pip-req-build-88874pcq/daliop.cc:19: /usr/local/lib/python3.8/dist-packages/tensorflow/include/tensorflow/tsl/platform/float8.h:19:10: fatal error: include/float8.h: No such file or directory 19 | #include "include/float8.h" // from @ml_dtypes ``` It is probably caused by [this PR](https://github.com/tensorflow/tensorflow/commit/ef1ea4f5c5c36209b6bd56a99fdd71e5052f6d63). Either tensorflow/tsl/platform/float8.h should have `#include "external/ml_dtypes/include/float8.h" // from @ml_dtypes`, or `get_compile_flags()` should include `-I/usr/local/lib/python3.8/dist-packages/tensorflow/include/external/ml_dtypes` ### Standalone code to reproduce the issue ```shell As above ``` ### Relevant log output ```shell As above ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61121/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/61121/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61120
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61120/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61120/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61120/events
https://github.com/tensorflow/tensorflow/pull/61120
1,780,342,264
PR_kwDOArmXAs5UN1zQ
61,120
[MHLO] let unfuse-batch-norm-inference produce bcast_mul+bcast_add
{ "login": "qingyunqu", "id": 29956693, "node_id": "MDQ6VXNlcjI5OTU2Njkz", "avatar_url": "https://avatars.githubusercontent.com/u/29956693?v=4", "gravatar_id": "", "url": "https://api.github.com/users/qingyunqu", "html_url": "https://github.com/qingyunqu", "followers_url": "https://api.github.com/users/qingyunqu/followers", "following_url": "https://api.github.com/users/qingyunqu/following{/other_user}", "gists_url": "https://api.github.com/users/qingyunqu/gists{/gist_id}", "starred_url": "https://api.github.com/users/qingyunqu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qingyunqu/subscriptions", "organizations_url": "https://api.github.com/users/qingyunqu/orgs", "repos_url": "https://api.github.com/users/qingyunqu/repos", "events_url": "https://api.github.com/users/qingyunqu/events{/privacy}", "received_events_url": "https://api.github.com/users/qingyunqu/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": 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": 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
[ "@burmako It seems we have a duplicate UnfuseBatchNorm pass. Do you think that one of them can be removed? And which one is better to keep?", "Hi @burmako Can you please review this PR ? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "> Hi @qingyunqu Can you please resolve conflicts? Thank you!\r\n\r\nok, I will resolve later.", "Hi @GleasonK Can you please review this PR ? Thank you!", "Hi @qingyunqu Can you please check @GleasonK's comments and keep us posted? Thank you!", "Hi @qingyunqu Any update on this PR? Please. 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 @GleasonK Can you please review this PR ? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!", "Hi @qingyunqu Can you please resolve conflicts? Thank you!" ]
2023-06-29T08:11:38
2024-06-05T08:23:05
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61120", "html_url": "https://github.com/tensorflow/tensorflow/pull/61120", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61120.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61120.patch", "merged_at": null }
The code just copied from `tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc`
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61120/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/61120/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61119
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61119/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61119/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61119/events
https://github.com/tensorflow/tensorflow/pull/61119
1,779,481,230
PR_kwDOArmXAs5UK5aq
61,119
updating release notes with security fixes
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-28T18:26:37
2023-08-04T03:08:57
2023-06-28T18:38:36
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61119", "html_url": "https://github.com/tensorflow/tensorflow/pull/61119", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61119.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61119.patch", "merged_at": "2023-06-28T18:38:35" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61119/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/61119/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61118
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61118/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61118/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61118/events
https://github.com/tensorflow/tensorflow/issues/61118
1,779,461,239
I_kwDOArmXAs5qEGx3
61,118
Tensorflow Lite for Windows and macOS
{ "login": "ph1oneX", "id": 76143609, "node_id": "MDQ6VXNlcjc2MTQzNjA5", "avatar_url": "https://avatars.githubusercontent.com/u/76143609?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ph1oneX", "html_url": "https://github.com/ph1oneX", "followers_url": "https://api.github.com/users/ph1oneX/followers", "following_url": "https://api.github.com/users/ph1oneX/following{/other_user}", "gists_url": "https://api.github.com/users/ph1oneX/gists{/gist_id}", "starred_url": "https://api.github.com/users/ph1oneX/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ph1oneX/subscriptions", "organizations_url": "https://api.github.com/users/ph1oneX/orgs", "repos_url": "https://api.github.com/users/ph1oneX/repos", "events_url": "https://api.github.com/users/ph1oneX/events{/privacy}", "received_events_url": "https://api.github.com/users/ph1oneX/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 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
[ "Hi @ph1oneX ,\r\n\r\nBasically TF lite is designed for edge devices for below reasons.\r\n\r\nOptimized for on-device machine learning, by addressing 5 key constraints: latency (there's no round-trip to a server), privacy (no personal data leaves the device), connectivity (internet connectivity is not required), size (reduced model and binary size) and power consumption (efficient inference and a lack of network connections).\r\n\r\nTFlite libraries can also built for Arm based computers like Mac M1/M2.Please refer attached [source](https://www.tensorflow.org/lite/guide/build_arm).", "@SuryanarayanaY the source you attached will it work for python as it shows for C.\nAlso for Apple silicon which is the architecture target since its not mentioned. The only mentioned is for Linux or Raspberry Pi on ARM. However thank you for help", "@pjpratik , please have a look into the issue, Thanks", "Hi @ph1oneX \r\n\r\nAs @SuryanarayanaY mentioned, the TFLite is a mobile library designed for deploying models on mobile, microcontrollers and other edge devices.\r\n\r\nHowever the TFLite models can be still integrated using multiple programming languages as given [here](https://www.tensorflow.org/lite/guide/inference#supported_platforms)\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." ]
2023-06-28T18:15:49
2023-07-18T02:13:40
2023-07-18T02:13:40
NONE
null
null
null
Hi guys, So i am new to On Device Machine Learning which is super cool but, the limitation with tf-lite is that i can only use in Android or iOS not in Windows Apps nor MacOS. I request any of you who has dealt with embedding tfLite with Desktop class Apps to provide a simple solution.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61118/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/61118/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61117
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61117/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61117/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61117/events
https://github.com/tensorflow/tensorflow/issues/61117
1,779,281,451
I_kwDOArmXAs5qDa4r
61,117
`tf.math.reduce_prod` produces wrong second-order gradient
{ "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": 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": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "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
[ "@SuryanarayanaY I was able to replicate the issue in TF v[2.12](https://colab.research.google.com/gist/sushreebarsa/aa434c17414f0a57f5a8495245b7e26d/61117.ipynb), v[2.13](https://colab.research.google.com/gist/sushreebarsa/2520aca5bc8afa21acbdc8e43deb3e88/61117.ipynb#scrollTo=x_SdosaHmLAm) and [tf-nightly](https://colab.research.google.com/gist/sushreebarsa/375153ae4d26a1b8a9a40e794fa34fca/untitled803.ipynb#scrollTo=545PV9JXmFNe) . Please find the attached gists here. \r\nThank you!" ]
2023-06-28T16:17:39
2023-07-31T18:38:05
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.14.0-dev20230628 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? `tf.math.reduce_prod` produces wrong second-order gradient when the input tensor has a `0` element. In the following example, `d2z_dydx` should be `1`, but the output value is `0`. Note that, if we replace `z = tf.math.reduce_prod(tf.stack([x, y]))` with `z = x * y`, the assertion passes. ### Standalone code to reproduce the issue ```shell import tensorflow as tf x = tf.Variable(0.0) y = tf.Variable(1.0) with tf.GradientTape(persistent=True) as t1: t1.watch(x) t1.watch(y) with tf.GradientTape(persistent=True) as t2: t2.watch(x) t2.watch(y) z = tf.math.reduce_prod(tf.stack([x, y])) print('z = x * y: ', z) dz_dx = t2.gradient(z, x) # dz_dx = y print('dz_dx: ', dz_dx) dz_dy = t2.gradient(z, y) # dz_dy = x print('dz_dy: ', dz_dy) d2z_dx2 = t1.gradient(dz_dx, x) # d2z_dx2 = 0 print('d2z_dx2', d2z_dx2) d2z_dxdy = t1.gradient(dz_dx, y) # d2z_dxdy = 1 print('d2z_dxdy', d2z_dxdy) assert d2z_dxdy == 1 d2z_dydx = t1.gradient(dz_dy, x) # d2z_dydx = 1 print('d2z_dydx', d2z_dydx) assert d2z_dydx == 1, 'd2z_dydx = {}'.format(d2z_dydx) # AssertionError: d2z_dydx = 0.0 ``` ### Relevant log output ```shell AssertionError: d2z_dydx = 0.0 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61117/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/61117/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61116
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61116/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61116/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61116/events
https://github.com/tensorflow/tensorflow/issues/61116
1,779,250,809
I_kwDOArmXAs5qDTZ5
61,116
//tensorflow/python/data/kernel_tests:snapshot_test is flaky
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" } ]
closed
false
{ "login": "yangustc07", "id": 1141287, "node_id": "MDQ6VXNlcjExNDEyODc=", "avatar_url": "https://avatars.githubusercontent.com/u/1141287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangustc07", "html_url": "https://github.com/yangustc07", "followers_url": "https://api.github.com/users/yangustc07/followers", "following_url": "https://api.github.com/users/yangustc07/following{/other_user}", "gists_url": "https://api.github.com/users/yangustc07/gists{/gist_id}", "starred_url": "https://api.github.com/users/yangustc07/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yangustc07/subscriptions", "organizations_url": "https://api.github.com/users/yangustc07/orgs", "repos_url": "https://api.github.com/users/yangustc07/repos", "events_url": "https://api.github.com/users/yangustc07/events{/privacy}", "received_events_url": "https://api.github.com/users/yangustc07/received_events", "type": "User", "site_admin": false }
[ { "login": "yangustc07", "id": 1141287, "node_id": "MDQ6VXNlcjExNDEyODc=", "avatar_url": "https://avatars.githubusercontent.com/u/1141287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangustc07", "html_url": "https://github.com/yangustc07", "followers_url": "https://api.github.com/users/yangustc07/followers", "following_url": "https://api.github.com/users/yangustc07/following{/other_user}", "gists_url": "https://api.github.com/users/yangustc07/gists{/gist_id}", "starred_url": "https://api.github.com/users/yangustc07/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yangustc07/subscriptions", "organizations_url": "https://api.github.com/users/yangustc07/orgs", "repos_url": "https://api.github.com/users/yangustc07/repos", "events_url": "https://api.github.com/users/yangustc07/events{/privacy}", "received_events_url": "https://api.github.com/users/yangustc07/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
[ "@rishikasinha-tf flaky test", "AARCH64 log\r\nhttps://github.com/tensorflow/tensorflow/actions/runs/5378348054/jobs/9758026382#step:5:8430", "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/61116\">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/61116\">No</a>\n" ]
2023-06-28T15:59:05
2023-09-06T05:21:04
2023-09-06T05:21:01
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version git HEAD ### Custom Code No ### OS Platform and Distribution Ubuntu 20.04 ### Mobile device n/a ### Python version 3.9.16 ### Bazel version 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/data/kernel_tests:snapshot_test sometimes fails x86 log https://source.cloud.google.com/results/invocations/8b60bfba-b6b6-4503-aa43-62e8bbe1a094/log AARCH64 log ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell ERROR: testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2 (__main__.SnapshotTest) SnapshotTest.testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2 testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2(mode='eager', tf_api_version=2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/org_tensorflow/tensorflow/python/data/kernel_tests/snapshot_test.py", line 63, in tearDown shutil.rmtree(self._snapshot_dir) File "/usr/lib/python3.9/shutil.py", line 734, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd onerror(os.rmdir, fullname, sys.exc_info()) File "/usr/lib/python3.9/shutil.py", line 671, in _rmtree_safe_fd os.rmdir(entry.name, dir_fd=topfd) OSError: [Errno 39] Directory not empty: '5643068742232426178' ====================================================================== FAIL: testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2 (__main__.SnapshotTest) SnapshotTest.testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2 testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart_test_mode_eager_tfapiversion_2(mode='eager', tf_api_version=2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/absl_py/absl/testing/parameterized.py", line 314, in bound_param_test return test_method(self, **testcase_params) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 360, in decorated execute_test_method() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 343, in execute_test_method test_method(**kwargs_to_pass) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/org_tensorflow/tensorflow/python/data/kernel_tests/snapshot_test.py", line 318, in testWriteSnapshotDatasetSameFingerprintIncompleteRunRestart self.assertSnapshotDirectoryContains( File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/kernel_tests/snapshot_test.runfiles/org_tensorflow/tensorflow/python/data/kernel_tests/snapshot_test.py", line 108, in assertSnapshotDirectoryContains self.assertLen(run_dirlist, num_snapshot_shards_per_run) AssertionError: ['00000000.shard', '00000001.shard', '00000002.shard', '00000003.shard', '00000004.shard', '00000005.shard', '00000006.shard', '00000007.shard', '00000008.shard', '00000009.shard', '00000010.shard', '00000011.shard', '00000012.shard', '00000013.shard', '00000014.shard', '00000015.shard', '00000016.shard', '00000017.shard', '00000018.shard', '00000019.shard', '00000020.shard', '00000021.shard', '00000022.shard', '00000023.shard', '00000024.shard', '00000025.shard', '00000026.shard', '00000027.shard', '00000028.shard', '00000029.shard', '00000030.shard', '00000031.shard', '00000032.shard', '00000033.shard', '00000034.shard', '00000035.shard', '00000036.shard', '00000037.shard', '00000038.shard', '00000039.shard', '00000040.shard', '00000041.shard', '00000042.shard', '00000043.shard', '00000044.shard', '00000045.shard', '00000046.shard', '00000047.shard', '00000048.shard', '00000049.shard', '00000050.shard', '00000051.shard', '00000052.shard', '00000053.shard', '00000054.shard', '00000055.shard', '00000056.shard', '00000057.shard', '00000058.shard', '00000059.shard', '00000060.shard', '00000061.shard', '00000062.shard', '00000063.shard', '00000064.shard', '00000065.shard', '00000066.shard', '00000067.shard', '00000068.shard', '00000069.shard', '00000070.shard', '00000071.shard', '00000072.shard', '00000073.shard', '00000074.shard', '00000075.shard', '00000076.shard', '00000077.shard', '00000078.shard', '00000079.shard', '00000080.shard', '00000081.shard', '00000082.shard', '00000083.shard', '00000084.shard', '00000085.shard', '00000086.shard', '00000087.shard', '00000088.shard', '00000089.shard', '00000090.shard', '00000091.shard', '00000092.shard', '00000093.shard', '00000094.shard', '00000095.shard', '00000096.shard', '00000099.shard', '00000101.shard', '00000103.shard', '00000104.shard', '00000105.shard', '00000108.shard', '00000110.shard', '00000115.shard', '00000116.shard', '00000121.shard'] has length of 107, expected 128. ---------------------------------------------------------------------- Ran 20 tests in 5.563s ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61116/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/61116/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61115
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61115/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61115/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61115/events
https://github.com/tensorflow/tensorflow/issues/61115
1,779,243,747
I_kwDOArmXAs5qDRrj
61,115
//tensorflow/python/distribute/experimental/rpc:rpc_ops_test is flaky
{ "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": 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": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "ishark", "id": 723624, "node_id": "MDQ6VXNlcjcyMzYyNA==", "avatar_url": "https://avatars.githubusercontent.com/u/723624?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ishark", "html_url": "https://github.com/ishark", "followers_url": "https://api.github.com/users/ishark/followers", "following_url": "https://api.github.com/users/ishark/following{/other_user}", "gists_url": "https://api.github.com/users/ishark/gists{/gist_id}", "starred_url": "https://api.github.com/users/ishark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ishark/subscriptions", "organizations_url": "https://api.github.com/users/ishark/orgs", "repos_url": "https://api.github.com/users/ishark/repos", "events_url": "https://api.github.com/users/ishark/events{/privacy}", "received_events_url": "https://api.github.com/users/ishark/received_events", "type": "User", "site_admin": false }
[ { "login": "ishark", "id": 723624, "node_id": "MDQ6VXNlcjcyMzYyNA==", "avatar_url": "https://avatars.githubusercontent.com/u/723624?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ishark", "html_url": "https://github.com/ishark", "followers_url": "https://api.github.com/users/ishark/followers", "following_url": "https://api.github.com/users/ishark/following{/other_user}", "gists_url": "https://api.github.com/users/ishark/gists{/gist_id}", "starred_url": "https://api.github.com/users/ishark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ishark/subscriptions", "organizations_url": "https://api.github.com/users/ishark/orgs", "repos_url": "https://api.github.com/users/ishark/repos", "events_url": "https://api.github.com/users/ishark/events{/privacy}", "received_events_url": "https://api.github.com/users/ishark/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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T15:54:29
2023-07-11T04:38:42
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute/experimental/rpc:rpc_ops_test sometimes fails. x86 log https://source.cloud.google.com/results/invocations/e7ac5e31-66d5-4f2e-a095-045cb52cc20f/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5348094575/jobs/9697499180#step:5:8263 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell FAIL: //tensorflow/python/distribute/experimental/rpc:rpc_ops_test (shard 4 of 7) (see /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/testlogs/tensorflow/python/distribute/experimental/rpc/rpc_ops_test/shard_4_of_7/test.log) INFO: From Testing //tensorflow/python/distribute/experimental/rpc:rpc_ops_test (shard 4 of 7): ==================== Test output for //tensorflow/python/distribute/experimental/rpc:rpc_ops_test (shard 4 of 7): 2023-06-27 21:51:01.865535: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-27 21:51:01.915964: 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. Running tests under Python 3.9.17: /usr/bin/python3 [ RUN ] RpcOpsTest.test_client_timeout E0627 21:51:07.067311728 3191958 server_chttp2.cc:40] {"created":"@1687902667.067282680","description":"Only 1 addresses added out of total 2 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":404,"referenced_errors":[{"created":"@1687902667.067278835","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::1]:34603"}]} 2023-06-27 21:51:07.067457: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:347] Server listening on: localhost:34603 2023-06-27 21:51:08.565889: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:314] Shutting down server listening on: localhost:34603 INFO:tensorflow:time(__main__.RpcOpsTest.test_client_timeout): 2.71s I0627 21:51:08.574481 139721505019712 test_util.py:2464] time(__main__.RpcOpsTest.test_client_timeout): 2.71s [ FAILED ] RpcOpsTest.test_client_timeout [ RUN ] RpcOpsTest.test_queue_resource /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/python/saved_model/nested_structure_coder.py:458: UserWarning: Encoding a StructuredValue with type tf.NoneTensorSpec; loading this StructuredValue will require that this type be imported and registered. warnings.warn("Encoding a StructuredValue with type %s; loading this " E0627 21:51:08.630379336 3163442 server_chttp2.cc:40] {"created":"@1687902668.630352103","description":"Only 1 addresses added out of total 2 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":404,"referenced_errors":[{"created":"@1687902668.630348956","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::1]:43377"}]} 2023-06-27 21:51:08.630532: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:347] Server listening on: localhost:43377 2023-06-27 21:51:08.686495: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:314] Shutting down server listening on: localhost:43377 INFO:tensorflow:time(__main__.RpcOpsTest.test_queue_resource): 0.14s I0627 21:51:08.712013 139721505019712 test_util.py:2464] time(__main__.RpcOpsTest.test_queue_resource): 0.14s [ OK ] RpcOpsTest.test_queue_resource [ RUN ] RpcOpsTest.test_rpc_ops_non_blocking_convenience_methods E0627 21:51:08.774584099 3163442 server_chttp2.cc:40] {"created":"@1687902668.774551355","description":"Only 1 addresses added out of total 2 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":404,"referenced_errors":[{"created":"@1687902668.774547071","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::1]:39177"}]} 2023-06-27 21:51:08.774736: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:347] Server listening on: localhost:39177 2023-06-27 21:51:08.798979: I tensorflow/distribute/experimental/rpc/kernels/rpc_ops.cc:314] Shutting down server listening on: localhost:39177 INFO:tensorflow:time(__main__.RpcOpsTest.test_rpc_ops_non_blocking_convenience_methods): 0.09s I0627 21:51:08.802805 139721505019712 test_util.py:2464] time(__main__.RpcOpsTest.test_rpc_ops_non_blocking_convenience_methods): 0.09s [ OK ] RpcOpsTest.test_rpc_ops_non_blocking_convenience_methods ====================================================================== ERROR: test_client_timeout (__main__.RpcOpsTest) RpcOpsTest.test_client_timeout ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.py", line 487, in test_client_timeout client = rpc_ops.GrpcClient( File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/python/distribute/experimental/rpc/rpc_ops.py", line 342, in __init__ self._client_handle, methods = gen_rpc_ops.rpc_client( File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/distribute/experimental/rpc/kernels/gen_rpc_ops.py", line 333, in rpc_client return rpc_client_eager_fallback( File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/distribute/experimental/rpc/kernels/gen_rpc_ops.py", line 407, in rpc_client_eager_fallback _result = _execute.execute(b"RpcClient", 2, inputs=_inputs_flat, File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/experimental/rpc/rpc_ops_test.runfiles/org_tensorflow/tensorflow/python/eager/execute.py", line 53, in quick_execute tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, tensorflow.python.framework.errors_impl.UnavailableError: {{function_node __wrapped__RpcClient_device_/job:localhost/replica:0/task:0/device:CPU:0}} GOAWAY received Additional GRPC error information while calling /tensorflow.rpc.RpcService/List: :{"created":"@1687902668.574079798","description":"Error received from peer ipv4:127.0.0.1:34603","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"GOAWAY received","grpc_status":14} [Op:RpcClient] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61115/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/61115/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61114
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61114/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61114/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61114/events
https://github.com/tensorflow/tensorflow/pull/61114
1,779,236,149
PR_kwDOArmXAs5UKDAZ
61,114
Support for jit-ed block reorder on AArch64
{ "login": "davsva01", "id": 117736650, "node_id": "U_kgDOBwSEyg", "avatar_url": "https://avatars.githubusercontent.com/u/117736650?v=4", "gravatar_id": "", "url": "https://api.github.com/users/davsva01", "html_url": "https://github.com/davsva01", "followers_url": "https://api.github.com/users/davsva01/followers", "following_url": "https://api.github.com/users/davsva01/following{/other_user}", "gists_url": "https://api.github.com/users/davsva01/gists{/gist_id}", "starred_url": "https://api.github.com/users/davsva01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davsva01/subscriptions", "organizations_url": "https://api.github.com/users/davsva01/orgs", "repos_url": "https://api.github.com/users/davsva01/repos", "events_url": "https://api.github.com/users/davsva01/events{/privacy}", "received_events_url": "https://api.github.com/users/davsva01/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": 1104829434, "node_id": "MDU6TGFiZWwxMTA0ODI5NDM0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:mkl", "name": "comp:mkl", "color": "0052cc", "default": false, "description": "MKL related issues" }, { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "This PR depends on and includes changes from this PR by @cfRod:\r\nhttps://github.com/tensorflow/tensorflow/pull/61093\r\n", "@penpornk @nSircombe ", "> Thank you for the PR!\r\n> \r\n> We plan to update x86 oneDNN to v3.2 in a few weeks (before TF 2.14 branch cut). Would aarch64 build like to update to v3.2 as well? If so, these patches can be removed once we use v3.2, right?\r\n> \r\n> cc: @cantonios\r\n\r\nHi @penpornk, no thanks we tentatively plan to move to oneDNN v3.2 early in the 2.15 release cycle. This is to ensure we leave time to address regressions and anything else that might come up. But yes these patches can be removed as soon as we update to oneDNN v3.2." ]
2023-06-28T15:49:19
2023-07-13T17:19:24
2023-07-13T17:19:23
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61114", "html_url": "https://github.com/tensorflow/tensorflow/pull/61114", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61114.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61114.patch", "merged_at": "2023-07-13T17:19:23" }
This PR adds a patch to oneDNN for the Compute Library build adding support for jit-ed blk_reorder. The contents in the patch is fully authored by @kawakami-k, the source used for this patch is available here: https://github.com/oneapi-src/oneDNN/pull/1483
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61114/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/61114/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61113
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61113/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61113/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61113/events
https://github.com/tensorflow/tensorflow/issues/61113
1,779,211,809
I_kwDOArmXAs5qDJ4h
61,113
//tensorflow/python/data/experimental/kernel_tests/service:local_workers_test is flaky
{ "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" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "yangustc07", "id": 1141287, "node_id": "MDQ6VXNlcjExNDEyODc=", "avatar_url": "https://avatars.githubusercontent.com/u/1141287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangustc07", "html_url": "https://github.com/yangustc07", "followers_url": "https://api.github.com/users/yangustc07/followers", "following_url": "https://api.github.com/users/yangustc07/following{/other_user}", "gists_url": "https://api.github.com/users/yangustc07/gists{/gist_id}", "starred_url": "https://api.github.com/users/yangustc07/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yangustc07/subscriptions", "organizations_url": "https://api.github.com/users/yangustc07/orgs", "repos_url": "https://api.github.com/users/yangustc07/repos", "events_url": "https://api.github.com/users/yangustc07/events{/privacy}", "received_events_url": "https://api.github.com/users/yangustc07/received_events", "type": "User", "site_admin": false }
[ { "login": "yangustc07", "id": 1141287, "node_id": "MDQ6VXNlcjExNDEyODc=", "avatar_url": "https://avatars.githubusercontent.com/u/1141287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangustc07", "html_url": "https://github.com/yangustc07", "followers_url": "https://api.github.com/users/yangustc07/followers", "following_url": "https://api.github.com/users/yangustc07/following{/other_user}", "gists_url": "https://api.github.com/users/yangustc07/gists{/gist_id}", "starred_url": "https://api.github.com/users/yangustc07/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yangustc07/subscriptions", "organizations_url": "https://api.github.com/users/yangustc07/orgs", "repos_url": "https://api.github.com/users/yangustc07/repos", "events_url": "https://api.github.com/users/yangustc07/events{/privacy}", "received_events_url": "https://api.github.com/users/yangustc07/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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T15:34:17
2023-07-11T04:39:29
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/data/experimental/kernel_tests/service:local_workers_test sometimes fails or timeouts. x86 log https://source.cloud.google.com/results/invocations/e41a9dd4-19a3-4298-b34f-6a32eca50e08/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5383187293/jobs/9769619751#step:5:8335 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell INFO: From Testing //tensorflow/python/data/experimental/kernel_tests/service:local_workers_test (shard 1 of 24): ==================== Test output for //tensorflow/python/data/experimental/kernel_tests/service:local_workers_test (shard 1 of 24): 2023-06-27 23:02:53.397107: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-27 23:02:53.528865: 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. Running tests under Python 3.9.17: /usr/bin/python3 [ RUN ] LocalTaskGarbageCollectTest.testMultipleEpochsSharedJob_test_mode_eager_tfapiversion_1_numremoteworkers_0 [ SKIPPED ] LocalTaskGarbageCollectTest.testMultipleEpochsSharedJob_test_mode_eager_tfapiversion_1_numremoteworkers_0 [ RUN ] LocalTaskGarbageCollectTest.testReadFromDeletedTask_test_mode_eager_tfapiversion_1_numremoteworkers_0 [ SKIPPED ] LocalTaskGarbageCollectTest.testReadFromDeletedTask_test_mode_eager_tfapiversion_1_numremoteworkers_0 [ RUN ] LocalWorkersTest.testAnonymousJobWithDifferentTargetWorkers_test_mode_graph_tfapiversion_2 INFO:tensorflow:Using local port 43055 I0627 23:02:57.097305 139801719478080 test_util.py:3796] Using local port 43055 2023-06-27 23:02:57.099356: I tensorflow/core/data/service/dispatcher_impl.cc:223] Attempting to restore dispatcher state from journal in /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/_tmp/dbc16dd8be682dbdabf0b589b8e98f16j99fj6xd/tmptm5ix2lv/tf_data_dispatcher_journal 2023-06-27 23:02:57.099421: I tensorflow/core/data/service/dispatcher_impl.cc:230] No journal found. Starting dispatcher from new state. 2023-06-27 23:02:57.099574: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data DispatchServer running at 0.0.0.0:43055 INFO:tensorflow:Using local port 44899 I0627 23:02:57.099842 139801719478080 test_util.py:3796] Using local port 44899 2023-06-27 23:02:57.101683: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:57.101828: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:44899 INFO:tensorflow:Using local port 41615 I0627 23:02:57.102149 139801719478080 test_util.py:3796] Using local port 41615 2023-06-27 23:02:57.103351: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:57.103477: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:41615 INFO:tensorflow:Using local port 37691 I0627 23:02:57.103664 139801719478080 test_util.py:3796] Using local port 37691 2023-06-27 23:02:57.104726: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:57.104854: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:37691 INFO:tensorflow:Using local port 39883 I0627 23:02:57.107191 139801719478080 test_util.py:3796] Using local port 39883 2023-06-27 23:02:57.584682: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-27 23:02:57.619502: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-27 23:02:57.634234: 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-06-27 23:02:57.788004: 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-06-27 23:02:59.175789: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:59.176006: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:39883 INFO:tensorflow:Using local port 34849 I0627 23:02:59.176878 139801719478080 test_util.py:3796] Using local port 34849 2023-06-27 23:02:59.252223: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:59.252462: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:34849 INFO:tensorflow:Using local port 46439 I0627 23:02:59.253159 139801719478080 test_util.py:3796] Using local port 46439 2023-06-27 23:02:59.287010: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:43055 2023-06-27 23:02:59.287229: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:46439 /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/data/ops/dataset_ops.py:458: UserWarning: To make it possible to preserve tf.data options across serialization boundaries, their implementation has moved to be part of the TensorFlow graph. As a consequence, the options value is in general no longer known at graph construction time. Invoking this method in graph mode retains the legacy behavior of the original implementation, but note that the returned value might not reflect the actual value of the options. warnings.warn("To make it possible to preserve tf.data options across " WARNING:tensorflow:From /usr/lib/python3.9/contextlib.py:87: TensorFlowTestCase.test_session (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version. Instructions for updating: Use `self.session()` or `self.cached_session()` instead. W0627 23:02:59.486639 139801719478080 deprecation.py:364] From /usr/lib/python3.9/contextlib.py:87: TensorFlowTestCase.test_session (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version. Instructions for updating: Use `self.session()` or `self.cached_session()` instead. 2023-06-27 23:02:59.508867: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:382] MLIR V1 optimization pass is not enabled -- Test timed out at 2023-06-27 23:07:52 UTC -- Current thread 0x00007f261fd41740 (most recent call first): File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1477 in _call_tf_sessionrun File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1384 in _run_fn File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1401 in _do_call File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1394 in _do_run File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1214 in _run File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 971 in run File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 2061 in run File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 2691 in evaluate File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/data/kernel_tests/test_base.py", line 237 in assertDatasetProduces File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.py", line 238 in testAnonymousJobWithDifferentTargetWorkers File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 343 in execute_test_method File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 360 in decorated File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/testing/parameterized.py", line 314 in bound_param_test File "/usr/lib/python3.9/unittest/case.py", line 550 in _callTestMethod File "/usr/lib/python3.9/unittest/case.py", line 592 in run File "/usr/lib/python3.9/unittest/case.py", line 651 in __call__ File "/usr/lib/python3.9/unittest/suite.py", line 122 in run File "/usr/lib/python3.9/unittest/suite.py", line 84 in __call__ File "/usr/lib/python3.9/unittest/suite.py", line 122 in run File "/usr/lib/python3.9/unittest/suite.py", line 84 in __call__ File "/usr/lib/python3.9/unittest/runner.py", line 184 in run File "/usr/lib/python3.9/unittest/main.py", line 271 in runTests File "/usr/lib/python3.9/unittest/main.py", line 101 in __init__ File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/testing/absltest.py", line 2537 in _run_and_get_tests_result File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/testing/absltest.py", line 2568 in run_tests File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/testing/absltest.py", line 2156 in _run_in_app File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/testing/absltest.py", line 2049 in main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 51 in g_main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/app.py", line 258 in _run_main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/absl_py/absl/app.py", line 312 in run File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 60 in main_wrapper File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/platform/benchmark.py", line 489 in benchmarks_main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 62 in main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/platform/test.py", line 56 in main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/eager/test.py", line 25 in main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 167 in test_main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/multi_process_cluster.py", line 165 in test_main File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/local_workers_test.py", line 441 in <module> ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61113/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/61113/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61112
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61112/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61112/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61112/events
https://github.com/tensorflow/tensorflow/issues/61112
1,779,157,248
I_kwDOArmXAs5qC8kA
61,112
//tensorflow/python/distribute:vars_test_2gpu is flaky
{ "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": "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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T15:03:57
2023-07-03T11:57:32
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 Yes ### OS Platform and Distribution Ubuntu 20.04 ### Mobile device n/a ### Python version 3.9.16 ### Bazel version 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute:vars_test_2gpu timeouts sometimes. x86 log https://source.cloud.google.com/results/invocations/769764d8-8dc9-46fa-a284-78062efe3bd9/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5363572382/jobs/9731245377#step:5:9313 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=rbe --config=pycpp --config=build_event_export ``` ### Relevant log output ```shell [ RUN ] SyncOnReadScatterReplicaTest.testScatterMax_test_aggregation_VariableAggregationMEAN_distribution_MultiWorkerMirrored2x1CPU_mode_graph_usevarpolicy_True W0628 01:02:37.513197 140343714740032 context.py:773] Configuring coordination service type may not be effective because the context is already initialized. WARNING:tensorflow:Collective ops is not configured at program startup. Some performance features may not be enabled. W0628 01:02:37.513532 140343714740032 collective_all_reduce_strategy.py:394] Collective ops is not configured at program startup. Some performance features may not be enabled. INFO:tensorflow:Using MirroredStrategy with devices ('/device:CPU:0',) I0628 01:02:37.516878 140343714740032 mirrored_strategy.py:423] Using MirroredStrategy with devices ('/device:CPU:0',) INFO:tensorflow:Single-worker MultiWorkerMirroredStrategy with local_devices = ('/device:CPU:0',), communication = CommunicationImplementation.AUTO I0628 01:02:37.517337 140343714740032 collective_all_reduce_strategy.py:446] Single-worker MultiWorkerMirroredStrategy with local_devices = ('/device:CPU:0',), communication = CommunicationImplementation.AUTO [chief-0]: W0628 01:02:37.520201 140325400614720 context.py:773] Configuring coordination service type may not be effective because the context is already initialized. I0628 01:02:37.521484 140343714740032 multi_process_runner.py:989] Waiting for the result from chief-0 [worker-0]: W0628 01:02:37.523296 140325400614720 context.py:773] Configuring coordination service type may not be effective because the context is already initialized. [chief-0]: W0628 01:02:37.521138 140325400614720 context.py:881] Enabling collective ops after program startup may cause error when accessing previously created tensors. [worker-0]: W0628 01:02:37.524588 140325400614720 context.py:881] Enabling collective ops after program startup may cause error when accessing previously created tensors. [chief-0]: INFO:tensorflow:Enabled multi-worker collective ops with available devices: ['/job:chief/replica:0/task:0/device:CPU:0', '/job:chief/replica:0/task:0/device:CPU:1'] [chief-0]: I0628 01:02:37.525059 140325400614720 collective_all_reduce_strategy.py:531] Enabled multi-worker collective ops with available devices: ['/job:chief/replica:0/task:0/device:CPU:0', '/job:chief/replica:0/task:0/device:CPU:1'] [worker-0]: INFO:tensorflow:Enabled multi-worker collective ops with available devices: ['/job:worker/replica:0/task:0/device:CPU:0', '/job:worker/replica:0/task:0/device:CPU:1'] [worker-0]: I0628 01:02:37.527691 140325400614720 collective_all_reduce_strategy.py:531] Enabled multi-worker collective ops with available devices: ['/job:worker/replica:0/task:0/device:CPU:0', '/job:worker/replica:0/task:0/device:CPU:1'] [chief-0]: INFO:tensorflow:Using MirroredStrategy with devices ('/job:chief/task:0/device:CPU:0',) [chief-0]: I0628 01:02:37.529053 140325400614720 mirrored_strategy.py:423] Using MirroredStrategy with devices ('/job:chief/task:0/device:CPU:0',) [chief-0]: INFO:tensorflow:Check health not enabled. [chief-0]: I0628 01:02:37.529462 140325400614720 collective_all_reduce_strategy.py:574] Check health not enabled. [chief-0]: INFO:tensorflow:MultiWorkerMirroredStrategy with cluster_spec = {'chief': ['localhost:17555'], 'worker': ['localhost:24042']}, task_type = 'chief', task_id = 0, num_workers = 2, local_devices = ('/job:chief/task:0/device:CPU:0',), communication = CommunicationImplementation.AUTO [chief-0]: I0628 01:02:37.529720 140325400614720 collective_all_reduce_strategy.py:576] MultiWorkerMirroredStrategy with cluster_spec = {'chief': ['localhost:17555'], 'worker': ['localhost:24042']}, task_type = 'chief', task_id = 0, num_workers = 2, local_devices = ('/job:chief/task:0/device:CPU:0',), communication = CommunicationImplementation.AUTO [worker-0]: INFO:tensorflow:Using MirroredStrategy with devices ('/job:worker/task:0/device:CPU:0',) [worker-0]: I0628 01:02:37.531570 140325400614720 mirrored_strategy.py:423] Using MirroredStrategy with devices ('/job:worker/task:0/device:CPU:0',) [worker-0]: INFO:tensorflow:Check health not enabled. [worker-0]: I0628 01:02:37.532161 140325400614720 collective_all_reduce_strategy.py:574] Check health not enabled. [worker-0]: INFO:tensorflow:MultiWorkerMirroredStrategy with cluster_spec = {'chief': ['localhost:17555'], 'worker': ['localhost:24042']}, task_type = 'worker', task_id = 0, num_workers = 2, local_devices = ('/job:worker/task:0/device:CPU:0',), communication = CommunicationImplementation.AUTO [worker-0]: I0628 01:02:37.532691 140325400614720 collective_all_reduce_strategy.py:576] MultiWorkerMirroredStrategy with cluster_spec = {'chief': ['localhost:17555'], 'worker': ['localhost:24042']}, task_type = 'worker', task_id = 0, num_workers = 2, local_devices = ('/job:worker/task:0/device:CPU:0',), communication = CommunicationImplementation.AUTO [worker-0]: 2023-06-28 01:02:37.540481: I tensorflow/core/distributed_runtime/master.cc:240] Scanning workers for devices: 1 total workers [chief-0]: 2023-06-28 01:02:37.541763: I tensorflow/core/distributed_runtime/master.cc:240] Scanning workers for devices: 1 total workers -- Test timed out at 2023-06-28 01:07:29 UTC -- Thread 0x00007fa429ef8700 (most recent call first): File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 258 in _continuously_readline_from_sub File "/usr/lib/python3.9/threading.py", line 917 in run File "/usr/lib/python3.9/threading.py", line 980 in _bootstrap_inner File "/usr/lib/python3.9/threading.py", line 937 in _bootstrap Thread 0x00007fa42a779700 (most recent call first): File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 527 in _process_watchdog File "/usr/lib/python3.9/threading.py", line 917 in run File "/usr/lib/python3.9/threading.py", line 980 in _bootstrap_inner File "/usr/lib/python3.9/threading.py", line 937 in _bootstrap Thread 0x00007fa44d0fc700 (most recent call first): File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 258 in _continuously_readline_from_sub File "/usr/lib/python3.9/threading.py", line 917 in run File "/usr/lib/python3.9/threading.py", line 980 in _bootstrap_inner File "/usr/lib/python3.9/threading.py", line 937 in _bootstrap Current thread 0x00007fa451437740 (most recent call first): File "/usr/lib/python3.9/multiprocessing/connection.py", line 379 in _recv File "/usr/lib/python3.9/multiprocessing/connection.py", line 414 in _recv_bytes File "/usr/lib/python3.9/multiprocessing/connection.py", line 250 in recv File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 991 in run File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/combinations.py", line 580 in decorator File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 343 in execute_test_method File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 360 in decorated File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/testing/parameterized.py", line 314 in bound_param_test File "/usr/lib/python3.9/unittest/case.py", line 550 in _callTestMethod File "/usr/lib/python3.9/unittest/case.py", line 592 in run File "/usr/lib/python3.9/unittest/case.py", line 651 in __call__ File "/usr/lib/python3.9/unittest/suite.py", line 122 in run File "/usr/lib/python3.9/unittest/suite.py", line 84 in __call__ File "/usr/lib/python3.9/unittest/suite.py", line 122 in run File "/usr/lib/python3.9/unittest/suite.py", line 84 in __call__ File "/usr/lib/python3.9/unittest/runner.py", line 184 in run File "/usr/lib/python3.9/unittest/main.py", line 271 in runTests File "/usr/lib/python3.9/unittest/main.py", line 101 in __init__ File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/testing/absltest.py", line 2537 in _run_and_get_tests_result File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/testing/absltest.py", line 2568 in run_tests File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/testing/absltest.py", line 2156 in _run_in_app File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/testing/absltest.py", line 2049 in main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 51 in g_main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/app.py", line 258 in _run_main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/absl_py/absl/app.py", line 312 in run File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 60 in main_wrapper File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/platform/benchmark.py", line 489 in benchmarks_main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 62 in main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/platform/test.py", line 56 in main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/eager/test.py", line 25 in main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 167 in test_main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 1455 in test_main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/test_util.py", line 138 in main File "/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/distribute/vars_test_2gpu.runfiles/org_tensorflow/tensorflow/python/distribute/vars_test.py", line 1336 in <module> ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61112/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/61112/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61111
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61111/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61111/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61111/events
https://github.com/tensorflow/tensorflow/issues/61111
1,779,034,784
I_kwDOArmXAs5qCeqg
61,111
//tensorflow/python/distribute/failure_handling:gce_failure_handler_test is flaky
{ "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" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
open
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "@rishikasinha-tf flaky test" ]
2023-06-28T14:07:42
2023-07-03T16:04: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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute/failure_handling:gce_failure_handler_test sometimes fails or timeouts. x86 log https://source.cloud.google.com/results/invocations/66d8ddaa-3dbe-4464-837c-053157b11659/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5354839739/jobs/9712379821#step:5:12470 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell INFO:tensorflow:time(__main__.GceFailureHandlingTest.test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_True_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker): 5.11s I0628 05:40:30.221971 140074262497088 test_util.py:2464] time(__main__.GceFailureHandlingTest.test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_True_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker): 5.11s [ OK ] GceFailureHandlingTest.test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_True_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker ====================================================================== FAIL: test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_False_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker (__main__.GceFailureHandlingTest) GceFailureHandlingTest.test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_False_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker test_multiple_workers_preempted_consecutively_test_apiwrappingtrain_False_graceperiod_7_inputarg_checkpoint_strategyoption_MWMSmultiworker(api_wrapping_train=False, grace_period=7, input_arg='checkpoint', strategy_option='MWMS_multi_worker') ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/absl_py/absl/testing/parameterized.py", line 314, in bound_param_test return test_method(self, **testcase_params) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 360, in decorated execute_test_method() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/framework/test_combinations.py", line 343, in execute_test_method test_method(**kwargs_to_pass) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/combinations.py", line 559, in decorator test_method(self, **kwargs) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.py", line 417, in test_multiple_workers_preempted_consecutively mpr.join(timeout=250) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 649, in join self._reraise_if_subprocess_error(process_statuses) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 565, in _reraise_if_subprocess_error six.reraise(*process_status.exc_info) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/six_archive/six.py", line 719, in reraise raise value File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 1060, in _run_contained return_value = fn(*args, **kwargs) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.py", line 211, in worker_fn self.assertNotEmpty(checkpoint_index) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/absl_py/absl/testing/absltest.py", line 972, in assertNotEmpty self.fail('{!r} has length of 0.'.format(container), msg) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/gce_failure_handler_test.runfiles/absl_py/absl/testing/absltest.py", line 1814, in fail return super(TestCase, self).fail(self._formatMessage(prefix, msg)) File "/usr/lib/python3.9/unittest/case.py", line 676, in fail raise self.failureException(msg) AssertionError: [] has length of 0. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61111/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/61111/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61110
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61110/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61110/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61110/events
https://github.com/tensorflow/tensorflow/pull/61110
1,778,949,913
PR_kwDOArmXAs5UJD8w
61,110
Adds matmul heuristic for oneDNN ACL builds on AArch64
{ "login": "cfRod", "id": 65665931, "node_id": "MDQ6VXNlcjY1NjY1OTMx", "avatar_url": "https://avatars.githubusercontent.com/u/65665931?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cfRod", "html_url": "https://github.com/cfRod", "followers_url": "https://api.github.com/users/cfRod/followers", "following_url": "https://api.github.com/users/cfRod/following{/other_user}", "gists_url": "https://api.github.com/users/cfRod/gists{/gist_id}", "starred_url": "https://api.github.com/users/cfRod/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cfRod/subscriptions", "organizations_url": "https://api.github.com/users/cfRod/orgs", "repos_url": "https://api.github.com/users/cfRod/repos", "events_url": "https://api.github.com/users/cfRod/events{/privacy}", "received_events_url": "https://api.github.com/users/cfRod/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": 1104829434, "node_id": "MDU6TGFiZWwxMTA0ODI5NDM0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:mkl", "name": "comp:mkl", "color": "0052cc", "default": false, "description": "MKL related issues" }, { "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
[ "@penpornk @nSircombe @milpuz01 ", "Hi @cfRod Can you please resolve conflicts? Thank you!", "@gbaned , I have rebase the PR now on top of the new commits in PR 60026. The conflicts were from PR https://github.com/tensorflow/tensorflow/pull/60026/commits which have been fixed there. ", "Thanks all for the last minute fight to get this in :) ", "@cfRod Thank you and @milpuz01 for your help too! :)" ]
2023-06-28T13:28:19
2023-07-28T11:28:32
2023-07-28T10:22:31
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61110", "html_url": "https://github.com/tensorflow/tensorflow/pull/61110", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61110.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61110.patch", "merged_at": null }
This PR follows an approach of using heuristics to choose whether to rewrite a oneDNN matmul node via mkl_layout_pass for AArch64 builds. The heuristics is based on a decision tree model with the shapes and number of ops as features. This work is based on three PRs in upstream TensorFlow: 1. https://github.com/tensorflow/tensorflow/pull/60160 that uses the rewrite pass for the convolution microbenchmarks, which has been merged. 2. https://github.com/tensorflow/tensorflow/pull/60026 that uses a heuristic based on a linear model to choose between oneDNN and Eigen. The changes in this PR include the following: - Use the rewrite pass for matmul microbenchmarks - Use heuristic for matmul ops to decide when to rewrite a matmul node and is guarded for AArch64 builds Performance impact: With this PR, we show the performance before and after introducing this patch for 8 cores on Neoverse V1 platforms for default thread settings. ### Matmul microbenchmarks Before the patch ![image](https://github.com/tensorflow/tensorflow/assets/65665931/6e0f033c-aeb2-490e-8f78-7b08b4d4b19e) After the patch ![image](https://github.com/tensorflow/tensorflow/assets/65665931/a313fc01-c91c-4ca2-b7b8-5b6659c439a1) ### NLP models from hugging face ![image](https://github.com/tensorflow/tensorflow/assets/65665931/702fe640-c274-4dfe-83b0-6ef43537bf03)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61110/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/61110/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61109
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61109/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61109/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61109/events
https://github.com/tensorflow/tensorflow/issues/61109
1,778,933,605
I_kwDOArmXAs5qCF9l
61,109
//tensorflow/python/data/experimental/kernel_tests/service:auto_shard_test is flaky
{ "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" }, { "id": 1222092379, "node_id": "MDU6TGFiZWwxMjIyMDkyMzc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:bazel", "name": "subtype:bazel", "color": "b619ea", "default": false, "description": "Bazel related Build_Installation issues" } ]
open
false
{ "login": "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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T13:20:03
2023-07-03T16:04:54
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/data/experimental/kernel_tests/service:auto_shard_test will sometimes timeout. x86 log https://source.cloud.google.com/results/invocations/75230523-dc04-40ad-bcf3-06df3b94a119/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5383235016/jobs/9769729147#step:5:8442 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell TIMEOUT: //tensorflow/python/data/experimental/kernel_tests/service:auto_shard_test (Summary) /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/testlogs/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test/shard_6_of_32/test.log INFO: From Testing //tensorflow/python/data/experimental/kernel_tests/service:auto_shard_test (shard 6 of 32): ==================== Test output for //tensorflow/python/data/experimental/kernel_tests/service:auto_shard_test (shard 6 of 32): 2023-06-28 08:01:34.863480: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 08:01:34.953626: 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. Running tests under Python 3.9.17: /usr/bin/python3 [ RUN ] AutoShardTest.testBatchDataset_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyFILEORDATA [ SKIPPED ] AutoShardTest.testBatchDataset_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyFILEORDATA [ RUN ] AutoShardTest.testEnumerateShardingPolicies_test_mode_graph_tfapiversion_1_shardingpolicy_ShardingPolicyDYNAMIC [ SKIPPED ] AutoShardTest.testEnumerateShardingPolicies_test_mode_graph_tfapiversion_1_shardingpolicy_ShardingPolicyDYNAMIC [ RUN ] AutoShardTest.testRangeDataset_AutoShard_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyFILEORDATA [ SKIPPED ] AutoShardTest.testRangeDataset_AutoShard_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyFILEORDATA [ RUN ] AutoShardTest.testRangeDataset_ShardHintUsedInWrongShardingPolicy_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyOFF [ SKIPPED ] AutoShardTest.testRangeDataset_ShardHintUsedInWrongShardingPolicy_test_mode_eager_tfapiversion_1_shardingpolicy_ShardingPolicyOFF [ RUN ] AutoShardTest.testTFRecordDataset_FewerFilesThanWorkers_DataShard_test_mode_eager_tfapiversion_2 INFO:tensorflow:Using local port 35531 I0628 08:02:03.552320 139750982424384 test_util.py:3796] Using local port 35531 2023-06-28 08:02:03.553738: I tensorflow/core/data/service/dispatcher_impl.cc:223] Attempting to restore dispatcher state from journal in /root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/_tmp/df4595e40f65712a12ed239eda341855ao10glmf/tmplcxh6ash/tf_data_dispatcher_journal 2023-06-28 08:02:03.553799: I tensorflow/core/data/service/dispatcher_impl.cc:230] No journal found. Starting dispatcher from new state. 2023-06-28 08:02:03.553987: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data DispatchServer running at 0.0.0.0:35531 INFO:tensorflow:Using local port 43623 I0628 08:02:03.556421 139750982424384 test_util.py:3796] Using local port 43623 2023-06-28 08:02:04.452927: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 08:02:04.495706: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 08:02:04.557281: 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-06-28 08:02:04.586634: 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-06-28 08:02:06.406403: I tensorflow/core/data/service/worker_impl.cc:186] Worker registered with dispatcher running at localhost:35531 2023-06-28 08:02:06.406887: I tensorflow/core/data/service/server_lib.cc:82] Started tf.data WorkerServer running at 0.0.0.0:43623 INFO:tensorflow:Using local port 40059 I0628 08:02:06.407576 139750982424384 test_util.py:3796] Using local port 40059 E0628 08:02:06.423661297 858602 server_chttp2.cc:40] {"created":"@1687939326.423469587","description":"No address added out of total 1 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":395,"referenced_errors":[{"created":"@1687939326.423463864","description":"Failed to add any wildcard listeners","file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_posix.cc","file_line":342,"referenced_errors":[{"created":"@1687939326.423438207","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::]:40059"},{"created":"@1687939326.423463182","description":"Unable to configure socket","fd":8,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":216,"referenced_errors":[{"created":"@1687939326.423455518","description":"Address already in use","errno":98,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":189,"os_error":"Address already in use","syscall":"bind"}]}]}]} Process _RemoteWorkerProcess-2: Traceback (most recent call last): File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 54, in _run_with_absl app.run(lambda _: self._run_impl()) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/absl_py/absl/app.py", line 312, in run _run_main(main, args) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/absl_py/absl/app.py", line 258, in _run_main sys.exit(main(argv)) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 54, in <lambda> app.run(lambda _: self._run_impl()) File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/multi_process_cluster.py", line 42, in run self.start_worker() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/multi_process_cluster.py", line 50, in start_worker self._worker.start() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/kernel_tests/service/test_base.py", line 110, in start self._server.start() File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/data/experimental/kernel_tests/service/auto_shard_test.runfiles/org_tensorflow/tensorflow/python/data/experimental/service/server_lib.py", line 415, in start self._server.start() RuntimeError: Could not start gRPC server -- Test timed out at 2023-06-28 08:06:34 UTC -- ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61109/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/61109/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61108
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61108/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61108/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61108/events
https://github.com/tensorflow/tensorflow/pull/61108
1,778,862,864
PR_kwDOArmXAs5UIw20
61,108
Legalization for quantized int8 tfl.squared_difference operator
{ "login": "tom-arm", "id": 72802373, "node_id": "MDQ6VXNlcjcyODAyMzcz", "avatar_url": "https://avatars.githubusercontent.com/u/72802373?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tom-arm", "html_url": "https://github.com/tom-arm", "followers_url": "https://api.github.com/users/tom-arm/followers", "following_url": "https://api.github.com/users/tom-arm/following{/other_user}", "gists_url": "https://api.github.com/users/tom-arm/gists{/gist_id}", "starred_url": "https://api.github.com/users/tom-arm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tom-arm/subscriptions", "organizations_url": "https://api.github.com/users/tom-arm/orgs", "repos_url": "https://api.github.com/users/tom-arm/repos", "events_url": "https://api.github.com/users/tom-arm/events{/privacy}", "received_events_url": "https://api.github.com/users/tom-arm/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
[ "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/61108/checks?check_run_id=14623036297) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-06-28T12:44:42
2023-07-10T19:24:15
2023-07-10T19:24:14
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61108", "html_url": "https://github.com/tensorflow/tensorflow/pull/61108", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61108.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61108.patch", "merged_at": "2023-07-10T19:24:14" }
This MR accounts for the legalization of tfl.squared_difference when the datatype is quantized INT8. This change ensures that the resulting TOSA graph matches the behaviour of the TensorFlow Lite reference operator.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61108/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/61108/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61107
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61107/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61107/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61107/events
https://github.com/tensorflow/tensorflow/issues/61107
1,778,818,874
I_kwDOArmXAs5qBp86
61,107
//tensorflow/python/distribute:cross_device_ops_test_2gpu is flaky
{ "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": "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
[ "@rishikasinha-tf flaky test", "Thanks. This is a known issue due to portpicker cannot always guarantee getting a fresh, unused port for the tests. We don't really have a good strategy to deal with this problem at the moment, other than retrying the test. Any suggestions and/or contribution is highly welcomed.", "@rainwoodman If there was a way that the build/test process could start a singleton process with portpicker as a server that should resolve the problems with it not being thread safe but I am not a bazel expert and do not know if or how that could be achieved. Each usage of portpicker in a test would then call out to the singleton process with the server and hopefully get a unique port allocation.\r\nAlternatively or additionally making the code that establishes a network connection to be more robust so that it can detect and retry when it fails due to a port conflict." ]
2023-06-28T12:15:43
2023-07-12T08:26:12
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute:cross_device_ops_test_2gpu fails or timeouts sometimes x86 log https://source.cloud.google.com/results/invocations/3008a6bc-b49f-4776-871c-1c5ae046a470/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5379162649/jobs/9759994992#step:5:9913 ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell [ RUN ] CollectiveOpsTest.testBatchReduceDense_test_implementation_CommunicationImplementationRING_numprocesses_2_preferuniqueinstancekey_False_reduceop_ReduceOpSUM_requiredgpus_0 [worker-0]: W0628 09:23:51.698908 140256382134080 context.py:881] Enabling collective ops after program startup may cause error when accessing previously created tensors. I0628 09:23:51.700115 139955121788736 multi_process_runner.py:989] Waiting for the result from worker-0 I0628 09:23:51.702625 139955121788736 multi_process_runner.py:989] Waiting for the result from worker-0 I0628 09:23:51.702917 139955121788736 multi_process_runner.py:989] Waiting for the result from worker-1 I0628 09:23:51.711031 139955121788736 multi_process_runner.py:989] Waiting for the result from worker-0 [worker-0]: 2023-06-28 09:23:51.734731: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:457] Started server with target: grpc://localhost:38213 [worker-1]: E0628 09:23:51.740952892 1194361 server_chttp2.cc:40] {"created":"@1687944231.740904797","description":"No address added out of total 1 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":395,"referenced_errors":[{"created":"@1687944231.740902919","description":"Failed to add any wildcard listeners","file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_posix.cc","file_line":342,"referenced_errors":[{"created":"@1687944231.740878363","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::]:36443"},{"created":"@1687944231.740901905","description":"Unable to configure socket","fd":9,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":216,"referenced_errors":[{"created":"@1687944231.740897648","description":"Address already in use","errno":98,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":189,"os_error":"Address already in use","syscall":"bind"}]}]}]} [worker-1]: 2023-06-28 09:23:51.741121: E tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:608] UNKNOWN: Could not start gRPC server [worker-1]: 2023-06-28 09:23:51.741306: E tensorflow/core/common_runtime/eager/context_distributed_manager.cc:703] Could not start gRPC server -- Test timed out at 2023-06-28 09:28:39 UTC -- ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61107/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/61107/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61106
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61106/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61106/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61106/events
https://github.com/tensorflow/tensorflow/issues/61106
1,778,802,110
I_kwDOArmXAs5qBl2-
61,106
Gradient Error (No gradient defined for operation 'bilateral_layer_1/Lu_10' (op type : Lu)) in CRFLayer
{ "login": "rishabh316", "id": 65718445, "node_id": "MDQ6VXNlcjY1NzE4NDQ1", "avatar_url": "https://avatars.githubusercontent.com/u/65718445?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rishabh316", "html_url": "https://github.com/rishabh316", "followers_url": "https://api.github.com/users/rishabh316/followers", "following_url": "https://api.github.com/users/rishabh316/following{/other_user}", "gists_url": "https://api.github.com/users/rishabh316/gists{/gist_id}", "starred_url": "https://api.github.com/users/rishabh316/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rishabh316/subscriptions", "organizations_url": "https://api.github.com/users/rishabh316/orgs", "repos_url": "https://api.github.com/users/rishabh316/repos", "events_url": "https://api.github.com/users/rishabh316/events{/privacy}", "received_events_url": "https://api.github.com/users/rishabh316/received_events", "type": "User", "site_admin": false }
[ { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
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 @rishabh316 ,\r\n\r\nIt might be possible that any of the Op may not have gradient implementation and you are trying to calculate the gradient for it. Please cross check it once. I am attaching the lost of [raw_ops](https://www.tensorflow.org/api_docs/python/tf/raw_ops) in tensorflow with the status of gradient. Please cross check whether any of your Op falling under the category of No Gradient implementation.\r\n\r\nAlso [tf.gradients](https://www.tensorflow.org/api_docs/python/tf/gradients) valid only in graph context. I recommend to use [tf.GradientTape ](https://www.tensorflow.org/api_docs/python/tf/GradientTape) instead which is best suitable for Tf2.x versions.\r\n\r\nThanks!", "> Hi @rishabh316 ,\r\n> \r\n> It might be possible that any of the Op may not have gradient implementation and you are trying to calculate the gradient for it. Please cross check it once. I am attaching the lost of [raw_ops](https://www.tensorflow.org/api_docs/python/tf/raw_ops) in tensorflow with the status of gradient. Please cross check whether any of your Op falling under the category of No Gradient implementation.\r\n> \r\n> Also [tf.gradients](https://www.tensorflow.org/api_docs/python/tf/gradients) valid only in graph context. I recommend to use [tf.GradientTape ](https://www.tensorflow.org/api_docs/python/tf/GradientTape) instead which is best suitable for Tf2.x versions.\r\n> \r\n> Thanks!\r\n\r\nThanks for your response and suggestions sir.\r\nIs there any way i can apply this CRFLayer by doing some modifications to the model.", "My issue got solved as i defined my custom gradient for that layer whose op type does not have pre-defined gradient given by tensorflow. Thanks for your suggestion.", "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/61106\">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/61106\">No</a>\n" ]
2023-06-28T12:04:32
2023-07-19T10:03:52
2023-07-19T10:03:50
NONE
null
null
null
The issue is from the new refined UNet v3.0 which i try to train my dataset on. the link to the repo of that model is here: [https://github.com/92xianshen/refined-unet-v3](url) I am working on this code on Jupyter notebook for my convenience. I design the Unet architecture code based on the architecture given in this UNet.py file of repo. I am training this model on the data of pets dataset (oxford-iiit-pets dataset) whose link is given below: [https://www.kaggle.com/datasets/tanlikesmath/the-oxfordiiit-pet-dataset](url) The data from the dataset is categorized into training and validation dataset already. The Jupyter Notebook named Fresh_Unet3 is attached. The problem is that the whole code runs successfully and model also got compiled, model summary obtained, but when i try to fit the model, it gives error which is: StagingError: in user code: File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\engine\training.py", line 1284, in train_function * return step_function(self, iterator) #here File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\engine\training.py", line 1268, in step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) #here File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\engine\training.py", line 1249, in run_step ** outputs = model.train_step(data) #here File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\engine\training.py", line 1054, in train_step self.optimizer.minimize(loss, self.trainable_variables, tape=tape) #here File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\optimizers\optimizer.py", line 542, in minimize grads_and_vars = self.compute_gradients(loss, var_list, tape) #here File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\keras\optimizers\optimizer.py", line 275, in compute_gradients grads = tape.gradient(loss, var_list) #here LookupError: No gradient defined for operation'bilateral_layer_1/Lu_10' (op type: Lu). In general every operation must have an associated `@tf.RegisterGradient` for correct autodiff, which this op is lacking. If you want to pretend this operation is a constant in your program, you may insert `tf.stop_gradient`. This can be useful to silence the error in cases where you know gradients are not needed, e.g. the forward pass of tf.custom_gradient. Please see more details in https://www.tensorflow.org/api_docs/python/tf/custom_gradient. The library versions are as follows: python = 3.9.6 tensorflow = '2.12.0' keras = '2.12.0' I am attaching zip file containing Jupyter Notebook of the file i'm working on and a Python file named CRFLayer.py which contains the code of CRF. [UNET_MODELv3.zip](https://github.com/tensorflow/tensorflow/files/11893789/UNET_MODELv3.zip) According to me, the error could be in the BilateralLayer class inside CRFLayer.py file. Please provide your valuable suggestions and solution to this problem.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61106/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/61106/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61105
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61105/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61105/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61105/events
https://github.com/tensorflow/tensorflow/issues/61105
1,778,788,987
I_kwDOArmXAs5qBip7
61,105
//tensorflow/python/distribute:moving_averages_test is flaky
{ "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": "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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T11:56:02
2023-07-03T16:05:44
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute:moving_averages_test fails sometimes. x86 log https://source.cloud.google.com/results/invocations/1e048065-76db-4dab-b1a5-093dd542b27d/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5383507734/jobs/9770356325#step:5:8417 Looks like a network port conflict issue ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell INFO: From Testing //tensorflow/python/distribute:moving_averages_test_cpu (shard 3 of 5): ==================== Test output for //tensorflow/python/distribute:moving_averages_test_cpu (shard 3 of 5): 2023-06-28 10:24:27.228811: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 10:24:27.325938: 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. Running tests under Python 3.9.17: /usr/bin/python3 [ RUN ] AssignMovingAveragesTest.testAssignVariable_test_distribution_MirroredCPUAndGPU_mode_graph INFO:tensorflow:time(__main__.AssignMovingAveragesTest.testAssignVariable_test_distribution_MirroredCPUAndGPU_mode_graph): 0.03s I0628 10:24:32.088060 139996622530368 test_util.py:2464] time(__main__.AssignMovingAveragesTest.testAssignVariable_test_distribution_MirroredCPUAndGPU_mode_graph): 0.03s [ SKIPPED ] AssignMovingAveragesTest.testAssignVariable_test_distribution_MirroredCPUAndGPU_mode_graph [ RUN ] AssignMovingAveragesTest.testAssignVariable_test_distribution_MultiWorkerMirrored4x1CPU_mode_graph W0628 10:24:32.126455 139996622530368 context.py:773] Configuring coordination service type may not be effective because the context is already initialized. WARNING:tensorflow:Collective ops is not configured at program startup. Some performance features may not be enabled. W0628 10:24:32.126971 139996622530368 collective_all_reduce_strategy.py:394] Collective ops is not configured at program startup. Some performance features may not be enabled. INFO:tensorflow:Using MirroredStrategy with devices ('/device:CPU:0',) I0628 10:24:32.164073 139996622530368 mirrored_strategy.py:423] Using MirroredStrategy with devices ('/device:CPU:0',) INFO:tensorflow:Single-worker MultiWorkerMirroredStrategy with local_devices = ('/device:CPU:0',), communication = CommunicationImplementation.AUTO I0628 10:24:32.171577 139996622530368 collective_all_reduce_strategy.py:446] Single-worker MultiWorkerMirroredStrategy with local_devices = ('/device:CPU:0',), communication = CommunicationImplementation.AUTO INFO:tensorflow:Using local port 43531 I0628 10:24:32.173116 139996622530368 test_util.py:3796] Using local port 43531 INFO:tensorflow:Using local port 34115 I0628 10:24:32.173517 139996622530368 test_util.py:3796] Using local port 34115 INFO:tensorflow:Using local port 34873 I0628 10:24:32.173699 139996622530368 test_util.py:3796] Using local port 34873 INFO:tensorflow:Using local port 40455 I0628 10:24:32.173828 139996622530368 test_util.py:3796] Using local port 40455 2023-06-28 10:24:32.849027: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 10:24:32.904538: 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-06-28 10:24:32.917529: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-28 10:24:32.995322: 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. [chief-0]: I0628 10:24:34.534415 140662937323328 multi_process_runner.py:840] Subprocess with PID 1244 (chief, 0) is now being started. [chief-0]: I0628 10:24:34.534823 140662937323328 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"chief": ["localhost:43531"], "worker": ["localhost:34115", "localhost:34873", "localhost:40455"]}, "task": {"type": "chief", "index": 0}, "rpc_layer": "grpc"}' I0628 10:24:34.561606 139996622530368 multi_process_runner.py:989] Waiting for the result from chief-0 [worker-1]: I0628 10:24:34.596723 140662937323328 multi_process_runner.py:840] Subprocess with PID 1479 (worker, 1) is now being started. [worker-1]: I0628 10:24:34.597120 140662937323328 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"chief": ["localhost:43531"], "worker": ["localhost:34115", "localhost:34873", "localhost:40455"]}, "task": {"type": "worker", "index": 1}, "rpc_layer": "grpc"}' [worker-1]: 2023-06-28 10:24:34.655212: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:457] Started server with target: grpc://localhost:34873 [worker-1]: INFO:tensorflow:Enabled multi-worker collective ops with available devices: ['/job:worker/replica:0/task:1/device:CPU:0'] [worker-1]: I0628 10:24:34.661444 140662937323328 collective_all_reduce_strategy.py:531] Enabled multi-worker collective ops with available devices: ['/job:worker/replica:0/task:1/device:CPU:0'] [chief-0]: E0628 10:24:34.621842982 1244 server_chttp2.cc:40] {"created":"@1687947874.621805165","description":"No address added out of total 1 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":395,"referenced_errors":[{"created":"@1687947874.621803913","description":"Failed to add any wildcard listeners","file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_posix.cc","file_line":342,"referenced_errors":[{"created":"@1687947874.621786452","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::]:43531"},{"created":"@1687947874.621803346","description":"Unable to configure socket","fd":9,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":216,"referenced_errors":[{"created":"@1687947874.621800946","description":"Address already in use","errno":98,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":189,"os_error":"Address already in use","syscall":"bind"}]}]}]} [chief-0]: 2023-06-28 10:24:34.621944: E tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:608] UNKNOWN: Could not start gRPC server [worker-0]: I0628 10:24:34.608072 140662937323328 multi_process_runner.py:840] Subprocess with PID 1472 (worker, 0) is now being started. [chief-0]: 2023-06-28 10:24:34.622255: E tensorflow/core/common_runtime/eager/context_distributed_manager.cc:703] Could not start gRPC server [chief-0]: Process _Process-3: [chief-0]: Traceback (most recent call last): [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/strategy_combinations.py", line 207, in skip_if_cannot_start_grpc_server [chief-0]: return _create_multi_worker_mirrored() [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/strategy_combinations.py", line 189, in _create_multi_worker_mirrored [chief-0]: strategy = CollectiveAllReduceStrategy(cluster_resolver=resolver) [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 186, in __init__ [chief-0]: CollectiveAllReduceExtended( [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 339, in __init__ [chief-0]: self._initialize_strategy(self._cluster_resolver, devices=devices) [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 358, in _initialize_strategy [chief-0]: self._initialize_multi_worker(cluster_resolver) [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 530, in _initialize_multi_worker [chief-0]: context.context().ensure_initialized() [chief-0]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/moving_averages_test_cpu.runfiles/org_tensorflow/tensorflow/python/eager/context.py", line 610, in ensure_initialized [chief-0]: pywrap_tfe.TFE_EnableCollectiveOps(context_handle, server_def_str) [chief-0]: tensorflow.python.framework.errors_impl.UnknownError: Could not start gRPC server ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61105/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/61105/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61104
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61104/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61104/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61104/events
https://github.com/tensorflow/tensorflow/issues/61104
1,778,705,574
I_kwDOArmXAs5qBOSm
61,104
//tensorflow/python/distribute/failure_handling:failure_handler_test is flaky
{ "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": "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
[ "@rishikasinha-tf flaky test" ]
2023-06-28T10:57:28
2023-07-03T11:59:24
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 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? //tensorflow/python/distribute/failure_handling:failure_handler_test will timeout sometimes x86 log https://source.cloud.google.com/results/invocations/302ca1a4-593b-430c-b278-038351228670/log AARCH64 log https://github.com/tensorflow/tensorflow/actions/runs/5363735926/jobs/9731502578#step:5:11034 Looks like a network port conflict. ### Standalone code to reproduce the issue ```shell bazel --bazelrc=/usertools/cpu.bazelrc test --config=pycpp --config=build_event_export --remote_cache=https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/norbe --google_default_credentials ``` ### Relevant log output ```shell INFO: From Testing //tensorflow/python/distribute/failure_handling:failure_handler_test (shard 4 of 8): ==================== Test output for //tensorflow/python/distribute/failure_handling:failure_handler_test (shard 4 of 8): 2023-06-22 16:46:57.933478: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-22 16:46:58.014195: 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. Running tests under Python 3.9.17: /usr/bin/python3 [ RUN ] PreemptionCheckpointTest.test_grace_period_continue_training_test_inputarg_checkpoint_strategyoption_MWMSmultiworker INFO:tensorflow:Using local port 38723 I0622 16:47:02.418146 140436227843904 test_util.py:3796] Using local port 38723 INFO:tensorflow:Using local port 41053 I0622 16:47:02.418907 140436227843904 test_util.py:3796] Using local port 41053 INFO:tensorflow:Using local port 45087 I0622 16:47:02.419116 140436227843904 test_util.py:3796] Using local port 45087 INFO:tensorflow:Using local port 38125 I0622 16:47:02.419290 140436227843904 test_util.py:3796] Using local port 38125 2023-06-22 16:47:03.130184: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-22 16:47:03.185580: 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-06-22 16:47:03.185763: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-06-22 16:47:03.241253: 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. INFO:tensorflow:Cluster starting. I0622 16:47:04.817156 140436227843904 failure_handler_test.py:432] Cluster starting. [worker-0]: I0622 16:47:04.842670 140652189284160 multi_process_runner.py:840] Subprocess with PID 588346 (worker, 0) is now being started. [worker-0]: I0622 16:47:04.842952 140652189284160 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"worker": ["localhost:38723", "localhost:41053", "localhost:45087", "localhost:38125"]}, "task": {"type": "worker", "index": 0}, "rpc_layer": "grpc"}' [worker-1]: I0622 16:47:04.858144 140652189284160 multi_process_runner.py:840] Subprocess with PID 588646 (worker, 1) is now being started. [worker-1]: I0622 16:47:04.858554 140652189284160 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"worker": ["localhost:38723", "localhost:41053", "localhost:45087", "localhost:38125"]}, "task": {"type": "worker", "index": 1}, "rpc_layer": "grpc"}' [worker-0]: 2023-06-22 16:47:04.907068: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:457] Started server with target: grpc://localhost:38723 [worker-2]: I0622 16:47:04.927917 140652189284160 multi_process_runner.py:840] Subprocess with PID 588933 (worker, 2) is now being started. [worker-0]: 2023-06-22 16:47:04.943758: I tensorflow/tsl/distributed_runtime/coordination/coordination_service.cc:551] /job:worker/replica:0/task:0 has connected to coordination service. Incarnation: 14520256932767538069 [worker-0]: 2023-06-22 16:47:04.944905: I tensorflow/tsl/distributed_runtime/coordination/coordination_service_agent.cc:299] Coordination agent has successfully connected. [worker-2]: I0622 16:47:04.928328 140652189284160 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"worker": ["localhost:38723", "localhost:41053", "localhost:45087", "localhost:38125"]}, "task": {"type": "worker", "index": 2}, "rpc_layer": "grpc"}' [worker-1]: 2023-06-22 16:47:04.995414: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:457] Started server with target: grpc://localhost:41053 [worker-0]: 2023-06-22 16:47:04.997341: I tensorflow/tsl/distributed_runtime/coordination/coordination_service.cc:551] /job:worker/replica:0/task:1 has connected to coordination service. Incarnation: 7622272584115739518 [worker-1]: 2023-06-22 16:47:04.998064: I tensorflow/tsl/distributed_runtime/coordination/coordination_service_agent.cc:299] Coordination agent has successfully connected. [worker-3]: I0622 16:47:05.006252 140652189284160 multi_process_runner.py:840] Subprocess with PID 589461 (worker, 3) is now being started. [worker-2]: E0622 16:47:05.032748121 588933 server_chttp2.cc:40] {"created":"@1687452425.032699864","description":"No address added out of total 1 resolved","file":"external/com_github_grpc_grpc/src/core/ext/transport/chttp2/server/chttp2_server.cc","file_line":395,"referenced_errors":[{"created":"@1687452425.032698162","description":"Failed to add any wildcard listeners","file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_posix.cc","file_line":342,"referenced_errors":[{"created":"@1687452425.032676237","description":"Address family not supported by protocol","errno":97,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":420,"os_error":"Address family not supported by protocol","syscall":"socket","target_address":"[::]:45087"},{"created":"@1687452425.032697070","description":"Unable to configure socket","fd":9,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":216,"referenced_errors":[{"created":"@1687452425.032694857","description":"Address already in use","errno":98,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_server_utils_posix_common.cc","file_line":189,"os_error":"Address already in use","syscall":"bind"}]}]}]} [worker-2]: 2023-06-22 16:47:05.032844: E tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:608] UNKNOWN: Could not start gRPC server [worker-2]: 2023-06-22 16:47:05.033076: E tensorflow/core/common_runtime/eager/context_distributed_manager.cc:703] Could not start gRPC server [worker-3]: I0622 16:47:05.006778 140652189284160 multi_process_runner.py:842] TF_CONFIG: '{"cluster": {"worker": ["localhost:38723", "localhost:41053", "localhost:45087", "localhost:38125"]}, "task": {"type": "worker", "index": 3}, "rpc_layer": "grpc"}' [worker-2]: Process _Process-4: [worker-2]: Traceback (most recent call last): [worker-2]: File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap [worker-2]: self.run() [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 755, in _run_with_setenv [worker-2]: return self._actual_run() [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 54, in _run_with_absl [worker-2]: app.run(lambda _: self._run_impl()) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/absl_py/absl/app.py", line 312, in run [worker-2]: _run_main(main, args) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/absl_py/absl/app.py", line 258, in _run_main [worker-2]: sys.exit(main(argv)) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_lib.py", line 54, in <lambda> [worker-2]: app.run(lambda _: self._run_impl()) [worker-2]: File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run [worker-2]: self._target(*self._args, **self._kwargs) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 866, in __call__ [worker-2]: six.reraise(*info.exc_info) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/six_archive/six.py", line 719, in reraise [worker-2]: raise value [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/multi_process_runner.py", line 1060, in _run_contained [worker-2]: return_value = fn(*args, **kwargs) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/failure_handling/failure_handler_test.py", line 146, in worker_fn [worker-2]: strategy = collective_all_reduce_strategy.CollectiveAllReduceStrategy() [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 186, in __init__ [worker-2]: CollectiveAllReduceExtended( [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 339, in __init__ [worker-2]: self._initialize_strategy(self._cluster_resolver, devices=devices) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 358, in _initialize_strategy [worker-2]: self._initialize_multi_worker(cluster_resolver) [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/distribute/collective_all_reduce_strategy.py", line 530, in _initialize_multi_worker [worker-2]: context.context().ensure_initialized() [worker-2]: File "/root/.cache/bazel/_bazel_root/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/distribute/failure_handling/failure_handler_test.runfiles/org_tensorflow/tensorflow/python/eager/context.py", line 610, in ensure_initialized [worker-2]: pywrap_tfe.TFE_EnableCollectiveOps(context_handle, server_def_str) [worker-2]: tensorflow.python.framework.errors_impl.UnknownError: Could not start gRPC server ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61104/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/61104/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61103
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61103/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61103/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61103/events
https://github.com/tensorflow/tensorflow/pull/61103
1,778,138,904
PR_kwDOArmXAs5UGVZx
61,103
[NVIDIA TF] Fix version guards for cuLaunchKernelEx
{ "login": "benbarsdell", "id": 3979096, "node_id": "MDQ6VXNlcjM5NzkwOTY=", "avatar_url": "https://avatars.githubusercontent.com/u/3979096?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benbarsdell", "html_url": "https://github.com/benbarsdell", "followers_url": "https://api.github.com/users/benbarsdell/followers", "following_url": "https://api.github.com/users/benbarsdell/following{/other_user}", "gists_url": "https://api.github.com/users/benbarsdell/gists{/gist_id}", "starred_url": "https://api.github.com/users/benbarsdell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benbarsdell/subscriptions", "organizations_url": "https://api.github.com/users/benbarsdell/orgs", "repos_url": "https://api.github.com/users/benbarsdell/repos", "events_url": "https://api.github.com/users/benbarsdell/events{/privacy}", "received_events_url": "https://api.github.com/users/benbarsdell/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": 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-06-28T04:08:14
2023-06-29T11:15:54
2023-06-29T11:15:54
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61103", "html_url": "https://github.com/tensorflow/tensorflow/pull/61103", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61103.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61103.patch", "merged_at": "2023-06-29T11:15:54" }
This CUDA API was introduced in CUDA 11.8. This patch fixes the build when using CUDA < 11.8. cc @nluehr @pjannaty
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61103/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/61103/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61102
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61102/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61102/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61102/events
https://github.com/tensorflow/tensorflow/pull/61102
1,777,932,136
PR_kwDOArmXAs5UFohr
61,102
update estimator and keras versions
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-28T00:10:25
2023-06-28T15:39:07
2023-06-28T15:28:44
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61102", "html_url": "https://github.com/tensorflow/tensorflow/pull/61102", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61102.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61102.patch", "merged_at": "2023-06-28T15:28:44" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61102/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/61102/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61101
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61101/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61101/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61101/events
https://github.com/tensorflow/tensorflow/issues/61101
1,777,874,114
I_kwDOArmXAs5p-DTC
61,101
Build aar with models using tfops
{ "login": "LobnaMazhar", "id": 12811578, "node_id": "MDQ6VXNlcjEyODExNTc4", "avatar_url": "https://avatars.githubusercontent.com/u/12811578?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LobnaMazhar", "html_url": "https://github.com/LobnaMazhar", "followers_url": "https://api.github.com/users/LobnaMazhar/followers", "following_url": "https://api.github.com/users/LobnaMazhar/following{/other_user}", "gists_url": "https://api.github.com/users/LobnaMazhar/gists{/gist_id}", "starred_url": "https://api.github.com/users/LobnaMazhar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LobnaMazhar/subscriptions", "organizations_url": "https://api.github.com/users/LobnaMazhar/orgs", "repos_url": "https://api.github.com/users/LobnaMazhar/repos", "events_url": "https://api.github.com/users/LobnaMazhar/events{/privacy}", "received_events_url": "https://api.github.com/users/LobnaMazhar/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": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @LobnaMazhar \r\n\r\nThis seems to be an error caused by Jax library.\r\n\r\nHave you configured https://www.tensorflow.org/lite/android/lite_build#configure_workspace_and_bazelrc and set the options accordingly?\r\n\r\nAlso, can you please provide toy tflite model inorder to reproduce the issue?\r\n\r\nThanks.", "Hi @pjpratik \r\n\r\nYes, I followed the configurations and I made sure it was successful by printing the content of the `.tf_configure.bazelrc` file as follows\r\n\r\n> > more .tf_configure.bazelrc\r\nbuild --action_env PYTHON_BIN_PATH=\"/usr/bin/python3\"\r\nbuild --action_env PYTHON_LIB_PATH=\"/usr/lib/python3/dist-packages\"\r\nbuild --python_path=\"/usr/bin/python3\"\r\nbuild:opt --copt=-Wno-sign-compare\r\nbuild:opt --host_copt=-Wno-sign-compare\r\nbuild --action_env ANDROID_NDK_HOME=\"/android/ndk\"\r\nbuild --action_env ANDROID_NDK_API_LEVEL=\"21\"\r\nbuild --action_env ANDROID_BUILD_TOOLS_VERSION=\"34.0.0\"\r\nbuild --action_env ANDROID_SDK_API_LEVEL=\"33\"\r\nbuild --action_env ANDROID_SDK_HOME=\"/android/sdk\"\r\ntest --flaky_test_attempts=3\r\ntest --test_size_filters=small,medium\r\ntest:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial\r\ntest:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu\r\ntest:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial,-v1only\r\ntest:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-v1only\r\n\r\nAre there any extra steps that I should do to install the Jax library in separate?\r\n\r\nRegarding the used tflite model, unfortunately I won't be able to share it because it is confidential to my job.", "I tried another converted version of the model, and I ended up with a different error.\r\n\r\n> + bazel build -c opt --cxxopt=--std=c++17 --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder --define=xnn_enable_arm_fp16=false --host_crosstool_top=@bazel_tools//tools/cpp:toolchain //tmp:tensorflow-lite\r\n> INFO: Options provided by the client:\r\n> Inherited 'common' options: --isatty=1 --terminal_columns=179\r\n> INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc:\r\n> Inherited 'common' options: --experimental_repo_remote_exec\r\n> INFO: Reading rc options for 'build' from /etc/bazel.bazelrc:\r\n> 'build' options: --action_env=DOCKER_CACHEBUSTER=1687840109499695775 --host_action_env=DOCKER_HOST_CACHEBUSTER=1687840109559438170\r\n> INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc:\r\n> 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\n> INFO: Reading rc options for 'build' from /tensorflow_src/.tf_configure.bazelrc:\r\n> 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3 --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=34.0.0 --action_env ANDROID_SDK_API_LEVEL=33 --action_env ANDROID_SDK_HOME=/android/sdk\r\n> INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc:\r\n> 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug\r\n> INFO: Found applicable config definition build:short_logs in file /tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\n> INFO: Found applicable config definition build:v2 in file /tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\n> INFO: Found applicable config definition build:linux in file /tensorflow_src/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes\r\n> INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\n> INFO: Analyzed target //tmp:tensorflow-lite (1 packages loaded, 527 targets configured).\r\n> INFO: Found 1 target...\r\n> **ERROR: /tensorflow_src/tmp/BUILD:4:30: gen_selected_ops failed: (Segmentation fault): generate_op_registrations failed: error executing command bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/lite/tools/generate_op_registrations '--namespace=' ... (remaining 3 arguments skipped)\r\n> Target //tmp:tensorflow-lite failed to build\r\n> Use --verbose_failures to see the command lines of failed build steps.\r\n> INFO: Elapsed time: 1.788s, Critical Path: 0.90s\r\n> INFO: 2 processes: 2 internal.\r\n> FAILED: Build did NOT complete successfully**\r\n> \r\n\r\n**Question** Should I specify the used tf-ops while running the command as follows?\r\n```\r\nsh tensorflow/lite/tools/build_aar.sh \\\r\n --input_models=/a/b/model_one.tflite,/c/d/model_two.tflite \\\r\n --target_archs=x86,x86_64,arm64-v8a,armeabi-v7a \\\r\n --tflite_custom_ops_srcs=/e/f/file1.cc,/g/h/file2.h \\\r\n --tflite_custom_ops_deps=dep1,dep2\r\n```\r\nAs I'm using the simpler command\r\n```\r\nbash tensorflow/lite/tools/build_aar.sh \\\r\n --input_models=model1,model2 \\\r\n --target_archs=x86,x86_64,arm64-v8a,armeabi-v7a`\r\n```\r\nas specified [here](https://www.tensorflow.org/lite/android/lite_build#configure_workspace_and_bazelrc)", "Hi @LobnaMazhar, the simpler command should suffice as the script should look into the input models for the ops being used. Are you using custom ops? your other command seems to suggest so, perhaps can you or your team produce a simpler toy model with just the custom ops so that we can reproduce without violating confidentiality? Also this will help us identify if those are the cause of the issue.", "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/61101\">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/61101\">No</a>\n" ]
2023-06-27T23:07:39
2024-06-11T14:38:00
2023-07-15T02:08:55
NONE
null
null
null
I am trying to build a small aar for specific ML models where one of them is using tfops, I don't want to use the nighty version due to its huge size. I am following this [documentation](https://www.tensorflow.org/lite/android/lite_build#configure_workspace_and_bazelrc), I downloaded the provided Dockerfile and I updated the following fields - commandlinetools to the latest version 9477386_latest - ANDROID_API_LEVEL to 33 - ANDROID_BUILD_TOOLS_VERSION to 34.0.0. I started the docker container, configured the workspace, cloned tensorflow from this [repository](https://github.com/tensorflow/tensorflow.git) and checked out to branch r2.13, downloaded bazel ``` > bazel version Bazelisk version: v1.17.0 Starting local Bazel server and connecting to it... Build label: 5.3.0 Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Tue Aug 23 00:45:53 2022 (1661215553) Build timestamp: 1661215553 Build timestamp as int: 1661215553 ``` ------------------------ ### System information - **OS Platform and Distribution -> Linux**: - **TensorFlow downloaded from [source](https://github.com/tensorflow/tensorflow.git)**: r2.13 - **Python version**: 3.11 - **Bazel version**: 5.3.0 ------------------------ When I run the bash command ` bash tensorflow/lite/tools/build_aar.sh --input_models=model1.tflite,model2.tflite --target_archs=x86,x86_64,arm64-v8a,armeabi-v7a` with my models it fails with the following error log ... INFO: Analyzed target //tmp:tensorflow-lite-select-tf-ops (461 packages loaded, 50228 targets configured). INFO: Found 1 target... ERROR: /tensorflow_src/tensorflow/BUILD:1646:19: Action tensorflow/_api/v2/v2.py [for host] failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped) 2023-06-27 22:43:43.289759: 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: SSE3, 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/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 856, in <module> main() File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 830, in main importlib.import_module(package) File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/lite/python/lite.py", line 34, in <module> from tensorflow.lite.python.convert import convert_graphdef as _convert_graphdef File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/lite/python/convert.py", line 29, in <module> from tensorflow.lite.python import util File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/lite/python/util.py", line 52, in <module> from jax import xla_computation as _xla_computation File "/usr/local/lib/python3.11/dist-packages/jax/__init__.py", line 35, in <module> from jax import config as _config_module File "/usr/local/lib/python3.11/dist-packages/jax/config.py", line 17, in <module> from jax._src.config import config # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/jax/_src/config.py", line 27, in <module> from jax._src import lib File "/usr/local/lib/python3.11/dist-packages/jax/_src/lib/__init__.py", line 85, in <module> cpu_feature_guard.check_cpu_features() RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source. Target //tmp:tensorflow-lite-select-tf-ops failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /tensorflow_src/tensorflow/python/tools/BUILD:284:10 Middleman _middlemen/tensorflow_Spython_Stools_Sprint_Uselective_Uregistration_Uheader-runfiles failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped) INFO: Elapsed time: 252.099s, Critical Path: 49.42s INFO: 952 processes: 16 internal, 936 local. FAILED: Build did NOT complete successfully
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61101/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/61101/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61100
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61100/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61100/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61100/events
https://github.com/tensorflow/tensorflow/issues/61100
1,777,841,847
I_kwDOArmXAs5p97a3
61,100
Model running on CPU when using NNAPI even with NnApiDelegate.Options().useNnapiCpu = false
{ "login": "soupslurpr", "id": 92235850, "node_id": "U_kgDOBX9oSg", "avatar_url": "https://avatars.githubusercontent.com/u/92235850?v=4", "gravatar_id": "", "url": "https://api.github.com/users/soupslurpr", "html_url": "https://github.com/soupslurpr", "followers_url": "https://api.github.com/users/soupslurpr/followers", "following_url": "https://api.github.com/users/soupslurpr/following{/other_user}", "gists_url": "https://api.github.com/users/soupslurpr/gists{/gist_id}", "starred_url": "https://api.github.com/users/soupslurpr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/soupslurpr/subscriptions", "organizations_url": "https://api.github.com/users/soupslurpr/orgs", "repos_url": "https://api.github.com/users/soupslurpr/repos", "events_url": "https://api.github.com/users/soupslurpr/events{/privacy}", "received_events_url": "https://api.github.com/users/soupslurpr/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": 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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "Apologies, it seems I wasn't passing options when creating the Interpreter. Now it is crashing with \r\n java.lang.RuntimeException: java.lang.IllegalArgumentException: Internal error: Error applying delegate: \r\n \r\nI'll make a new issue for that.", "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/61100\">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/61100\">No</a>\n" ]
2023-06-27T22:31:32
2023-06-30T03:57:30
2023-06-30T03:57: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.12.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device Google Pixel 7 ### 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? I am running the OpenAI whisper tiny model on Android using the TensorFlow Lite NNAPI delegate. It seems to be running on the CPU instead of the hardware accelerator on the Google Pixel 7 even though "NnApiDelegate.Options().useNnapiCpu = false" is set. ### Standalone code to reproduce the issue ```shell NnApiDelegate.Options().useNnapiCpu = false ``` ### Relevant log output ```shell W Access denied finding property "ro.mediatek.platform" W Access denied finding property "ro.chipname" W Access denied finding property "ro.hardware.chipname" I Created TensorFlow Lite XNNPACK delegate for CPU. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61100/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/61100/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61099
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61099/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61099/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61099/events
https://github.com/tensorflow/tensorflow/pull/61099
1,777,620,634
PR_kwDOArmXAs5UEkEn
61,099
Numerous improvements made to the tensorflow_issue_template
{ "login": "rylan-justice", "id": 119366377, "node_id": "U_kgDOBx1i6Q", "avatar_url": "https://avatars.githubusercontent.com/u/119366377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rylan-justice", "html_url": "https://github.com/rylan-justice", "followers_url": "https://api.github.com/users/rylan-justice/followers", "following_url": "https://api.github.com/users/rylan-justice/following{/other_user}", "gists_url": "https://api.github.com/users/rylan-justice/gists{/gist_id}", "starred_url": "https://api.github.com/users/rylan-justice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rylan-justice/subscriptions", "organizations_url": "https://api.github.com/users/rylan-justice/orgs", "repos_url": "https://api.github.com/users/rylan-justice/repos", "events_url": "https://api.github.com/users/rylan-justice/events{/privacy}", "received_events_url": "https://api.github.com/users/rylan-justice/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
[ "Okay, I've made the requested changes in the latest commit.\r\n\r\nhttps://github.com/tensorflow/tensorflow/pull/61099/commits/be9472436a4ba050382816b6420297773c70f8ed" ]
2023-06-27T19:25:44
2023-06-30T19:04:44
2023-06-30T19:04:44
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61099", "html_url": "https://github.com/tensorflow/tensorflow/pull/61099", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61099.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61099.patch", "merged_at": "2023-06-30T19:04:43" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61099/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/61099/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61098
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61098/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61098/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61098/events
https://github.com/tensorflow/tensorflow/pull/61098
1,777,586,466
PR_kwDOArmXAs5UEcfo
61,098
Update tensorflow_issue_template
{ "login": "rylan-justice", "id": 119366377, "node_id": "U_kgDOBx1i6Q", "avatar_url": "https://avatars.githubusercontent.com/u/119366377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rylan-justice", "html_url": "https://github.com/rylan-justice", "followers_url": "https://api.github.com/users/rylan-justice/followers", "following_url": "https://api.github.com/users/rylan-justice/following{/other_user}", "gists_url": "https://api.github.com/users/rylan-justice/gists{/gist_id}", "starred_url": "https://api.github.com/users/rylan-justice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rylan-justice/subscriptions", "organizations_url": "https://api.github.com/users/rylan-justice/orgs", "repos_url": "https://api.github.com/users/rylan-justice/repos", "events_url": "https://api.github.com/users/rylan-justice/events{/privacy}", "received_events_url": "https://api.github.com/users/rylan-justice/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
[]
2023-06-27T19:04:11
2023-06-27T19:05:57
2023-06-27T19:05:57
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61098", "html_url": "https://github.com/tensorflow/tensorflow/pull/61098", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61098.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61098.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61098/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/61098/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61097
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61097/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61097/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61097/events
https://github.com/tensorflow/tensorflow/pull/61097
1,777,506,007
PR_kwDOArmXAs5UEKYs
61,097
Update version numbers for TensorFlow 2.13.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-06-27T18:21:10
2023-06-27T19:09:17
2023-06-27T19:06:20
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61097", "html_url": "https://github.com/tensorflow/tensorflow/pull/61097", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61097.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61097.patch", "merged_at": "2023-06-27T19:06:20" }
Before merging this PR, please double check that it has correctly updated `core/public/version.h`, `tools/pip_package/setup.py`, and `tensorflow/tensorflow.bzl`. Also review the execution notes below: ``` Major: 2 -> 2 Minor: 13 -> 13 Patch: 0 -> 0 WARNING: Below are potentially instances of lingering old version string "2.13.0-rc2" in source directory "tensorflow/" that are not updated by this script. Please check them manually! tensorflow/lite/core/c/c_api.h:116:2.13.0-rc2 No lingering old version strings "2.13.0rc2" found in source directory "tensorflow/". Good. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61097/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/61097/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61096
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61096/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61096/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61096/events
https://github.com/tensorflow/tensorflow/issues/61096
1,777,443,727
I_kwDOArmXAs5p8aOP
61,096
Concurrent Read/Writes to tensorflow::*File across different processes
{ "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": 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": 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
[ "@p3achyjr,\r\nCould you please provide more context/information or the complete standalone code to reproduce the issue which helps to analyse the issue in an effective way. Thank you!", "```\r\n// p1.cc\r\n#include \"tensorflow/core/lib/io/record_writer.h\"\r\n#include \"tensorflow/core/example/example.pb.h\"\r\n\r\nint main(int argc, char** argv) {\r\n std::unique_ptr<tensorflow::WritableFile> file;\r\n TF_CHECK_OK(tensorflow::Env::Default()->NewWritableFile(\"/tmp/file.tfrecord\", &file));\r\n\r\n RecordWriter writer(file.get());\r\n for (int i = 0; i < 1000000; ++i) {\r\n tensorflow::Example example;\r\n auto& features = *example.mutable_features()->mutable_feature();\r\n features[\"key\"].mutable_int64_list()->add_value(i);\r\n \r\n std::string data;\r\n example.SerializeToString(&data);\r\n TF_CHECK_OK(writer.WriteRecord(data));\r\n }\r\n TF_CHECK_OK(writer.Close());\r\n TF_CHECK_OK(file->Close());\r\n\r\n return 0;\r\n}\r\n```\r\n\r\n```\r\n// p2.cc\r\n#include \"tensorflow/core/lib/io/record_reader.h\"\r\n\r\nint main(int argc, char** argv) {\r\n std::unique_ptr<tensorflow::RandomAccessFile> file;\r\n TF_CHECK_OK(tensorflow::Env::Default()->NewRandomAccessFile(\"/tmp/file.tfrecord\", &file));\r\n\r\n SequentialRecordReader reader(file.get());\r\n for (int i = 0; i < 1000000; ++i) {\r\n tstring record;\r\n reader.ReadRecord(&record);\r\n // Not sure how to parse in C++, but this loop should be able to complete.\r\n }\r\n\r\n return 0;\r\n}\r\n```\r\n\r\n```\r\n// BUILD\r\ncc_binary(\r\n name = \"p1\"\r\n srcs = [\"p1.cc\"]\r\n deps = [<path_to_tensorflow_shlib>]\r\n # deps = [\"@org_tensorflow//tensorflow:libtensorflow_cc\"]\r\n)\r\n\r\ncc_binary(\r\n name = \"p2\"\r\n srcs = [\"p2.cc\"]\r\n deps = [<path_to_tensorflow_shlib>]\r\n # deps = [\"@org_tensorflow//tensorflow:libtensorflow_cc\"]\r\n)\r\n```\r\n\r\n```\r\n// run.sh\r\nbazel build //:p1\r\nbazel build //:p2\r\n./bazel-bin/p1\r\n./bazel-bin/p2\r\n```\r\n\r\n let me know if you need anything else :)\r\n", "Fwiw I'm still not sure whether tensorflow protects concurrent read/writes within its API, but concurrent read/writes in general are not synchronized :)" ]
2023-06-27T17:38:43
2023-07-01T13:53:55
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 _No response_ ### Python version 3.8 ### Bazel version 6.1.1 ### GCC/Compiler version 9 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Are `tensorflow::WritableFile` and `tensorflow::RandomAccessFile` safe to read/write across multiple processes? If not, how can we ensure that they are? If there are tensorflow file locking primitives, that would be ideal :) If not, being able to grab the file descriptor from the TF file object should be sufficient--can we do this? ### Standalone code to reproduce the issue ```shell # Process 1. int main(int argc, char** argv) { std::unique_ptr<tensorflow::WritableFile> file; TF_CHECK_OK(tensorflow::Env::Default()->NewWritableFile(filename, &file)); RecordWriter writer(file.get()); writer.WriteRecord("hahaha"); TF_CHECK_OK(writer.Close()); TF_CHECK_OK(file->Close()); return 0; } # Process 2. int main(int argc, char** argv) { std::unique_ptr<tensorflow::RandomAccessFile> file; TF_CHECK_OK(tensorflow::Env::Default()->NewRandomAccessFile(*f, &file)); SequentialRecordReader reader(file.get()); tstring record; reader.ReadRecord(&record); return 0; } ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61096/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/61096/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61095
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61095/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61095/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61095/events
https://github.com/tensorflow/tensorflow/issues/61095
1,777,405,802
I_kwDOArmXAs5p8Q9q
61,095
UnsatisfiedLinkError: Failed to load native TensorFlow Lite methods
{ "login": "kbhargavi33", "id": 45931151, "node_id": "MDQ6VXNlcjQ1OTMxMTUx", "avatar_url": "https://avatars.githubusercontent.com/u/45931151?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kbhargavi33", "html_url": "https://github.com/kbhargavi33", "followers_url": "https://api.github.com/users/kbhargavi33/followers", "following_url": "https://api.github.com/users/kbhargavi33/following{/other_user}", "gists_url": "https://api.github.com/users/kbhargavi33/gists{/gist_id}", "starred_url": "https://api.github.com/users/kbhargavi33/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kbhargavi33/subscriptions", "organizations_url": "https://api.github.com/users/kbhargavi33/orgs", "repos_url": "https://api.github.com/users/kbhargavi33/repos", "events_url": "https://api.github.com/users/kbhargavi33/events{/privacy}", "received_events_url": "https://api.github.com/users/kbhargavi33/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": 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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @kbhargavi33 \r\n\r\nTF Nightly is not a stable version. Can you please check in latest stable version 2.12 and let us know if you are still facing the issue?\r\n\r\nThanks.\r\n\r\n", "@pjpratik I am able to replicate this with latest version as well.\r\norg.tensorflow:tensorflow-lite:2.12.0", "This is also happening with the code from docs https://www.tensorflow.org/lite/android/delegates/nnapi\r\nAble to replicate in android 5,6,7 bunch of devices\r\n\r\n\r\n```\r\nInterpreter.Options options = (new Interpreter.Options());\r\nNnApiDelegate nnApiDelegate = null;\r\n// Initialize interpreter with NNAPI delegate for Android Pie or above\r\nif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {\r\n nnApiDelegate = new NnApiDelegate();\r\n options.addDelegate(nnApiDelegate);\r\n}\r\n```\r\n\r\nI think this is an issue with interpreter rather nnapi\r\n", "Hi @kbhargavi33, I was able to run the code from the docs that you posted above fine. I do have this in my gradle instead though:\r\n\r\n```kotlin\r\ndependencies {\r\n\r\n ...\r\n implementation 'org.tensorflow:tensorflow-lite:2.0.0'\r\n ...\r\n}\r\n```\r\n\r\nCan you try with that in a fresh project, then sync, and let me know if that works at all for you as well?", "Hi @pkgoogle It is working with 2.0.0 and 2.10.0 as well.\r\n\r\n```groovy\r\n implementation 'org.tensorflow:tensorflow-lite:2.10.0'\r\n implementation 'org.tensorflow:tensorflow-lite-gpu:2.10.0'\r\n implementation 'org.tensorflow:tensorflow-lite-support:0.4.3'\r\n implementation 'org.tensorflow:tensorflow-lite-metadata:0.4.3'\r\n``` \r\n\r\nBut still not working with 0.0.0-nightly-SNAPSHOT and 2.1.12", "Hi @kbhargavi33, stability of the nightly snapshot is not necessarily guaranteed and it seems like a later version (with more bug fixes) is working for you. Is there any reason you can't use the later version for now?", "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/61095\">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/61095\">No</a>\n", "I am still getting this issue with the latest release 2.14.0 for Android API levels 21-25 included. Can you please investigate this?\r\n\r\nDependencies:\r\n\r\n```\r\n implementation \"org.tensorflow:tensorflow-lite:2.14.0\"\r\n implementation \"org.tensorflow:tensorflow-lite-support:0.4.3\"\r\n```\r\n\r\nThe error:\r\n\r\n```\r\njava.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():\r\njava.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol \"strtod_l\" referenced by \"/data/app/com.onfido.android.sdk.capture.test-1/lib/arm64/libtensorflowlite_jni.so\"...\r\nat org.tensorflow.lite.TensorFlowLite.init(TensorFlowLite.java:137)\r\n```", "Hi @nijat-ahmadli,\r\n\r\nAre you trying to use the NNAPI delegate? It is only supported from Android API level 27+: https://www.tensorflow.org/lite/android/delegates/nnapi#trying_the_nnapi_delegate_on_your_own_model", "Hi @pkgoogle Thanks for you reply!\r\n\r\nNo, I am not using any delegate. This is how I initialise the Interpreter:\r\n\r\n```\r\ninit {\r\n val model = FileUtil.loadMappedFile(context, modelFileName)\r\n val options = Interpreter.Options()\r\n options.numThreads = CPU_NUM_THREADS\r\n interpreter = Interpreter(model, options)\r\n}\r\n```\r\n\r\nPlease note that, I am not getting the error with the release 2.11.0. It only occurs for the newer releases above this version.", "Hi @nijat-ahmadli, this original case originated from a different code/situation, can you please write a new issue that contains your reproducible code as well as system/environment information that conforms to the issue templates? Thanks for your help.", "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/61095\">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/61095\">No</a>\n", "@pkgoogle [Issue](https://github.com/tensorflow/tensorflow/issues/62173) is created as requested. Thanks!" ]
2023-06-27T17:09:43
2023-10-19T11:28:09
2023-10-18T19:21:44
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 0.0.0-nightly-SNAPSHOT ### Custom Code No ### OS Platform and Distribution _No response_ ### Mobile device Android Samsung Galaxy J5 ### 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? Fatal Exception: 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: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libtensorflowlite_jni.so" This is reproducible on lot of android devices running android version 5,6,7 This is happening in the nightly snapshots from probably last 2 weeks. Did not encounter this in previous nightly snapshots. ### Standalone code to reproduce the issue ```shell val nnApiOption = NnApiDelegate.Options() nnApiOption.setUseNnapiCpu(true) val nnApiDelegate = NnApiDelegate(nnApiOption) ``` ### Relevant log output 2023-06-28 10:52:35.629 29536-29620 InterpreterApi I Didn't load native library: tensorflowlite_jni 2023-06-28 10:52:35.637 29536-29620 InterpreterApi I Didn't load native library: tensorflowlite_jni_stable 2023-06-28 10:52:35.638 29536-29620 InterpreterApi I Didn't load native library: tensorflowlite_jni_gms_client </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61095/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/61095/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61094
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61094/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61094/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61094/events
https://github.com/tensorflow/tensorflow/pull/61094
1,777,322,970
PR_kwDOArmXAs5UDiR1
61,094
Cherry-pick: Fix unit test failure caused by numpy update
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-27T16:16:32
2023-06-27T19:16:42
2023-06-27T18:05:39
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61094", "html_url": "https://github.com/tensorflow/tensorflow/pull/61094", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61094.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61094.patch", "merged_at": "2023-06-27T18:05:39" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61094/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/61094/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61093
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61093/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61093/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61093/events
https://github.com/tensorflow/tensorflow/pull/61093
1,777,227,691
PR_kwDOArmXAs5UDNSK
61,093
Update oneDNN reorder on AArch64
{ "login": "cfRod", "id": 65665931, "node_id": "MDQ6VXNlcjY1NjY1OTMx", "avatar_url": "https://avatars.githubusercontent.com/u/65665931?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cfRod", "html_url": "https://github.com/cfRod", "followers_url": "https://api.github.com/users/cfRod/followers", "following_url": "https://api.github.com/users/cfRod/following{/other_user}", "gists_url": "https://api.github.com/users/cfRod/gists{/gist_id}", "starred_url": "https://api.github.com/users/cfRod/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cfRod/subscriptions", "organizations_url": "https://api.github.com/users/cfRod/orgs", "repos_url": "https://api.github.com/users/cfRod/repos", "events_url": "https://api.github.com/users/cfRod/events{/privacy}", "received_events_url": "https://api.github.com/users/cfRod/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
[ "@penpornk ", "Closing this since it is a subset of #61123 which is now merged. Thank you very much again, @cfRod!" ]
2023-06-27T15:23:08
2023-07-13T19:17:33
2023-07-13T19:17:29
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61093", "html_url": "https://github.com/tensorflow/tensorflow/pull/61093", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61093.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61093.patch", "merged_at": null }
This PR backports this oneDNN PR (https://github.com/oneapi-src/oneDNN/pull/1475/files) authored by me that has already been merged into oneDNN upstream.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61093/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/61093/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61092
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61092/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61092/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61092/events
https://github.com/tensorflow/tensorflow/issues/61092
1,776,777,721
I_kwDOArmXAs5p53n5
61,092
Lack of Documentation for GPU Use, Especially in Metal GPUs in MacBook M1, M1 Max and M2 Chips
{ "login": "Killpit", "id": 57031187, "node_id": "MDQ6VXNlcjU3MDMxMTg3", "avatar_url": "https://avatars.githubusercontent.com/u/57031187?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Killpit", "html_url": "https://github.com/Killpit", "followers_url": "https://api.github.com/users/Killpit/followers", "following_url": "https://api.github.com/users/Killpit/following{/other_user}", "gists_url": "https://api.github.com/users/Killpit/gists{/gist_id}", "starred_url": "https://api.github.com/users/Killpit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Killpit/subscriptions", "organizations_url": "https://api.github.com/users/Killpit/orgs", "repos_url": "https://api.github.com/users/Killpit/repos", "events_url": "https://api.github.com/users/Killpit/events{/privacy}", "received_events_url": "https://api.github.com/users/Killpit/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": 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": 2012480497, "node_id": "MDU6TGFiZWwyMDEyNDgwNDk3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-feature", "name": "type:docs-feature", "color": "159b2e", "default": false, "description": "Doc issues for new feature, or clarifications about functionality" } ]
closed
false
{ "login": "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,\r\n\r\nThanks for reporting the issue.\r\n\r\nTensorflow Metal support for M1 and M2 were not officially supported by us. \r\nAs shown in the warning, the performance impact for M1 and M2 is shown.\r\n\r\nIf your issue is specific to the warning you have mentioned, as mentioned in the warning, please use `tf.keras.optimizers.legacy.Adam`, this is the optimizer which was used till 2.10 version until new optimizer was made as default `tf.keras.optimizers.Adam`", "Should I use TensorFlow 2.10 or should O write tf.keras.optimizers.legacy.Adam until the problem is solved.", "Yes, you are right, you can use `tf.keras.optimizers.legacy.Adam` until the performance issue related to M1, M2 is solved.\r\nIf it is not impacting too much, you can continue using the new `Adam` optimizer", "If I'm not mistaken, I should use tf.keras.optimizers.legacy Adam for Tensorflor 2.11+", "Yes, to get the better performance on M1 & M2.", "Can we use it for loss functions too?", "Hi, For loss functions, please use one of the https://www.tensorflow.org/api_docs/python/tf/keras/losses" ]
2023-06-27T12:04:56
2023-06-30T15:34:12
2023-06-30T11:51:00
NONE
null
null
null
Hi, Whenever I tried to use a GPU on MPS with MacBook M1, I generally fail to use the GPU and whenever I tried to reach out to documentation for help, it doesn't provide much help. In addition to the documentation issue, there's a slowdown on M1, M1 Max and M2 chips when I use TensorFlow 2.11+ WARNING:absl:At this time, the v2.11+ optimizer `tf.keras.optimizers.Adam` runs slowly on M1/M2 Macs, please use the legacy Keras optimizer instead, located at `tf.keras.optimizers.legacy.Adam`. WARNING:absl:There is a known slowdown when using v2.11+ Keras optimizers on M1/M2 Macs. Falling back to the legacy Keras optimizer, i.e., `tf.keras.optimizers.legacy.Adam`. Epoch 1/5 2023-06-27 14:57:34.718668: I tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.cc:114] Plugin optimizer for device_type GPU is enabled. 517/517 [==============================] - ETA: 0s - loss: 0.4559 - accuracy: 0.82332023-06-27 14:58:57.433849: I tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.cc:114] Plugin optimizer for device_type GPU is enabled.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61092/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/61092/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61091
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61091/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61091/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61091/events
https://github.com/tensorflow/tensorflow/issues/61091
1,776,492,830
I_kwDOArmXAs5p4yEe
61,091
NoClassDefFoundError: GpuDelegateFactory$Options not found
{ "login": "ZTMIDGO", "id": 50280785, "node_id": "MDQ6VXNlcjUwMjgwNzg1", "avatar_url": "https://avatars.githubusercontent.com/u/50280785?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZTMIDGO", "html_url": "https://github.com/ZTMIDGO", "followers_url": "https://api.github.com/users/ZTMIDGO/followers", "following_url": "https://api.github.com/users/ZTMIDGO/following{/other_user}", "gists_url": "https://api.github.com/users/ZTMIDGO/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZTMIDGO/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZTMIDGO/subscriptions", "organizations_url": "https://api.github.com/users/ZTMIDGO/orgs", "repos_url": "https://api.github.com/users/ZTMIDGO/repos", "events_url": "https://api.github.com/users/ZTMIDGO/events{/privacy}", "received_events_url": "https://api.github.com/users/ZTMIDGO/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": 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" }, { "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
[ "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/61091\">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/61091\">No</a>\n", "@ZTMIDGO,\r\nCould you please provide the complete standalone code to reproduce the issue and also it helps to analyse the issue in an effective way. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61091\">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/61091\">No</a>\n" ]
2023-06-27T09:35:46
2023-09-02T01:46:31
2023-09-02T01:46:22
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? False ### Source source ### Tensorflow Version TF2.12 ### Custom Code Yes ### OS Platform and Distribution Android 12 ### Mobile device Android 12 ### 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 GPU is not being used correctly. ### Standalone code to reproduce the issue ```shell implementation 'org.tensorflow:tensorflow-lite:2.12.0' implementation 'org.tensorflow:tensorflow-lite-gpu:2.12.0' Interpreter.Options options = new Interpreter.Options(); options.addDelegate(new GpuDelegate()); File file = new File(getFilesDir().getAbsolutePath()+"/movenet_thunder.tflite"); Interpreter interpreter = new Interpreter(file, options); ``` ### Relevant log output ```shell E/AndroidRuntime: FATAL EXCEPTION: main Process: com.litesnap.open.flow.diffusion, PID: 13553 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/tensorflow/lite/gpu/GpuDelegateFactory$Options; at org.tensorflow.lite.gpu.GpuDelegate.<init>(GpuDelegate.java:53) at com.litesnap.open.flow.diffusion.MainActivity$1.onClick(MainActivity.java:27) at android.view.View.performClick(View.java:7792) at android.widget.TextView.performClick(TextView.java:16112) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1131) at android.view.View.performClickInternal(View.java:7769) at android.view.View.access$3800(View.java:910) at android.view.View$PerformClick.run(View.java:30218) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8663) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.tensorflow.lite.gpu.GpuDelegateFactory$Options" on path: DexPathList[[zip file "/data/app/~~oMimw9IoQp1ajJTsKEnrxQ==/com.litesnap.open.flow.diffusion-s0YwqVUhGU20kZbxCKdqXw==/base.apk"],nativeLibraryDirectories=[/data/app/~~oMimw9IoQp1ajJTsKEnrxQ==/com.litesnap.open.flow.diffusion-s0YwqVUhGU20kZbxCKdqXw==/lib/arm64, /data/app/~~oMimw9IoQp1ajJTsKEnrxQ==/com.litesnap.open.flow.diffusion-s0YwqVUhGU20kZbxCKdqXw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at org.tensorflow.lite.gpu.GpuDelegate.<init>(GpuDelegate.java:53)  at com.litesnap.open.flow.diffusion.MainActivity$1.onClick(MainActivity.java:27)  at android.view.View.performClick(View.java:7792)  at android.widget.TextView.performClick(TextView.java:16112)  at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1131)  at android.view.View.performClickInternal(View.java:7769)  at android.view.View.access$3800(View.java:910)  at android.view.View$PerformClick.run(View.java:30218)  at android.os.Handler.handleCallback(Handler.java:938)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loopOnce(Looper.java:226)  at android.os.Looper.loop(Looper.java:313)  at android.app.ActivityThread.main(ActivityThread.java:8663)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)  ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61091/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/61091/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61090
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61090/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61090/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61090/events
https://github.com/tensorflow/tensorflow/issues/61090
1,776,469,269
I_kwDOArmXAs5p4sUV
61,090
The relationship between the parameters of Conv2D is unclear
{ "login": "PhyllisJi", "id": 34181680, "node_id": "MDQ6VXNlcjM0MTgxNjgw", "avatar_url": "https://avatars.githubusercontent.com/u/34181680?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PhyllisJi", "html_url": "https://github.com/PhyllisJi", "followers_url": "https://api.github.com/users/PhyllisJi/followers", "following_url": "https://api.github.com/users/PhyllisJi/following{/other_user}", "gists_url": "https://api.github.com/users/PhyllisJi/gists{/gist_id}", "starred_url": "https://api.github.com/users/PhyllisJi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PhyllisJi/subscriptions", "organizations_url": "https://api.github.com/users/PhyllisJi/orgs", "repos_url": "https://api.github.com/users/PhyllisJi/repos", "events_url": "https://api.github.com/users/PhyllisJi/events{/privacy}", "received_events_url": "https://api.github.com/users/PhyllisJi/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @PhyllisJi ,\r\n\r\nThanks for reaching us. The documentation of [tf.keras.layers.Conv2D](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv2D) for the argument `strides` as below:\r\n\r\n\r\n> \r\n> strides | An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width. Can be a single integer to specify the same value for all spatial dimensions. Specifying any stride value != 1 is incompatible with specifying any dilation_rate value != 1.\r\n> -- | --\r\n> \r\n\r\nSimilarly for the argument `dilation_rate` the desrciption is as below.\r\n\r\n\r\n\r\n> dilation_rate | an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution. Can be a single integer to specify the same value for all spatial dimensions. Currently, specifying any dilation_rate value != 1 is incompatible with specifying any stride value != 1.\r\n> -- | --\r\n> \r\n\r\nBoth the argument description states that when `strides != 1` then `dilation_rate` should be `1` . Also if dilation_rate !=1 then strides should be `strides=1`. There is interdependency in between these two arguments. The documentation seems little tricky here to understand but it is documented already.\r\n\r\nI am attaching a [gist](https://colab.research.google.com/gist/SuryanarayanaY/c1f9b91a6ff6eea4e2429ff01d6fae52/61090.ipynb) for the demo also. Hope this will clarify.\r\n\r\nThanks!\r\n\r\n\r\n\r\n\r\n", "> Hi @PhyllisJi ,\r\n> \r\n> Thanks for reaching us. The documentation of [tf.keras.layers.Conv2D](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv2D) for the argument `strides` as below:\r\n> \r\n> > strides\r\n> > An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width. Can be a single integer to specify the same value for all spatial dimensions. Specifying any stride value != 1 is incompatible with specifying any dilation_rate value != 1.\r\n> \r\n> Similarly for the argument `dilation_rate` the desrciption is as below.\r\n> \r\n> > dilation_rate\r\n> > an integer or tuple/list of 2 integers, specifying the dilation rate to use for dilated convolution. Can be a single integer to specify the same value for all spatial dimensions. Currently, specifying any dilation_rate value != 1 is incompatible with specifying any stride value != 1.\r\n> \r\n> Both the argument description states that when `strides != 1` then `dilation_rate` should be `1` . Also if dilation_rate !=1 then strides should be `strides=1`. There is interdependency in between these two arguments. The documentation seems little tricky here to understand but it is documented already.\r\n> \r\n> I am attaching a [gist](https://colab.research.google.com/gist/SuryanarayanaY/c1f9b91a6ff6eea4e2429ff01d6fae52/61090.ipynb) for the demo also. Hope this will clarify.\r\n> \r\n> Thanks!\r\n\r\nThank you for your answers!", "@PhyllisJi ,\r\n\r\nThanks for confirmation. Can we mark this as resolved now? Please feel free to close the issue if 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/61090\">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/61090\">No</a>\n" ]
2023-06-27T09:22:41
2023-07-19T02:20:45
2023-07-19T02:20:43
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version tf2.12.0 ### Custom Code Yes ### OS Platform and Distribution MacOs ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ``` ValueError: `strides > 1` not supported in conjunction with `dilation_rate > 1`. Received: strides=[2, 2] and dilation_rate=[4, 5] ``` The relationship between these two parameters is not clearly defined in the documentation, and it is not certain. Be unaware of that `strides > 1` not supported in conjunction with `dilation_rate > 1`. ### Standalone code to reproduce the issue ```shell import tensorflow as tf from tensorflow.python.keras.layers import Conv2D input_tensor = tf.random.normal(shape=(1, 32, 32, 3)) x = Conv2D(filters=2, kernel_size=(1,1), strides=(2,2), padding="same", use_bias=False, dilation_rate=(4, 5))(input_tensor) print(x.shape) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61090/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/61090/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61089
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61089/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61089/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61089/events
https://github.com/tensorflow/tensorflow/issues/61089
1,776,257,288
I_kwDOArmXAs5p34kI
61,089
Error about using TensorFlow1.14
{ "login": "SupermanTai", "id": 90685924, "node_id": "MDQ6VXNlcjkwNjg1OTI0", "avatar_url": "https://avatars.githubusercontent.com/u/90685924?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SupermanTai", "html_url": "https://github.com/SupermanTai", "followers_url": "https://api.github.com/users/SupermanTai/followers", "following_url": "https://api.github.com/users/SupermanTai/following{/other_user}", "gists_url": "https://api.github.com/users/SupermanTai/gists{/gist_id}", "starred_url": "https://api.github.com/users/SupermanTai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SupermanTai/subscriptions", "organizations_url": "https://api.github.com/users/SupermanTai/orgs", "repos_url": "https://api.github.com/users/SupermanTai/repos", "events_url": "https://api.github.com/users/SupermanTai/events{/privacy}", "received_events_url": "https://api.github.com/users/SupermanTai/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 1445545631, "node_id": "MDU6TGFiZWwxNDQ1NTQ1NjMx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%201.14", "name": "TF 1.14", "color": "5319e7", "default": false, "description": "for issues seen with TF 1.14" } ]
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
[ "@SupermanTai,\r\nWe see that you are using tf version 1.14, 1.x is not actively supported, please update to 2.x and let us know if you are facing the same issue. \r\n\r\nAnd also you have provided the code which is suitable for 1.x version. Could you please try to migrate your TensorFlow code from TensorFlow 1.x to TensorFlow 2 with the help of this official document.\r\nhttps://www.tensorflow.org/guide/migrate\r\n\r\nAlso please try to install the tensorflow latest stable version by referring to the official build documentation.\r\nhttps://www.tensorflow.org/install\r\n\r\nThank you!", "Tensorflow 1 is no longer supported, To ease the process of conversion you can install Tensorflow and Tensorflow-upgrade using the following Commands\r\n\r\n`pip install tensorflow`\r\n\r\nand\r\n\r\n`pip install tensorflow-upgrade`\r\n\r\nRun the upgrade script on your TensorFlow 1.x code:\r\n\r\n`tensorflow-upgrade --infile your_script.py --outfile upgraded_script.py`\r\n\r\nReplace **your_script.py** with the name to your TensorFlow 1.x script, this will remove all the depracated methods and replace them with new ones in the new script.", "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/61089\">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/61089\">No</a>\n" ]
2023-06-27T07:18:19
2023-07-15T02:09:00
2023-07-15T02:08:58
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 1.14.0 ### Custom Code Yes ### OS Platform and Distribution Ubuntu18.04 ### Mobile device Ubuntu18.04 ### Python version 3.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cuda10.0 cudnn7.6.5 ### GPU model and memory 24G ### Current Behaviour? I use Ubuntu18.04 system, cuda10.0, cudnn7.6.4, graphics card is a30,24G; TensorFlow1.14.0 was used to make ner model, but an error occurred when running, and there was no error when using it before. It can be run on another device with no change in the code. I hope to get your reply and help. ### Standalone code to reproduce the issue ```shell import tensorflow as tf from tensorflow.contrib.crf import crf_log_likelihood from tensorflow.contrib.layers.python.layers import initializers from albert import modeling import models.rnncell as rnn from models.file_path import BaseConfig class Config(BaseConfig): batch_size = 128 epoch = 100 print_per_batch = 100 clip = 5 dropout_keep_prob = 0.5 lr = 0.0001 optimizer = 'adam' zeros = False lower = True num_tags = None lstm_dim = 200 max_seq_len = 256 max_epoch = 100 steps_check = 100 class AlbertBiLstmCrf(object): def __init__(self, config): self.config = config # 为模型添加占位符 self.input_ids = tf.placeholder(dtype=tf.int32, shape=[None, None], name="input_ids") self.input_mask = tf.placeholder(dtype=tf.int32, shape=[None, None], name="input_mask") self.segment_ids = tf.placeholder(dtype=tf.int32, shape=[None, None], name="segment_ids") self.targets = tf.placeholder(dtype=tf.int32, shape=[None, None], name="Targets") self.dropout = tf.placeholder(dtype=tf.float32, name="Dropout") self.global_step = tf.Variable(0, trainable=False) self.best_dev_f1 = tf.Variable(0.0, trainable=False) self.initializer = initializers.xavier_initializer() self.albert_bilstm_crf() def albert_bilstm_crf(self): # parameter used = tf.sign(tf.abs(self.input_ids)) length = tf.reduce_sum(used, reduction_indices=1) self.lengths = tf.cast(length, tf.int32) self.batch_size = tf.shape(self.input_ids)[0] self.num_steps = tf.shape(self.input_ids)[-1] # albert embedding embedding = self.bert_embedding() # dropout lstm_inputs = tf.nn.dropout(embedding, self.dropout) # bi-lstm layer lstm_outputs = self.biLSTM_layer(lstm_inputs, self.config.lstm_dim, self.lengths) # logits for tags self.logits = self.project_layer(lstm_outputs) # loss of the model self.loss = self.loss_layer(self.logits, self.lengths) # bert模型参数初始化的地方 init_checkpoint = self.config.init_checkpoint # 获取模型中所有的训练参数。 tvars = tf.trainable_variables() # 加载BERT模型 (assignment_map, initialized_variable_names) = modeling.get_assignment_map_from_checkpoint(tvars, init_checkpoint) tf.train.init_from_checkpoint(init_checkpoint, assignment_map) # 打印加载模型的参数 train_vars = [] for var in tvars: init_string = "" if var.name in initialized_variable_names: init_string = ", *INIT_FROM_CKPT*" else: train_vars.append(var) # print(" name = %s, shape = %s%s", var.name, var.shape,init_string) optimizer = self.config.optimizer if optimizer == "adam": self.opt = tf.train.AdamOptimizer(self.config.lr) else: raise KeyError grads = tf.gradients(self.loss, train_vars) (grads, _) = tf.clip_by_global_norm(grads, clip_norm=1.0) self.train_op = self.opt.apply_gradients(zip(grads, train_vars), global_step=self.global_step) def bert_embedding(self): # load bert embedding albert_config = modeling.AlbertConfig.from_json_file(self.config.bert_config_path) # 配置文件地址。 model = modeling.AlbertModel( config=albert_config, is_training=True, input_ids=self.input_ids, input_mask=self.input_mask, token_type_ids=self.segment_ids, use_one_hot_embeddings=False) embedding = model.get_sequence_output() return embedding def biLSTM_layer(self, lstm_inputs, lstm_dim, lengths, name=None): #lstm_inputs: [batch_size, num_steps, emb_size] return:[batch_size, num_steps, 2*lstm_dim] with tf.variable_scope("char_BiLSTM" if not name else name): lstm_cell = {} for direction in ["forward", "backward"]: with tf.variable_scope(direction): lstm_cell[direction] = rnn.CoupledInputForgetGateLSTMCell( lstm_dim, use_peepholes=True, initializer=self.initializer, state_is_tuple=True) outputs, final_states = tf.nn.bidirectional_dynamic_rnn( lstm_cell["forward"], lstm_cell["backward"], lstm_inputs, dtype=tf.float32, sequence_length=lengths) return tf.concat(outputs, axis=2) def project_layer(self, lstm_outputs, name=None): #lstm和logits之间的隐藏层 #lstm_outputs: [batch_size, num_steps, emb_size] return: [batch_size, num_steps, num_tags] with tf.variable_scope("project" if not name else name): with tf.variable_scope("hidden"): W = tf.get_variable("W", shape=[self.config.lstm_dim * 2, self.config.lstm_dim],dtype=tf.float32, initializer=self.initializer) b = tf.get_variable("b", shape=[self.config.lstm_dim], dtype=tf.float32,initializer=tf.zeros_initializer()) output = tf.reshape(lstm_outputs, shape=[-1, self.config.lstm_dim * 2]) hidden = tf.tanh(tf.nn.xw_plus_b(output, W, b)) # project to score of tags with tf.variable_scope("logits"): W = tf.get_variable("W", shape=[self.config.lstm_dim, self.config.num_tags],dtype=tf.float32, initializer=self.initializer) b = tf.get_variable("b", shape=[self.config.num_tags], dtype=tf.float32,initializer=tf.zeros_initializer()) pred = tf.nn.xw_plus_b(hidden, W, b) return tf.reshape(pred, [-1, self.num_steps, self.config.num_tags]) def loss_layer(self, project_logits, lengths, name=None): #计算crf损失 with tf.variable_scope("crf_loss" if not name else name): small = -1000.0 # pad logits for crf loss start_logits = tf.concat([small * tf.ones(shape=[self.batch_size, 1, self.config.num_tags]),tf.zeros(shape=[self.batch_size, 1, 1])],axis=-1) pad_logits = tf.cast(small * tf.ones([self.batch_size, self.num_steps, 1]), tf.float32) logits = tf.concat([project_logits, pad_logits], axis=-1) logits = tf.concat([start_logits, logits], axis=1) targets = tf.concat([tf.cast(self.config.num_tags * tf.ones([self.batch_size, 1]), tf.int32), self.targets], axis=-1) self.trans = tf.get_variable("transitions",shape=[self.config.num_tags + 1, self.config.num_tags + 1],initializer=self.initializer) #对数似然 log_likelihood, self.trans = crf_log_likelihood( inputs=logits, tag_indices=targets, transition_params=self.trans, sequence_lengths=lengths + 1) return tf.reduce_mean(-log_likelihood) ``` ### Relevant log output ```shell 2023-06-27 14:12:06.722268: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA 2023-06-27 14:12:06.728420: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1 2023-06-27 14:12:06.834462: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5647fd4400f0 executing computations on platform CUDA. Devices: 2023-06-27 14:12:06.834508: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): NVIDIA A30, Compute Capability 8.0 2023-06-27 14:12:06.838777: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2400000000 Hz 2023-06-27 14:12:06.839586: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5647fb24a440 executing computations on platform Host. Devices: 2023-06-27 14:12:06.839615: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): <undefined>, <undefined> 2023-06-27 14:12:06.840801: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: NVIDIA A30 major: 8 minor: 0 memoryClockRate(GHz): 1.44 pciBusID: 0000:65:00.0 2023-06-27 14:12:06.841076: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0 2023-06-27 14:12:06.842475: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0 2023-06-27 14:12:06.843695: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10.0 2023-06-27 14:12:06.844007: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10.0 2023-06-27 14:12:06.845668: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10.0 2023-06-27 14:12:06.846956: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10.0 2023-06-27 14:12:06.850503: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7 2023-06-27 14:12:06.852002: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0 2023-06-27 14:12:06.852036: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0 2023-06-27 14:12:06.853078: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix: 2023-06-27 14:12:06.853091: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187] 0 2023-06-27 14:12:06.853099: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0: N 2023-06-27 14:12:06.854597: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 12129 MB memory) -> physical GPU (device: 0, name: NVIDIA A30, pci bus id: 0000:65:00.0, compute capability: 8.0) 2023-06-27 14:12:06,855 - /root/Tai/Project/ANER-规范性文件清单/log/train.log - INFO - Created model with fresh parameters. 2023-06-27 14:12:07.187507: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. 2023-06-27 14:14:18,782 - /root/Tai/Project/ANER-规范性文件清单/log/train.log - INFO - start training 2023-06-27 14:14:20.096642: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0 2023-06-27 14:14:22.597785: E tensorflow/stream_executor/cuda/cuda_blas.cc:428] failed to run cuBLAS routine: CUBLAS_STATUS_EXECUTION_FAILED Traceback (most recent call last): File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1356, in _do_call return fn(*args) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1341, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1429, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found. (0) Internal: Blas GEMM launch failed : a.shape=(16384, 2), b.shape=(2, 128), m=16384, n=128, k=2 [[{{node bert/embeddings/MatMul}}]] [[Adam/update/_278]] (1) Internal: Blas GEMM launch failed : a.shape=(16384, 2), b.shape=(2, 128), m=16384, n=128, k=2 [[{{node bert/embeddings/MatMul}}]] 0 successful operations. 0 derived errors ignored. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "train.py", line 69, in <module> train(model, config, train_manager, dev_manager, id_to_tag) File "train.py", line 38, in train global_step, batch_loss, _ = sess.run([model.global_step, model.loss, model.train_op], feed_dict) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 950, in run run_metadata_ptr) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1173, in _run feed_dict_tensor, options, run_metadata) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350, in _do_run run_metadata) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1370, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found. (0) Internal: Blas GEMM launch failed : a.shape=(16384, 2), b.shape=(2, 128), m=16384, n=128, k=2 [[node bert/embeddings/MatMul (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:552) ]] [[Adam/update/_278]] (1) Internal: Blas GEMM launch failed : a.shape=(16384, 2), b.shape=(2, 128), m=16384, n=128, k=2 [[node bert/embeddings/MatMul (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:552) ]] 0 successful operations. 0 derived errors ignored. Errors may have originated from an input operation. Input Source operations connected to node bert/embeddings/MatMul: bert/embeddings/token_type_embeddings/read (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:547) bert/embeddings/one_hot (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:551) Input Source operations connected to node bert/embeddings/MatMul: bert/embeddings/token_type_embeddings/read (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:547) bert/embeddings/one_hot (defined at /root/Tai/Project/ANER-规范性文件清单/albert/modeling.py:551) Original stack trace for 'bert/embeddings/MatMul': File "train.py", line 66, in <module> model = AlbertBiLstmCrf(config) File "/root/Tai/Project/ANER-规范性文件清单/models/modeling_BBC.py", line 42, in __init__ self.albert_bilstm_crf() File "/root/Tai/Project/ANER-规范性文件清单/models/modeling_BBC.py", line 53, in albert_bilstm_crf embedding = self.bert_embedding() File "/root/Tai/Project/ANER-规范性文件清单/models/modeling_BBC.py", line 99, in bert_embedding use_one_hot_embeddings=False) File "/root/Tai/Project/ANER-规范性文件清单/albert/modeling.py", line 207, in __init__ dropout_prob=config.hidden_dropout_prob) File "/root/Tai/Project/ANER-规范性文件清单/albert/modeling.py", line 552, in embedding_postprocessor token_type_embeddings = tf.matmul(one_hot_ids, token_type_table) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/util/dispatch.py", line 180, in wrapper return target(*args, **kwargs) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py", line 2647, in matmul a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py", line 5925, in mat_mul name=name) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper op_def=op_def) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func return func(*args, **kwargs) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op op_def=op_def) File "/root/anaconda3/envs/ner/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2005, in __init__ ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61089/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/61089/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61088
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61088/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61088/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61088/events
https://github.com/tensorflow/tensorflow/pull/61088
1,776,107,204
PR_kwDOArmXAs5T_YKW
61,088
Update models.BUILD
{ "login": "TirthHPatel", "id": 137406887, "node_id": "U_kgDOCDCppw", "avatar_url": "https://avatars.githubusercontent.com/u/137406887?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TirthHPatel", "html_url": "https://github.com/TirthHPatel", "followers_url": "https://api.github.com/users/TirthHPatel/followers", "following_url": "https://api.github.com/users/TirthHPatel/following{/other_user}", "gists_url": "https://api.github.com/users/TirthHPatel/gists{/gist_id}", "starred_url": "https://api.github.com/users/TirthHPatel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TirthHPatel/subscriptions", "organizations_url": "https://api.github.com/users/TirthHPatel/orgs", "repos_url": "https://api.github.com/users/TirthHPatel/repos", "events_url": "https://api.github.com/users/TirthHPatel/events{/privacy}", "received_events_url": "https://api.github.com/users/TirthHPatel/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "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/61088/checks?check_run_id=14577853119) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-06-27T05:14:19
2023-06-29T17:35:22
2023-06-27T05:24:19
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61088", "html_url": "https://github.com/tensorflow/tensorflow/pull/61088", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61088.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61088.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61088/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/61088/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61087
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61087/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61087/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61087/events
https://github.com/tensorflow/tensorflow/pull/61087
1,775,895,895
PR_kwDOArmXAs5T-r7D
61,087
Numerous improvements made to the tensorflow_issue_template
{ "login": "rylan-justice", "id": 119366377, "node_id": "U_kgDOBx1i6Q", "avatar_url": "https://avatars.githubusercontent.com/u/119366377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rylan-justice", "html_url": "https://github.com/rylan-justice", "followers_url": "https://api.github.com/users/rylan-justice/followers", "following_url": "https://api.github.com/users/rylan-justice/following{/other_user}", "gists_url": "https://api.github.com/users/rylan-justice/gists{/gist_id}", "starred_url": "https://api.github.com/users/rylan-justice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rylan-justice/subscriptions", "organizations_url": "https://api.github.com/users/rylan-justice/orgs", "repos_url": "https://api.github.com/users/rylan-justice/repos", "events_url": "https://api.github.com/users/rylan-justice/events{/privacy}", "received_events_url": "https://api.github.com/users/rylan-justice/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Sorry for the inconvenience! Did the recent commits fix the issue?\r\n\r\nhttps://github.com/tensorflow/tensorflow/pull/61087/commits/b0551ae6d15e32323d43c88c2985e80229326d39", "Not really, it still shows as the file being deleted and recreated.\r\n\r\nI think it also gets confused by the fact that there are so many merge commits. You don't need to merge main branch if there is no conflict.\r\n\r\nAre you creating the PR from the GitHub UI? From Visual Studio Code? From command line?", "Oh, okay. Would it be best to close the pull request and submit a new one? Sorry about that! I'm new to GitHub. I'm creating the pull request from the GitHub UI.", "Press `.` on the repository page and you'll get a Visual Code interface where you can move files around, etc.\r\n\r\nAlternatively, please make 2 PRs, one with the file moving and one with the edits.", "Okay, I'll do so. Thank you!" ]
2023-06-27T00:33:41
2023-06-27T19:32:37
2023-06-27T18:57:47
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61087", "html_url": "https://github.com/tensorflow/tensorflow/pull/61087", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61087.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61087.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61087/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/61087/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61086
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61086/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61086/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61086/events
https://github.com/tensorflow/tensorflow/pull/61086
1,775,526,277
PR_kwDOArmXAs5T9emu
61,086
Update tf_env_collect.sh
{ "login": "inshalbaig123", "id": 108182605, "node_id": "U_kgDOBnK8TQ", "avatar_url": "https://avatars.githubusercontent.com/u/108182605?v=4", "gravatar_id": "", "url": "https://api.github.com/users/inshalbaig123", "html_url": "https://github.com/inshalbaig123", "followers_url": "https://api.github.com/users/inshalbaig123/followers", "following_url": "https://api.github.com/users/inshalbaig123/following{/other_user}", "gists_url": "https://api.github.com/users/inshalbaig123/gists{/gist_id}", "starred_url": "https://api.github.com/users/inshalbaig123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/inshalbaig123/subscriptions", "organizations_url": "https://api.github.com/users/inshalbaig123/orgs", "repos_url": "https://api.github.com/users/inshalbaig123/repos", "events_url": "https://api.github.com/users/inshalbaig123/events{/privacy}", "received_events_url": "https://api.github.com/users/inshalbaig123/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" }, { "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
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/61086/checks?check_run_id=14568225472) 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.", "I have update the file", "Hi @inshalbaig123 Can you please sign CLA. Thank you!", "Hi @inshalbaig123 Please don't use \"add file\"/\"update file\"/\"fix file\"/etc. commit messages. These are hard to reason about when looking at the history of the file/repository. Instead, please write explanatory git commit messages.\r\n\r\nThe commit message is also the title of the PR if the PR has only one commit. It is thus twice important to have commit messages that are relevant, as PRs would be easier to understand and easier to analyze in search results.\r\n\r\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/\r\n\r\nThank you for your contribution. " ]
2023-06-26T20:10:33
2023-06-27T06:42:06
2023-06-27T06:41:48
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61086", "html_url": "https://github.com/tensorflow/tensorflow/pull/61086", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61086.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61086.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61086/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/61086/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61085
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61085/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61085/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61085/events
https://github.com/tensorflow/tensorflow/issues/61085
1,775,476,758
I_kwDOArmXAs5p06AW
61,085
TF2.13 Breaks register_keras_serializable
{ "login": "seanpmorgan", "id": 18154355, "node_id": "MDQ6VXNlcjE4MTU0MzU1", "avatar_url": "https://avatars.githubusercontent.com/u/18154355?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seanpmorgan", "html_url": "https://github.com/seanpmorgan", "followers_url": "https://api.github.com/users/seanpmorgan/followers", "following_url": "https://api.github.com/users/seanpmorgan/following{/other_user}", "gists_url": "https://api.github.com/users/seanpmorgan/gists{/gist_id}", "starred_url": "https://api.github.com/users/seanpmorgan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seanpmorgan/subscriptions", "organizations_url": "https://api.github.com/users/seanpmorgan/orgs", "repos_url": "https://api.github.com/users/seanpmorgan/repos", "events_url": "https://api.github.com/users/seanpmorgan/events{/privacy}", "received_events_url": "https://api.github.com/users/seanpmorgan/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
closed
false
{ "login": "fchollet", "id": 710255, "node_id": "MDQ6VXNlcjcxMDI1NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/710255?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fchollet", "html_url": "https://github.com/fchollet", "followers_url": "https://api.github.com/users/fchollet/followers", "following_url": "https://api.github.com/users/fchollet/following{/other_user}", "gists_url": "https://api.github.com/users/fchollet/gists{/gist_id}", "starred_url": "https://api.github.com/users/fchollet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fchollet/subscriptions", "organizations_url": "https://api.github.com/users/fchollet/orgs", "repos_url": "https://api.github.com/users/fchollet/repos", "events_url": "https://api.github.com/users/fchollet/events{/privacy}", "received_events_url": "https://api.github.com/users/fchollet/received_events", "type": "User", "site_admin": false }
[ { "login": "fchollet", "id": 710255, "node_id": "MDQ6VXNlcjcxMDI1NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/710255?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fchollet", "html_url": "https://github.com/fchollet", "followers_url": "https://api.github.com/users/fchollet/followers", "following_url": "https://api.github.com/users/fchollet/following{/other_user}", "gists_url": "https://api.github.com/users/fchollet/gists{/gist_id}", "starred_url": "https://api.github.com/users/fchollet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fchollet/subscriptions", "organizations_url": "https://api.github.com/users/fchollet/orgs", "repos_url": "https://api.github.com/users/fchollet/repos", "events_url": "https://api.github.com/users/fchollet/events{/privacy}", "received_events_url": "https://api.github.com/users/fchollet/received_events", "type": "User", "site_admin": false }, { "login": "nkovela1", "id": 60985914, "node_id": "MDQ6VXNlcjYwOTg1OTE0", "avatar_url": "https://avatars.githubusercontent.com/u/60985914?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nkovela1", "html_url": "https://github.com/nkovela1", "followers_url": "https://api.github.com/users/nkovela1/followers", "following_url": "https://api.github.com/users/nkovela1/following{/other_user}", "gists_url": "https://api.github.com/users/nkovela1/gists{/gist_id}", "starred_url": "https://api.github.com/users/nkovela1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nkovela1/subscriptions", "organizations_url": "https://api.github.com/users/nkovela1/orgs", "repos_url": "https://api.github.com/users/nkovela1/repos", "events_url": "https://api.github.com/users/nkovela1/events{/privacy}", "received_events_url": "https://api.github.com/users/nkovela1/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
[ "Likely related to the new keras saving introduced in the 2.13. Adding Francois and Neel for visibility.", "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/61085\">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/61085\">No</a>\n" ]
2023-06-26T19:46:34
2023-06-27T17:34:40
2023-06-27T17:34:38
MEMBER
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source pypi ### Tensorflow Version TF2.13.0rc2 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? When building TF Addons for TF2.13 we're noticing that our ability to register custom Keras objects as serializable has been broken: ``` @tf.keras.saving.register_keras_serializable('my_package') class MyDense(tf.keras.layers.Dense): def __init__(self, units, **kwargs): super().__init__(units, **kwargs) ``` ### Standalone code to reproduce the issue ```shell Here it is shown as working in TF2.12: https://colab.research.google.com/drive/172A4_GAiSFzWJr6iVAaFYMujVCwbTk3W?usp=sharing Here it breaks in TF2.13: https://colab.research.google.com/drive/16BH2aNXXw3zMVevx7IYMx5cH6fZsREO_?usp=sharing ``` ### Relevant log output ```shell ValueError: Unknown layer: 'MyDense'. Please ensure you are using a `keras.utils.custom_object_scope` and that this object is included in the scope. See https://www.tensorflow.org/guide/keras/save_and_serialize#registering_the_custom_object for details. ``` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61085/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/61085/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61084
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61084/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61084/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61084/events
https://github.com/tensorflow/tensorflow/issues/61084
1,775,466,950
I_kwDOArmXAs5p03nG
61,084
tf.data.Dataset prefetch not fetching data asynchronously
{ "login": "zackwohl", "id": 79778984, "node_id": "MDQ6VXNlcjc5Nzc4OTg0", "avatar_url": "https://avatars.githubusercontent.com/u/79778984?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zackwohl", "html_url": "https://github.com/zackwohl", "followers_url": "https://api.github.com/users/zackwohl/followers", "following_url": "https://api.github.com/users/zackwohl/following{/other_user}", "gists_url": "https://api.github.com/users/zackwohl/gists{/gist_id}", "starred_url": "https://api.github.com/users/zackwohl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zackwohl/subscriptions", "organizations_url": "https://api.github.com/users/zackwohl/orgs", "repos_url": "https://api.github.com/users/zackwohl/repos", "events_url": "https://api.github.com/users/zackwohl/events{/privacy}", "received_events_url": "https://api.github.com/users/zackwohl/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
open
false
{ "login": "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 @zackwohl ,\r\n\r\nThanks for reaching us. Could you able to submit a colab gist replicating the reported behaviour with an image dataset.\r\n\r\nAlso can you confirm the behaviour with `buffer_size=1 or 2` instead of `tf.data.AUTOTUNE` just to cross check the behaviour.\r\n\r\nThanks!", "Hi @SuryanarayanaY, I tried running this with buffer_size=2, and it continued to run synchronously. I've attached images of the tensorboard profiler trace viewer.\r\n\r\n\r\n![gpu_2](https://github.com/tensorflow/tensorflow/assets/79778984/2069a5f8-0595-4c4c-a31e-98388763051d)\r\n![pf_2](https://github.com/tensorflow/tensorflow/assets/79778984/692367ef-7068-4127-9c69-0706465117c4)\r\n\r\n\r\nHow would I submit colab gist and what would you need in terms of data? I currently have my code in a jupyter notebook.\r\n\r\nThanks", "Hi @SuryanarayanaY, just wanted to follow up on next steps here.", "Hi @SuryanarayanaY, I'm still awaiting a response." ]
2023-06-26T19:39:17
2023-07-31T13:52:06
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution Debian/Linux 11 ### Mobile device _No response_ ### Python version 3.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? After implementing a data pipeline using tf.data.Dataset to pull image data from Google Cloud Storage, TensorBoard profiler shows that the GPU compute and CPU prefetch are running synchronously. I used data.Dataset.AUTOTUNE to determine the appropriate prefetch batch size. Monitoring GPU usage while the model is running confirms this with the GPU at 0% utilization to actually computing something for about a 2:1 ratio, which is reflected in the profiler. CPU usage when monitored does not appear to max out. I expected the prefetch to occur concurrently with GPU processing as described in the data.Dataset documentation and tutorials. ![ch](https://github.com/tensorflow/tensorflow/assets/79778984/e96ad312-12b0-4bbb-b06e-f4e4976714b3) ![cp](https://github.com/tensorflow/tensorflow/assets/79778984/f52959d1-23fd-45ed-ba57-5a532afd0972) ![gp](https://github.com/tensorflow/tensorflow/assets/79778984/2b2e15b6-2cf7-40d8-89b1-98889f151863) ### Standalone code to reproduce the issue ```shell os.environ["CUDA_VISIBLE_DEVICES"] = "0" os.environ['TF_GPU_ALLOCATOR'] = "cuda_malloc_async" config = ConfigProto() config.gpu_options.allow_growth = True session = InteractiveSession(config=config) def get_label(file_path): parts = tf.strings.split(file_path, os.path.sep) one_hot = parts[-2] == class_names return tf.argmax(one_hot) def decode_img(img): img = tf.io.decode_image(img, channels=3, expand_animations = False) img = tf.image.resize(img, [244, 244]) img = tf.cast(img, tf.float32) return img def process_path(file_path): label = get_label(file_path) img = tf.io.read_file(file_path) img = decode_img(img) return img, label def configure_for_performance(ds): ds = ds.batch(128) ds = ds.prefetch(buffer_size=tf.data.AUTOTUNE) return ds files = tf.data.Dataset.list_files((data_dir + '/*/*.png'), shuffle=False) files = files.shuffle(image_count, reshuffle_each_iteration=False) val_size = int(image_count * 0.2) train_files = files.skip(val_size) val_files = files.take(val_size) train_ds = train_files.interleave(lambda x: tf.data.Dataset.from_tensor_slices([x]), cycle_length=4, num_parallel_calls=tf.data.AUTOTUNE) train_ds = train_ds.map(process_path, num_parallel_calls=tf.data.AUTOTUNE) val_ds = val_files.interleave(lambda x: tf.data.Dataset.from_tensor_slices([x]), cycle_length=4, num_parallel_calls=tf.data.AUTOTUNE) val_ds = val_ds.map(process_path, num_parallel_calls=tf.data.AUTOTUNE) train_ds = configure_for_performance(train_ds) val_ds = configure_for_performance(val_ds) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61084/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/tensorflow/tensorflow/issues/61084/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61083
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61083/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61083/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61083/events
https://github.com/tensorflow/tensorflow/issues/61083
1,775,265,494
I_kwDOArmXAs5p0GbW
61,083
Not initialized delegate kernel after tflite conversion
{ "login": "Tachimura", "id": 62809228, "node_id": "MDQ6VXNlcjYyODA5MjI4", "avatar_url": "https://avatars.githubusercontent.com/u/62809228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Tachimura", "html_url": "https://github.com/Tachimura", "followers_url": "https://api.github.com/users/Tachimura/followers", "following_url": "https://api.github.com/users/Tachimura/following{/other_user}", "gists_url": "https://api.github.com/users/Tachimura/gists{/gist_id}", "starred_url": "https://api.github.com/users/Tachimura/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tachimura/subscriptions", "organizations_url": "https://api.github.com/users/Tachimura/orgs", "repos_url": "https://api.github.com/users/Tachimura/repos", "events_url": "https://api.github.com/users/Tachimura/events{/privacy}", "received_events_url": "https://api.github.com/users/Tachimura/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
[ "Hi @Tachimura \r\n\r\nThe DepthConv2D layer in TF has known limitation of specifying any stride value != 1 is incompatible with specifying any dilation_rate value !=1. \r\n\r\nAs given in [documentation](https://www.tensorflow.org/api_docs/python/tf/keras/layers/DepthwiseConv2D?hl=en&version=nightly#args)\r\n\r\n>An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width. Can be a single integer to specify the same value for all spatial dimensions. Current implementation only supports equal length strides in row and column dimensions. Specifying any stride value != 1 is incompatible with specifying any dilation_rate value !=1.\r\n\r\nThanks.\r\n\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/61083\">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/61083\">No</a>\n" ]
2023-06-26T17:39:13
2023-07-12T02:08:27
2023-07-12T02:08:24
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 11 - TensorFlow installation (pip package or built from source): pip package - TensorFlow library (version, if pip package or github SHA, if built from source): TensorFlow 2.10.0 ### 2. Code Code to reproduce my issue is attached to this issue. [tf_issue.zip](https://github.com/tensorflow/tensorflow/files/11871912/tf_issue.zip) ### 3. Failure after conversion ``` File "tf_issue\test_ocr.py", line 62, in __call__ self._interpreter.invoke() File "...\venv\lib\site-packages\tensorflow\lite\python\interpreter.py", line 917, in invoke self._interpreter.Invoke() RuntimeError: Current implementation only supports equal length strides in the row and column dimensions.Delegate kernel was not initializedNode number 510 (TfLiteFlexDelegate) failed to prepare. ``` ### 5. (optional) Any other info / logs Hello, I downloaded the OCR model called **en_PP-OCRv3_rec_infer** from the [Paddle repository](https://github.com/PaddlePaddle/PaddleOCR). To prepare it for my purposes, I converted it into the ONNX format and optimized it, following the guidelines provided [here](https://github.com/PaddlePaddle/Paddle2ONNX/blob/develop/README_en.md#command-line-conversion). To ensure compatibility, I defined a static input/output size for the model. Subsequently, I proceeded to convert the ONNX format to TFLite using this [repository](https://github.com/sithu31296/PyTorch-ONNX-TFLite/tree/master#onnx-to-tf). Once the conversion was complete, I loaded the resulting .tflite model into [Neutron](https://netron.app/) without any issues, as it successfully read and visualized the model. However, the problem arises when I attempt to test this model using Python (3.10). The attached zip file contains the code, the model itself, and a sample testing image (It also contain a requirements file with all the packages of my environment). In my case, I utilized an input_shape_dict of "{'x': [1, 3, 48, 320]}" and exported the model in both fp16 and fp32 formats. I also experimented with opset_versions 10 and 16. However, despite these attempts, I encountered the reported failure repeatedly.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61083/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/61083/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61082
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61082/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61082/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61082/events
https://github.com/tensorflow/tensorflow/pull/61082
1,775,255,409
PR_kwDOArmXAs5T8jBA
61,082
Updating Simplified retry logic to DNS cache for patch release 2.12.1
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-06-26T17:32:45
2023-08-08T14:43:39
2023-06-26T19:08:03
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61082", "html_url": "https://github.com/tensorflow/tensorflow/pull/61082", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61082.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61082.patch", "merged_at": "2023-06-26T19:08:03" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61082/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/61082/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61081
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61081/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61081/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61081/events
https://github.com/tensorflow/tensorflow/pull/61081
1,775,036,326
PR_kwDOArmXAs5T7zG2
61,081
Fix ambiguity in use of overloaded functions in XLA
{ "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": 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": 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": 1178505529, "node_id": "MDU6TGFiZWwxMTc4NTA1NTI5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/prtype:bugfix", "name": "prtype:bugfix", "color": "159b2e", "default": false, "description": "PR to fix a bug" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-26T15:19:55
2023-06-28T11:59:45
2023-06-28T07:31:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61081", "html_url": "https://github.com/tensorflow/tensorflow/pull/61081", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61081.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61081.patch", "merged_at": "2023-06-28T07:31:42" }
Fix ambiguity by casting arguments to ensure desired function is used Fixes https://github.com/tensorflow/tensorflow/issues/61068
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61081/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/61081/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61080
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61080/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61080/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61080/events
https://github.com/tensorflow/tensorflow/issues/61080
1,774,484,843
I_kwDOArmXAs5pxH1r
61,080
MHLO -> HLO does not respect sharding, inserting a tuple without sharding
{ "login": "sogartar", "id": 3050579, "node_id": "MDQ6VXNlcjMwNTA1Nzk=", "avatar_url": "https://avatars.githubusercontent.com/u/3050579?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sogartar", "html_url": "https://github.com/sogartar", "followers_url": "https://api.github.com/users/sogartar/followers", "following_url": "https://api.github.com/users/sogartar/following{/other_user}", "gists_url": "https://api.github.com/users/sogartar/gists{/gist_id}", "starred_url": "https://api.github.com/users/sogartar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sogartar/subscriptions", "organizations_url": "https://api.github.com/users/sogartar/orgs", "repos_url": "https://api.github.com/users/sogartar/repos", "events_url": "https://api.github.com/users/sogartar/events{/privacy}", "received_events_url": "https://api.github.com/users/sogartar/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097543484, "node_id": "MDU6TGFiZWwxMDk3NTQzNDg0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:runtime", "name": "comp:runtime", "color": "0052cc", "default": false, "description": "c++ runtime, performance issues (cpu)" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" } ]
open
false
{ "login": "burmako", "id": 1248216, "node_id": "MDQ6VXNlcjEyNDgyMTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1248216?v=4", "gravatar_id": "", "url": "https://api.github.com/users/burmako", "html_url": "https://github.com/burmako", "followers_url": "https://api.github.com/users/burmako/followers", "following_url": "https://api.github.com/users/burmako/following{/other_user}", "gists_url": "https://api.github.com/users/burmako/gists{/gist_id}", "starred_url": "https://api.github.com/users/burmako/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/burmako/subscriptions", "organizations_url": "https://api.github.com/users/burmako/orgs", "repos_url": "https://api.github.com/users/burmako/repos", "events_url": "https://api.github.com/users/burmako/events{/privacy}", "received_events_url": "https://api.github.com/users/burmako/received_events", "type": "User", "site_admin": false }
[ { "login": "burmako", "id": 1248216, "node_id": "MDQ6VXNlcjEyNDgyMTY=", "avatar_url": "https://avatars.githubusercontent.com/u/1248216?v=4", "gravatar_id": "", "url": "https://api.github.com/users/burmako", "html_url": "https://github.com/burmako", "followers_url": "https://api.github.com/users/burmako/followers", "following_url": "https://api.github.com/users/burmako/following{/other_user}", "gists_url": "https://api.github.com/users/burmako/gists{/gist_id}", "starred_url": "https://api.github.com/users/burmako/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/burmako/subscriptions", "organizations_url": "https://api.github.com/users/burmako/orgs", "repos_url": "https://api.github.com/users/burmako/repos", "events_url": "https://api.github.com/users/burmako/events{/privacy}", "received_events_url": "https://api.github.com/users/burmako/received_events", "type": "User", "site_admin": false }, { "login": "kenfranko", "id": 56562020, "node_id": "MDQ6VXNlcjU2NTYyMDIw", "avatar_url": "https://avatars.githubusercontent.com/u/56562020?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kenfranko", "html_url": "https://github.com/kenfranko", "followers_url": "https://api.github.com/users/kenfranko/followers", "following_url": "https://api.github.com/users/kenfranko/following{/other_user}", "gists_url": "https://api.github.com/users/kenfranko/gists{/gist_id}", "starred_url": "https://api.github.com/users/kenfranko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kenfranko/subscriptions", "organizations_url": "https://api.github.com/users/kenfranko/orgs", "repos_url": "https://api.github.com/users/kenfranko/repos", "events_url": "https://api.github.com/users/kenfranko/events{/privacy}", "received_events_url": "https://api.github.com/users/kenfranko/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
[ "Eugene, can you take a look at this?", "Thank you for flagging! Will take a look - I vaguely remember that there were some historical reasons for this, but hopefully it's just because noone had the time to implement this." ]
2023-06-26T10:50:30
2023-07-18T05:54:52
null
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 2e896fbe1e0ea4df33fbcfe780a1036f431b4e89 ### Custom Code Yes ### OS Platform and Distribution Linux Ubunto 20.04 ### Mobile device _No response_ ### Python version 3.11 ### Bazel version _No response_ ### GCC/Compiler version 10.3 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Converting an MHLO program to HLO that is fully annotated with shardings, results in HLO that has a tuple instruction that is without sharding. Input MLIR `sharding-not-respected-mhlo-to-hlo.mlir`: ```mlir func.func @main(%arg0: tensor<2x2xi32> {mhlo.sharding = "{devices=[2,1]0,1}"}) -> (tensor<2x2xi32> {mhlo.sharding = "{devices=[2,1]0,1}"}) { %0 = mhlo.add %arg0, %arg0 {mhlo.sharding = "{devices=[2,1]0,1}"} : tensor<2x2xi32> return %0 : tensor<2x2xi32> } ``` Command: ``` xla-translate -mlir-hlo-to-hlo-text sharding-not-respected-mhlo-to-hlo.mlir ``` Result: ```hlo HloModule main, entry_computation_layout={(s32[2,2]{1,0})->s32[2,2]{1,0}} ENTRY %main.5 (Arg_0.1: s32[2,2]) -> s32[2,2] { %Arg_0.1 = s32[2,2] parameter(0), sharding={devices=[2,1]0,1} %add.2 = s32[2,2] add(s32[2,2] %Arg_0.1, s32[2,2] %Arg_0.1), sharding={devices=[2,1]0,1}, metadata={source_file="sharding-not-respected-mhlo-to-hlo.mlir" source_line=2} %tuple.3 = (s32[2,2]) tuple(s32[2,2] %add.2) ROOT %get-tuple-element.4 = s32[2,2] get-tuple-element((s32[2,2]) %tuple.3), index=0, sharding={devices=[2,1]0,1} } ``` You can see that a tuple instruction has been inserted that has no sharding annotation. ```hlo %tuple.3 = (s32[2,2]) tuple(s32[2,2] %add.2) ``` This [test](https://github.com/tensorflow/tensorflow/blob/2e896fbe1e0ea4df33fbcfe780a1036f431b4e89/tensorflow/compiler/xla/translate/mhlo_to_hlo/tests/sharding.mlir#L21) expects a tuple without sharding. Is this really the expected behavior? For example this tuple instruction would cause a problem if you want to do SPMD partitioning. Then the partitioner would insert an unwanted all-gather instruction. If you do a conversion without sharding of the same MLIR ```mlir func.func @main(%arg0: tensor<2x2xi32>) -> tensor<2x2xi32> { %0 = mhlo.add %arg0, %arg0 : tensor<2x2xi32> return %0 : tensor<2x2xi32> } ``` You get a nicer result without the redundant `tuple` and `get-tuple-element` instructions ```hlo HloModule main, entry_computation_layout={(s32[2,2]{1,0})->s32[2,2]{1,0}} ENTRY %main.3 (Arg_0.1: s32[2,2]) -> s32[2,2] { %Arg_0.1 = s32[2,2] parameter(0) ROOT %add.2 = s32[2,2] add(s32[2,2] %Arg_0.1, s32[2,2] %Arg_0.1), metadata={source_file="sharding-not-respected-mhlo-to-hlo.mlir" source_line=2} } ``` I can see two solutions here. 1. Make the tuple instruction inherit the correct sharding. 2. Return directly the result of the `add` operation. ### Standalone code to reproduce the issue ```shell See the description. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61080/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/61080/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61079
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61079/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61079/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61079/events
https://github.com/tensorflow/tensorflow/pull/61079
1,774,446,696
PR_kwDOArmXAs5T5w9n
61,079
Updating tf.experimental.numpy.vander for N=0
{ "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 }
[ { "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": 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": 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 @SuryanarayanaY Can you please check @cantonios's [comments](https://github.com/tensorflow/tensorflow/pull/61079#pullrequestreview-1498899933) ? Thank you!", "Changes done as requested. Thanks!", "Hi @SuryanarayanaY Any update on this PR? Please. 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.", "Added test case for verifying the changes. May please review and suggest any. Also Indentation errors in earlier commit corrected." ]
2023-06-26T10:27:27
2023-08-09T19:09:13
2023-08-09T19:09:11
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61079", "html_url": "https://github.com/tensorflow/tensorflow/pull/61079", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61079.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61079.patch", "merged_at": "2023-08-09T19:09:11" }
At present the API `tf.experimental.numpy.vander` behaves differently compared to its Numpy variant `numpy.vander` when the argument value of `N=0` . I think the behaviour of Numpy variant is correct.Current TF implementation broadcasts N to `N=shape(x)[0]` when either N=0 or N=None which is not correct. When N=0 there should not be any broadcasting which is equivalent to `numpy.vander` behaviour.Hence proposing the changes in code to get numpy behaviour. Attached the gist for demo in same with and without the code changes and with the proposed change in code numpy behaviour can be achievable. Fixes #60827
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61079/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/61079/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61078
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61078/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61078/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61078/events
https://github.com/tensorflow/tensorflow/pull/61078
1,773,573,844
PR_kwDOArmXAs5T2-ot
61,078
Add text reader fuzzer
{ "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": 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": 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
[ "@fcoUnda ", "Sorry, it seems there is a problem with landing this inside the XLA directory. We are not allowed to accept dependencies into tensorflow. If it is something that should be shared between XLA and Tensorflow, it needs to go into the TSL repository.", "> Sorry, it seems there is a problem with landing this inside the XLA directory. We are not allowed to accept dependencies into tensorflow. If it is something that should be shared between XLA and Tensorflow, it needs to go into the TSL repository.\r\n\r\n@akuegel No problem! I relocated it to the security folder" ]
2023-06-25T23:55:01
2023-07-06T17:23:52
2023-07-06T17:23:51
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61078", "html_url": "https://github.com/tensorflow/tensorflow/pull/61078", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61078.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61078.patch", "merged_at": "2023-07-06T17:23:51" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61078/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/61078/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61077
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61077/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61077/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61077/events
https://github.com/tensorflow/tensorflow/issues/61077
1,773,485,113
I_kwDOArmXAs5ptTw5
61,077
Error to run tf
{ "login": "Setex10", "id": 95155123, "node_id": "U_kgDOBavzsw", "avatar_url": "https://avatars.githubusercontent.com/u/95155123?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Setex10", "html_url": "https://github.com/Setex10", "followers_url": "https://api.github.com/users/Setex10/followers", "following_url": "https://api.github.com/users/Setex10/following{/other_user}", "gists_url": "https://api.github.com/users/Setex10/gists{/gist_id}", "starred_url": "https://api.github.com/users/Setex10/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Setex10/subscriptions", "organizations_url": "https://api.github.com/users/Setex10/orgs", "repos_url": "https://api.github.com/users/Setex10/repos", "events_url": "https://api.github.com/users/Setex10/events{/privacy}", "received_events_url": "https://api.github.com/users/Setex10/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": 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": "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 @Setex10 ,\r\n\r\nOn windows native you need to install Microsoft Visual C++ Redistributable for visual studio code as per instructions mentioned [here](https://www.tensorflow.org/install/pip#software_requirements). Could you please check and confirm.\r\n\r\nThanks!", "i have already, but i have the same error", "Could you please ensure the long paths are enabled or not using the instructions [here](https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing).\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/61077\">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/61077\">No</a>\n" ]
2023-06-25T20:55:00
2023-07-12T02:08:30
2023-07-12T02:08:28
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.10 ### Custom Code Yes ### OS Platform and Distribution Windowsx 11 ### Mobile device _No response_ ### Python version 3.10.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? *When i try to run TensorFlow (import him), i get this error:* ![image](https://github.com/tensorflow/tensorflow/assets/95155123/3b4c7eda-fb5c-4f03-910f-74ba03ebc7ad) ### Standalone code to reproduce the issue ```shell import tensorflow as tf ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61077/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/61077/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61076
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61076/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61076/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61076/events
https://github.com/tensorflow/tensorflow/issues/61076
1,773,412,331
I_kwDOArmXAs5ptB_r
61,076
CUDA_ERROR_NOT_PERMITTED: operation not permitted when fitting model on GPU
{ "login": "pawelremiszewski", "id": 56121843, "node_id": "MDQ6VXNlcjU2MTIxODQz", "avatar_url": "https://avatars.githubusercontent.com/u/56121843?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pawelremiszewski", "html_url": "https://github.com/pawelremiszewski", "followers_url": "https://api.github.com/users/pawelremiszewski/followers", "following_url": "https://api.github.com/users/pawelremiszewski/following{/other_user}", "gists_url": "https://api.github.com/users/pawelremiszewski/gists{/gist_id}", "starred_url": "https://api.github.com/users/pawelremiszewski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pawelremiszewski/subscriptions", "organizations_url": "https://api.github.com/users/pawelremiszewski/orgs", "repos_url": "https://api.github.com/users/pawelremiszewski/repos", "events_url": "https://api.github.com/users/pawelremiszewski/events{/privacy}", "received_events_url": "https://api.github.com/users/pawelremiszewski/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": 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": 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
[ "@pawelremiszewski,\r\nI was facing a different error while executing the mentioned code. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/66ba5681e65198b272d4c880ed71f1cd/untitled1215.ipynb) and provide the complete dependencies. \r\n\r\nAlso the above error occurs when there’s a tensor / cuda object getting created or transferred inside a recorded graph. All CUDA objects need to be initialized on the GPU prior to recording a graph. Could you please try to shut off Cuda graphs in your `config.yaml` using **cuda_graphs = False.** \r\n\r\n[tf.keras.preprocessing.image.ImageDataGenerator](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/ImageDataGenerator) is not recommended for new code. Prefer loading images with [tf.keras.utils.image_dataset_from_directory](https://www.tensorflow.org/api_docs/python/tf/keras/utils/image_dataset_from_directory) and transforming the output [tf.data.Dataset](https://www.tensorflow.org/api_docs/python/tf/data/Dataset) with preprocessing layers. For more information, see the tutorials for [loading images](https://www.tensorflow.org/tutorials/load_data/images) and [augmenting images](https://www.tensorflow.org/tutorials/images/data_augmentation), as well as the [preprocessing layer guide](https://www.tensorflow.org/guide/keras/preprocessing_layers).\r\n\r\nThank you!", "@tilakrayal \r\nCould You please tell me, what more You need in code, to check the correct error?\r\nIt is quite obvious, that You got \"NameError: name 'Y_train' is not defined\", if the variable is not specified, as it is numpy array created from data that I have.\r\nWhat is more, as I see, in untitled1215.ipynb You are using \"2.12.0\" version of tensorflow, in error is 2.10.\r\n\r\nQuestion, \"config.yaml\" - where can I find this file? I can't find it anywhere.\r\n\r\nI cannot use [tf.keras.utils.image_dataset_from_directory], as I have my own dataset in one folder - images and txt files with labels fot them. \r\nI tried to put it all into tf.dataset using tf.data.Dataset.from_tensor_slices, but it caused higher memory usage on GPU, and also it caused input_shape problem in first Conv2D layer, so I dropped this idea\r\n\r\n\r\nAfter all, I found the issue that caused the error.\r\nBefore, I used this code to make it possible for GPU to free memory constantly, to avoid lack of memory:\r\n\"os.environ['TF_GPU_ALLOCATOR'] = 'cuda_malloc_async'\r\nprint(os.getenv('TF_GPU_ALLOCATOR'))\"\r\nI removed it, and error from the title is now showing anymore.\r\n\r\nNow my model starts to fit, but after 1st Epoch, it throws me this:\r\nEpoch 1/5\r\n219/219 [==============================] - ETA: 0s - loss: 1.6949 - accuracy: 0.3793 Traceback (most recent call last):\r\n Cell In[4], line 3\r\n model.fit(\r\n File ~\\anaconda3\\envs\\pawel_engineer\\lib\\site-packages\\keras\\utils\\traceback_utils.py:70 in error_handler\r\n raise e.with_traceback(filtered_tb) from None\r\n File ~\\anaconda3\\envs\\pawel_engineer\\lib\\site-packages\\tensorflow\\python\\eager\\execute.py:54 in quick_execute\r\n tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\r\nResourceExhaustedError: Graph execution error:\r\nDetected at node 'sequential/max_pooling2d/MaxPool' defined at (most recent call last): ......\"\r\nand at the end:\r\nbfc_allocator.cc:1101] Sum Total of in-use chunks: 2.07GiB\r\n2023-06-27 18:53:15.410883: I tensorflow/core/common_runtime/bfc_allocator.cc:1103] total_region_allocated_bytes_: 2236245504 memory_limit_: 2236245607 available bytes: 103 curr_region_allocation_bytes_: 2147483648\r\n2023-06-27 18:53:15.410902: I tensorflow/core/common_runtime/bfc_allocator.cc:1109] Stats: \r\nLimit: 2236245607\r\nInUse: 2218346496\r\nMaxInUse: 2221506304\r\nNumAllocs: 23816\r\nMaxAllocSize: 1374683136\r\nReserved: 0\r\nPeakReserved: 0\r\nLargestFreeBlock: 0\r\n\r\n2023-06-27 18:53:15.410912: W tensorflow/core/common_runtime/bfc_allocator.cc:491] ****************************************************************************************************\r\n2023-06-27 18:53:15.410945: W tensorflow/core/framework/op_kernel.cc:1780] OP_REQUIRES failed at pooling_ops_common.cc:226 : RESOURCE_EXHAUSTED: OOM when allocating tensor with shape[32,63,63,128] and type half on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc", "@pawelremiszewski,\r\nApologies for the delay. The error facing was \"NameError: name 'Y_train' is not defined\" where the Y_train was not mentioned in the given code. \r\n\r\nAlso OOM stands for \"out of memory\". Your GPU is running out of memory, so it can't allocate memory for this tensor. There are a few things you can do:\r\n\r\n- Decrease the number of filters in your Dense, Conv2D layers\r\n- Use a smaller batch_size (or increase steps_per_epoch and validation_steps)\r\n- Use grayscale images (you can use [tf.image.rgb_to_grayscale](https://www.tensorflow.org/api_docs/python/tf/image/rgb_to_grayscale))\r\n- Reduce the number of layers\r\n- Use **MaxPooling2D** layers after convolutional layers\r\n- Reduce the size of your images (you can use [tf.image.resize](https://www.tensorflow.org/api_docs/python/tf/image/resize) for that)\r\n- Use smaller float precision for your input, namely **np.float32**\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/61076\">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/61076\">No</a>\n" ]
2023-06-25T17:59:03
2023-12-12T01:50:05
2023-12-12T01:50:02
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.10.0-rc3-6-g359c3cdfc5f 2.10.0 ### Custom Code Yes ### OS Platform and Distribution Windows 10 ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cuDNN version 8.1 CUDA version 11.2 ### GPU model and memory name: NVIDIA GeForce GTX 1650 Ti, pci bus id: 0000:01:00.0, compute capability: 7.5, memory: 4 GB ### Current Behaviour? A bug happened! I have a problem with fitting my model. Additional informations: This model is about to recognize images. There are 10 classes to predict, co I'm using loss=categorical_crossentropy and last activation Layer is 'softmax' My input data shapes are: print(X_train.shape) -> (3495, 128, 128, 3) print(Y_train.shape) -> (3495, 10) print(X_val.shape) -> (1498, 128, 128, 3) print(Y_val.shape) -> (1498, 10) So it is quite small for test. My GPU is visible - I tested it with: model.add(Activation('sigmoid')) and loss='binary_crossentropy' first and it is running. I have set memory allocation and growth as in code. Everything seemed fine. Now when I changed it to: model.add(Activation('softmax')) and loss='categorical_crossentropy ' - also used 'to_categorical()' for classes array - I'm getting such error: Failed setting context: CUDA_ERROR_NOT_PERMITTED: operation not permitted. Looking at my GPU usage, it doesn't look like it is a memory problem - in peak it is not using even 30% of it. Did anyone ever get such error? I run out of ideas. ### Standalone code to reproduce the issue ```shell gpus = tf.config.list_physical_devices('GPU') tf.config.experimental.set_memory_growth(gpus[0], True) tf.config.set_visible_devices(gpus[:1], device_type='GPU') log_dev_conf = tf.config.LogicalDeviceConfiguration( memory_limit=3*512 ) tf.config.set_logical_device_configuration( gpus[0], [log_dev_conf]) from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.utils import to_categorical from tensorflow.keras.mixed_precision import set_global_policy set_global_policy('mixed_float16') tf.keras.backend.clear_session() Y_train = to_categorical(Y_train, num_classes=10, dtype=int) Y_val = to_categorical(Y_val, num_classes=10, dtype=int) batch_size = 2 data_generator = ImageDataGenerator(rescale=1.0/255.0) data_generator = data_generator.flow(X_train, Y_train, batch_size=batch_size) data_generator_val = ImageDataGenerator(rescale=1.0/255.0) data_generator_val = data_generator_val.flow(X_val, Y_val, batch_size=batch_size) model = Sequential() model.add(Conv2D(128, (3, 3), input_shape=X_train.shape[1:])) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Conv2D(128, (3, 3))) model.add(Activation('relu')) model.add(MaxPooling2D(pool_size=(2, 2))) model.add(Flatten()) model.add(Dense(64)) model.add(Activation('relu')) model.add(Dense(10, dtype='float32')) model.add(Activation('softmax')) model.compile(loss='categorical_crossentropy', optimizer = 'Adam', metrics=['accuracy']) # Train the model using the fit method trained_model = model.fit( data_generator, validation_data=data_generator_val, steps_per_epoch=batch_size, epochs=5 ) ``` ### Relevant log output ```shell Epoch 1/5 2023-06-25 19:13:24.452341: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8100 2023-06-25 19:13:28.511859: F tensorflow/stream_executor/cuda/cuda_driver.cc:147] Failed setting context: CUDA_ERROR_NOT_PERMITTED: operation not permitted Fatal Python error: Aborted Main thread: Thread 0x00000eb8 (most recent call first): File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\execute.py", line 54 in quick_execute File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\function.py", line 499 in call File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\function.py", line 1862 in _call_flat File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\function.py", line 2496 in __call__ File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\def_function.py", line 980 in _call File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\eager\def_function.py", line 915 in __call__ File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\tensorflow\python\util\traceback_utils.py", line 150 in error_handler File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\keras\engine\training.py", line 1564 in fit File "C:\Users\pablitoremiszewski\anaconda3\envs\pawel_engineer\lib\site-packages\keras\utils\traceback_utils.py", line 65 in error_handler File "C:\Users\pablitoremiszewski\AppData\Local\Temp\ipykernel_6540\2599062935.py", line 3 in <module> Restarting kernel... ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61076/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/61076/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61075
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61075/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61075/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61075/events
https://github.com/tensorflow/tensorflow/pull/61075
1,773,118,743
PR_kwDOArmXAs5T1eX2
61,075
Fix unit test failure caused by numpy update
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "As always with this file, it fails the PyLint test due to a pre-existing line length which is not fixable. This same PyLint test is then also repeated in the Code Check test.\r\nThe Py+CPP checks are not valid for this branch as they attempt to use a toolchain that does not exist in this branch." ]
2023-06-25T07:36:38
2023-06-28T12:00:05
2023-06-26T18:05:57
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61075", "html_url": "https://github.com/tensorflow/tensorflow/pull/61075", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61075.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61075.patch", "merged_at": "2023-06-26T18:05:57" }
Limit the version of numpy that will be accepted for install to the last one that works.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61075/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/61075/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61074
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61074/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61074/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61074/events
https://github.com/tensorflow/tensorflow/issues/61074
1,772,776,951
I_kwDOArmXAs5pqm33
61,074
Requested feature_data_ size 536907080 doesn't match 1960; Feature generation failed;
{ "login": "Svobi27", "id": 45993401, "node_id": "MDQ6VXNlcjQ1OTkzNDAx", "avatar_url": "https://avatars.githubusercontent.com/u/45993401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Svobi27", "html_url": "https://github.com/Svobi27", "followers_url": "https://api.github.com/users/Svobi27/followers", "following_url": "https://api.github.com/users/Svobi27/following{/other_user}", "gists_url": "https://api.github.com/users/Svobi27/gists{/gist_id}", "starred_url": "https://api.github.com/users/Svobi27/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Svobi27/subscriptions", "organizations_url": "https://api.github.com/users/Svobi27/orgs", "repos_url": "https://api.github.com/users/Svobi27/repos", "events_url": "https://api.github.com/users/Svobi27/events{/privacy}", "received_events_url": "https://api.github.com/users/Svobi27/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": 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": 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 @Svobi27 \r\n\r\nI was able to run the example after making some changes for TF 2.x version, in TF 2.12 which is the latest stable version. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/c7d860614aa2fe32c06f8514e5f193bc/61074.ipynb).\r\n\r\nThanks.\r\n\r\n", "Hello @pjpratik \r\n\r\nThanks for the response!\r\n\r\nI tried the arduino example with the model from your notebook but i still get the same error message unfortunatly...", "@Svobi27 \r\n\r\nI see that at a ticket [#2709](https://github.com/tensorflow/tflite-micro/issues/2079) has been opened in TFLite Micro repo.\r\n\r\nCould you please close this issue as it being tracked there?\r\n\r\nThanks.", "@pjpratik Done", "Hi @Svobi27 \r\n\r\nAs mentioned earlier, this issue can be closed here and the issue: https://github.com/tensorflow/tflite-micro/issues/2079 can be opened since it is related to TFLite Micro.\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.", "Sorry missunderstood! reopened the issue again in the TFLite Micro repo", "Thanks for opening the issue in TFLite Micro repro. Closing it here.", "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/61074\">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/61074\">No</a>\n" ]
2023-06-24T15:13:55
2023-07-13T10:44:05
2023-07-13T10:44:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version V2.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? Hello Together, I'm having a Problem with the micro_speech example for arduino from this repo: https://github.com/tensorflow/tflite-micro-arduino-examples/tree/main/examples/micro_speech When trying to use this example with a new trained model from this jupyter noteboobk: https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/micro_speech/train I always get the same error message: Requested feature_data_ size 536907080 doesn't match 1960 Feature generation failed The only thing i changed in the notebook was the tensorflow version. This is because this notebook was using 1.x Version which is no longer supported by colab and i changed it to work with the latest 2.x version Can anyone help here? Greetings, Patrick ### Standalone code to reproduce the issue ```shell https://github.com/tensorflow/tflite-micro-arduino-examples/tree/main/examples/micro_speech https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/micro_speech/train ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61074/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/61074/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61073
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61073/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61073/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61073/events
https://github.com/tensorflow/tensorflow/pull/61073
1,772,182,903
PR_kwDOArmXAs5TyVIo
61,073
[TOSA] Change to use new style of dyn_cast
{ "login": "Tai78641", "id": 6504206, "node_id": "MDQ6VXNlcjY1MDQyMDY=", "avatar_url": "https://avatars.githubusercontent.com/u/6504206?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Tai78641", "html_url": "https://github.com/Tai78641", "followers_url": "https://api.github.com/users/Tai78641/followers", "following_url": "https://api.github.com/users/Tai78641/following{/other_user}", "gists_url": "https://api.github.com/users/Tai78641/gists{/gist_id}", "starred_url": "https://api.github.com/users/Tai78641/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tai78641/subscriptions", "organizations_url": "https://api.github.com/users/Tai78641/orgs", "repos_url": "https://api.github.com/users/Tai78641/repos", "events_url": "https://api.github.com/users/Tai78641/events{/privacy}", "received_events_url": "https://api.github.com/users/Tai78641/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": 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
[ "LGTM. Working on merging now." ]
2023-06-23T21:29:48
2023-06-26T21:31:08
2023-06-26T21:31:07
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61073", "html_url": "https://github.com/tensorflow/tensorflow/pull/61073", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61073.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61073.patch", "merged_at": "2023-06-26T21:31:07" }
change old stype of x.dyn_cast<T>() to new style: dyn_cast<T>(x) Signed-off-by: Tai Ly <[email protected]> Change-Id: I0caf0492cc21c4b6a0e679202197e212cf01740d
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61073/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/61073/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61072
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61072/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61072/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61072/events
https://github.com/tensorflow/tensorflow/pull/61072
1,772,131,676
PR_kwDOArmXAs5TyJrA
61,072
Use proper abbreviation
{ "login": "rylan-justice", "id": 119366377, "node_id": "U_kgDOBx1i6Q", "avatar_url": "https://avatars.githubusercontent.com/u/119366377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rylan-justice", "html_url": "https://github.com/rylan-justice", "followers_url": "https://api.github.com/users/rylan-justice/followers", "following_url": "https://api.github.com/users/rylan-justice/following{/other_user}", "gists_url": "https://api.github.com/users/rylan-justice/gists{/gist_id}", "starred_url": "https://api.github.com/users/rylan-justice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rylan-justice/subscriptions", "organizations_url": "https://api.github.com/users/rylan-justice/orgs", "repos_url": "https://api.github.com/users/rylan-justice/repos", "events_url": "https://api.github.com/users/rylan-justice/events{/privacy}", "received_events_url": "https://api.github.com/users/rylan-justice/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
[ "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/61072/checks?check_run_id=14513930106) 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 @rylan-justice, Please submit multiple typo fixes in a single PR as the CPU/GPU hours are wasted on CI. Hence, we do not encourage one liner grammatical changes as it is an expensive process. Thank you for your contribution!" ]
2023-06-23T20:49:47
2023-06-26T08:52:13
2023-06-26T08:52:13
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61072", "html_url": "https://github.com/tensorflow/tensorflow/pull/61072", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61072.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61072.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61072/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/61072/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61071
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61071/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61071/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61071/events
https://github.com/tensorflow/tensorflow/pull/61071
1,771,913,112
PR_kwDOArmXAs5TxdGM
61,071
[CMake] Add dependency for MhloTestAnalysis.
{ "login": "erick-xanadu", "id": 110487834, "node_id": "U_kgDOBpXpGg", "avatar_url": "https://avatars.githubusercontent.com/u/110487834?v=4", "gravatar_id": "", "url": "https://api.github.com/users/erick-xanadu", "html_url": "https://github.com/erick-xanadu", "followers_url": "https://api.github.com/users/erick-xanadu/followers", "following_url": "https://api.github.com/users/erick-xanadu/following{/other_user}", "gists_url": "https://api.github.com/users/erick-xanadu/gists{/gist_id}", "starred_url": "https://api.github.com/users/erick-xanadu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/erick-xanadu/subscriptions", "organizations_url": "https://api.github.com/users/erick-xanadu/orgs", "repos_url": "https://api.github.com/users/erick-xanadu/repos", "events_url": "https://api.github.com/users/erick-xanadu/events{/privacy}", "received_events_url": "https://api.github.com/users/erick-xanadu/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-06-23T18:35:04
2023-06-28T07:54:32
2023-06-28T07:54:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61071", "html_url": "https://github.com/tensorflow/tensorflow/pull/61071", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61071.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61071.patch", "merged_at": "2023-06-28T07:54:31" }
Hello! We're working on an [MLIR based compiler that takes StableHLO and lowers it to standard MLIR dialects](https://github.com/PennyLaneAI/catalyst/). To do this, we have relied on transformations available in `mlir-hlo-opt`. Part of our CI/CD process includes building `mlir-hlo-opt` from scratch in Github Actions whenever there's a new version of JAX. We noticed that a recent version of `mlir-hlo-opt` could not be built in Github Actions. We looked into this and found that a dependency was not being declared in a CMake file. This issue would normally not be found when building locally as it is triggered only when building using a single core. We believe that the issue can be resolved with the following patch. Thanks! **Description of change**: This patch declares LMHLOTransformsPassIncGen as a dependency to MhloTestAnalysis. Without it, building on a single core would attempt to compile `test_shape_component_analysis.cc` without having generated file `transforms/passes.h.inc`. This error is not encountered when building on multiple cores as the distribution of the builds ensures that the file `transforms/passes.h.inc` is generated before attempting to compile `test_shape_component_analysis.cc`. **Benefits**: Building mlir-hlo in machines with limited resources will not run into this issue. This includes building on Github Actions. **Related Github issues:** Closes https://github.com/tensorflow/mlir-hlo/issues/68
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61071/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/61071/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61070
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61070/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61070/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61070/events
https://github.com/tensorflow/tensorflow/pull/61070
1,771,588,337
PR_kwDOArmXAs5TwVf0
61,070
[ROCM][XLA] Enable fast f16 atomic add
{ "login": "draganmladjenovic", "id": 37329008, "node_id": "MDQ6VXNlcjM3MzI5MDA4", "avatar_url": "https://avatars.githubusercontent.com/u/37329008?v=4", "gravatar_id": "", "url": "https://api.github.com/users/draganmladjenovic", "html_url": "https://github.com/draganmladjenovic", "followers_url": "https://api.github.com/users/draganmladjenovic/followers", "following_url": "https://api.github.com/users/draganmladjenovic/following{/other_user}", "gists_url": "https://api.github.com/users/draganmladjenovic/gists{/gist_id}", "starred_url": "https://api.github.com/users/draganmladjenovic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/draganmladjenovic/subscriptions", "organizations_url": "https://api.github.com/users/draganmladjenovic/orgs", "repos_url": "https://api.github.com/users/draganmladjenovic/repos", "events_url": "https://api.github.com/users/draganmladjenovic/events{/privacy}", "received_events_url": "https://api.github.com/users/draganmladjenovic/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": 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": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-23T14:45:38
2023-06-27T09:18:51
2023-06-27T09:18:51
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61070", "html_url": "https://github.com/tensorflow/tensorflow/pull/61070", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61070.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61070.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61070/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/61070/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61069
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61069/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61069/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61069/events
https://github.com/tensorflow/tensorflow/issues/61069
1,771,476,154
I_kwDOArmXAs5plpS6
61,069
Call TensorFlowLite model with `CVPixelBuffer` from Camera
{ "login": "mrousavy", "id": 15199031, "node_id": "MDQ6VXNlcjE1MTk5MDMx", "avatar_url": "https://avatars.githubusercontent.com/u/15199031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrousavy", "html_url": "https://github.com/mrousavy", "followers_url": "https://api.github.com/users/mrousavy/followers", "following_url": "https://api.github.com/users/mrousavy/following{/other_user}", "gists_url": "https://api.github.com/users/mrousavy/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrousavy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrousavy/subscriptions", "organizations_url": "https://api.github.com/users/mrousavy/orgs", "repos_url": "https://api.github.com/users/mrousavy/repos", "events_url": "https://api.github.com/users/mrousavy/events{/privacy}", "received_events_url": "https://api.github.com/users/mrousavy/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 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" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi, @mrousavy,\r\n\r\n>1. The Frame is any arbitrary size, but the models are trained to specific sizes. So I'm obviously getting the following error:\r\n>\r\n>```Input tensor at index (9142529056) expects data size (110592), but got (8355840).```\r\n>\r\n>Input tensor at index (9142529056) expects data size (110592), but got (8355840). I want to avoid Frame resizing here and ideally have the TFLInterpreter accept the Frame (CMSampleBuffer) as is and do a stride/offset/jumps internally - is that even possible? If not, how can I figure out what Frame size I need to downscale to?\r\n\r\nCurrently we do not support dynamic input shapes, see: https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model\r\n\r\nUnfortunately, we do not plan to support it soon due to performance considerations. Typically this means the input needs to be preprocessed into a static shape.\r\n\r\n>2. The TFLInterpreter can only be invoked with NSData, and my Frame is a CMSampleBuffer allocated on the GPU. Is there any way to avoid this GPU -> CPU copy and stay on the GPU buffer the whole time? I have safe read access to that buffer in this callback.\r\n\r\nI believe it can stay on the GPU Buffer, can you review this link and let me know if it answers your question? https://www.tensorflow.org/lite/ios/delegates/gpu#inputoutput_buffers_using_c_api\r\n\r\nIf this resolves your questions, please feel free to close the issue.", "Thanks for your reply @pkgoogle - I'm trying to use the C/C++ API instead of the Objective-C API\r\n\r\n> Note: The following technique is only available when you are using Bazel or building TensorFlow Lite yourself. C++ API can't be used with CocoaPods.\r\n\r\nThere is a `TensorFlowLiteC` pod on CocoaPods, is that just shipping a pre-built XCFramework? Am I expected to just use that? I'm in an environment where using bazel is really hard to set up and distribute.", "Hi @mrousavy, TensorFlowLiteC is \r\n```\r\nAn internal-only pod containing the TensorFlow Lite C library that the public\r\n `TensorFlowLiteSwift` and `TensorFlowLiteObjC` pods depend on. This pod is not\r\n intended to be used directly. Swift developers should use the\r\n `TensorFlowLiteSwift` pod and Objective-C developers should use the\r\n `TensorFlowLiteObjC` pod.\r\n```\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/TensorFlowLiteC.podspec#11\r\n\r\nSo, if you're using the C/C++ API, then you have to use bazel/build from source to use the GPU API", "Gotcha, thanks. I'll stick to the Objective-C APIs then since using bazel is not really possible in my environment.", "No worries, @mrousavy, if you have no more open items for this issue please feel free to close." ]
2023-06-23T13:34:17
2023-07-03T09:10:16
2023-07-03T09:10:15
NONE
null
null
null
Hey! Sorry I know this is off-topic and a question, but I couldn't find any examples or documentation on optimizing input-tensors for realtime usage. I'm the author of a very popular Camera library for mobile apps (React Native / [VisionCamera](https://github.com/mrousavy/react-native-vision-camera)) and I'm trying to add a TensorFlow Lite integration to the Camera. This should be as generic as possible and will allow the user to drop in any `.tflite` model which just gets called with the Camera frame (`CMSampleBuffer` on iOS, `android.media.Image` on Android) and returns _any_ data (output tensors). I started with implementing the iOS part in Objective-C and set up my TensorFlow code like this: ```objc NSString* modelPath = [[NSBundle mainBundle] pathForResource:@"model" ofType:@"tflite"]; NSError* error; TFLInterpreter* interpreter = [[TFLInterpreter alloc] initWithModelPath:modelPath error:&error]; if (error != nil) { /** ... */ } [interpreter allocateTensorsWithError:&error]; if (error != nil) { /** ... */ } ``` And then I have my Camera Frame Callback which gets called for every Frame the Camera "sees" (60 times a second at 60 FPS): ```objc auto imageBuffer = CMSampleBufferGetImageBuffer(frame.buffer); auto bytesPerRow = CVPixelBufferGetBytesPerRow(imageBuffer); auto height = CVPixelBufferGetHeight(imageBuffer); auto sourceBuffer = CVPixelBufferGetBaseAddress(imageBuffer); auto inputData = [NSData dataWithBytesNoCopy:sourceBuffer length:bytesPerRow * height]; NSError* error; TFLTensor *inputTensor = [interpreter inputTensorAtIndex:0 error:&error]; if (error != nil) { /** ... */ } [inputTensor copyData:inputData error:&error]; if (error != nil) { /** ... */ } [interpreter invokeWithError:&error]; if (error != nil) { /** ... */ } TFLTensor *outputTensor = [interpreter outputTensorAtIndex:0 error:&error]; if (error != nil) { /** ... */ } NSData *outputData = [outputTensor dataWithError:&error]; if (error != nil) { /** ... */ } // TODO: return output data to user ``` Now I have two problems: 1. The Frame is any arbitrary size, but the models are trained to specific sizes. So I'm obviously getting the following error: ``` Input tensor at index (9142529056) expects data size (110592), but got (8355840). ``` I want to avoid Frame resizing here and ideally have the `TFLInterpreter` accept the Frame (`CMSampleBuffer`) _as is_ and do a stride/offset/jumps internally - is that even possible? If not, how can I figure out what Frame size I need to downscale to? 2. The `TFLInterpreter` can only be invoked with `NSData`, and my Frame is a `CMSampleBuffer` allocated on the GPU. Is there any way to avoid this GPU -> CPU copy and stay on the GPU buffer the whole time? I have safe read access to that buffer in this callback. I've seen some MLKit samples (e.g. [MLKit Object Detection iOS](https://developers.google.com/ml-kit/vision/object-detection/ios)) and they allow you to just pass the `CMSampleBuffer` to the model - I'm wondering how this will be handled internally as it seems like the library is quite performant. Also I found [this code on GitHub](https://github.com/kunass2/naildetector/blob/7ebfb2a3b7eaf6142be3d0a85e870bad4ce29d05/DeeplabModel.mm#L121-L205) which seemed quite interesting, but I couldn't figure out where `ProcessInputWithFloatModel(..)` is from... As you can probably tell, I'm not an expert in this field but I'd appreciate any help here. Thanks!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61069/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/61069/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61068
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61068/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61068/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61068/events
https://github.com/tensorflow/tensorflow/issues/61068
1,771,314,800
I_kwDOArmXAs5plB5w
61,068
XLA unit tests fail to build on gcc
{ "login": "elfringham", "id": 10442001, "node_id": "MDQ6VXNlcjEwNDQyMDAx", "avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elfringham", "html_url": "https://github.com/elfringham", "followers_url": "https://api.github.com/users/elfringham/followers", "following_url": "https://api.github.com/users/elfringham/following{/other_user}", "gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}", "starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elfringham/subscriptions", "organizations_url": "https://api.github.com/users/elfringham/orgs", "repos_url": "https://api.github.com/users/elfringham/repos", "events_url": "https://api.github.com/users/elfringham/events{/privacy}", "received_events_url": "https://api.github.com/users/elfringham/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" } ]
closed
false
{ "login": "kenfranko", "id": 56562020, "node_id": "MDQ6VXNlcjU2NTYyMDIw", "avatar_url": "https://avatars.githubusercontent.com/u/56562020?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kenfranko", "html_url": "https://github.com/kenfranko", "followers_url": "https://api.github.com/users/kenfranko/followers", "following_url": "https://api.github.com/users/kenfranko/following{/other_user}", "gists_url": "https://api.github.com/users/kenfranko/gists{/gist_id}", "starred_url": "https://api.github.com/users/kenfranko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kenfranko/subscriptions", "organizations_url": "https://api.github.com/users/kenfranko/orgs", "repos_url": "https://api.github.com/users/kenfranko/repos", "events_url": "https://api.github.com/users/kenfranko/events{/privacy}", "received_events_url": "https://api.github.com/users/kenfranko/received_events", "type": "User", "site_admin": false }
[ { "login": "kenfranko", "id": 56562020, "node_id": "MDQ6VXNlcjU2NTYyMDIw", "avatar_url": "https://avatars.githubusercontent.com/u/56562020?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kenfranko", "html_url": "https://github.com/kenfranko", "followers_url": "https://api.github.com/users/kenfranko/followers", "following_url": "https://api.github.com/users/kenfranko/following{/other_user}", "gists_url": "https://api.github.com/users/kenfranko/gists{/gist_id}", "starred_url": "https://api.github.com/users/kenfranko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kenfranko/subscriptions", "organizations_url": "https://api.github.com/users/kenfranko/orgs", "repos_url": "https://api.github.com/users/kenfranko/repos", "events_url": "https://api.github.com/users/kenfranko/events{/privacy}", "received_events_url": "https://api.github.com/users/kenfranko/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
[ "See https://ci.linaro.org/view/All/job/ldcg-python-manylinux-tensorflow-nightly/831/consoleText", "@nSircombe @cfRod ", "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/61068\">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/61068\">No</a>\n" ]
2023-06-23T11:41:25
2023-06-28T07:31:46
2023-06-28T07:31:44
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.8.13 ### Bazel version 6.1.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version n/a ### GPU model and memory n/a ### Current Behaviour? 3 unit tests fail to build and one fails with error. ### Standalone code to reproduce the issue ```shell 'bazel test --config==mkl_aarch64_threadpool' ``` ### Relevant log output ```shell ERROR: /tf/tensorflow/tensorflow/compiler/xla/service/BUILD:5779:12: Compiling tensorflow/compiler/xla/service/hlo_parser_test.cc failed: (Exit 1): gcc failed: error executing command (from target //tensorflow/compiler/xla/service:hlo_parser_test) (cd /home/buildslave/.cache/bazel/_bazel_buildslave/fbac33eb30dbfb6b11b15a7ff5ac830d/execroot/org_tensorflow && \ exec env - \ CACHEBUSTER=20220325 \ PATH=/home/buildslave/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-arm64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ PWD=/proc/self/cwd \ PYTHON_BIN_PATH=/usr/local/bin/python3 \ TF2_BEHAVIOR=1 \ /dt10/usr/bin/gcc -MD -MF bazel-out/aarch64-opt/bin/tensorflow/compiler/xla/service/_objs/hlo_parser_test/hlo_parser_test.d '-frandom-seed=bazel-out/aarch64-opt/bin/tensorflow/compiler/xla/service/_objs/hlo_parser_test/hlo_parser_test.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -DBENCHMARK_STATIC_DEFINE '-DBAZEL_CURRENT_REPOSITORY=""' -iquote . -iquote bazel-out/aarch64-opt/bin -iquote external/eigen_archive -iquote bazel-out/aarch64-opt/bin/external/eigen_archive -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/aarch64-opt/bin/external/nsync -iquote external/double_conversion -iquote bazel-out/aarch64-opt/bin/external/double_conversion -iquote external/com_google_protobuf -iquote bazel-out/aarch64-opt/bin/external/com_google_protobuf -iquote external/snappy -iquote bazel-out/aarch64-opt/bin/external/snappy -iquote external/com_googlesource_code_re2 -iquote bazel-out/aarch64-opt/bin/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/aarch64-opt/bin/external/farmhash_archive -iquote external/com_google_googletest -iquote bazel-out/aarch64-opt/bin/external/com_google_googletest -iquote external/com_google_benchmark -iquote bazel-out/aarch64-opt/bin/external/com_google_benchmark -iquote external/zlib -iquote bazel-out/aarch64-opt/bin/external/zlib -iquote external/bazel_tools -iquote bazel-out/aarch64-opt/bin/external/bazel_tools -Ibazel-out/aarch64-opt/bin/external/com_google_benchmark/_virtual_includes/benchmark -isystem external/eigen_archive -isystem bazel-out/aarch64-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/aarch64-opt/bin/external/nsync/public -isystem external/com_google_protobuf/src -isystem bazel-out/aarch64-opt/bin/external/com_google_protobuf/src -isystem external/farmhash_archive/src -isystem bazel-out/aarch64-opt/bin/external/farmhash_archive/src -isystem external/com_google_googletest/googlemock -isystem bazel-out/aarch64-opt/bin/external/com_google_googletest/googlemock -isystem external/com_google_googletest/googlemock/include -isystem bazel-out/aarch64-opt/bin/external/com_google_googletest/googlemock/include -isystem external/com_google_googletest/googletest -isystem bazel-out/aarch64-opt/bin/external/com_google_googletest/googletest -isystem external/com_google_googletest/googletest/include -isystem bazel-out/aarch64-opt/bin/external/com_google_googletest/googletest/include -isystem external/zlib -isystem bazel-out/aarch64-opt/bin/external/zlib -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIE -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -no-canonical-prefixes -fno-canonical-system-headers -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -Wno-all -Wno-extra -Wno-deprecated -Wno-deprecated-declarations -Wno-ignored-attributes -Wno-array-bounds -Wunused-result '-Werror=unused-result' -Wswitch '-Werror=switch' '-Wno-error=unused-but-set-variable' -DAUTOLOAD_DYNAMIC_KERNELS '-mtune=generic' '-march=armv8-a' -O3 '-std=c++17' '--sysroot=/dt10' -c tensorflow/compiler/xla/service/hlo_parser_test.cc -o bazel-out/aarch64-opt/bin/tensorflow/compiler/xla/service/_objs/hlo_parser_test/hlo_parser_test.o) # Configuration: de691fac16e6bac2c61ad8c09da26892c92f72e8ffaa16698c2dd3959f4ebc3a # Execution platform: @local_execution_config_platform//:platform tensorflow/compiler/xla/service/hlo_parser_test.cc: In member function 'virtual void xla::{anonymous}::HloParserTest_ParseTrivialIotaShardingPartialReplication_Test::TestBody()': tensorflow/compiler/xla/service/hlo_parser_test.cc:3488:51: error: call of overloaded 'TileAssignment(<brace-enclosed initializer list>)' is ambiguous 3488 | TileAssignment tiling_last_dim_replicated({2, 2}); | ^ In file included from ./tensorflow/compiler/xla/hlo/ir/hlo_sharding.h:34, from ./tensorflow/compiler/xla/hlo/ir/hlo_instruction.h:48, from ./tensorflow/compiler/xla/hlo/ir/hlo_computation.h:35, from ./tensorflow/compiler/xla/service/hlo_parser.h:23, from tensorflow/compiler/xla/service/hlo_parser_test.cc:16: ./tensorflow/compiler/xla/hlo/ir/tile_assignment.h:173:12: note: candidate: 'xla::TileAssignment::TileAssignment(absl::lts_20230125::Span<const long int>)' 173 | explicit TileAssignment(absl::Span<const int64_t> dims) | ^~~~~~~~~~~~~~ ./tensorflow/compiler/xla/hlo/ir/tile_assignment.h:172:12: note: candidate: 'xla::TileAssignment::TileAssignment(xla::IotaTileAssignment)' 172 | explicit TileAssignment(IotaTileAssignment iota) : iota_(std::move(iota)) {} And more ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61068/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/61068/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61067
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61067/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61067/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61067/events
https://github.com/tensorflow/tensorflow/issues/61067
1,771,075,683
I_kwDOArmXAs5pkHhj
61,067
Model runs without error in Tensorflow, but crashes with a segmentation fault in TFLite
{ "login": "m-decoster", "id": 4245468, "node_id": "MDQ6VXNlcjQyNDU0Njg=", "avatar_url": "https://avatars.githubusercontent.com/u/4245468?v=4", "gravatar_id": "", "url": "https://api.github.com/users/m-decoster", "html_url": "https://github.com/m-decoster", "followers_url": "https://api.github.com/users/m-decoster/followers", "following_url": "https://api.github.com/users/m-decoster/following{/other_user}", "gists_url": "https://api.github.com/users/m-decoster/gists{/gist_id}", "starred_url": "https://api.github.com/users/m-decoster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/m-decoster/subscriptions", "organizations_url": "https://api.github.com/users/m-decoster/orgs", "repos_url": "https://api.github.com/users/m-decoster/repos", "events_url": "https://api.github.com/users/m-decoster/events{/privacy}", "received_events_url": "https://api.github.com/users/m-decoster/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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @m-decoster \r\n\r\nI have tried to reproduce the issue on `tf-nightly` and did not observe any crash or segmentation fault.\r\n\r\nI was able to get the output without any error.\r\n\r\nPlease find the gist [here](https://colab.research.google.com/gist/pjpratik/fb385410acdcc281d3fa2471d4fb7179/61067.ipynb) and let us know if it helps.\r\n\r\nThanks.", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61067\">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/61067\">No</a>\n" ]
2023-06-23T08:51:18
2023-07-12T02:08:33
2023-07-12T02:08:31
NONE
null
null
null
### 1. System information - OS Platform and Distribution: Ubuntu 20.04.4 LTS - TensorFlow installation: pip - TensorFlow library: 2.12.0 - TFLite runtime: 2.12.0 ### 2. Code The model is exported from PyTorch using ONNX. I have not included the PyTorch code below for brevity's sake (and because it is used for an active Kaggle competition); you can download the saved Keras model [here](https://cloud.ilabt.imec.be/index.php/s/Dgpi9SQTcyc23wm). The TFLite conversion code is given below, but you can also download the TFLite model [here](https://cloud.ilabt.imec.be/index.php/s/Dgpi9SQTcyc23wm) (same link). Below is the code to create and save the Keras model from two PyTorch models `feat_gen` and `model`, converted using ONNX: ```python class TFInferModel(tf.Module): def __init__(self): super(TFInferModel, self).__init__() self.feat_gen = tf.saved_model.load("feat_gen.pb") self.model = tf.saved_model.load("model.pb") self.feat_gen.trainable = False self.model.trainable = False @tf.function(input_signature=[tf.TensorSpec(shape=[None, 126], dtype=tf.float32, name="inputs")]) def call(self, inputs): output_tensors = {} # Add batch dimension. inputs = inputs[None] # Process using ported PyTorch model. features = self.feat_gen(inputs=inputs)["outputs"] outputs = self.model(inputs=features)["outputs"] # Remove batch dimension. outputs = outputs[0] output_tensors["outputs"] = outputs return output_tensors tf_model = TFInferModel() tf.saved_model.save(tf_model, "tf_model", signatures={"serving_default": tf_model.call}) ``` The model can be loaded in Keras and run: ```python model = tf.saved_model.load("tf_model") inputs = tf.zeros((100, 126), dtype=tf.float32) output = model.call(inputs=inputs) ``` It can also be converted to TFLite: ```python converter = tf.lite.TFLiteConverter.from_saved_model("tf_model") tf_lite_model = converter.convert() output_path = "model.tflite" with open(output_path, "wb") as f: f.write(tf_lite_model) ``` And finally the code for TFLite inference: ```python interpreter = tflite.Interpreter(model_path="model.tflite") prediction_fn = interpreter.get_signature_runner("serving_default") inputs = np.zeros((100, 126), dtype=np.float32) output = prediction_fn(inputs=inputs) ``` ### 3. Failure after conversion The Keras inference code runs without issue. The TFLite inference code crashes immediately with a segmentation fault (no further info is given).
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61067/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/61067/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61066
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61066/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61066/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61066/events
https://github.com/tensorflow/tensorflow/pull/61066
1,770,899,833
PR_kwDOArmXAs5TuD8N
61,066
Update SECURITY.md
{ "login": "computerscienceiscool", "id": 103335846, "node_id": "U_kgDOBijHpg", "avatar_url": "https://avatars.githubusercontent.com/u/103335846?v=4", "gravatar_id": "", "url": "https://api.github.com/users/computerscienceiscool", "html_url": "https://github.com/computerscienceiscool", "followers_url": "https://api.github.com/users/computerscienceiscool/followers", "following_url": "https://api.github.com/users/computerscienceiscool/following{/other_user}", "gists_url": "https://api.github.com/users/computerscienceiscool/gists{/gist_id}", "starred_url": "https://api.github.com/users/computerscienceiscool/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/computerscienceiscool/subscriptions", "organizations_url": "https://api.github.com/users/computerscienceiscool/orgs", "repos_url": "https://api.github.com/users/computerscienceiscool/repos", "events_url": "https://api.github.com/users/computerscienceiscool/events{/privacy}", "received_events_url": "https://api.github.com/users/computerscienceiscool/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-23T07:02:09
2023-06-26T16:08:26
2023-06-26T16:08:26
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61066", "html_url": "https://github.com/tensorflow/tensorflow/pull/61066", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61066.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61066.patch", "merged_at": "2023-06-26T16:08:26" }
Fixed spelling errors.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61066/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/61066/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61065
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61065/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61065/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61065/events
https://github.com/tensorflow/tensorflow/issues/61065
1,770,739,261
I_kwDOArmXAs5pi1Y9
61,065
TF Lite Converter produces outputs in an incorrect order when multiple outputs are present
{ "login": "YaoJiayi", "id": 82156730, "node_id": "MDQ6VXNlcjgyMTU2NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/82156730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YaoJiayi", "html_url": "https://github.com/YaoJiayi", "followers_url": "https://api.github.com/users/YaoJiayi/followers", "following_url": "https://api.github.com/users/YaoJiayi/following{/other_user}", "gists_url": "https://api.github.com/users/YaoJiayi/gists{/gist_id}", "starred_url": "https://api.github.com/users/YaoJiayi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YaoJiayi/subscriptions", "organizations_url": "https://api.github.com/users/YaoJiayi/orgs", "repos_url": "https://api.github.com/users/YaoJiayi/repos", "events_url": "https://api.github.com/users/YaoJiayi/events{/privacy}", "received_events_url": "https://api.github.com/users/YaoJiayi/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
closed
false
{ "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false }
[ { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "I was able to reproduce this issue. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/d67c52ee79ab0dcbbd9f8699bc8a8575/61065.ipynb).\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.\r\n", "Hi @YaoJiayi,\r\n\r\nInput/Output ordering is not guaranteed to be preserved during conversion. If you have multiple inputs or outputs in which the ordering matters, please use signatures to map tf inputs/outputs to tflite inputs/outputs: https://www.tensorflow.org/lite/guide/signatures\r\n\r\nIf you are satisfied with this answer, please feel free to close the issue.", "Thanks for the feedback!!! @pkgoogle ", "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/61065\">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/61065\">No</a>\n" ]
2023-06-23T04:01:11
2023-06-27T18:46:34
2023-06-27T18:46:31
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.14.0-dev20230622 ### 2. Code This is the minimized code to reproduce the issue: ```python import tensorflow as tf import numpy as np x1 = tf.constant([1.], shape=[1,1]) class Model(tf.keras.Model): def __init__(self): super(Model, self).__init__() def call(self, x1): x2 = tf.eye(1) x3 = tf.eye(2) x4 = tf.eye(1) return [x2, x3, x4] m = Model() expected_value = m(x1) converter = tf.lite.TFLiteConverter.from_keras_model(m) tflite_model = converter.convert() def _evaluateTFLiteModel(tflite_model, input_data): interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for i in range(len(input_data)): interpreter.set_tensor(input_details[i]['index'], input_data[i]) interpreter.invoke() output_data = [interpreter.get_tensor(output_details[i]['index']) for i in range(len(output_details))] return output_data actual_value = _evaluateTFLiteModel(tflite_model,[x1]) #Outputs print(f"Expected output_1: {expected_value[0].numpy()}") print(f"Lite output_1: {actual_value[0]}") print("-----------------------------------") print(f"Expected output_2: {expected_value[1].numpy()}") print(f"Lite output_2: {actual_value[1]}") print("-----------------------------------") print(f"Expected output_3: {expected_value[2].numpy()}") print(f"Lite output_3: {actual_value[2]}") #wrong order tf.lite.experimental.Analyzer.analyze(model_content=tflite_model) #Output IR ``` ### 3. Failure after conversion Output (incorrect order): ``` Expected output_1: [[1.]] Lite output_1: [[1.]] ----------------------------------- Expected output_2: [[1. 0.] [0. 1.]] Lite output_2: [[1.]] ----------------------------------- Expected output_3: [[1.]] Lite output_3: [[1. 0.] [0. 1.]] ``` Lite IR: ``` Subgraph#0 main(T#0) -> [T#1, T#1, T#2] Tensors of Subgraph#0 T#0(serving_default_input_1:0) shape_signature:[-1, 1], type:FLOAT32 T#1(PartitionedCall:0) shape:[1, 1], type:FLOAT32 RO 4 bytes, buffer: 2, data:[1] T#2(PartitionedCall:1) shape:[2, 2], type:FLOAT32 RO 16 bytes, buffer: 3, data:[1, 0, 0, 1] ``` TF Lite converter produces wrong outputs: - In the Lite IR, the ouput should be `[T#1, T#2, T#1]` instead of `[T#1, T#1, T#2]` .
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61065/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/61065/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61064
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61064/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61064/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61064/events
https://github.com/tensorflow/tensorflow/issues/61064
1,770,509,383
I_kwDOArmXAs5ph9RH
61,064
from tensorflow.python._pywrap_tensorflow_internal import * ImportError: libflatbuffers.so.2: cannot open shared object file: No such file or directory
{ "login": "sejin8642", "id": 32477563, "node_id": "MDQ6VXNlcjMyNDc3NTYz", "avatar_url": "https://avatars.githubusercontent.com/u/32477563?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sejin8642", "html_url": "https://github.com/sejin8642", "followers_url": "https://api.github.com/users/sejin8642/followers", "following_url": "https://api.github.com/users/sejin8642/following{/other_user}", "gists_url": "https://api.github.com/users/sejin8642/gists{/gist_id}", "starred_url": "https://api.github.com/users/sejin8642/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sejin8642/subscriptions", "organizations_url": "https://api.github.com/users/sejin8642/orgs", "repos_url": "https://api.github.com/users/sejin8642/repos", "events_url": "https://api.github.com/users/sejin8642/events{/privacy}", "received_events_url": "https://api.github.com/users/sejin8642/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 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
[ "@sejin8642,\r\nCould you please confirm whether you are trying to install the tensorflow v2.10 and following the steps provided on the tensorflow official document.\r\nhttps://www.tensorflow.org/install/pip\r\n\r\nAlso please let us know the hardward configurations you are using and try to follow the tested build configurations which were provided here.\r\nhttps://www.tensorflow.org/install/source#cpu\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/61064\">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/61064\">No</a>\n" ]
2023-06-22T23:11:07
2023-07-22T01:54:44
2023-07-22T01:54:42
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version tf 2.10.0 ### Custom Code Yes ### OS Platform and Distribution CentOS Linux 7 ### 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? I was trying to import tensorflow, and then the following error occured: ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) File ~/.conda/envs/TF/lib/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py:62 61 try: ---> 62 from tensorflow.python._pywrap_tensorflow_internal import * 63 # This try catch logic is because there is no bazel equivalent for py_extension. 64 # Externally in opensource we must enable exceptions to load the shared object 65 # by exposing the PyInit symbols with pybind. This error will only be 66 # caught internally or if someone changes the name of the target _pywrap_tensorflow_internal. 67 68 # This logic is used in other internal projects using py_extension. ImportError: libflatbuffers.so.2: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) Cell In[35], line 16 13 import pandas as pd 14 import h5py ---> 16 import tensorflow as tf 17 from tensorflow import keras File ~/.conda/envs/TF/lib/python3.10/site-packages/tensorflow/__init__.py:37 34 import sys as _sys 35 import typing as _typing ---> 37 from tensorflow.python.tools import module_util as _module_util 38 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader 40 # Make sure code inside the TensorFlow codebase can use tf2.enabled() at import. File ~/.conda/envs/TF/lib/python3.10/site-packages/tensorflow/python/__init__.py:36 27 import traceback 29 # We aim to keep this file minimal and ideally remove completely. 30 # If you are adding a new file with @tf_export decorators, 31 # import it in modules_with_exports.py instead. 32 33 # go/tf-wildcard-import 34 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top ---> 36 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow 37 from tensorflow.python.eager import context 39 # pylint: enable=wildcard-import 40 41 # Bring in subpackages. File ~/.conda/envs/TF/lib/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py:77 75 sys.setdlopenflags(_default_dlopen_flags) 76 except ImportError: ---> 77 raise ImportError( 78 f'{traceback.format_exc()}' 79 f'\n\nFailed to load the native TensorFlow runtime.\n' 80 f'See https://www.tensorflow.org/install/errors ' 81 f'for some common causes and solutions.\n' 82 f'If you need help, create an issue ' 83 f'at https://github.com/tensorflow/tensorflow/issues ' 84 f'and include the entire stack trace above this error message.') 86 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long ImportError: Traceback (most recent call last): File "/home/shd/.conda/envs/TF/lib/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: libflatbuffers.so.2: cannot open shared object file: No such file or directory 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. ``` I am not sure what went wrong here. It used to work fine, and the only thing I've done since then is to update nodejs through conda. ### Standalone code to reproduce the issue ```shell import tensorflow as tf ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61064/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/61064/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61063
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61063/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61063/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61063/events
https://github.com/tensorflow/tensorflow/issues/61063
1,770,475,005
I_kwDOArmXAs5ph039
61,063
Crashes in model.save, wrapt error
{ "login": "cmayer", "id": 2019744, "node_id": "MDQ6VXNlcjIwMTk3NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2019744?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cmayer", "html_url": "https://github.com/cmayer", "followers_url": "https://api.github.com/users/cmayer/followers", "following_url": "https://api.github.com/users/cmayer/following{/other_user}", "gists_url": "https://api.github.com/users/cmayer/gists{/gist_id}", "starred_url": "https://api.github.com/users/cmayer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cmayer/subscriptions", "organizations_url": "https://api.github.com/users/cmayer/orgs", "repos_url": "https://api.github.com/users/cmayer/repos", "events_url": "https://api.github.com/users/cmayer/events{/privacy}", "received_events_url": "https://api.github.com/users/cmayer/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "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
[ "@cmayer,\r\nCould you please provide the complete standalone code to reproduce the issue, it helps us to analyse the issue in an effective way. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "I need some more time to prepare a stand alone example.", "@cmayer,\r\nPlease provide the simple standalone code which helps us to analyse the issue. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61063\">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/61063\">No</a>\n" ]
2023-06-22T22:29:39
2023-07-29T01:50:06
2023-07-29T01:50:04
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.12 ### Custom Code No ### OS Platform and Distribution Fodera Linux ### 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? Crashed when calling model.save() See log below. Worked after deinstalling tensorflow and wrapt. wrapt was 1.15.x and installing tensorflow and wrapt==1.14.1 The problem is that when installing tensorflow, the wrapt 1.15.x is installed automatically and this is not playing with tensorflow. ### Standalone code to reproduce the issue ```shell model.save('Modelname') Causes the problem for any trained network. ``` ### Relevant log output ```shell Traceback (most recent call last): File "ModelPredictorTraining.py", line 1415, in <module> run_hparam_on_grid(branched_model_1, File "ModelPredictorTraining.py", line 1403, in run_hparam_on_grid fitted_model.save('Model-name') File "/anaconda3/envs/tf2/lib/python3.11/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "/anaconda3/envs/tf2/lib/python3.11/site-packages/tensorflow/python/trackable/data_structures.py", line 823, in __getattribute__ return super().__getattribute__(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61063/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/61063/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/61062
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61062/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61062/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61062/events
https://github.com/tensorflow/tensorflow/pull/61062
1,769,783,994
PR_kwDOArmXAs5TqY22
61,062
[Linaro:ARM_CI] Stop building pip packages for ARM_CI
{ "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": 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": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-06-22T14:17:16
2023-06-28T11:59:25
2023-06-27T21:34:25
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61062", "html_url": "https://github.com/tensorflow/tensorflow/pull/61062", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61062.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61062.patch", "merged_at": "2023-06-27T21:34:25" }
Only build pip packages in ARM_CD action now to save time on the runners
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61062/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/61062/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61061
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61061/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61061/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61061/events
https://github.com/tensorflow/tensorflow/pull/61061
1,769,765,689
PR_kwDOArmXAs5TqU1Z
61,061
Allow RocmRoot to be set via ROCM_PATH env var
{ "login": "draganmladjenovic", "id": 37329008, "node_id": "MDQ6VXNlcjM3MzI5MDA4", "avatar_url": "https://avatars.githubusercontent.com/u/37329008?v=4", "gravatar_id": "", "url": "https://api.github.com/users/draganmladjenovic", "html_url": "https://github.com/draganmladjenovic", "followers_url": "https://api.github.com/users/draganmladjenovic/followers", "following_url": "https://api.github.com/users/draganmladjenovic/following{/other_user}", "gists_url": "https://api.github.com/users/draganmladjenovic/gists{/gist_id}", "starred_url": "https://api.github.com/users/draganmladjenovic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/draganmladjenovic/subscriptions", "organizations_url": "https://api.github.com/users/draganmladjenovic/orgs", "repos_url": "https://api.github.com/users/draganmladjenovic/repos", "events_url": "https://api.github.com/users/draganmladjenovic/events{/privacy}", "received_events_url": "https://api.github.com/users/draganmladjenovic/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": 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
[ "@akuegel When can we expect for this to be merged?", "> @akuegel When can we expect for this to be merged?\r\n\r\nIt is outside of my control. It needs to be approved internally by someone who has \"OWNERS\" rights for tensorflow/tsl/platform/default/rocm_rocdl_path.cc" ]
2023-06-22T14:07:24
2023-06-26T17:06:33
2023-06-26T17:06:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61061", "html_url": "https://github.com/tensorflow/tensorflow/pull/61061", "diff_url": "https://github.com/tensorflow/tensorflow/pull/61061.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/61061.patch", "merged_at": "2023-06-26T17:06:32" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61061/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/61061/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/61060
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/61060/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/61060/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/61060/events
https://github.com/tensorflow/tensorflow/issues/61060
1,769,746,294
I_kwDOArmXAs5pfC92
61,060
jacobian computation throws ValueError for LinearOperatorFullMatrix: object of type 'LinearOperatorFullMatrix' has no len()
{ "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": 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": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "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 @trickiwoo ,\r\n\r\nI can able to replicate the behaviour reported behaviour and attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/a9a8f382b07474b77f0ae111b37b59e2/61060.ipynb) for reference. `tf.linalg.LinearOperatorFullMatrix` has no gradient implementation in TF2.12 but in tf-nightly it seems implemented. \r\n\r\nHowever `LinearOperatorFullMatrix` has an attribute called `shape` that can return the shape of its object.You can refer the same in gist. \r\n\r\nIMO jacobians seems not implemented yet for `tf.linalg.LinearOperatorFullMatrix` which might be the reason for the error. It might be a feature request. I will escalate the issue to the Dev team and let's hear from them.\r\n\r\n\r\n\r\nThanks!\r\n", "Thanks @SuryanarayanaY for looking into this!\r\nIt is very interesting that for `LinearOperatorFullMatrix` objects `x.shape` can return the correct shape, but `tf.shape(x)` will result in an error. IMO this also seems to be an error in the `LinearOperatorFullMatrix` implementation (probably unrelated to the gradient implementation).", "@trickiwoo @SuryanarayanaY It seems TensorFlow isn't able to handle this operation because `LinearOperatorFullMatrix` isn't a tensor, but a linear operator. So, we must make sure we're operating on tensor values within the context of the `GradientTape` and use `mat` directly, since `LinearOperatorFullMatrix` isn't directly supported as a gradient source or target. Try running\r\n```\r\nimport tensorflow as tf\r\n\r\nmat = tf.Variable([[1., 2.], [3., 4.]])\r\nmat_reshaped = tf.reshape(mat, [-1])\r\n\r\nwith tf.GradientTape(persistent=True) as tape:\r\n tape.watch(mat)\r\n # Suppose the function we're interested in is simply the sum of the matrix elements\r\n output = tf.reduce_sum(mat)\r\n # Compute the gradient\r\n grad = tape.gradient(output, mat)\r\n print('Gradient:', grad)\r\n\r\n # To compute the Jacobian, we use a 1-D tensor\r\n tape.watch(mat_reshaped)\r\n output_reshaped = tf.reduce_sum(mat_reshaped)\r\n jac = tape.jacobian(output_reshaped, mat_reshaped)\r\n print('Jacobian:', jac)\r\n```", "Also, computing the gradient outside of the `with tf.GradientTape(persistent=True) as tape:` block as suggested by the console warning `WARNING:tensorflow:Calling GradientTape.gradient on a persistent tape inside its context is significantly less efficient than calling it outside the context (it causes the gradient ops to be recorded on the tape, leading to increased CPU and memory usage). Only call GradientTape.gradient inside the context if you actually want to trace the gradient in order to compute higher order derivatives.` is very straightforward:\r\n```\r\nimport tensorflow as tf\r\n\r\nmat = tf.Variable([[1., 2.], [3., 4.]])\r\nmat_reshaped = tf.reshape(mat, [-1])\r\n\r\nwith tf.GradientTape(persistent=True) as tape:\r\n tape.watch(mat)\r\n output = tf.reduce_sum(mat)\r\n tape.watch(mat_reshaped)\r\n output_reshaped = tf.reduce_sum(mat_reshaped)\r\n\r\n# Compute the gradient outside of the context\r\ngrad = tape.gradient(output, mat)\r\nprint('Gradient:', grad)\r\n\r\n# Compute the Jacobian outside of the context\r\njac = tape.jacobian(output_reshaped, mat_reshaped)\r\nprint('Jacobian:', jac)\r\n```\r\n" ]
2023-06-22T13:59:15
2023-07-02T23:55:20
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.14.0-dev20230621 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? When computing jacobian for a `LinearOperatorFullMatrix`, TF throws an error: `ValueError: TypeError: object of type 'LinearOperatorFullMatrix' has no len()`. I think the problem here might be that `len()` or `shape` is not implemented for `LinearOperatorFullMatrix`. If I just take the shape of a `LinearOperatorFullMatrix`, I can see the same error. ``` import tensorflow as tf linop = tf.linalg.LinearOperatorFullMatrix(mat) print(tf.shape(linop)) # Fails # ValueError: TypeError: object of type 'LinearOperatorFullMatrix' has no len() ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf mat = tf.Variable([[1., 2.], [3., 4.]]) with tf.GradientTape(persistent=True) as tape: tape.watch(mat) output = tf.linalg.LinearOperatorFullMatrix(mat) grad = tape.gradient(output, mat) # This works print('grad: ', grad) jac = tape.jacobian(output, mat) # This fails # ValueError: TypeError: object of type 'LinearOperatorFullMatrix' has no len() ``` ### Relevant log output ```shell grad: tf.Tensor( [[1. 1.] [1. 1.]], shape=(2, 2), dtype=float32) Traceback .../tensorflow/python/framework/constant_op.py", line 101, in convert_to_eager_tensor return ops.EagerTensor(value, ctx.device_name, dtype) ValueError: TypeError: object of type 'LinearOperatorFullMatrix' has no len() ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61060/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/61060/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60951
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60951/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60951/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60951/events
https://github.com/tensorflow/tensorflow/issues/60951
1,769,599,449
I_kwDOArmXAs5pefHZ
60,951
the tf keras models load_model() used for loading ml model is not able to load model
{ "login": "purushottam22", "id": 48179902, "node_id": "MDQ6VXNlcjQ4MTc5OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/48179902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/purushottam22", "html_url": "https://github.com/purushottam22", "followers_url": "https://api.github.com/users/purushottam22/followers", "following_url": "https://api.github.com/users/purushottam22/following{/other_user}", "gists_url": "https://api.github.com/users/purushottam22/gists{/gist_id}", "starred_url": "https://api.github.com/users/purushottam22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/purushottam22/subscriptions", "organizations_url": "https://api.github.com/users/purushottam22/orgs", "repos_url": "https://api.github.com/users/purushottam22/repos", "events_url": "https://api.github.com/users/purushottam22/events{/privacy}", "received_events_url": "https://api.github.com/users/purushottam22/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" } ]
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
[ "@purushottam22,\r\nCould you please provide the complete standalone code to reproduce the issue which helps us to analyse the issue in an effective way. Thank you!", " def retrieve_model(self, model_path:str ,model_type:str):\r\n '''\r\n Desc:- It retrieves the model object based on model type and its model path\r\n :param model_path:string\r\n :param model_type:string\r\n :return:model_objet:object\r\n '''\r\n if model_type==\"tensorflow\":\r\n try:\r\n print(model_path, type(model_path))\r\n model_dir = model_path[0:-10]\r\n print(os.listdir(model_dir))\r\n \r\n model_object=tf.keras.models.load_model(model_path, custom_objects=None, compile=True, options=None)\r\n\r\n print(\"model is loaded\")\r\n print(model_object)\r\n print(\"*-\"*10)\r\n return FileResults(model_object).get_model_object\r\n except Exception as err:\r\n print(\"retrieve_model method failure reason is: {err}\")\r\n\r\n\r\nThis is the code I used. I write some print statement to verify that in which line it is stopped. ", "If I am running it alone it is working but when I use multiprocessing it got stuck.", "@purushottam22,\r\nThe code provided is not complete hence it would be difficult for us to pinpoint the issue. Please share complete stand alone code to replicate the issue or a colab gist with the error reported.? That will allow us to determine the source of the issue easily. \r\n\r\nCould you please try to recompile after reloading.\r\n\r\n```\r\nloadedmodel=tf.keras.models.load_model('/tmp/test.h5')\r\nloadedmodel.compile(optimizer='adam',\r\n loss=tf.losses.SparseCategoricalCrossentropy(from_logits=True),\r\n metrics=['accuracy'])\r\nloadedmodel.evaluate(x_test_r,test_labels)\r\n```\r\nhttps://www.tensorflow.org/api_docs/python/tf/keras/saving/load_model\r\n\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." ]
2023-06-22T12:42:38
2023-07-12T14:15:44
2023-07-11T09:20:30
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 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? Hi, I am trying to load my deep learning model using **tensorflow keras models load_model ()** . when I run it for first time it got loaded but from next time** it is not loading**. Like it is in this function for more than 30 min. I store my model in **.h5** format. model size is approx 13 MB. At the time of saving deep learning, I use model.save() I am using a machine with 128 GB RAM. I am using multiprocessing with no of worker 16. Sometime it worked and sometime is got stucked. ### Standalone code to reproduce the issue ```shell tensorflow.keras.models.load_model.() ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60951/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/60951/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60945
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60945/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60945/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60945/events
https://github.com/tensorflow/tensorflow/pull/60945
1,769,539,906
PR_kwDOArmXAs5Tpi3x
60,945
[Linaro:ARM_CI] Quiet warnings from build_pip_package
{ "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": 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": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Sorry, doing this a different way." ]
2023-06-22T12:04:11
2023-06-22T13:51:44
2023-06-22T13:51:36
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60945", "html_url": "https://github.com/tensorflow/tensorflow/pull/60945", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60945.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60945.patch", "merged_at": null }
Quiet those warnings about 'Installing as data is deprecated' as they just spam the log
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60945/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/60945/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60944
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60944/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60944/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60944/events
https://github.com/tensorflow/tensorflow/issues/60944
1,768,429,090
I_kwDOArmXAs5paBYi
60,944
Apply Profile-Guided Optimization (PGO) on Tensorflow
{ "login": "zamazan4ik", "id": 7355383, "node_id": "MDQ6VXNlcjczNTUzODM=", "avatar_url": "https://avatars.githubusercontent.com/u/7355383?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zamazan4ik", "html_url": "https://github.com/zamazan4ik", "followers_url": "https://api.github.com/users/zamazan4ik/followers", "following_url": "https://api.github.com/users/zamazan4ik/following{/other_user}", "gists_url": "https://api.github.com/users/zamazan4ik/gists{/gist_id}", "starred_url": "https://api.github.com/users/zamazan4ik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zamazan4ik/subscriptions", "organizations_url": "https://api.github.com/users/zamazan4ik/orgs", "repos_url": "https://api.github.com/users/zamazan4ik/repos", "events_url": "https://api.github.com/users/zamazan4ik/events{/privacy}", "received_events_url": "https://api.github.com/users/zamazan4ik/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": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
open
false
{ "login": "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
[ "I did some benchmarks on `tfcompile` with PGO and want to share my results.\r\n\r\n## Test environment\r\n\r\n* Fedora 38\r\n* Linux kernel 6.3.7 (default Linux kernel from Fedora repos)\r\n* AMD Ryzen 9 5900x\r\n* 48 Gib RAM\r\n* SSD Samsung 980 Pro 2 Tib\r\n* Clang 16 (from the Fedora repositories). I use Clang just because I prefer LLVM-based tooling\r\n* Tensorflow: from master branch (commit `61302d8dd536910b621fdb56c08f76cf59750595`)\r\n\r\n## Tested configurations\r\n\r\nI have tested the following Tensorflow configurations:\r\n\r\n* Release: `bazelisk build tensorflow/compiler/aot:tfcompile`\r\n* Release with PGO: `bazelisk build --fdo_optimize=tfcompile.profdata --cxxopt=-Wno-error=ignored-optimization-argument --cxxopt=-Wno-error=backend-plugin --copt=-Wno-error=ignored-optimization-argument --copt=-Wno-error=backend-plugin tensorflow/compiler/aot:tfcompile` flags (and previously built Instrumented version with `--fdo_instrument` flag)\r\n\r\n## Benchmark\r\n\r\nAs a benchmark, I used a compilation of one model - `tf_split` ([link](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/aot/tests/make_test_graphs.py#L133)). The only difference made is enlarging the model: I replaced `range(3)` with `range(300)` on https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/aot/tests/make_test_graphs.py#L137 just to make compilation more time-consuming so I can measure it easier.\r\n\r\nCommand to execute `tfcompile`: `time tfcompile --graph=test_graph_tfsplits.pb --config=test_graph_tfsplits.config.pbtxt --cpp_class=\"mynamespace::MyComputation\"`\r\n\r\n## Results\r\n\r\nI have the following results in optimization. All measurements are done on the same hardware/software, multiple times, in different orders, etc. The results are reproducible - I rechecked them multiple times. The results are presented in `time` utility format:\r\n\r\n* Release: `16,77s user 0,08s system 99% cpu 16,875 total`\r\n* Release + PGO: `14,98s user 0,06s system 99% cpu 15,068 total`\r\n* Instrumented: `23,90s user 0,12s system 99% cpu 24,060 total`\r\n\r\nAt least in this test, PGO shows an improvement in `tfcompile` performance." ]
2023-06-21T20:31:24
2023-07-16T17:19:14
null
NONE
null
null
null
### Describe the problem Profile-Guided Optimization (PGO) could help with achieving additional performance with Tensorflow. I guess some parts of Tensorflow are good candidates (like https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler). Probably there are other good candidates - I am not familiar yet with the Tensorflow codebase. Why I mentioned `tfcompile` is that PGO works especially well on compilers in practice (see [this](https://github.com/ZaMaZaN4iK/awesome-pgo) to read about the results on multiple applications).
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60944/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/60944/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60943
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60943/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60943/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60943/events
https://github.com/tensorflow/tensorflow/issues/60943
1,768,418,426
I_kwDOArmXAs5pZ-x6
60,943
Request: pip packages with CUDA 12 support
{ "login": "Talador12", "id": 2363749, "node_id": "MDQ6VXNlcjIzNjM3NDk=", "avatar_url": "https://avatars.githubusercontent.com/u/2363749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Talador12", "html_url": "https://github.com/Talador12", "followers_url": "https://api.github.com/users/Talador12/followers", "following_url": "https://api.github.com/users/Talador12/following{/other_user}", "gists_url": "https://api.github.com/users/Talador12/gists{/gist_id}", "starred_url": "https://api.github.com/users/Talador12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Talador12/subscriptions", "organizations_url": "https://api.github.com/users/Talador12/orgs", "repos_url": "https://api.github.com/users/Talador12/repos", "events_url": "https://api.github.com/users/Talador12/events{/privacy}", "received_events_url": "https://api.github.com/users/Talador12/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
null
[]
null
[ "We are currently working on this, and hope to have pip packages with CUDA 12 soon.", "Would this pip package encompass the CUDA/Nvidia packages dependency so it would work with GPUs straight out of the box, like `torch` package does?", "> Would this pip package encompass the CUDA/Nvidia packages dependency so it would work with GPUs straight out of the box, like `torch` package does?\r\n\r\n@angerson do you know?", "Not by default, no. @nluehr was working on https://github.com/tensorflow/tensorflow/pull/59825 so that a user could install `tensorflow` if they have CUDA already installed, or `tensorflow[and-cuda]` to install TensorFlow and the CUDA pip packages (which would then work with GPUs out of the box), but the PR has stalled recently.", "> tensorflow[and-cuda]\r\n\r\nThat would be quite nice indeed.", "Bumping and also wanted to ask if CUDA compute capability 9.0 by default will come with this update? JIT support is OK-ish, but waiting for a half an hour JIT compile every launch...", "@dcsouthwick In the mean time, there is some env variable that you can set to increase the JIT cache size to JIT compile only once: https://developer.nvidia.com/blog/cuda-pro-tip-understand-fat-binaries-jit-caching/", "Any news?", "Any updates here on when the fix is going to be made available?", "Any updates?", "@reichlfl do you know the current status of upgrading the pip packages to CUDA 12? I see `tf.sysconfig.get_build_info()['cuda_version']` returns `'12.2'` in tf-nightly so perhaps this is already done in tf-nightly?", "Nightly moved to CUDA 12 a few days ago. See commit https://github.com/tensorflow/tensorflow/commit/3de44168950a5972ba4cfa7e3c6cbf4cffa67fe6. ", "Closing this as fixed", "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/60943\">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/60943\">No</a>\n" ]
2023-06-21T20:24:54
2023-09-25T16:54:55
2023-09-25T16:54:53
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.12.0 ### Custom Code No ### OS Platform and Distribution All ### Mobile device All ### Python version All ### Bazel version All ### GCC/Compiler version All ### CUDA/cuDNN version 12 ### GPU model and memory All ### Current Behaviour? For reference, see the discussion on this PR and comment from @reedwm #58867 ``` This is a PR that has been merged, not an issue, so it cannot be reopened. We have not yet released pip packages with CUDA 12 support, but are working on this. Feel free to file a new GitHub issue to have CUDA 12 pip packages (please CC me on the issue if you file it). ``` This pull request was focused on CUDA 12.X support in builds, but did not contain the scope for building new python packages for standard use on pypi https://pypi.org/project/tensorflow/#history Of note, Debian Bookworm is deprecating usage of CUDA 11.X versions, so only 12.X CUDA drivers are available. Tensorflow packages on pypi have yet to support CUDA 12.X drivers. ### Standalone code to reproduce the issue ```shell See pypi, there is not a version of tensorflow with CUDA 12.X support https://pypi.org/project/tensorflow/#history ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60943/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60943/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60942
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60942/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60942/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60942/events
https://github.com/tensorflow/tensorflow/issues/60942
1,768,199,129
I_kwDOArmXAs5pZJPZ
60,942
float8 (both e4m3fn and e5m2) missing from numbertype
{ "login": "youchangkim", "id": 7123948, "node_id": "MDQ6VXNlcjcxMjM5NDg=", "avatar_url": "https://avatars.githubusercontent.com/u/7123948?v=4", "gravatar_id": "", "url": "https://api.github.com/users/youchangkim", "html_url": "https://github.com/youchangkim", "followers_url": "https://api.github.com/users/youchangkim/followers", "following_url": "https://api.github.com/users/youchangkim/following{/other_user}", "gists_url": "https://api.github.com/users/youchangkim/gists{/gist_id}", "starred_url": "https://api.github.com/users/youchangkim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/youchangkim/subscriptions", "organizations_url": "https://api.github.com/users/youchangkim/orgs", "repos_url": "https://api.github.com/users/youchangkim/repos", "events_url": "https://api.github.com/users/youchangkim/events{/privacy}", "received_events_url": "https://api.github.com/users/youchangkim/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
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
[ "@youchangkim,\r\nI was able to reproduce the issue on tensorflow v2.12 and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/5702640308d095c3f19727296d27afe5/60942.ipynb).", "This is intentional. Compute ops are not currently supported for fp8 types.\r\n\r\nFor data manipulation ops like transpose, it's possible to enable them one-by-one. But for all other numerical ops, fp8 is not intended to be used directly as other floating-point types, instead we expect users to do quantization-like operations involving scale factors and type-widening, depending on supported hardware. We are currently working on these things in the compiler-backend for XLA-GPU and H100.", "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/60942\">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/60942\">No</a>\n", "@cantonios This particular issue is about missing float8 support for data manipulation ops. Can we enable those? I'm looking for following ops: Reshape, Transpose, GatherV2, ExpandDims, Squeeze, ConcatV2, Split, Pack, Unpack, and StridedSlice.", "> @cantonios This particular issue is about missing float8 support for data manipulation ops. Can we enable those? I'm looking for following ops: Reshape, Transpose, GatherV2, ExpandDims, Squeeze, ConcatV2, Split, Pack, Unpack, and StridedSlice.\r\n\r\nThe issue as stated is about declaring it a number type, which we intentionally do not. If you want certain array ops to work, you'll need to update the list of supported types for each op, and potentially add kernels for them one-by-one. Sure, that could be done. You can open a different bug for that." ]
2023-06-21T18:43:32
2023-07-24T17:09:30
2023-07-19T21:38:46
NONE
null
null
null
### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution macOS-13.2.1-arm64-arm-64bit ### Mobile device _No response_ ### Python version 3.9.6 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? FP8 datatypes are missing from `kNumberTypes` in `tensorflow/core/framework/types.h`, and also missing from `TF_CALL_FLOAT_TYPES(m)` in `tensorflow/core/framework/register_types.h`. This causes simple ops (like slice, transpose, split, etc.) to raise NotFoundError. ### Standalone code to reproduce the issue ```python import tensorflow as tf from tensorflow.python.framework import dtypes a = tf.constant([[1.2345678, 2.3456789, 3.4567891], [4.5678912, 5.6789123, 6.7891234]], dtype=dtypes.float16) print(a) a_fp8 = tf.cast(a, dtypes.float8_e4m3fn) print(a_fp8) b = a_fp8[1:2] # tensorflow.python.framework.errors_impl.NotFoundError b = tf.transpose(a_fp8, [1, 0]) # tensorflow.python.framework.errors_impl.NotFoundError ``` ### Relevant log output ``` tensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node StridedSlice}} = StridedSlice[Index=DT_INT32, T=DT_FLOAT8_E4M3FN, begin_mask=0, ellipsis_mask=0, end_mask=0, new_axis_mask=0, shrink_axis_mask=0] All kernels registered for op StridedSlice: device='XLA_CPU_JIT'; Index in [DT_INT32, DT_INT16, DT_INT64]; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_UINT8, DT_INT16, 930109355527764061, DT_HALF, DT_UINT32, DT_UINT64, DT_FLOAT8_E5M2, DT_FLOAT8_E4M3FN] device='CPU'; T in [DT_UINT64] device='CPU'; T in [DT_INT64] device='CPU'; T in [DT_UINT32] device='CPU'; T in [DT_UINT16] device='CPU'; T in [DT_INT16] device='CPU'; T in [DT_UINT8] device='CPU'; T in [DT_INT8] device='CPU'; T in [DT_INT32] device='CPU'; T in [DT_HALF] device='CPU'; T in [DT_BFLOAT16] device='CPU'; T in [DT_FLOAT] device='CPU'; T in [DT_DOUBLE] device='CPU'; T in [DT_COMPLEX64] device='CPU'; T in [DT_COMPLEX128] device='CPU'; T in [DT_BOOL] device='CPU'; T in [DT_STRING] device='CPU'; T in [DT_RESOURCE] device='CPU'; T in [DT_VARIANT] device='CPU'; T in [DT_QINT8] device='CPU'; T in [DT_QUINT8] device='CPU'; T in [DT_QINT32] device='DEFAULT'; T in [DT_INT32] [Op:StridedSlice] name: strided_slice/ ``` ``` tensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node Transpose}} = Transpose[T=DT_FLOAT8_E4M3FN, Tperm=DT_INT32] All kernels registered for op Transpose: device='XLA_CPU_JIT'; Tperm in [DT_INT32, DT_INT64]; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_UINT8, DT_INT16, 930109355527764061, DT_HALF, DT_UINT32, DT_UINT64, DT_FLOAT8_E5M2, DT_FLOAT8_E4M3FN] device='CPU'; T in [DT_UINT64] device='CPU'; T in [DT_INT64] device='CPU'; T in [DT_UINT32] device='CPU'; T in [DT_UINT16] device='CPU'; T in [DT_INT16] device='CPU'; T in [DT_UINT8] device='CPU'; T in [DT_INT8] device='CPU'; T in [DT_INT32] device='CPU'; T in [DT_HALF] device='CPU'; T in [DT_BFLOAT16] device='CPU'; T in [DT_FLOAT] device='CPU'; T in [DT_DOUBLE] device='CPU'; T in [DT_COMPLEX64] device='CPU'; T in [DT_COMPLEX128] device='CPU'; T in [DT_BOOL] device='CPU'; T in [DT_STRING] device='CPU'; T in [DT_RESOURCE] device='CPU'; T in [DT_VARIANT] [Op:Transpose] ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60942/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/60942/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60941
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60941/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60941/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60941/events
https://github.com/tensorflow/tensorflow/issues/60941
1,768,009,599
I_kwDOArmXAs5pYa9_
60,941
tf.mul after tf.split + tf.sigmoid produces wrong numerical results with MKL enabled
{ "login": "curufinwe", "id": 89868, "node_id": "MDQ6VXNlcjg5ODY4", "avatar_url": "https://avatars.githubusercontent.com/u/89868?v=4", "gravatar_id": "", "url": "https://api.github.com/users/curufinwe", "html_url": "https://github.com/curufinwe", "followers_url": "https://api.github.com/users/curufinwe/followers", "following_url": "https://api.github.com/users/curufinwe/following{/other_user}", "gists_url": "https://api.github.com/users/curufinwe/gists{/gist_id}", "starred_url": "https://api.github.com/users/curufinwe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/curufinwe/subscriptions", "organizations_url": "https://api.github.com/users/curufinwe/orgs", "repos_url": "https://api.github.com/users/curufinwe/repos", "events_url": "https://api.github.com/users/curufinwe/events{/privacy}", "received_events_url": "https://api.github.com/users/curufinwe/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": 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" }, { "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": "TensorFlow-MKL", "id": 44416303, "node_id": "MDQ6VXNlcjQ0NDE2MzAz", "avatar_url": "https://avatars.githubusercontent.com/u/44416303?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TensorFlow-MKL", "html_url": "https://github.com/TensorFlow-MKL", "followers_url": "https://api.github.com/users/TensorFlow-MKL/followers", "following_url": "https://api.github.com/users/TensorFlow-MKL/following{/other_user}", "gists_url": "https://api.github.com/users/TensorFlow-MKL/gists{/gist_id}", "starred_url": "https://api.github.com/users/TensorFlow-MKL/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TensorFlow-MKL/subscriptions", "organizations_url": "https://api.github.com/users/TensorFlow-MKL/orgs", "repos_url": "https://api.github.com/users/TensorFlow-MKL/repos", "events_url": "https://api.github.com/users/TensorFlow-MKL/events{/privacy}", "received_events_url": "https://api.github.com/users/TensorFlow-MKL/received_events", "type": "User", "site_admin": false }
[ { "login": "TensorFlow-MKL", "id": 44416303, "node_id": "MDQ6VXNlcjQ0NDE2MzAz", "avatar_url": "https://avatars.githubusercontent.com/u/44416303?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TensorFlow-MKL", "html_url": "https://github.com/TensorFlow-MKL", "followers_url": "https://api.github.com/users/TensorFlow-MKL/followers", "following_url": "https://api.github.com/users/TensorFlow-MKL/following{/other_user}", "gists_url": "https://api.github.com/users/TensorFlow-MKL/gists{/gist_id}", "starred_url": "https://api.github.com/users/TensorFlow-MKL/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TensorFlow-MKL/subscriptions", "organizations_url": "https://api.github.com/users/TensorFlow-MKL/orgs", "repos_url": "https://api.github.com/users/TensorFlow-MKL/repos", "events_url": "https://api.github.com/users/TensorFlow-MKL/events{/privacy}", "received_events_url": "https://api.github.com/users/TensorFlow-MKL/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 @curufinwe ,\r\n\r\nYou have used TF1.x version styling which is not supported currently.Though i tried to replicate the issue but for me results are same with both tensorflow-cpu and tensorflow-intel also. I tried to convert the code to V2 style and testing done and it also produces same results. Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/8062edb9c446b9027030b5720be5f451/60941.ipynb).", "I think we were using the package `intel-tensorflow`, not the other way around. I'm not sure it uses the correct TF package in your Gist.", "Hi @SuryanarayanaY ,\r\nyou can reproduce the issue in a docker container build from the following Dockerfile:\r\n```\r\nFROM ubuntu:22.04\r\n\r\nRUN apt update && apt upgrade -y && apt install -y python3-pip\r\nRUN pip3 install intel-tensorflow\r\nADD test.py .\r\nCMD python3 test.py\r\n```\r\nThis assumes that you put the python script from the bug description next to the Dockerfile in a file called test.py.", "I tested the following TF2 version from your colab and it indeed produces the correct result. Seems to be an issue only in the v1 API.\r\n\r\n```\r\nimport math\r\n\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ndef sigmoid(x):\r\n return 1 / (1 + math.exp(-x))\r\n\r\ndata = [[[2.0, 3.0]]]\r\na, b = tf.split(data, 2, axis=2)\r\nprint(a,b)\r\n\r\ntf_sig = tf.sigmoid(a) * b\r\nprint(tf_sig.numpy()[0][0][0])\r\n\r\nmath_sig = sigmoid(data[0][0][0]) * data[0][0][1]\r\n\r\nprint(math_sig)\r\n```", "Hi @curufinwe ,\r\n\r\nThanks for confirmation.It might be possible the bug was fixed in later versions. Since 1.x versions are not supported anymore and the issue fixed in latest versions already shall we mark it as closed?\r\n\r\nThanks!", "This bug occurs with recent TF 2 versions. @curufinwe refers to using `disable_eager_execution` in TF 2.\r\n", "If there is no intention to fix the v1 API anymore then yes, one can consider this bug closed.", "HI @albertz , @curufinwe ,\r\n\r\nThe API `tf.compat.v1.disable_eager_execution` was designed for TensorFlow v1 . For TF V2 coding we need to use `tf.function` for enabling graph mode.Please refer the attached doc [source](https://www.tensorflow.org/api_docs/python/tf/compat/v1/disable_eager_execution#:~:text=Caution%3A%20This,tf.function.) for same.\r\n\r\nIf the reported behaviour can able to reproducible with `tf.function()` then definitely it needs to be looked into. I modified the code using `tf.function` and can see same results as per attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/a88b2e7c8e63d659506ada9993683112/60941.ipynb) which indicates this might have fixed already in TF 2.X versions. WDYT ?\r\n\r\nThanks!", "From your blog post [Building the Future of TensorFlow, 2022](https://blog.tensorflow.org/2022/10/building-the-future-of-tensorflow.html), you state:\r\n\r\n> The future of TensorFlow will be 100% backwards-compatible\r\n\r\nBy that, I understand that this V1-style API using `tf.compat.v1.disable_eager_execution()` is still sth you want to support. If so, then in any case I think the bug is still relevant.\r\n\r\n---\r\n\r\nDespite that, as we still do not fully understand the bug itself, it might be that the bug also exists when using `tf.function`, just that it will not be reproduced this way, but needs some other code to be reproduced (but we don't know).\r\n\r\nI think it still would in any case be good if this can be verified.\r\n", "I have eliminated the `disable_eager_execution` function call and am still able to reproduce the error by importing the tf function into a graph and running it within a session. The problem is that this graph based execution is the only form of execution for programs that use the C++ API for tensorflow afaik. Thus I think the bug is still relevant.\r\n\r\n```\r\n#!/usr/bin/env python3\r\n\r\nimport math\r\n\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\ndef sigmoid(x):\r\n return 1 / (1 + math.exp(-x))\r\n\r\ndata = [[[2.0, 3.0]]]\r\n\r\[email protected]\r\ndef my_func(data):\r\n a, b = tf.split(data, 2, axis=2)\r\n sig = tf.sigmoid(a)\r\n m = sig * b\r\n return m\r\n\r\nconcrete_func = my_func.get_concrete_function(tf.constant(data))\r\ng = concrete_func.graph.as_graph_def()\r\n\r\ns = tf.compat.v1.Session()\r\ntf.import_graph_def(g)\r\nout = s.run(['mul:0'], feed_dict={'data:0': data})\r\n\r\nprint('computed: ', out[0][0][0])\r\nprint('expected: ', sigmoid(data[0][0][0]) * data[0][0][1])\r\n```", "Hi @curufinwe ,\r\n\r\nI tried to replicate the behaviour with the latest provided code snippet but failed to replicate the behaviour.Please refer attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/363da2885015d4dcda3c3152e12d922f/60941-r1.ipynb#scrollTo=CLcYoLBalLND).\r\n\r\n`tensorflow-intel` package is built,maintained and tested by `intel` for Windows CPU.Same mentioned in TF [documentation](https://www.tensorflow.org/install/pip#windows-native_1:~:text=Note%3A%20Starting,about%20this%20collaboration.) as well as [Pypi](https://pypi.org/project/tensorflow-intel/). As per my understanding this package has to be installed on windows only. I am not sure whether it is cross compiled for other OS also.\r\n\r\nCC' ing @TensorFlow-MKL for more details.", "Hi @SuryanarayanaY ,\r\n\r\nthe tensorflow-intel package on pypi is indeed a Windows only package. But intel-tensorflow is also available for Linux and you can use the Dockerfile I provided above to reproduce the issue. Just replace the test.py with the latest code-snippet I posted.\r\nI have now also created a [gist](https://colab.research.google.com/gist/curufinwe/f40fb6fc8749d80631cf00a7f23743df/60941-r1.ipynb) to reproduce the issue.", "Hi @curufinwe ,\r\n\r\nI am acknowledging that now the issue can be replicable from my side as per attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/412bf387a967778be75993c1cef82768/60941-r2-tensorflow-intel.ipynb). The issue persists with `intel-tensorflow` package only but not with TF package itself which was tested in attached gist.\r\n\r\nThough the code involves V1 style session there is difference in outputs wr.t `intel-tensorflow` and `tensorflow`. Hence assigning the issue to respective team for their comments.\r\n\r\nCC : @TensorFlow-MKL for commenting o this issue.\r\n CC: @learning-to-play \r\n", "I can reprodue this on tensorflow 2.10, 2.11, 2,12 on a ice-lake CPU, Intel(R) Xeon(R) Gold 6346.\r\n```\r\n$ ONEDNN_VERBOSE=1 python test_repoduce.py\r\n2023-06-28 17:29:34.639477: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-28 17:29:35.705623: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\r\nTensor(\"split:0\", dtype=float32)\r\nTensor(\"split:1\", dtype=float32)\r\n2023-06-28 17:29:35.708384: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:353] MLIR V1 optimization pass is not enabled\r\nonednn_verbose,info,oneDNN v2.7.3 (commit N/A)\r\nonednn_verbose,info,cpu,runtime:OpenMP,nthr:64\r\nonednn_verbose,info,cpu,isa:Intel AVX-512 with Intel DL Boost\r\nonednn_verbose,info,gpu,runtime:none\r\nonednn_verbose,info,prim_template:operation,engine,primitive,implementation,prop_kind,memory_descriptors,attributes,auxiliary,problem_desc,exec_time\r\nonednn_verbose,exec,cpu,eltwise,jit:avx512_core,forward_training,data_f32::blocked:abc:f0 diff_undef::undef::f0,,alg:eltwise_swish alpha:1 beta:0,1x1x1,40.9431\r\n[array([[[2., 3.]]], dtype=float32), array([[[1.7615942]]], dtype=float32)]\r\ncomputed: 1.7615942\r\nexpected: 2.642391233933647\r\n```\r\n\r\n>> If `m = sig * b` is changed to `m = sig * (b + 0.0)` one can get the correct result.\r\nIn this case, oneDNN log is not output.\r\n\r\nLooks like related to oneDNN. \r\n\r\nPlease run `ONEDNN_VERBOSE=1 python test.py` to output oneDNN verbose log, to double confirm if oneDNN library and the incorrect result appear at the same time for all cases.\r\nNot sure it's happed on all CPU or only those support AVX512 instrucions only.\r\n\r\nWe'll look into this.\r\n\r\nThanks!", "change the input data = [[[2.0, 3.0]]] to data = [[[2.0, 1.0]]] \r\ncomputed: 1.7615942\r\nexpected: 0.8807970779778823\r\n\r\nor data = [[[2.0, 4.0]]]\r\ncomputed: 1.7615942\r\nexpected: 3.5231883119115293\r\n\r\nIt seemed the calculate process or input is not passed correctly.\r\nI am not familiar to the process. \r\nCould you help to check this?", "Hi @xiguiw ,\r\n\r\nI have an AMD system (3970X) that does not have AVX-512, so it's definetly not related to that.\r\nI think what the tensorflow code computes is `sigmoid(data[0][0][0]) * data[0][0][0]` (wrong index on second multiplier.\r\n\r\nHere the code to test it:\r\n```\r\n#!/usr/bin/env python3\r\n\r\nimport math\r\nimport os\r\n\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\nos.environ['ONEDNN_VERBOSE'] = '1'\r\n\r\ndef sigmoid(x):\r\n return 1 / (1 + math.exp(-x))\r\n\r\ndata = [[[2.0, 3.0]]]\r\n\r\[email protected]\r\ndef my_func(data):\r\n a, b = tf.split(data, 2, axis=2)\r\n sig = tf.sigmoid(a)\r\n m = sig * b\r\n return m\r\n\r\nconcrete_func = my_func.get_concrete_function(tf.constant(data))\r\ng = concrete_func.graph.as_graph_def()\r\n\r\ns = tf.compat.v1.Session()\r\ntf.import_graph_def(g)\r\nout = s.run(['mul:0'], feed_dict={'data:0': data})\r\n\r\nprint('computed: ', out[0][0][0])\r\nprint('expected: ', sigmoid(data[0][0][0]) * data[0][0][1])\r\nprint('expected error computation: ', sigmoid(data[0][0][0]) * data[0][0][0])\r\n```\r\n\r\nand here the output on my system:\r\n```\r\n2023-06-28 15:24:14.769259: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-06-28 15:24:16.354506: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\r\n2023-06-28 15:24:16.393142: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.\r\n2023-06-28 15:24:16.394160: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:353] MLIR V1 optimization pass is not enabled\r\nonednn_verbose,info,oneDNN v2.7.3 (commit N/A)\r\nonednn_verbose,info,cpu,runtime:OpenMP,nthr:64\r\nonednn_verbose,info,cpu,isa:Intel AVX2\r\nonednn_verbose,info,gpu,runtime:none\r\nonednn_verbose,info,prim_template:operation,engine,primitive,implementation,prop_kind,memory_descriptors,attributes,auxiliary,problem_desc,exec_time\r\nonednn_verbose,exec,cpu,eltwise,jit:avx2,forward_training,data_f32::blocked:abc:f0 diff_undef::undef::f0,,alg:eltwise_swish alpha:1 beta:0,1x1x1,39.157\r\ncomputed: [1.7615942]\r\nexpected: 2.642391233933647\r\nexpected error computation: 1.7615941559557646\r\n```", "Hi @curufinwe,\r\n\r\nThank you for your feedback!\r\n\r\nI agree with you that it's not related to oneDNN libary itself.\r\nI changed data = [[[2.0, 3.0]]] to data = [[[2.0, 1.0]]] or data = [[[2.0, 4.0]]]\r\nThe output keep the same.\r\n\r\nHowever, with or without oneDNN, the result are different.\r\nMy understanding is it's a graph calcuation in tensorflow. \r\nIt creates a 'graph' and setup the calculation process internal.\r\n\r\nIt looks with or withou oneDNN, the calculation of graph is different (maybe fused ops are used in oneDNN).\r\n\r\nI guess the input data are not passed in correctly.\r\n\r\nAnyway, we are investigating this issue.\r\nThank you!\r\n\r\nXigui", "@curufinwe \r\nIntel TF team has a fix for it, and we are working on upstreaming the fix into TF.\r\nThe fix will be in future TF release soon.\r\n\r\nthanks", "Glad to hear it. Thank you very much!", "@curufinwe ,\r\n\r\nThe proposed PR by intel team has been merged and changes might be reflected in next release. Could you please check and confirm whether the issue can be considered as resolved or wait till next release to check the results ?\r\n", "Hi @SuryanarayanaY,\r\n\r\nI have applied the changes to a locally compiled version of tensorflow 1.13 and I do get the correct result now. This issue can be closed now.\r\n\r\nThank you for your efforts!", "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/60941\">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/60941\">No</a>\n" ]
2023-06-21T16:46:50
2023-08-08T13:36:36
2023-08-08T13:36:33
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 intel-tensorflow 2.8 - 2.12 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.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? When running with an MKL enabled tensorflow (e.g. intel-tensorflow from pypi) (or self-compiled with `--config=mkl`). Starting with tensorflow 2.8.0 up until 2.12.0 The attached code produces the wrong numerical result. (1.7615 vs expected 2.6439). If line 25 is changed to `m = sig * (b + 0.0)` one can get the correct result. This issue does not occur if installing "vanilla" tesorflow from pip with `pip install tensorflow`. This issue also does not occur if one uses `tf.exp` or `tf.log` instead of `tf.sigmoid`. ### Standalone code to reproduce the issue ```shell #!/usr/bin/env python3 import math import tensorflow as tf import numpy as np def sigmoid(x): return 1 / (1 + math.exp(-x)) data = [[[2.0, 3.0]]] tf.compat.v1.disable_eager_execution() s = tf.compat.v1.Session() p = tf.compat.v1.placeholder(dtype=tf.float32) a, b = tf.split(p, 2, axis=2) sig = tf.sigmoid(a) m = sig * b out = s.run([p, m], feed_dict={p: data}) print(out) print('computed: ', out[-1][0,0,0]) print('expected: ', sigmoid(data[0][0][0]) * data[0][0][1]) ``` ### Relevant log output ```shell 2023-06-21 18:37:35.713027: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-06-21 18:37:35.715264: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: [array([[[2., 3.]]], dtype=float32), array([[[1.7615942]]], dtype=float32)] computed: 1.7615942 expected: 2.642391233933647 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60941/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/60941/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60940
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60940/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60940/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60940/events
https://github.com/tensorflow/tensorflow/pull/60940
1,767,972,567
PR_kwDOArmXAs5TkVLe
60,940
[Linaro:ARM_CI] Skip test that fails on gcc builds
{ "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": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@nSircombe @cfRod " ]
2023-06-21T16:25:22
2023-06-27T10:28:12
2023-06-23T14:58:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60940", "html_url": "https://github.com/tensorflow/tensorflow/pull/60940", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60940.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60940.patch", "merged_at": "2023-06-23T14:58:27" }
//tensorflow/compiler/mlir/lite/debug:debug_test fails when built with gcc apparently due to differences in mangling of anonymous namespaces.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60940/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/60940/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60939
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60939/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60939/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60939/events
https://github.com/tensorflow/tensorflow/pull/60939
1,767,721,345
PR_kwDOArmXAs5Tjelc
60,939
[MLIR][tosa] Fixed tf.StridedSlice lowering to tosa with new_axis_mask/shrink_axis_mask
{ "login": "AviadCo", "id": 12224702, "node_id": "MDQ6VXNlcjEyMjI0NzAy", "avatar_url": "https://avatars.githubusercontent.com/u/12224702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AviadCo", "html_url": "https://github.com/AviadCo", "followers_url": "https://api.github.com/users/AviadCo/followers", "following_url": "https://api.github.com/users/AviadCo/following{/other_user}", "gists_url": "https://api.github.com/users/AviadCo/gists{/gist_id}", "starred_url": "https://api.github.com/users/AviadCo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AviadCo/subscriptions", "organizations_url": "https://api.github.com/users/AviadCo/orgs", "repos_url": "https://api.github.com/users/AviadCo/repos", "events_url": "https://api.github.com/users/AviadCo/events{/privacy}", "received_events_url": "https://api.github.com/users/AviadCo/received_events", "type": "User", "site_admin": false }
[ { "id": 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 @rsuderman \r\nI would appreciate if you take a look at this fix, thanks.", "kindly reminder", "> kindly reminder\r\n\r\nHello @AviadCo Sorry for the delay. ", "Hi @AviadCo Can you please resolve conflicts? Thank you!\r\n", "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 @AviadCo Can you please resolve conflicts? Thank you!", "Hi @AviadCo 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 @AviadCo Can you please resolve conflicts? Thank you!", "Hi @AviadCo I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen! Thank you for you contribution!" ]
2023-06-21T14:20:24
2023-11-03T06:29:26
2023-11-03T06:29:25
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60939", "html_url": "https://github.com/tensorflow/tensorflow/pull/60939", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60939.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60939.patch", "merged_at": null }
* When using tf.StridedSlice with new_axis_mask/shrink_axis_mask we must take into account the new/deleted dimentioned in begin_mask & end_mask.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60939/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/60939/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60938
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60938/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60938/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60938/events
https://github.com/tensorflow/tensorflow/issues/60938
1,767,110,257
I_kwDOArmXAs5pU_Zx
60,938
Error: Input 0 of layer 'batch_normalization' is incompatible with the layer: expected ndim=2, found ndim=4.
{ "login": "ApprikatAI", "id": 48971460, "node_id": "MDQ6VXNlcjQ4OTcxNDYw", "avatar_url": "https://avatars.githubusercontent.com/u/48971460?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ApprikatAI", "html_url": "https://github.com/ApprikatAI", "followers_url": "https://api.github.com/users/ApprikatAI/followers", "following_url": "https://api.github.com/users/ApprikatAI/following{/other_user}", "gists_url": "https://api.github.com/users/ApprikatAI/gists{/gist_id}", "starred_url": "https://api.github.com/users/ApprikatAI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ApprikatAI/subscriptions", "organizations_url": "https://api.github.com/users/ApprikatAI/orgs", "repos_url": "https://api.github.com/users/ApprikatAI/repos", "events_url": "https://api.github.com/users/ApprikatAI/events{/privacy}", "received_events_url": "https://api.github.com/users/ApprikatAI/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" } ]
closed
false
{ "login": "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
[ "Hola, yo no hablo espanhol mas:\r\nit seems your model asks for 2 dimensions but your input tensor has a shape of 4 dimensions. Maybe you could try to change the Input layers? It could be done by adding a flattening layer as the first layer like this: \r\nmodel.add(keras.layers.Flatten(input_shape=(height,width,depth))) \r\nOtherwise it can help if you could share the code for your model. You can also use model.summary() to debug, it will show you the current shapes.\r\n\r\n\r\n", "@ApprikatAI,\r\nCould you please provide the complete standalone code to reproduce the issue and also the tensorflow version you are using which helps us to analyse the issue in an effective way. \r\n\r\nAlso the input shape provided is (32, 32, 3) but your model's input isn't taking that shape. You can try as follows for your model input.\r\n\r\n```\r\nmodel = keras.Sequential()\r\n\r\n# Before 1st dense layer adding a Flatten layer that will flat the \r\n# coming tensor of shape (32, 32, 3).\r\nmodel.add(keras.layers.Flatten(input_shape=(32, 32, 3)))\r\nmodel.add(keras.layers.Dense(units=1000, activation=activation))\r\n\r\nmodel.add(keras.layers.BatchNormalization())\r\n```\r\n\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 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/60938\">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/60938\">No</a>\n" ]
2023-06-21T08:54:01
2023-07-29T01:50:10
2023-07-29T01:50:07
NONE
null
null
null
Estoy intentando entrenar un modelo GAN utilizando Keras en TensorFlow, pero estoy encontrando el siguiente error: ``` Input 0 of layer 'batch_normalization' is incompatible with the layer: expected ndim=2, found ndim=4. Full shape received: (None, None, None, 32768) ``` El error ocurre cuando intento entrenar el modelo con el siguiente código: ```python history = model.fit(train_generator, epochs=100, callbacks=[checkpoint, tensorboard]) ``` ¿Alguien podría ayudarme a entender qué está causando este error y cómo puedo solucionarlo? Gracias.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60938/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/60938/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60937
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60937/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60937/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60937/events
https://github.com/tensorflow/tensorflow/pull/60937
1,766,982,893
PR_kwDOArmXAs5Tg8cl
60,937
[ROCM] Fix fallout from More consistent/safer GpuTimer API changes
{ "login": "draganmladjenovic", "id": 37329008, "node_id": "MDQ6VXNlcjM3MzI5MDA4", "avatar_url": "https://avatars.githubusercontent.com/u/37329008?v=4", "gravatar_id": "", "url": "https://api.github.com/users/draganmladjenovic", "html_url": "https://github.com/draganmladjenovic", "followers_url": "https://api.github.com/users/draganmladjenovic/followers", "following_url": "https://api.github.com/users/draganmladjenovic/following{/other_user}", "gists_url": "https://api.github.com/users/draganmladjenovic/gists{/gist_id}", "starred_url": "https://api.github.com/users/draganmladjenovic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/draganmladjenovic/subscriptions", "organizations_url": "https://api.github.com/users/draganmladjenovic/orgs", "repos_url": "https://api.github.com/users/draganmladjenovic/repos", "events_url": "https://api.github.com/users/draganmladjenovic/events{/privacy}", "received_events_url": "https://api.github.com/users/draganmladjenovic/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": 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
[ "@akuegel please review it when you're available. Thanks!", "@cheshire Please check." ]
2023-06-21T07:53:34
2023-06-22T08:21:03
2023-06-22T08:21:03
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60937", "html_url": "https://github.com/tensorflow/tensorflow/pull/60937", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60937.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60937.patch", "merged_at": "2023-06-22T08:21:03" }
Cleanups build failures after commit 7e63c5529608ac11382c567fcda51a07c22dd401
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60937/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/60937/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60936
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60936/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60936/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60936/events
https://github.com/tensorflow/tensorflow/issues/60936
1,766,581,735
I_kwDOArmXAs5pS-Xn
60,936
android gpu delegate Failed to build program executable
{ "login": "mengran1234", "id": 87115287, "node_id": "MDQ6VXNlcjg3MTE1Mjg3", "avatar_url": "https://avatars.githubusercontent.com/u/87115287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mengran1234", "html_url": "https://github.com/mengran1234", "followers_url": "https://api.github.com/users/mengran1234/followers", "following_url": "https://api.github.com/users/mengran1234/following{/other_user}", "gists_url": "https://api.github.com/users/mengran1234/gists{/gist_id}", "starred_url": "https://api.github.com/users/mengran1234/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mengran1234/subscriptions", "organizations_url": "https://api.github.com/users/mengran1234/orgs", "repos_url": "https://api.github.com/users/mengran1234/repos", "events_url": "https://api.github.com/users/mengran1234/events{/privacy}", "received_events_url": "https://api.github.com/users/mengran1234/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": 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" }, { "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
[ "@mengran1234,\r\nCould you please provide the complete standalone code to reproduce the issue which helps us to analyse the issue in an effective way. Thank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "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/60936\">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/60936\">No</a>\n" ]
2023-06-21T02:54:44
2023-07-03T06:01:00
2023-07-03T06:00:58
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.10 or 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? A bug happened! I test gpu delegate on oppo R9. TfLiteInterpreterModifyGraphWithDelegate will reture error value. ERROR: Failed to build program executable - Build program failure<source>:35:26: error: OpenCL extension 'cl_khr_3d_image_writes' is not supported #pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable ^ error: Compiler frontend failed (error code 58) ERROR: Falling back to OpenGL ERROR: TfLiteGpuDelegate Init: OpenGL-based API disabled ERROR: TfLiteGpuDelegate Prepare: delegate is not initialized ERROR: Node number 100 (TfLiteGpuDelegateV2) failed to prepare. ERROR: Restored original execution plan after delegate application failure. tflite gpu Delegate create failed!2 ### Standalone code to reproduce the issue ```shell oppo R9 is produced in 2016 year ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60936/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/60936/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60935
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60935/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60935/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60935/events
https://github.com/tensorflow/tensorflow/issues/60935
1,766,024,674
I_kwDOArmXAs5pQ2Xi
60,935
fit() fails with CUDNN_STATUS_BAD_PARAM when using Conv3D and multi-GPU MirroredStrategy
{ "login": "ohinds", "id": 611999, "node_id": "MDQ6VXNlcjYxMTk5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/611999?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ohinds", "html_url": "https://github.com/ohinds", "followers_url": "https://api.github.com/users/ohinds/followers", "following_url": "https://api.github.com/users/ohinds/following{/other_user}", "gists_url": "https://api.github.com/users/ohinds/gists{/gist_id}", "starred_url": "https://api.github.com/users/ohinds/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ohinds/subscriptions", "organizations_url": "https://api.github.com/users/ohinds/orgs", "repos_url": "https://api.github.com/users/ohinds/repos", "events_url": "https://api.github.com/users/ohinds/events{/privacy}", "received_events_url": "https://api.github.com/users/ohinds/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": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 5508003926, "node_id": "LA_kwDOArmXAs8AAAABSE14Vg", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13", "name": "TF 2.13", "color": "B13ACB", "default": false, "description": "For issues related to Tensorflow 2.13" } ]
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 @ohinds ,\r\n\r\nFor distribution training across multiple devices on same server you need to keep `batch_szie = 1* no of GPU devices` incase you want to calculate gradients after each single batch. Since you have 4 GPUs you need to keep batch_size=1*4 as minimum (multiples of 4). The no of devices can be found by using `mirrored_strategy.num_replicas_in_sync` for your case.\r\n\r\nHence you need to pass `batch_size=batch_size*mirrored_strategy.num_replicas_in_sync`\r\n\r\nPlease try the above change and let us know if it works. Thanks!\r\n\r\n", "Hi @SuryanarayanaY,\r\nThanks! Changing the fit line to\r\n```\r\nmodel.fit(x_data, y_data, batch_size=mirrored_strategy.num_replicas_in_sync, epochs=1, verbose=1)\r\n```\r\n\r\nfixed 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/60935\">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/60935\">No</a>\n" ]
2023-06-20T19:30:00
2023-06-21T20:18:59
2023-06-21T20:18:56
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version v1.12.1-95675-g47602c0bad8 2.14.0-dev20230620 ### Custom Code Yes ### OS Platform and Distribution Rocky Linux release 8.6 (Green Obsidian) ### Mobile device _No response_ ### Python version 3.8.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version cuda_11.8.r11.8/compiler.31833905_0 / cuDNN version 8600 ### GPU model and memory 4 NVIDIA A100s w/ 80GB each ### Current Behaviour? When executing a model fit that includes a `Conv3D` layer on multiple GPUs, I'm encountering a `CUDNN_STATUS_BAD_PARAM` error in the gradient computation step. No errors occur when running on a single GPU, nor when I swap out `Conv3D` with `AveragePooling3D` or `Conv2D`. However, `Conv3DTranspose` also fails. ```none (0) UNKNOWN: CUDNN_STATUS_BAD_PARAM in tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc(3549): 'tensor' CUDNN_BACKEND_TENSOR_DESCRIPTOR: Check and Set the CUDNN_ATTR_TENSOR_DIMENSIONS Correctly [[{{node gradient_tape/replica_2/model/conv3d/Conv3D/Conv3DBackpropFilterV2}}]] [[div_no_nan/ReadVariableOp_1/_52]] [[group_deps/_95]] [[Adam/update_2_2/AssignAddVariableOp/_119]] [[group_deps/_103]] ``` With the `Graph execution error` traceback: ```none Traceback (most recent call last): File "conv3_multi_gpu_fail_repro.py", line 25, in <module> model.fit(x_data, y_data, batch_size=1, epochs=1, verbose=1) File "/***/env/lib/python3.8/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "/***/env/lib/python3.8/site-packages/tensorflow/python/eager/execute.py", line 53, in quick_execute tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, tensorflow.python.framework.errors_impl.UnknownError: Graph execution error: Detected at node gradient_tape/replica_3/model/conv3d/Conv3D/Conv3DBackpropFilterV2 defined at (most recent call last): File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1348, in run_step outputs = model.train_step(data) File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1348, in run_step outputs = model.train_step(data) File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1129, in train_step self.optimizer.minimize(loss, self.trainable_variables, tape=tape) File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1348, in run_step outputs = model.train_step(data) File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1129, in train_step self.optimizer.minimize(loss, self.trainable_variables, tape=tape) File "/***/env/lib/python3.8/site-packages/keras/src/optimizers/optimizer.py", line 543, in minimize grads_and_vars = self.compute_gradients(loss, var_list, tape) File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1348, in run_step outputs = model.train_step(data) File "/***/env/lib/python3.8/site-packages/keras/src/engine/training.py", line 1129, in train_step self.optimizer.minimize(loss, self.trainable_variables, tape=tape) File "/***/env/lib/python3.8/site-packages/keras/src/optimizers/optimizer.py", line 543, in minimize grads_and_vars = self.compute_gradients(loss, var_list, tape) File "/***/env/lib/python3.8/site-packages/keras/src/optimizers/optimizer.py", line 276, in compute_gradients grads = tape.gradient(loss, var_list) ``` I'm running from the `tensorflow/tensorflow:nightly-gpu` docker image. ### Standalone code to reproduce the issue ```python import tensorflow as tf from tensorflow.keras import layers, models input_shape = (28, 28, 28, 1) num_samples = 10 x_data = tf.random.uniform((num_samples, *input_shape), 0, 1) y_data = tf.random.uniform((num_samples, *input_shape), 0, 1) multi_gpu=True # <== fails #multi_gpu=False # <== works devices = [] if multi_gpu else ['/gpu:0'] mirrored_strategy = tf.distribute.MirroredStrategy(devices=devices) print(f"{mirrored_strategy.num_replicas_in_sync} replica(s)") with mirrored_strategy.scope(): inputs = layers.Input(shape=input_shape) outputs = layers.Conv3D(1, 1)(inputs) # <== fails #outputs = layers.AveragePooling3D(1)(inputs) # <== works #outputs = layers.Conv2D(1, 1)(inputs) # <== works model = models.Model(inputs=inputs, outputs=outputs) model.compile(optimizer='adam', loss='binary_crossentropy') model.fit(x_data, y_data, batch_size=1, epochs=1, verbose=1) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60935/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/60935/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60934
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60934/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60934/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60934/events
https://github.com/tensorflow/tensorflow/issues/60934
1,765,367,921
I_kwDOArmXAs5pOWBx
60,934
Ai
{ "login": "PRB79", "id": 136304327, "node_id": "U_kgDOCB_Wxw", "avatar_url": "https://avatars.githubusercontent.com/u/136304327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PRB79", "html_url": "https://github.com/PRB79", "followers_url": "https://api.github.com/users/PRB79/followers", "following_url": "https://api.github.com/users/PRB79/following{/other_user}", "gists_url": "https://api.github.com/users/PRB79/gists{/gist_id}", "starred_url": "https://api.github.com/users/PRB79/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PRB79/subscriptions", "organizations_url": "https://api.github.com/users/PRB79/orgs", "repos_url": "https://api.github.com/users/PRB79/repos", "events_url": "https://api.github.com/users/PRB79/events{/privacy}", "received_events_url": "https://api.github.com/users/PRB79/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": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "Please don't spam" ]
2023-06-20T13:02:51
2023-06-20T16:06:26
2023-06-20T16:06:26
NONE
spam
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): - TensorFlow installed from (source or binary): - TensorFlow version (or github SHA if from source): **Provide the text output from tflite_convert** ``` # Copy and paste here ``` **Standalone code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Colab/Jupyter/any notebook. Also, please include a link to a GraphDef or the model if possible. **Any other info / logs** Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60934/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/60934/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60933
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60933/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60933/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60933/events
https://github.com/tensorflow/tensorflow/pull/60933
1,765,321,698
PR_kwDOArmXAs5TbzoK
60,933
Unsigned integer overflow in `wav_io.cc:297`
{ "login": "kobrineli", "id": 75036757, "node_id": "MDQ6VXNlcjc1MDM2NzU3", "avatar_url": "https://avatars.githubusercontent.com/u/75036757?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kobrineli", "html_url": "https://github.com/kobrineli", "followers_url": "https://api.github.com/users/kobrineli/followers", "following_url": "https://api.github.com/users/kobrineli/following{/other_user}", "gists_url": "https://api.github.com/users/kobrineli/gists{/gist_id}", "starred_url": "https://api.github.com/users/kobrineli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kobrineli/subscriptions", "organizations_url": "https://api.github.com/users/kobrineli/orgs", "repos_url": "https://api.github.com/users/kobrineli/repos", "events_url": "https://api.github.com/users/kobrineli/events{/privacy}", "received_events_url": "https://api.github.com/users/kobrineli/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" }, { "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": "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
[ "@gbaned \r\nHi! Will anyone review these changes please?", "@rohan100jain \r\nHi! Will you take a look at the changes please?", "@akuegel \r\nHi! Seems like the assigned reviewer won't review this. Could you help with the review please?" ]
2023-06-20T12:39:04
2023-07-10T12:26:51
2023-07-10T12:26:50
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60933", "html_url": "https://github.com/tensorflow/tensorflow/pull/60933", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60933.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60933.patch", "merged_at": "2023-07-10T12:26:50" }
Hi! We've been searching errors in tensorflow with [sydr-fuzz](https://github.com/ispras/oss-sydr-fuzz) security predicates and have found an error of unsigned integer overflow in `wav_io.cc:297`. The error appears in computing the expected `bytes_per_second` value. Then it is compared with the input `bytes_per_second` value, and if they are not equal, the error is reported. But on the attached input, the unsigned integer overflow occurs and despite the fact that `bytes_per_sample` and `sample_rate` don't correspond to input `bytes_per_second`, the `expected_bytes_per_second` appears to be equal to `bytes_per_second` and the following check is passed. With the attached input, `bytes_per_sample` equals to 128, `sample_rate` equals to 3196092545, and the `expected_bytes_per_second` equals to `bytes_per_second` equals to 1077952640. To fix the error we suggest to change `expected_bytes_per_second` type to `uint64` and explicitly cast types to `uint64` in multiplication. TensorFlow version: 0db597d0d758aba578783b5bf46c889700a45085 How to reproduce 1. Build docker from [here](https://github.com/ispras/oss-sydr-fuzz/tree/master/projects/tensorflow) and run the container: sudo docker build -t oss-sydr-fuzz-tensorflow . sudo docker run --privileged --rm -v `pwd`:/fuzz -it oss-sydr-fuzz-tensorflow /bin/bash 2. Run the target on this input: [tf-wav-overflow.wav.txt](https://github.com/tensorflow/tensorflow/files/11799137/tf-wav-overflow.wav.txt) /fuzzer/decode_wav_fuzz tf-wav-overflow.wav.txt 3. You will see the following output: tensorflow/core/lib/wav/wav_io.cc:297:61: runtime error: unsigned integer overflow: 128 * 3196092545 cannot be represented in type 'unsigned int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior tensorflow/core/lib/wav/wav_io.cc:297:61 in
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60933/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/60933/timeline
null
null
true