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/61878 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61878/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61878/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61878/events | https://github.com/tensorflow/tensorflow/pull/61878 | 1,898,951,959 | PR_kwDOArmXAs5aeAci | 61,878 | [oneDNN] Make oneDNN default on Windows | {
"login": "mraunak",
"id": 83710963,
"node_id": "MDQ6VXNlcjgzNzEwOTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/83710963?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mraunak",
"html_url": "https://github.com/mraunak",
"followers_url": "https://api.github.com/users/mraunak/followers",
"following_url": "https://api.github.com/users/mraunak/following{/other_user}",
"gists_url": "https://api.github.com/users/mraunak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mraunak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mraunak/subscriptions",
"organizations_url": "https://api.github.com/users/mraunak/orgs",
"repos_url": "https://api.github.com/users/mraunak/repos",
"events_url": "https://api.github.com/users/mraunak/events{/privacy}",
"received_events_url": "https://api.github.com/users/mraunak/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 | [
"> Thank you very much! :)\r\n\r\nThank you very much for your guidance and approving the PR. ",
"2 Windows tests failed internally. Could you please help take a look? This probably happened because we ran on older CPUs that don't have AVX512_BF16.\r\n\r\n`//tensorflow/core/grappler/optimizers:auto_mixed_precision_test_cpu`\r\n```\r\n==================== Test output for //tensorflow/core/grappler/optimizers:auto_mixed_precision_test_cpu:\r\n2023-09-18 19:41:58.740895: I [tensorflow/core/util/port.cc:113](https://cs.corp.google.com/piper///depot/google3/tensorflow/core/util/port.cc?l=113&cl=566379082)] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n[==========] Running 5 tests from 1 test suite.\r\n...\r\n[ RUN ] AutoMixedPrecisionMklTest.InferFollowUpStreamAllow\r\n2023-09-18 19:41:58.891920: I tensorflow/core/grappler/clusters/single_machine.cc:361] Starting new session\r\n2023-09-18 19:41:58.938031: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2254] Converted 3/7 nodes to bfloat16 precision using 0 cast(s) to bfloat16 (excluding Const and Variable casts)\r\n2023-09-18 19:41:58.957392: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at mkl_conv_ops.cc:1096 : ABORTED: Operation received an exception:Status: 3, message: could not create a primitive descriptor for a convolution forward propagation primitive, in file tensorflow/core/kernels/mkl/mkl_conv_ops.cc:1093\r\n2023-09-18 19:41:58.960676: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at mkl_conv_ops.cc:1096 : ABORTED: Operation received an exception:Status: 3, message: could not create a primitive descriptor for a convolution forward propagation primitive, in file tensorflow/core/kernels/mkl/mkl_conv_ops.cc:1093\r\n2023-09-18 19:41:58.961610: F tensorflow/core/grappler/utils/grappler_test.cc:124] Non-OK-status: session->Run(run_options, inputs, node_names, node_names, &output_tensors, nullptr) status: ABORTED: Operation received an exception:Status: 3, message: could not create a primitive descriptor for a convolution forward propagation primitive, in file tensorflow/core/kernels/mkl/mkl_conv_ops.cc:1093\r\n\t [[{{node infer}}]]\r\n*** Received signal 22 ***\r\n*** BEGIN STACK TRACE POINTERS ***\r\n```\r\n\r\n`//tensorflow/core/grappler/optimizers:remapper_test_cpu`\r\n```\r\n==================== Test output for //tensorflow/core/grappler/optimizers:remapper_test_cpu:\r\n2023-09-18 19:41:52.977040: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n[==========] Running 51 tests from 13 test suites.\r\n...\r\n[ RUN ] RemapperFuseConvWithBias.Conv2D_BF16\r\n2023-09-18 19:41:55.405579: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at mkl_conv_ops.cc:1096 : ABORTED: Operation received an exception:Status: 3, message: could not create a primitive descriptor for a convolution forward propagation primitive, in file tensorflow/core/kernels/mkl/mkl_conv_ops.cc:1093\r\n2023-09-18 19:41:55.406251: F tensorflow/core/grappler/utils/grappler_test.cc:124] Non-OK-status: session->Run(run_options, inputs, node_names, node_names, &output_tensors, nullptr) status: ABORTED: Operation received an exception:Status: 3, message: could not create a primitive descriptor for a convolution forward propagation primitive, in file tensorflow/core/kernels/mkl/mkl_conv_ops.cc:1093\r\n\t [[{{node bias_add}}]]\r\n*** Received signal 22 ***\r\n*** BEGIN STACK TRACE POINTERS ***\r\n...\r\n```\r\n\r\n",
"If you don't have older CPUs, I believe you can run with the env var `ONEDNN_MAX_CPU_ISA=AVX2`. (If setting in the shell doesn't work, try passing `--test_env=ONEDNN_MAX_CPU_ISA=AVX2` to bazel)",
"> If you don't have older CPUs, I believe you can run with the env var `ONEDNN_MAX_CPU_ISA=AVX2`. (If setting in the shell doesn't work, try passing `--test_env=ONEDNN_MAX_CPU_ISA=AVX2` to bazel)\r\n\r\nThe above environment setup worked and we were able to replicate the issue, looking into it",
"@mraunak, oneDNN [requires Intel AVX-512 instruction set](https://oneapi-src.github.io/oneDNN/dev_guide_data_types.html#intel-r-architecture-processors) for bfloat16 functionality. You'll need to add guards for older instruction sets, like Intel AVX2.\r\n",
"> @mraunak, oneDNN [requires Intel AVX-512 instruction set](https://oneapi-src.github.io/oneDNN/dev_guide_data_types.html#intel-r-architecture-processors) for bfloat16 functionality. You'll need to add guards for older instruction sets, like Intel AVX2.\r\n\r\nHi @penpornk @vpirogov, the test cases have been resolved. Please review and let me know if any further change is needed. Thank you very much.",
"Thank you for approving the changes. sorry, I again posted a commit to ensure no failures of models during the runtime.",
"2 tests still failed in [Ubuntu CPU](https://source.cloud.google.com/results/invocations/a79e4ba7-e264-495a-9b8b-fe6147474e2c/log)\r\n1. `//tensorflow/python/grappler:auto_mixed_precision_test_cpu`\r\n```\r\n[ RUN ] AutoMixedPrecisionTest.test_conv3d1 ('mkl')\r\n2023-09-21 22:46:21.978741: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n2023-09-21 22:46:22.033759: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:386] MLIR V1 optimization pass is not enabled\r\n2023-09-21 22:46:22.061896: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2330] Running auto_mixed_precision_onednn_bfloat16 graph optimizer\r\n2023-09-21 22:46:22.062308: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:1506] No allowlist ops found, nothing to do\r\n2023-09-21 22:46:22.068265: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2330] Running auto_mixed_precision_onednn_bfloat16 graph optimizer\r\n2023-09-21 22:46:22.068735: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2258] Converted 3/19 nodes to bfloat16 precision using 0 cast(s) to bfloat16 (excluding Const and Variable casts)\r\n2023-09-21 22:46:22.074911: E ./tensorflow/core/graph/mkl_graph_util.h:184] oneDNN BFloat16 support are only on platforms with AVX512. Falling back to default implementation if present.\r\n2023-09-21 22:46:22.100372: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2330] Running auto_mixed_precision_onednn_bfloat16 graph optimizer\r\n2023-09-21 22:46:22.100651: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:1506] No allowlist ops found, nothing to do\r\n2023-09-21 22:46:22.106529: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2330] Running auto_mixed_precision_onednn_bfloat16 graph optimizer\r\n2023-09-21 22:46:22.106998: I tensorflow/core/grappler/optimizers/auto_mixed_precision.cc:2258] Converted 3/19 nodes to bfloat16 precision using 0 cast(s) to bfloat16 (excluding Const and Variable casts)\r\n/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/auto_mixed_precision_test_cpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py:3109: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.\r\n return np.array(a)\r\nINFO:tensorflow:time(__main__.AutoMixedPrecisionTest.test_conv3d1 ('mkl')): 0.17s\r\nI0921 22:46:22.148852 140329108536320 test_util.py:2574] time(__main__.AutoMixedPrecisionTest.test_conv3d1 ('mkl')): 0.17s\r\n[ FAILED ] AutoMixedPrecisionTest.test_conv3d1 ('mkl')\r\n...\r\n```\r\n\r\n2. `//tensorflow/python/grappler:remapper_test_cpu`\r\n```\r\n======================================================================\r\nFAIL: test_matmul_biasadd_activation_fusion1 ('mkl') (__main__.RemapperTest)\r\nRemapperTest.test_matmul_biasadd_activation_fusion1 ('mkl')\r\ndecorated('mkl')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/absl_py/absl/testing/parameterized.py\", line 318, in bound_param_test\r\n return test_method(self, testcase_params)\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py\", line 1749, in decorated\r\n return f(self, *args, **kwargs)\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py\", line 2264, in decorated\r\n return func(self, *args, **kwargs)\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py\", line 2436, in decorated\r\n f(self, *args, **kwargs)\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/org_tensorflow/tensorflow/python/grappler/remapper_test.py\", line 220, in test_matmul_biasadd_activation_fusion\r\n graph = self._VerifyValues(out, precision != dtypes.float32, fused_op,\r\n File \"/b/f/w/bazel-out/k8-opt/bin/tensorflow/python/grappler/remapper_test_cpu.runfiles/org_tensorflow/tensorflow/python/grappler/remapper_test.py\", line 149, in _VerifyValues\r\n self.assertTrue(found_fused_op)\r\nAssertionError: False is not true\r\n\r\n----------------------------------------------------------------------\r\n```",
"@penpornk - These tests were failing earlier on your internal Windows running on Broadwell as oneDNN is becoming enabled by default for it. \r\nWith this change, we are disabling BF16 tests on CPUs with only AVX2 or earlier ISAs for which oneDNN doesn't have BF16 support. OneDNN has emulation support for AVX512 systems without BF16. \r\nTests are now disabled on both Linux and Windows. This should not affect Linux systems as oneDNN is not enabled by default and the tests will get bypassed",
"Hi @penpornk, we are working on it and will have an update ASAP. To clean up the PR, we will split the changes into two PRs. This PR #61878 will have changes only to make oneDNN default on Windows. A separate PR which is in progress will be submitted to address all the test case",
"@mraunak Sounds good. Thank you very much for the update! :)",
"Hi @penpornk, this PR https://github.com/tensorflow/tensorflow/pull/61878 have following changes\r\n1. Make oneDNN default on Windows\r\n2. Update the 'Major Feature and Improvements' section of the release notes for TensorFlow 2.15.0 with the addition of a new feature of making oneDNN optimization default on the Windows Platform.\r\n\r\nAnother PR https://github.com/tensorflow/tensorflow/pull/62011 handles the test case failures on older CPU machines. \r\n\r\nPlease review and let us know if any further change is needed.",
"Hi @cantonios the above feedback/copybara check failure has been addressed in the PR https://github.com/tensorflow/tensorflow/pull/62011. Request you to re-run the check and merge if the check passes"
] | 2023-09-15T19:17:39 | 2023-10-05T20:33:38 | 2023-10-05T17:40:28 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61878",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61878",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61878.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61878.patch",
"merged_at": "2023-10-05T17:40:28"
} | This PR will make oneDNN optimization default on the Windows platform. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61878/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61878/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61877 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61877/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61877/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61877/events | https://github.com/tensorflow/tensorflow/pull/61877 | 1,898,926,382 | PR_kwDOArmXAs5ad7Ad | 61,877 | Use different namespace for each Android library | {
"login": "bvschaik",
"id": 104874,
"node_id": "MDQ6VXNlcjEwNDg3NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/104874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bvschaik",
"html_url": "https://github.com/bvschaik",
"followers_url": "https://api.github.com/users/bvschaik/followers",
"following_url": "https://api.github.com/users/bvschaik/following{/other_user}",
"gists_url": "https://api.github.com/users/bvschaik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bvschaik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bvschaik/subscriptions",
"organizations_url": "https://api.github.com/users/bvschaik/orgs",
"repos_url": "https://api.github.com/users/bvschaik/repos",
"events_url": "https://api.github.com/users/bvschaik/events{/privacy}",
"received_events_url": "https://api.github.com/users/bvschaik/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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/61877/checks?check_run_id=16839222307) 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 @terryheo Can you please review this PR ? Thank you!"
] | 2023-09-15T18:56:22 | 2023-11-03T07:46:34 | 2023-10-23T05:45:42 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61877",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61877",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61877.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61877.patch",
"merged_at": "2023-10-23T05:45:42"
} | Android requires all libraries to have a unique namespace defined in their manifest. Changes made:
- Added manifests for the api and gpu libraries
- Renamed AndroidManifestGpu.xml to AndroidManifestGpuApi.xml for consistent naming
Note: I couldn't figure out which manifest is used for tensorflow-lite-select-tf-ops. Since it was still compiling after half an hour I skipped that one.
Fixes #61853 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61877/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/61877/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61876 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61876/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61876/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61876/events | https://github.com/tensorflow/tensorflow/issues/61876 | 1,898,612,758 | I_kwDOArmXAs5xKogW | 61,876 | Cast from int32 to float32 changes the value. | {
"login": "samriddha1904",
"id": 93480918,
"node_id": "U_kgDOBZJn1g",
"avatar_url": "https://avatars.githubusercontent.com/u/93480918?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samriddha1904",
"html_url": "https://github.com/samriddha1904",
"followers_url": "https://api.github.com/users/samriddha1904/followers",
"following_url": "https://api.github.com/users/samriddha1904/following{/other_user}",
"gists_url": "https://api.github.com/users/samriddha1904/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samriddha1904/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samriddha1904/subscriptions",
"organizations_url": "https://api.github.com/users/samriddha1904/orgs",
"repos_url": "https://api.github.com/users/samriddha1904/repos",
"events_url": "https://api.github.com/users/samriddha1904/events{/privacy}",
"received_events_url": "https://api.github.com/users/samriddha1904/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": 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": "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 @SuryanarayanaY can I also contribute to this issue \r\nI tried casting the int64 to float 64 to obtain the outputs\r\n`import tensorflow as tf`\r\n`tensor_int64 = tf.constant(52479845, tf.int64)`\r\n`tensor_float64 = tf.cast(tensor_int64, tf.float64)`\r\n`print(tensor_float64)`\r\n\r\nThis was giving the output as below :\r\n `tf.Tensor(52479845.0, shape=(), dtype=float64)`\r\n\r\n",
"This is the standard limitation of floating point precision.\r\n\r\nIn IEEE 754 single precision (float), there are 23 bits allocated for the mantissa, allowing for approximately 7 decimal digits of precision.\r\n\r\nDue to this finite precision, not all real numbers can be represented exactly in the floating-point format. This limitation leads to rounding errors or inaccuracies in calculations, especially when dealing with numbers that require more precision than what can be represented within the given number of bits.\r\n\r\nFor more detail, visit https://en.wikipedia.org/wiki/IEEE_754",
"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/61876\">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/61876\">No</a>\n"
] | 2023-09-15T15:07:01 | 2023-10-26T01:47:33 | 2023-10-26T01:47:29 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.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?
Here what I see is that the bug actually happens b/c as we are doing the conversion from int32 to float32 the value changes, as there is a rounding error that occurs when casting an integer to a floating-point type as float32 is not the high precision floating point type like float64, and the bug will also remain the same if we change them even to int64 from int32.
### Standalone code to reproduce the issue
```shell
> The code is below
>> tf.cast(tf.constant(52479845, tf.int64), tf.float32)
<tf.Tensor: shape=(), dtype=float32, numpy=52479844.0>
>> tf.cast(tf.constant(52479843, tf.int64), tf.float32)
<tf.Tensor: shape=(), dtype=float32, numpy=52479843.0>
```
### Relevant log output
```shell
### Relevant log output
_No response_
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61876/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61876/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61875 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61875/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61875/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61875/events | https://github.com/tensorflow/tensorflow/issues/61875 | 1,898,374,568 | I_kwDOArmXAs5xJuWo | 61,875 | Cast from int32 to float32 changes the value. | {
"login": "BMMevius",
"id": 36536314,
"node_id": "MDQ6VXNlcjM2NTM2MzE0",
"avatar_url": "https://avatars.githubusercontent.com/u/36536314?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/BMMevius",
"html_url": "https://github.com/BMMevius",
"followers_url": "https://api.github.com/users/BMMevius/followers",
"following_url": "https://api.github.com/users/BMMevius/following{/other_user}",
"gists_url": "https://api.github.com/users/BMMevius/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BMMevius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BMMevius/subscriptions",
"organizations_url": "https://api.github.com/users/BMMevius/orgs",
"repos_url": "https://api.github.com/users/BMMevius/repos",
"events_url": "https://api.github.com/users/BMMevius/events{/privacy}",
"received_events_url": "https://api.github.com/users/BMMevius/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": 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 | [
"## Change the float32 to float64 to keep the value same\r\n>>> tf.cast(tf.constant(52479843, tf.int32), tf.float64)\r\n<tf.Tensor: shape=(), dtype=float64, numpy=52479843.0>\r\n## same for this one too\r\n>>> tf.cast(tf.constant(52479845, tf.int32), tf.float64)\r\n<tf.Tensor: shape=(), dtype=float64, numpy=52479845.0>",
"@BMMevius Changing the float32 to float64 would give the same result in casting. \r\n Please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/0b30b3321838a98226cdd27448670b29/61875.ipynb). As per [this](https://github.com/tensorflow/tensorflow/blob/v2.13.0/tensorflow/python/ops/math_ops.py#L938-L1019) documentation, the operation supports data types (for `x` and `dtype`) of\r\n `uint8`, `uint16`, `uint32`, `uint64`, `int8`, `int16`, `int32`, `int64`,\r\n `float16`, `float32`, `float64`, `complex64`, `complex128`, `bfloat16`.\r\n In case of casting from complex types (`complex64`, `complex128`) to real\r\n types, only the real part of `x` is returned.\r\n\r\n```\r\ntf.cast(tf.constant(52479843, tf.int32), tf.float64)\r\n<tf.Tensor: shape=(), dtype=float64, numpy=52479843.0>\r\n\r\n\r\n```\r\n```\r\ntf.cast(tf.constant(52479845, tf.int32), tf.float64)\r\n<tf.Tensor: shape=(), dtype=float64, numpy=52479845.0>\r\n```\r\n\r\nThank you!",
"I see that the documentation states that there is a loss of precision when converting from a python datatype to a tensorflow datatype but it also happens when converting from a `tf.int32` to a `tf.float32`, which was not indicated by the documentation.\r\nIf there is a loss in precision between certain tf types, which I believe is going on, it might be useful to add that to the documentation as well.",
"@BMMevius Thank you for your response here. Could you please confirm if the original issue has been resolved.\r\nThank you! ",
"The issues has not been resolved. Because the documentation is not complete about this precision issue.",
"This is the standard limitation of floating point precision.\r\n\r\nIn IEEE 754 single precision (float), there are 23 bits allocated for the mantissa, allowing for approximately 7 decimal digits of precision.\r\n\r\nDue to this finite precision, not all real numbers can be represented exactly in the floating-point format. This limitation leads to rounding errors or inaccuracies in calculations, especially when dealing with numbers that require more precision than what can be represented within the given number of bits.\r\n\r\nFor more detail, visit https://en.wikipedia.org/wiki/IEEE_754 ",
"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/61875\">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/61875\">No</a>\n"
] | 2023-09-15T12:50:23 | 2023-10-26T01:47:36 | 2023-10-26T01:47:31 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.12.0 through tf-nightly (v1.12.1-99894-g5bef7ce6955 2.15.0-dev20230915)
### Custom code
Yes
### OS platform and distribution
nvcr.io/nvidia/tensorflow:23.07-tf2-py3 docker image
### Mobile device
_No response_
### Python version
3.10.6
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Casting some int32 values to float32 causes a change in value.
### Standalone code to reproduce the issue
```shell
>>> tf.cast(tf.constant(52479843, tf.int32), tf.float32)
<tf.Tensor: shape=(), dtype=float32, numpy=52479844.0>
>>> tf.cast(tf.constant(52479845, tf.int32), tf.float32)
<tf.Tensor: shape=(), dtype=float32, numpy=52479844.0>
```
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61875/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61875/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61874 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61874/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61874/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61874/events | https://github.com/tensorflow/tensorflow/pull/61874 | 1,898,203,688 | PR_kwDOArmXAs5abdRV | 61,874 | Fix include ordering | {
"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": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Made moot by https://github.com/tensorflow/tensorflow/commit/de701b17dc2f1e83b17224b421e406dda38cdb8f"
] | 2023-09-15T11:07:29 | 2023-09-19T06:00:19 | 2023-09-17T16:46:50 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61874",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61874",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61874.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61874.patch",
"merged_at": null
} | To prevent undefined reference to uint32_t
Fixes: https://github.com/tensorflow/tensorflow/issues/61872 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61874/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61874/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61873 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61873/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61873/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61873/events | https://github.com/tensorflow/tensorflow/issues/61873 | 1,898,173,080 | I_kwDOArmXAs5xI9KY | 61,873 | ERROR: No matching distribution found for tensorflow==2.12.0 | {
"login": "huan415",
"id": 37132274,
"node_id": "MDQ6VXNlcjM3MTMyMjc0",
"avatar_url": "https://avatars.githubusercontent.com/u/37132274?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/huan415",
"html_url": "https://github.com/huan415",
"followers_url": "https://api.github.com/users/huan415/followers",
"following_url": "https://api.github.com/users/huan415/following{/other_user}",
"gists_url": "https://api.github.com/users/huan415/gists{/gist_id}",
"starred_url": "https://api.github.com/users/huan415/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/huan415/subscriptions",
"organizations_url": "https://api.github.com/users/huan415/orgs",
"repos_url": "https://api.github.com/users/huan415/repos",
"events_url": "https://api.github.com/users/huan415/events{/privacy}",
"received_events_url": "https://api.github.com/users/huan415/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": 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 | [
"Hello, @huan415 \r\nI installed Tensorflow 2.12 on Windows using python -m pip install tensorflow==2.12.0. Please refer to the screenshots\r\n\r\n",
"@huan415 Could you please find the matching distribution for TF v2.12 as mentioned [here](https://www.tensorflow.org/install/source_windows#tested_build_configurations) in this official doc. 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/61873\">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/61873\">No</a>\n"
] | 2023-09-15T10:46:59 | 2023-10-05T01:48:25 | 2023-10-05T01:48:23 | NONE | null | null | null | ### Issue type
Others
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### 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?
pip3 install tensorflow==2.12.0
### Standalone code to reproduce the issue
```shell
ERROR: Could not find a version that satisfies the requirement tensorflow==2.12.0 (from versions: 1.13.1, 1.13.2, 1.14.0, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 1.15.5, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4,
2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1,
2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0)
ERROR: No matching distribution found for tensorflow==2.12.0
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61873/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61873/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61872 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61872/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61872/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61872/events | https://github.com/tensorflow/tensorflow/issues/61872 | 1,898,086,101 | I_kwDOArmXAs5xIn7V | 61,872 | Fails to build on AARCH64 | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
}
] | 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 | [
"@cfRod @nSircombe ",
"Fixed by https://github.com/tensorflow/tensorflow/commit/de701b17dc2f1e83b17224b421e406dda38cdb8f",
"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/61872\">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/61872\">No</a>\n"
] | 2023-09-15T09:48:15 | 2023-09-17T16:47:40 | 2023-09-17T16:47:37 | 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.17
### Bazel version
6.1.0
### GCC/compiler version
16.0.6
### CUDA/cuDNN version
n/a
### GPU model and memory
n/a
### Current behavior?
/tensorflow/lite/kernels/rng_util.h:26:12: error: use of undeclared identifier 'uint32_t'
### Standalone code to reproduce the issue
```shell
bazel test --config=mkl_aarch64_threadpool --copt=-flax-vector-conversions --test_env=TF_ENABLE_ONEDNN_OPTS=1 --test_env=TF2_BEHAVIOR=1 --define=tf_api_version=2 --test_lang_filters=py --flaky_test_attempts=3 --test_size_filters=small,medium --test_output=errors --verbose_failures=true --test_keep_going --notest_verbose_timeout_warnings --action_env=PYTHON_BIN_PATH=/usr/local/bin/python3 --build_tag_filters=-no_oss,-oss_excluded,-oss_serial,-v1only,-benchmark-test,-no_aarch64,-gpu,-tpu,-no_oss_py39,-no_oss_py310 --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-v1only,-benchmark-test,-no_aarch64,-gpu,-tpu,-no_oss_py39,-no_oss_py310 --local_test_jobs=64 --build_tests_only -- //tensorflow/... -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/compiler/xrt/... -//tensorflow/core/tpu/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/python/integration_testing/... -//tensorflow/tools/toolchains/... -//tensorflow/lite/... -//tensorflow/core/kernels/image:resize_bicubic_op_test -//tensorflow/core/grappler/optimizers:auto_mixed_precision_test_cpu -//tensorflow/core/grappler/optimizers:remapper_test_cpu
```
### Relevant log output
```shell
ERROR: /workspace/tensorflow/lite/kernels/BUILD:497:11: Compiling tensorflow/lite/kernels/rng_util.cc failed: (Exit 1): clang failed: error executing command (from target //tensorflow/lite/kernels:rng_util)
(cd /tmpfs/bazel_output/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow && \
exec env - \
CACHEBUSTER=20220325 \
CLANG_COMPILER_PATH=/usr/lib/llvm-16/bin/clang \
LD_LIBRARY_PATH='' \
PATH=/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-arm64/bin:/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \
*** \
PYTHON_BIN_PATH=/usr/local/bin/python3 \
PYTHON_LIB_PATH=/usr/lib/python3/dist-packages \
TF2_BEHAVIOR=1 \
/usr/lib/llvm-16/bin/clang -MD -MF bazel-out/aarch64-opt/bin/tensorflow/lite/kernels/_objs/rng_util/rng_util.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/tensorflow/lite/kernels/_objs/rng_util/rng_util.pic.o' '-DBAZEL_CURRENT_REPOSITORY=""' -iquote . -iquote bazel-out/aarch64-opt/bin -fmerge-all-constants -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wno-invalid-partial-specialization -fno-omit-frame-pointer -no-canonical-prefixes -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 -Wno-gnu-offsetof-extensions -Wno-gnu-offsetof-extensions '-mtune=generic' '-march=armv8-a' -O3 -flax-vector-conversions '-std=c++17' -DFARMHASH_NO_CXX_STRING -DEIGEN_ALLOW_UNALIGNED_SCALARS -Wno-sign-compare -O3 -fno-exceptions '--sysroot=/dt10' -c tensorflow/lite/kernels/rng_util.cc -o bazel-out/aarch64-opt/bin/tensorflow/lite/kernels/_objs/rng_util/rng_util.pic.o)
# Configuration: 91cacbf6409fd17883ece1a0e16168e33815822fe5d36a44e64642fa9b0e32ee
# Execution platform: @local_execution_config_platform//:platform
In file included from tensorflow/lite/kernels/rng_util.cc:15:
./tensorflow/lite/kernels/rng_util.h:26:12: error: use of undeclared identifier 'uint32_t'
std::array<uint32_t, 2> Threefry2x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:26:38: error: unknown type name 'uint32_t'
std::array<uint32_t, 2> Threefry2x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:26:54: error: unknown type name 'uint32_t'
std::array<uint32_t, 2> Threefry2x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:27:49: error: use of undeclared identifier 'uint32_t'
std::array<uint32_t, 2> ctr);
^
./tensorflow/lite/kernels/rng_util.h:32:12: error: use of undeclared identifier 'uint32_t'
std::array<uint32_t, 4> Philox4x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:32:36: error: unknown type name 'uint32_t'
std::array<uint32_t, 4> Philox4x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:32:52: error: unknown type name 'uint32_t'
std::array<uint32_t, 4> Philox4x32(uint32_t key_0, uint32_t key_1,
^
./tensorflow/lite/kernels/rng_util.h:33:47: error: use of undeclared identifier 'uint32_t'
std::array<uint32_t, 4> ctr);
^
8 errors generated.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61872/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61872/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61871 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61871/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61871/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61871/events | https://github.com/tensorflow/tensorflow/pull/61871 | 1,898,023,104 | PR_kwDOArmXAs5aa176 | 61,871 | Clang Migration TF Windows | {
"login": "mraunak",
"id": 83710963,
"node_id": "MDQ6VXNlcjgzNzEwOTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/83710963?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mraunak",
"html_url": "https://github.com/mraunak",
"followers_url": "https://api.github.com/users/mraunak/followers",
"following_url": "https://api.github.com/users/mraunak/following{/other_user}",
"gists_url": "https://api.github.com/users/mraunak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mraunak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mraunak/subscriptions",
"organizations_url": "https://api.github.com/users/mraunak/orgs",
"repos_url": "https://api.github.com/users/mraunak/repos",
"events_url": "https://api.github.com/users/mraunak/events{/privacy}",
"received_events_url": "https://api.github.com/users/mraunak/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"> Can you please note which clang version and any other dependencies that were needed to be installed so internal builds / containers can be updated.\r\n\r\nclang version: LLVM-15.0.7-win64.exe downloaded from https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.7, \r\n$ set BAZEL_LLVM=LLVM installation root path e.g. C:/Program Files/LLVM\r\n$ set Path=LLVM installation root path\\bin e.g. C:/Program Files/LLVM/bin",
"@MichaelHudgins, all the above-suggested changes have been made. Please review and let me know if any further change is needed",
"@mraunak What test suites (bazel flags, etc.) have been run against this?",
"> @mraunak What test suites (bazel flags, etc.) have been run against this?\r\n\r\nHi @angerson,\r\n\r\nbazel --output_user_root=d:/ --windows_enable_symlinks test ^\r\n--experimental_cc_shared_library --enable_runfiles --nodistinct_host_configuration ^\r\n--dynamic_mode=off --config=xla --config=short_logs --announce_rc ^\r\n--build_tag_filters=-no_pip,-no_windows,-no_oss,-gpu,-tpu --build_tests_only --config=monolithic ^\r\n--config=opt --copt=/std:c++latest --copt=/clang:-Weverything --linkopt=/FORCE:MULTIPLE ^\r\n--extra_execution_platforms=//tensorflow/tools/toolchains/win:x64_windows-clang-cl --compiler=clang-cl ^\r\n--repo_env=TF_PYTHON_VERSION=3.10 -k --test_output=errors ^\r\n--test_tag_filters=-no_windows,-no_oss,-gpu,-tpu --discard_analysis_cache ^\r\n--test_size_filters=small,medium --jobs=16 --test_timeout=300,450,1200,3600 --verbose_failures ^\r\n -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/... -//tensorflow/python/data/experimental/kernel_tests/... ^\r\n1>run.log 2>&1",
"> Please also add a comment about the current plan to submit it with clang 15, and then move it to 17 skipping 16, as it is important to have linux and windows on the same version of clang.\r\n\r\nNote: \r\nCurrently, we have migrated the TensorFlow build from MSVC to the Clang-cl compiler with Clang version 15.0.7, it is compatible with the Windows platform unlike Clang 16.0 as we observed a few errors while using Clang 16 on Windows. Next, we will upgrade Clang 15.0.7 to Clang 17 skipping 16 due to compatibility issues"
] | 2023-09-15T09:08:00 | 2023-10-10T23:51:42 | 2023-10-10T01:46:21 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61871",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61871",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61871.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61871.patch",
"merged_at": "2023-10-10T01:46:21"
} | This PR migrates TensorFlow builds on Windows from the MSVC to the clang-cl compiler.
Reason for migration:
Bring TensorFlow Build on Windows and Linux on the same compiler platform to facilitate convenient debugging for the issues related to compiler
Comments:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/def_file_filter/def_file_filter.py.tpl#L309
Deleted #def_fp.write("\t ??0CoordinatedTask@tensorflow@@qeaa@XZ\n") # for _pywrap_tfe
#Fix the issue of being unable to export the symbol tensorflow::CoordinatedTask::CoordinatedTask(void)
as the symbol was not found and the above command was responsible for exporting the symbol
https://github.com/tensorflow/tensorflow/blob/master/.bazelrc#L410
#clang-cl supports /arch:AVX instead of /arch=AVX
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/utils/shape_inference_utils.h#L30
This specific issue is caused by the OpRegistrationData type being defined as [struct OpRegistrationData](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/op_def_builder.h#L67) but declared in failing translation unit as [class OpRegistrationData](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/utils/shape_inference_utils.h#L30). Clang apparently makes the difference here (unlike msvc) and it can't find the symbol with class attribute while it is defined only as a struct. Changing [class OpRegistrationData](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/utils/shape_inference_utils.h#L30) to struct OpRegistrationData fixes this specific issue. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61871/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/61871/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61870 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61870/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61870/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61870/events | https://github.com/tensorflow/tensorflow/issues/61870 | 1,897,929,836 | I_kwDOArmXAs5xIBxs | 61,870 | Significant performance drop in `ModifyGraphWithDelegate() `on Android 12 Using Hexagon Delegate | {
"login": "Janus-Shiau",
"id": 22385182,
"node_id": "MDQ6VXNlcjIyMzg1MTgy",
"avatar_url": "https://avatars.githubusercontent.com/u/22385182?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Janus-Shiau",
"html_url": "https://github.com/Janus-Shiau",
"followers_url": "https://api.github.com/users/Janus-Shiau/followers",
"following_url": "https://api.github.com/users/Janus-Shiau/following{/other_user}",
"gists_url": "https://api.github.com/users/Janus-Shiau/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Janus-Shiau/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Janus-Shiau/subscriptions",
"organizations_url": "https://api.github.com/users/Janus-Shiau/orgs",
"repos_url": "https://api.github.com/users/Janus-Shiau/repos",
"events_url": "https://api.github.com/users/Janus-Shiau/events{/privacy}",
"received_events_url": "https://api.github.com/users/Janus-Shiau/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": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 2888762627,
"node_id": "MDU6TGFiZWwyODg4NzYyNjI3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteHexagonDelegate",
"name": "TFLiteHexagonDelegate",
"color": "72ECFE",
"default": false,
"description": ""
},
{
"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": "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 @Janus-Shiau \r\n\r\nThanks for reporting the issue.\r\n\r\nCould you please share your findings on latest stable version TF2.13 and nightly snapshots?\r\n\r\nThanks.",
"Hi pjpratik,\r\n\r\nWe have tested both on TF2.13 and nightly snapshots. The results are as below.\r\n\r\ntf_2.7/2.11_mobileNet_unitTest@Android10: 150 ms = 0.15 seconds\r\ntf_2.11_mobileNet_unitTest@Android12: 4964 ms = 5 seconds\r\ntf_2.13_mobileNet_unitTest@Android12: 3681ms = 3.7 seconds\r\ntf_nightly_mobileNet_unitTest@Android12: 3880ms = 3.9 seconds\r\n\r\nWe also find that if we build tensorflow-lite from source with printf()-type message logs inside op_builder->PopulateSubGraph() called by the ops being built , all of the logs will be printed following the sequential order same as the code flow in the BuildGraph() function by the code running on Android 12 . However only half of the logs will be printed by the code running on Android 10, and they appear to be printed in an unordered manner. From the clues above, we suspect that the BuildGraph() function will be executed by multiple CPU threads on Android 10 but somehow only single thread on Android 12. The build id of Android 10 is “QKQ1.210528.001” and the the build id of Android 12 is “SKQ1.220804.001”\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.",
"Hi,\r\n\r\nIs there any update?\r\n\r\nThanks.",
"Hi @sirakiin,\r\n\r\nCan you please take a look? Attached is a project that should be close to reproducing it, but there's no emulator for Snapdragons. Thanks.\r\n\r\n[Test61870.zip](https://github.com/tensorflow/tensorflow/files/12823349/Test61870.zip)\r\n",
"Hi, is there any update here?",
"The default number of threads has changed in different versions of TF Lite.\r\nFor reliable performance, you should explicitly set the number of threads using the `SetNumThreads` method of `InterpreterBuilder` (not to be confused with the similarly named method of `Interpreter`, which is deprecated).\r\n\r\nUnfortunately at this point changing the default number of threads back to what it was in TensorFlow 2.7 would also cause new regressions for other apps that are relying on the new default.",
"> The default number of threads has changed in different versions of TF Lite.\r\n\r\nMore specifically, TF Lite 2.7 used Eigen which defaulted to 4 threads, whereas later versions of TF Lite default to 1 thread.\r\n\r\nSo if your code has had a performance regression since TF Lite 2.7, and it appear to be related to threading, try calling `.SetNumThreads(4)` on your `InterpreterBuilder` instance before constructing the `Interpreter`."
] | 2023-09-15T08:10:02 | 2023-10-19T18:22:40 | null | NONE | null | null | null | ### Issue type
Performance
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
Tensorflow 2.7 & 2.11
### Custom code
No
### OS platform and distribution
Linux Ubuntu 18.04
### Mobile device
Android 12
### Python version
3.9
### Bazel version
3.7.2
### GCC/compiler version
7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
#### Significant performance drop
Using the same `libhexagon_nn_skel_v66.so`, `libhexagon_interface.so` in `v1.20.0.1` from the [official website](https://www.tensorflow.org/lite/android/delegates/hexagon).
`ModifyGraphWithDelegate()` of **hexagon delegate on Android 12 is 33x slower than the same function on Android 10**.
#### Possible bugs
We have found that the function `BuildGraph()` in the file of the path below is the source of the irregular execution time but don't know why.
```
tensorflow_source_code_root_dir\tensorflow\lite\delegates\hexagon\hexagon_delegate_kernel.cc
```
#### The SoC
We run the code on Snapdragon XR2, but we think it's easy to reproduce it on other SoC with supported Hexagon.
### Standalone code to reproduce the issue
You can download some tflite model to reproduce this issue. for example, the [SSD-MobileNet from TFHub](https://tfhub.dev/tensorflow/lite-model/ssd_mobilenet_v1/1/default/1), can reproduce this performance drop.
```shell
std::unique_ptr<tflite::Interpreter> interpreter;
tflite::ops::builtin::BuiltinOpResolver resolver;
std::unique_ptr<tflite::FlatBufferModel> model = tflite::FlatBufferModel::BuildFromFile("/vendor/etc/ssd_mobilenet_v1_1_default_1.tflite");
InterpreterBuilder builder(*model, resolver);
builder(&interperter);
TfLiteHexagonInitWithPath("/vendor/lib/rfsa/adsp");
TfLiteHexagonDelegateOptions params = {0};
auto *delegate_ptr = TfLiteHexagonDelegateCreate(¶ms);
Interpreter::TfLiteDelegatePtr delegate(delegate_ptr, [](TfLiteDelegate *delegate){TfLiteHexagonDelegateDelete(delegate)});
uint64_t start_time = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();
if(interperter->ModifyGraphWithDelegate(delegate.get()) != kTfLiteOk){
printf("Fail to delegate with Hexagon\n");
}else{
printf("Success to delegate with Hexagon\n");
}
uint64_t end_time = std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();
uint64_t using_time = end_time > start_time ? end_time - start_time : 0;
printf("using_time: %u micro seconds = %f seconds\n", using_time, using_time / 1000000.f);
if(interperter->AllocateTensors() != kTfLiteOk){
printf("Fail to allocate\n");
}
```
### Relevant log output
```shell
# On Android12->
Success to delegate with Hexagon
using_time: 4964460 micro seconds = 4.964 seconds
# On Android10->
Success to delegate with Hexagon
using_time: 150438 micro seconds = 0.15 seconds
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61870/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61870/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61869 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61869/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61869/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61869/events | https://github.com/tensorflow/tensorflow/issues/61869 | 1,897,854,097 | I_kwDOArmXAs5xHvSR | 61,869 | Wrong element_spec when mapping ragged dataset | {
"login": "0x0L",
"id": 3621629,
"node_id": "MDQ6VXNlcjM2MjE2Mjk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3621629?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0x0L",
"html_url": "https://github.com/0x0L",
"followers_url": "https://api.github.com/users/0x0L/followers",
"following_url": "https://api.github.com/users/0x0L/following{/other_user}",
"gists_url": "https://api.github.com/users/0x0L/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0x0L/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0x0L/subscriptions",
"organizations_url": "https://api.github.com/users/0x0L/orgs",
"repos_url": "https://api.github.com/users/0x0L/repos",
"events_url": "https://api.github.com/users/0x0L/events{/privacy}",
"received_events_url": "https://api.github.com/users/0x0L/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": 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 | [
"@0x0L FYKI, If a DataSet's elements are RaggedTensors, then you can batch them, even if they don't have the same size. The result will be a RaggedTensor with one more ragged dimension. The reason that `ds.map(lambda x: x).padded_batch(2, padded_shapes=[None])` works is that the map converts the RaggedTensor elements into Tensor elements. I was able to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/a9ee1d794fd2c7b86b8fd4139735fff9/61869.ipynb) could you please confirm the outcome here. Thank you!",
"Precisely, the point is that\r\n\r\n```\r\nimport tensorflow as tf\r\nds = tf.data.Dataset.from_tensor_slices(tf.ragged.constant([[1, 2, 3], [4, 5]]))\r\n\r\nfor x in ds.map(tf.square).batch(2, drop_remainder=True):\r\n pass\r\n```\r\n\r\ncrashes with\r\n\r\n```\r\nInvalidArgumentError: {{function_node __wrapped__IteratorGetNext_output_types_1_device_/job:localhost/replica:0/task:0/device:CPU:0}} Cannot add tensor to the batch: number of elements does not match. Shapes are: [tensor]: [2], [batch]: [3] [Op:IteratorGetNext] name: \r\n```\r\n",
"Hi @0x0L ,\r\n\r\nWhenever we apply any transformations on a Dataset by default it will try to transform into batches of Tensors and hence we get `TensorSpec` as output for `element_spec`.\r\n\r\nIf we need to do batching on a Ragged dataset we need to use ragged_batch() function explicitly to make it as Ragged batches.\r\n\r\nThe below code will work and it will output `RaggedTensorSpec` for `ds.element_spec`\r\n\r\n```\r\nds = ds.map(tf.square).ragged_batch(2, drop_remainder=True)\r\nds.element_spec\r\n```\r\nPlease refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/b6fd1b6d42ac02e6bbe3520d0a272b9f/61869.ipynb).\r\n\r\nHope this helps. Thanks!\r\n",
"`ragged_batch` works but I'm more focused on the semantics of `map` as one could reasonably expects that `ds.map(lambda x: x)` is still `ds`.\r\n\r\nThe doc for `tf.data.Dataset.map` does not mention this behavior."
] | 2023-09-15T07:17:15 | 2023-12-15T07:22:41 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.13
### Custom code
Yes
### OS platform and distribution
Linux, Rocky 9
### Mobile device
_No response_
### Python version
3.10.12
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
```python
ds = tf.data.Dataset.from_tensor_slices(tf.ragged.constant([[1, 2, 3], [4, 5]]))
ds.element_spec
```
The `element_spec` is a `RaggedTensorSpec`
But after a `map`, like for instance
```
ds.map(tf.square)
````
the `element_spec` is just a `TensorSpec`
### Standalone code to reproduce the issue
```shell
.
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61869/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61869/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61868 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61868/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61868/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61868/events | https://github.com/tensorflow/tensorflow/pull/61868 | 1,897,296,072 | PR_kwDOArmXAs5aYacn | 61,868 | [Tosa] Fix 2d tfl batch_matmul legalization | {
"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": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rsuderman Can you please review this PR ? Thank you!",
"Would you mind rebasing on head? Seems a merge conflict",
"> Would you mind rebasing on head? Seems a merge conflict\r\n\r\ndone",
"Hi @jpienaar Can you please review this PR ? Thank you!"
] | 2023-09-14T20:55:50 | 2023-11-03T04:48:39 | 2023-11-03T04:48:39 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61868",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61868",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61868.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61868.patch",
"merged_at": "2023-11-03T04:48:39"
} | This patch fixes legalization of 2d tfl.batch_matmul to Tosa, which needs to be reshaped to 3d inputs because tosa matmul requires 3d inputs. And the 3d result needs to be reshaped back to original 2d.
added lit test for this as well.
Change-Id: I7f01cdebbdb6456d02a74f7f3b796ae0eccd1c8e | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61868/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61868/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61867 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61867/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61867/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61867/events | https://github.com/tensorflow/tensorflow/issues/61867 | 1,897,127,807 | I_kwDOArmXAs5xE99_ | 61,867 | tf-nightly import fails with keras | {
"login": "gpetters94",
"id": 4546947,
"node_id": "MDQ6VXNlcjQ1NDY5NDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/4546947?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gpetters94",
"html_url": "https://github.com/gpetters94",
"followers_url": "https://api.github.com/users/gpetters94/followers",
"following_url": "https://api.github.com/users/gpetters94/following{/other_user}",
"gists_url": "https://api.github.com/users/gpetters94/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gpetters94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gpetters94/subscriptions",
"organizations_url": "https://api.github.com/users/gpetters94/orgs",
"repos_url": "https://api.github.com/users/gpetters94/repos",
"events_url": "https://api.github.com/users/gpetters94/events{/privacy}",
"received_events_url": "https://api.github.com/users/gpetters94/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": 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": 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": "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 | [
"@gpetters94 I was able to run 'import tensorflow.compat.v2 as tf' successfully on colab using tf-nightly , please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/3490ac4673c9718664880c16936bacd0/61867.ipynb) and confirm the same?\r\nThank you!",
"> @gpetters94 I was able to run 'import tensorflow.compat.v2 as tf' successfully on colab using tf-nightly , please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/3490ac4673c9718664880c16936bacd0/61867.ipynb) and confirm the same? Thank you!\r\n\r\nYeah, I'm not getting it on the colab link. From looking at the `pip freeze` output there it looks like it's installing a previous version of `keras` - it's 2.13.0 there but 2.14.0 on my system. That's the one that pip pulls in, not sure why.",
"It also seems to happen on my system with 2.13.1 and 2.12.0.",
"@gpetters94 Thank you for your response!\r\nCould you please try to reinstall the latest TensorFlow version 2.13 instead of nightly version with compatible version as mentioned [here](https://www.tensorflow.org/install/source#tested_build_configurations). Please let us know if it works?\r\nThank you! ",
"@sushreebarsa TF 2.13 seems to work fine.",
"@gpetters94 Thank you for the confirmation!\r\nWe recommend to use the stable one as nightly will be failing in some cases. Please let us know if we can close the issue?\r\nThank you!",
"@sushreebarsa ,\r\n\r\nAs per setup.py tf-nightly needs 'keras-nightly ~= 2.15.0.dev' . It should suppose to work with keras-nightly and if not working there might be some reason for that. Instead its better to find out the reason rather than suggesting to use only stable versions. By the way nightly builds made available to community to use the up to date features and it also provides chance to fix the bugs if any.\r\n\r\n@gpetters94 , May be you can try uninstalling existing tensorflow and keras versions and install tf-nightly and it will install keras-nightly as well. Please ensure keras-nightly version was installed. With this environment it will work. I do tested in [colab](https://colab.research.google.com/gist/JyotiPDLr/d2eea28be989794a92fca0b579899bdd/61867.ipynb) and it works fine.",
"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/61867\">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/61867\">No</a>\n"
] | 2023-09-14T18:51:59 | 2023-10-01T01:49:40 | 2023-10-01T01:49:38 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.15.0.dev20230914
### Custom code
No
### OS platform and distribution
Arch Linux
### Mobile device
_No response_
### Python version
Both 3.10 and 3.11
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Running `import tensorflow.compat.v2 as tf` causes the following when keras is installed alongside tf-nightly:
```
/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/tensorflow/__init__.py:29: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptool
s or check PEP 632 for potential alternatives
import distutils as _distutils
2023-09-14 14:47:40.395318: I external/local_tsl/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-09-14 14:47:40.429289: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9511] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has alre
ady been registered
2023-09-14 14:47:40.429321: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has alrea
dy been registered
2023-09-14 14:47:40.429377: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has a
lready been registered
2023-09-14 14:47:40.436510: I external/local_tsl/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-09-14 14:47:40.436868: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-09-14 14:47:42.270861: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/tensorflow/__init__.py", line 483, in <module>
importlib.import_module("keras.optimizers")
File "/home/gap/.pyenv/versions/3.10.2-debug/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/__init__.py", line 3, in <module>
from keras import __internal__
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/__internal__/__init__.py", line 3, in <module>
from keras.__internal__ import backend
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/__internal__/backend/__init__.py", line 3, in <module>
from keras.src.backend import _initialize_variables as initialize_variables
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/__init__.py", line 21, in <module>
from keras.src import models
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/models/__init__.py", line 18, in <module>
from keras.src.engine.functional import Functional
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/engine/functional.py", line 25, in <module>
from keras.src import backend
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/backend.py", line 35, in <module>
from keras.src.engine import keras_tensor
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/engine/keras_tensor.py", line 19, in <module>
from keras.src.utils import object_identity
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/utils/__init__.py", line 20, in <module>
from keras.src.saving.serialization_lib import deserialize_keras_object
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/saving/serialization_lib.py", line 28, in <module>
from keras.src.saving.legacy.saved_model.utils import in_tf_saved_model_scope
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/saving/legacy/saved_model/utils.py", line 30, in <module>
from keras.src.utils.layer_utils import CallFunctionSpec
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/utils/layer_utils.py", line 26, in <module>
from keras.src import initializers
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/initializers/__init__.py", line 23, in <module>
from keras.src.initializers import initializers_v1
File "/home/gap/work/SHARK/venv2/lib/python3.10/site-packages/keras/src/initializers/initializers_v1.py", line 32, in <module>
keras_export(
TypeError: api_export.__init__() got an unexpected keyword argument 'allow_multiple_exports'
```
### Standalone code to reproduce the issue
```shell
python3 -c 'import tensorflow.compat.v2 as tf'
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61867/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61867/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61866 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61866/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61866/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61866/events | https://github.com/tensorflow/tensorflow/issues/61866 | 1,897,034,587 | I_kwDOArmXAs5xEnNb | 61,866 | StringLookup / tf.lookup resource cleanup on model cleared | {
"login": "cjmcgraw",
"id": 4107771,
"node_id": "MDQ6VXNlcjQxMDc3NzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/4107771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cjmcgraw",
"html_url": "https://github.com/cjmcgraw",
"followers_url": "https://api.github.com/users/cjmcgraw/followers",
"following_url": "https://api.github.com/users/cjmcgraw/following{/other_user}",
"gists_url": "https://api.github.com/users/cjmcgraw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cjmcgraw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjmcgraw/subscriptions",
"organizations_url": "https://api.github.com/users/cjmcgraw/orgs",
"repos_url": "https://api.github.com/users/cjmcgraw/repos",
"events_url": "https://api.github.com/users/cjmcgraw/events{/privacy}",
"received_events_url": "https://api.github.com/users/cjmcgraw/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": 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 | [
"Moved from https://github.com/keras-team/tf-keras/issues/136\r\n\r\nHere is relevant solution that seems to stop problem:\r\n\r\n```python\r\ndef wipeit(model):\r\n def _give_handles(m):\r\n if hasattr(m, 'resource_handle'):\r\n yield m.resource_handle\r\n \r\n children = {}\r\n try:\r\n children = m._trackable_children()\r\n except:\r\n pass\r\n\r\n for child in children.values():\r\n yield from _give_handles(child)\r\n\r\n\r\n for handle in _give_handles(model):\r\n tf.raw_ops.DestroyResourceOp(resource=handle)\r\n\r\n\r\n...\r\n\r\n# during model load, after its loaded\r\nprev_model = loaded_model\r\nloaded_model = tf.saved_model.load(...)\r\n\r\nif prev_model:\r\n wipeit(prev_model)\r\n del prev_model\r\n```\r\n",
"@sachinprasadhs,\r\nI was able to reproduce the issue on tensorflow v2.13, v2.12 and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/90480a04fd76ea1d0968fe7b9bde09f3/untitled1367.ipynb)."
] | 2023-09-14T17:44:28 | 2023-10-05T08:37:06 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.12
### Custom code
Yes
### OS platform and distribution
Linux 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 behavior?
Describe the problem.
Define a simple network with a StringLookup of non-trivial size
Reload the network in a for loop.
Memory goes to infinity.
Describe the current behavior.
Memory goes up every load
Describe the expected behavior.
Memory doesn't go up every load
When using StringLookup:

When using Hashing it works:

### Standalone code to reproduce the issue
```shell
import time
import os
import tensorflow as tf
import psutil
def model_fn():
X = tf.keras.Input(shape=(1,), dtype=tf.string)
lookup = tf.keras.layers.StringLookup(
vocabulary=tf.constant([str(x) for x in range(100_000)])
)(X)
Y = tf.math.reduce_sum(lookup, axis=1)
return tf.keras.Model(inputs=[X], outputs=[Y])
model = model_fn()
model.save("/tmp/test-model")
loaded_model = None
process = psutil.Process()
def get_current_mem():
return process.memory_info().rss / 1e6
def load():
global loaded_model
loaded_model = tf.saved_model.load("/tmp/test-model")
print('==========================================================')
print("starting process...")
for i in range(100_000):
start_mem = get_current_mem()
start = time.time()
print(f"i={i} loading...", end='')
load()
curr_mem = get_current_mem()
end = time.time()
print(f"done (mem_usage={curr_mem - start_mem}mb took={int(end - start)}s)")
time.sleep(0.25)
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61866/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61866/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61865 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61865/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61865/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61865/events | https://github.com/tensorflow/tensorflow/issues/61865 | 1,896,917,488 | I_kwDOArmXAs5xEKnw | 61,865 | Gather out-of-range read will return different value with `jit_compile` | {
"login": "YangChenyuan",
"id": 55501188,
"node_id": "MDQ6VXNlcjU1NTAxMTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/55501188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YangChenyuan",
"html_url": "https://github.com/YangChenyuan",
"followers_url": "https://api.github.com/users/YangChenyuan/followers",
"following_url": "https://api.github.com/users/YangChenyuan/following{/other_user}",
"gists_url": "https://api.github.com/users/YangChenyuan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YangChenyuan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YangChenyuan/subscriptions",
"organizations_url": "https://api.github.com/users/YangChenyuan/orgs",
"repos_url": "https://api.github.com/users/YangChenyuan/repos",
"events_url": "https://api.github.com/users/YangChenyuan/events{/privacy}",
"received_events_url": "https://api.github.com/users/YangChenyuan/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": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
},
{
"login": "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 | [
"@YangChenyuan , I have replicated the reported behaviour on GPU runtime. Attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/ad9b6248a61404ed4572c5bb9261281d/61865_gpu.ipynb) for reference.\r\n\r\nIt seems there is inconsistency in tf.gather API , w.r.t jit compilation when applied out of range indices. We will have a look into it and update.\r\n\r\nThanks for reporting.\r\n",
"To add more on CPU for out of range indices, exception will be raised. On GPU, for out of range indices '0' will be returned which will be intended.\r\n\r\nThe intended behaviour observed with `jit_compile=False`. With `jit_compile=True` we need to check why it's not consistent.",
"Thanks for looking into this problem!",
"It's not feasible to throw an error from XLA in this case, as gather could be fused with other operations. The implementation semantics assumes that all reads are in-range, and from what I recall it performs clamping others (@burmako should it be spec'd?)",
"Yes, XLA's gather clamps out of bounds indices as discussed in https://github.com/openxla/stablehlo/blob/main/docs/spec.md#gather. Not sure about the semantics of TF's gather though.",
"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/61865\">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/61865\">No</a>\n",
"Why close this issue? Isn't it a problem that the semantic of tf.gather different from xla's? Tf's semantic is also very useful in some cases.\r\n\r\nSince gather and scatter are symmetric operations, and scatter ignores out-of-bound indices, it is reasonable for gather to also ignore out-of-bound indices.\r\n\r\nThe implementation of Gather in tensorrt stores zero for OOB access, so the behavior of XLA is inconsistent with tensorrt.\r\nhttps://docs.nvidia.com/deeplearning/tensorrt/api/c_api/classnvinfer1_1_1_i_gather_layer.html\r\n\r\n@cheshire @burmako ",
"@x10000year if your proposal is to change HLO semantics to match that of TF, it's probably better to open a bug on openxla/stablehlo repo (or openxla/xla).",
"@cheshire I think it's tf/jit's responsibility to correctly translate a tensorflow graph to a xla graph. If computation overhead is an issue for correct translation for the default behavior (store zero for OOB access), at least an option should be provided to specify the desired behavior for OOB access.",
"In this case I agree it seems like a bridge issue/sharp corner, which should be at least documented.\r\n\r\n@burmako any thoughts?",
"A few thoughts:\r\n\r\n1. The [TF Gather spec](https://www.tensorflow.org/api_docs/python/tf/gather) states the following:\r\n- “The values must be in range [0, params.shape[axis])”\r\n- “Indices are always validated on CPU, never validated on GPU.”\r\n- “Caution: On CPU, if an out of bound index is found, an error is raised. On GPU, if an out of bound index is found, a 0 is stored in the corresponding output value.”\r\n\r\nIn some ways this is behaving as spec’ed, it looks like GPU specifics are hand-wavy. I think the doc could be changed to “OOB on GPU is undefined behavior” since it seems implementation specific as to what the GPU behavior is. Namely, I’m not positive on the meaning of JIT but I believe no-JIT dispatches directly to kernels and JIT is XLA compiled?\r\n\r\n2. _“Should we sync HLO spec to TF?”_\r\n \r\nI think it’s best to avoid this given the caveats of the TF spec. I.e. the spec as-is states “must be in range” but also “can be out of range”.\r\n\r\n3. Can the TF/XLA bridge generate HLO that makes CPU/GPU behavior consistent?\r\n\r\nIt isn’t feasible to reliably detect OOB access statically in the bridge, since the bounds are an input argument. As such, runtime checking is needed, and we currently have no means of doing this.\r\n\r\nThere have been informal discussions on some sort of assertion ops in StableHLO which we could add this use case to the discussion (not sure if we have a ticket for this yet, will look). That said, perhaps raising errors from XLA is infeasible, and this wouldn’t work for this use case? Maybe something can be done with custom calls to validate bounds during runtime, but this would likely add a performance hit.",
"How the gradient of scatter_add op works when OOB indices exist? OOB indices are valid in scatter_add specs. \r\n\r\nIs it better to provide an option to specify the behavior of OOB? like 1) store zeros; 2) undefine behavior. Can XLA compilation fuse gather with the operations of bound validation and storing zeros for OOB to avoid performance hit?\r\n\r\nPersonally I would expect all operators to avoid undefine behavior, as it is often source of troubles."
] | 2023-09-14T16:22:54 | 2023-10-17T05:42:50 | 2023-10-01T11:32:11 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.15.0-dev20230914
### 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?
When the index is out of range, `gather` will return different values with and without `jit_compile=True`.
The return values are expected to be consistent. Another solution is to throw errors in both cases.
### Standalone code to reproduce the issue
```shell
class Model(tf.keras.Model):
def __init__(self):
super(Model, self).__init__()
@tf.function(jit_compile=True)
def call(self, input):
x = tf.gather(input, indices=[5, 8, 7, 16, 256, 123], axis=0) # 256 is out of range
return x
m = Model()
input_shape = [256]
x1 = tf.ones(input_shape)
# Call model
y = m(x1)
print(y)
# tf.Tensor([1. 1. 1. 1. 1. 1.], shape=(6,), dtype=float32), with jit_compile=True
# tf.Tensor([1. 1. 1. 1. 0. 1.], shape=(6,), dtype=float32), without jit_compile=True
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61865/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61865/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61864 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61864/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61864/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61864/events | https://github.com/tensorflow/tensorflow/issues/61864 | 1,896,889,447 | I_kwDOArmXAs5xEDxn | 61,864 | Body function of `while_loop` cannot access the external variable after compilation | {
"login": "YangChenyuan",
"id": 55501188,
"node_id": "MDQ6VXNlcjU1NTAxMTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/55501188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YangChenyuan",
"html_url": "https://github.com/YangChenyuan",
"followers_url": "https://api.github.com/users/YangChenyuan/followers",
"following_url": "https://api.github.com/users/YangChenyuan/following{/other_user}",
"gists_url": "https://api.github.com/users/YangChenyuan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YangChenyuan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YangChenyuan/subscriptions",
"organizations_url": "https://api.github.com/users/YangChenyuan/orgs",
"repos_url": "https://api.github.com/users/YangChenyuan/repos",
"events_url": "https://api.github.com/users/YangChenyuan/events{/privacy}",
"received_events_url": "https://api.github.com/users/YangChenyuan/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"
}
] | 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/61864\">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/61864\">No</a>\n",
"closed as this is intended behaviour"
] | 2023-09-14T16:07:56 | 2023-09-14T16:15:41 | 2023-09-14T16:15:06 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.15.0-dev20230914
### 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?
The body function of `while_loop` cannot access the external variable after compilation. It will raise the error `UnboundLocalError: local variable 'x' referenced before assignment`
However, if I run the model without the `@tf.function(jit_compile=True)`, the model can be executed without any error.
### Standalone code to reproduce the issue
```shell
class Model(tf.keras.Model):
def __init__(self):
super(Model, self).__init__()
@tf.function(jit_compile=True) # Comment this line, it will succeed
def call(self, x):
def cond(i, _):
return i < 10
def body(i, y):
y = tf.math.add(y, 2.0)
x = tf.math.multiply(x, 2.0)
return [tf.math.subtract(i, 1), y + x]
i = tf.constant(10)
y = tf.constant(1.0)
_, final_y = tf.while_loop(cond, body, [i, y], shape_invariants=[i.shape, y.shape])
return final_y
m = Model()
input_shape = [1,2]
x = tf.constant([4.,5.], shape=input_shape)
y = m(x)
```
### Relevant log output
```shell
UnboundLocalError: Exception encountered when calling layer 'model_28' (type Model).
in user code:
File "<ipython-input-31-1eb50a9c2c75>", line 16, in body *
x = tf.math.multiply(x, 2.0)
UnboundLocalError: local variable 'x' referenced before assignment
Call arguments received by layer 'model_28' (type Model):
• x=tf.Tensor(shape=(1, 2), dtype=float32)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61864/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61864/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61863 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61863/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61863/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61863/events | https://github.com/tensorflow/tensorflow/issues/61863 | 1,896,869,660 | I_kwDOArmXAs5xD-8c | 61,863 | Compiled Model throws `pred must not be a Python bool` | {
"login": "YangChenyuan",
"id": 55501188,
"node_id": "MDQ6VXNlcjU1NTAxMTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/55501188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/YangChenyuan",
"html_url": "https://github.com/YangChenyuan",
"followers_url": "https://api.github.com/users/YangChenyuan/followers",
"following_url": "https://api.github.com/users/YangChenyuan/following{/other_user}",
"gists_url": "https://api.github.com/users/YangChenyuan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/YangChenyuan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/YangChenyuan/subscriptions",
"organizations_url": "https://api.github.com/users/YangChenyuan/orgs",
"repos_url": "https://api.github.com/users/YangChenyuan/repos",
"events_url": "https://api.github.com/users/YangChenyuan/events{/privacy}",
"received_events_url": "https://api.github.com/users/YangChenyuan/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": 2691123225,
"node_id": "MDU6TGFiZWwyNjkxMTIzMjI1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:tf.function",
"name": "comp:tf.function",
"color": "0052cc",
"default": false,
"description": "tf.function related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | 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 | [
"@YangChenyuan ,\r\n\r\nInside the `tf.function` python statements will be executed only in first stage i.e retracing stage while capturing tensorflow operations in graph and in second stage of execution only tensorflow operation will executed. This might be the reason for the exception raised. If you pass boolean tensor instead of Python bool and it works fine as expected.\r\n\r\nPlease refer to the attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/fa460fdb1a12cf2a630119223ffa8d2b/61863.ipynb#scrollTo=7trxEkCL7Hzl). Please let us know if you still got any queries.\r\n\r\nThank you!\r\n",
"Hi @SuryanarayanaY, thanks for your further explanation! I wonder if the autograph **should** trace these primitive types in the model since such primitive types, like `bool`, `int`, are very basic and used everywhere. I expect that they will be used without any error when using XLA compilation.",
"Hi @YangChenyuan ,\r\n\r\n`tf.cond(pred)` raises `TypeError` if `pred` is not a callable. Here `pred` is python bool and hence the error.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"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/61863\">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/61863\">No</a>\n"
] | 2023-09-14T15:55:28 | 2023-11-30T01:49:42 | 2023-11-30T01:49:26 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.15.0-dev20230914
### 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?
I have a `tf.cond` in the model with a constant `pred = True`. After `tf.function(jit_compile=True)`, it raises the error `TypeError: ('pred must not be a Python bool', True)`.
By contrast, there isn't any error if the model is executed without the optimization.
### Standalone code to reproduce the issue
```shell
class Model(tf.keras.Model):
def __init__(self):
super(Model, self).__init__()
@tf.function(jit_compile=True) # Comment this line, it will succeed
def call(self, x):
pred = True
x1 = x
y = tf.cond(pred, lambda: x1, lambda: x1)
return y
m = Model()
input_shape = [4]
x = tf.constant([4.,5.,6.,7.], shape=input_shape)
y = m(x)
```
### Relevant log output
```shell
TypeError: Exception encountered when calling layer 'model_11' (type Model).
in user code:
File "<ipython-input-14-5a3ae524deb3>", line 10, in call *
y = tf.cond(pred, lambda: x1, lambda: x1)
TypeError: ('pred must not be a Python bool', True)
Call arguments received by layer 'model_11' (type Model):
• x=tf.Tensor(shape=(4,), dtype=float32)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61863/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61863/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61862 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61862/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61862/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61862/events | https://github.com/tensorflow/tensorflow/issues/61862 | 1,896,840,319 | I_kwDOArmXAs5xD3x_ | 61,862 | Compiled x.shape throws Tuple out-of-range error | {
"login": "dengyinlin",
"id": 30567397,
"node_id": "MDQ6VXNlcjMwNTY3Mzk3",
"avatar_url": "https://avatars.githubusercontent.com/u/30567397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dengyinlin",
"html_url": "https://github.com/dengyinlin",
"followers_url": "https://api.github.com/users/dengyinlin/followers",
"following_url": "https://api.github.com/users/dengyinlin/following{/other_user}",
"gists_url": "https://api.github.com/users/dengyinlin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dengyinlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dengyinlin/subscriptions",
"organizations_url": "https://api.github.com/users/dengyinlin/orgs",
"repos_url": "https://api.github.com/users/dengyinlin/repos",
"events_url": "https://api.github.com/users/dengyinlin/events{/privacy}",
"received_events_url": "https://api.github.com/users/dengyinlin/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": 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": 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": "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 | [
"Related: https://github.com/tensorflow/tensorflow/issues/61856",
"@sachinprasadhs,\r\nI was able to reproduce the issue on tensorflow v2.12, v2.13 and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/133237432d8d43f4aeb8c31899c321e7/untitled1366.ipynb)."
] | 2023-09-14T15:39:18 | 2023-09-21T09:16:36 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf2.13, 2.15.0-dev20230913
### 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?
When a tensor has shape `(2,)`, `x.shape` returns `2`, and throws an error when I try to get `x.shape[0]`. Without `@tf.function(jit_compile=True)` it works well.
### Standalone code to reproduce the issue
```shell
class Model(tf.keras.Model):
def __init__(self):
super(Model, self).__init__()
@tf.function(jit_compile=True)
def call(self, x1):
def select_2_or_one(x):
print(x.shape)
if int(x.shape[0]) == 2:
return x
else:
return tf.stack([x,x])
return tf.cond(tf.less(x1[0], x1[1]),
lambda: select_2_or_one(x1),
lambda: select_2_or_one(x1[0]))
m = Model()
input_shape = [2,]
x1 = tf.constant([2.,3.], shape=input_shape)
y = m(x1)
print(y)
```
### Relevant log output
```shell
if int(x.shape[0]) == 2:
IndexError: tuple index out of range
Call arguments received by layer 'model_1' (type Model):
• x1=tf.Tensor(shape=(2,), dtype=float32)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61862/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61862/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61861 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61861/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61861/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61861/events | https://github.com/tensorflow/tensorflow/issues/61861 | 1,896,588,958 | I_kwDOArmXAs5xC6ae | 61,861 | Elu activation implementation | {
"login": "samthakur587",
"id": 83540902,
"node_id": "MDQ6VXNlcjgzNTQwOTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/83540902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/samthakur587",
"html_url": "https://github.com/samthakur587",
"followers_url": "https://api.github.com/users/samthakur587/followers",
"following_url": "https://api.github.com/users/samthakur587/following{/other_user}",
"gists_url": "https://api.github.com/users/samthakur587/gists{/gist_id}",
"starred_url": "https://api.github.com/users/samthakur587/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/samthakur587/subscriptions",
"organizations_url": "https://api.github.com/users/samthakur587/orgs",
"repos_url": "https://api.github.com/users/samthakur587/repos",
"events_url": "https://api.github.com/users/samthakur587/events{/privacy}",
"received_events_url": "https://api.github.com/users/samthakur587/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": 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": 522623856,
"node_id": "MDU6TGFiZWw1MjI2MjM4NTY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/API%20review",
"name": "API review",
"color": "d4c5f9",
"default": false,
"description": "API Review"
},
{
"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 | [
"hey @SuryanarayanaY this is my first contribution in tensorflow . if is there any thing else i have to add in the template please let me know. [here](https://gist.github.com/samthakur587/93ed3255ba8b0c81856e943576b85bb0) is my gist file.",
"Hi @SuryanarayanaY, also do add the \"**View Source on Github**\" link in the [elu documentation](https://www.tensorflow.org/api_docs/python/tf/nn/elu) (all other tf.nn methods have their link for source code)",
"Hi @samthakur587 , @VachanVY ,\r\n\r\nYeah the documentation seems wrong and also implementation. This is a low level API. I need to have a check on it. Yeah the source code link also not available now which we will have a look into.\r\n\r\nYou can use high level API for same which is [tf.keras.layers.ELU](https://www.tensorflow.org/api_docs/python/tf/keras/layers/ELU) and its working fine. Attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/f03c6a59421529b640cceaea86c574dd/61861.ipynb) for same.\r\n\r\n\r\n",
"Hi @SuryanarayanaY thanks for your comment. I am just exploring the tf activation function where i found this bug. its very helpful if you provide link of the code of this function and also any documentation where i can setup my testing environment for tf functions. I just want to understand the tf code and contribute to this repo.\r\n\r\nThanks \r\nsamunder singh",
"Hii @SuryanarayanaY can you provide the link for the source code of this function. we can make a PR and correct this.",
"Since it's not solved in new release 2.15",
"Hi @samthakur587 ,\r\n\r\nThe source code as Python wrapper not available now and it is getting generated from C++ backend. It's available at C++ backend.If you can able to work on C++ you can try it out."
] | 2023-09-14T13:33:11 | 2024-03-08T07:34:43 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.0
### Custom code
Yes
### 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?
The implementation of the Elu function is wrong the Elu function required the alpha value as is given in this [paper](https://arxiv.org/abs/1511.07289) that

but in tensorflow the Elu is implemented without the alpha.

### Standalone code to reproduce the issue
```shell
#I have compared the result with torch because the elu fucntion in torch has implemnted with alpha. and #manually with the numpy and you can see that the tf is not using the alpha. and returning the wrong #result.
import tensorflow as tf
import numpy as np
import torch
print("tf version --> ",tf.version.VERSION,"\n")
x = np.array([-3.0])
alpha = 0.5
np_result = np.where(x > 0, x, np.multiply(alpha, np.expm1(x))).astype(x.dtype)
tf_result = tf.nn.elu(tf.constant([-3.0]))
torch_result = torch.nn.functional.elu(torch.Tensor([-3.0]),alpha=alpha)
print("tf result --> ",tf_result,"\n")
print("torch result --> ",torch_result,"\n")
print("numpy result --> ",np_result,"\n")
```
### Relevant log output
```shell
tf version --> 2.13.0
tf result --> tf.Tensor([-0.95021296], shape=(1,), dtype=float32)
torch result --> tensor([-0.4751])
numpy result --> [-0.47510647]
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61861/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61861/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61860 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61860/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61860/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61860/events | https://github.com/tensorflow/tensorflow/issues/61860 | 1,896,502,502 | I_kwDOArmXAs5xClTm | 61,860 | Unable to install tflite_runtime on macos M2 processor | {
"login": "wsb252",
"id": 1789066,
"node_id": "MDQ6VXNlcjE3ODkwNjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/1789066?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wsb252",
"html_url": "https://github.com/wsb252",
"followers_url": "https://api.github.com/users/wsb252/followers",
"following_url": "https://api.github.com/users/wsb252/following{/other_user}",
"gists_url": "https://api.github.com/users/wsb252/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wsb252/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wsb252/subscriptions",
"organizations_url": "https://api.github.com/users/wsb252/orgs",
"repos_url": "https://api.github.com/users/wsb252/repos",
"events_url": "https://api.github.com/users/wsb252/events{/privacy}",
"received_events_url": "https://api.github.com/users/wsb252/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 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"
}
] | open | false | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @wsb252, I'm not sure if we support MacOS M2 for that workflow yet.\r\n\r\n@terryheo can you please take a look? Thanks."
] | 2023-09-14T12:45:54 | 2023-09-19T23:00:10 | null | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tflite
### Custom code
No
### OS platform and distribution
macos 13.5.1
### Mobile device
_No response_
### Python version
3.8
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
There are no wheel packages for tflite_runtime for macoc with apple M2 silicon. Need to install tflite_runtime pip package for local development purposes.
### Standalone code to reproduce the issue
```shell
pip reports that there is no package available for my operating system
pip install tflite_runtime
```
### Relevant log output
```shell
pip install tflite_runtime
ERROR: Could not find a version that satisfies the requirement tflite_runtime (from versions: none)
ERROR: No matching distribution found for tflite_runtime
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61860/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61860/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61859 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61859/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61859/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61859/events | https://github.com/tensorflow/tensorflow/issues/61859 | 1,896,446,050 | I_kwDOArmXAs5xCXhi | 61,859 | restoring checkpoint loads weights partially | {
"login": "ekdnam",
"id": 40426312,
"node_id": "MDQ6VXNlcjQwNDI2MzEy",
"avatar_url": "https://avatars.githubusercontent.com/u/40426312?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ekdnam",
"html_url": "https://github.com/ekdnam",
"followers_url": "https://api.github.com/users/ekdnam/followers",
"following_url": "https://api.github.com/users/ekdnam/following{/other_user}",
"gists_url": "https://api.github.com/users/ekdnam/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ekdnam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ekdnam/subscriptions",
"organizations_url": "https://api.github.com/users/ekdnam/orgs",
"repos_url": "https://api.github.com/users/ekdnam/repos",
"events_url": "https://api.github.com/users/ekdnam/events{/privacy}",
"received_events_url": "https://api.github.com/users/ekdnam/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": 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 @ekdnam ,\r\n\r\nCould you please submit a minimal code snippet for reproduction of issue. Also the dataset `modified_train.txt` is missing.\r\n\r\nIt would be appreciated if you can able to submit minimal code snippet for reproduction instead of complete code.",
"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/61859\">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/61859\">No</a>\n"
] | 2023-09-14T12:16:19 | 2023-09-30T01:46:54 | 2023-09-30T01:46:52 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
tf 2.13.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?
I am following this [tfa seq2seq tutorial](https://www.tensorflow.org/addons/tutorials/networks_seq2seq_nmt) for building a seq2seq network with LSTMs. I trained my model and got great accuracy. I saved my model with `tf.train.Checkpoint`. Then, I tried to reload my model with `checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir))`.
However, the model gets restored partially.
My encoder weights get restored, however the decoder does not.
How to resolve?
### Standalone code to reproduce the issue
```shell
from typing import Tuple
import tensorflow as tf
import tensorflow_addons as tfa
from tensorflow.keras.preprocessing.text import tokenizer_from_json
import json
import numpy as np
import unicodedata
import re
import os
import io
import time
from collections import Counter
MAX_SEQUENCE_LENGTH = 30
def math_tokenizer(expression):
regex = r'(\d+|[\+\-\*\/\(\)\^]|[a-zA-Z]+|.)'
# Use the regex to split the expression into tokens
_tok = re.findall(regex, expression)
# Split numbers into individual digits
ret_tokens = []
for token in _tok:
if token.isdigit():
ret_tokens.extend(list(token))
else:
ret_tokens.append(token)
# Filter out empty strings
ret_tokens = [token for token in ret_tokens if token.strip()]
return ret_tokens
def change_variable(expression):
# Define regular expressions to match different tokens
tokenstream = math_tokenizer(expression)
variable = None
for idx, tok in enumerate(tokenstream):
if len(tok) == 1 and tok.isalpha():
variable = tok
tokenstream[idx] = "var"
return ' '.join(tokenstream), variable
def text_cleaning(x):
modified_text = [None] * len(x)
tokens = set()
tok_list = []
variables = []
for idx, dx in enumerate(x):
lhs, rhs = dx.split("=")
tokenstream, v = change_variable('='.join([lhs[2:-4], rhs[:-1]]))
tokens.update(tokenstream)
tok_list.extend(tokenstream)
variables.append(v)
modified_text[idx] = ''.join(tokenstream)
return modified_text, variables
def generate_train_test_dataset(data, TRAIN_SIZE):
modified_text, variables = text_cleaning(data)
inputs = []
targets = []
for idx, dx in enumerate(modified_text):
inp, tgt = dx.split("=")
inputs.append(inp)
targets.append(tgt)
train_inputs = inputs[:TRAIN_SIZE]
train_targets = targets[:TRAIN_SIZE]
train_variables = variables[:TRAIN_SIZE]
test_inputs = inputs[TRAIN_SIZE:]
test_targets = targets[TRAIN_SIZE:]
test_variables = variables[TRAIN_SIZE:]
return train_inputs, train_targets, train_variables, test_inputs, test_targets, test_variables
class MyDataset:
def __init__(self, problem_type='calculus'):
self.problem_type = 'calculus'
self.inp_lang_tokenizer = None
self.targ_lang_tokenizer = None
def unicode_to_ascii(self, s):
return ''.join(c for c in unicodedata.normalize('NFD', s) if unicodedata.category(c) != 'Mn')
def preprocess_sentence(self, w):
w = w.strip()
w = 'start ' + w + ' end'
return w
def tokenize(self, lang, func):
lang_tokenizer = tf.keras.preprocessing.text.Tokenizer(filters=None, oov_token='<OOV>', analyzer=func)
lang_tokenizer.fit_on_texts(lang)
tensor = lang_tokenizer.texts_to_sequences(lang)
tensor = tf.keras.preprocessing.sequence.pad_sequences(tensor, padding='post')
return tensor, lang_tokenizer
def load_dataset(self, dataset, func):
# creating cleaned input, output pairs
targ_lang, inp_lang = dataset
targ_lang = [self.preprocess_sentence(w) for w in targ_lang]
inp_lang = [self.preprocess_sentence(w) for w in inp_lang]
input_tensor, inp_lang_tokenizer = self.tokenize(inp_lang, func)
target_tensor, targ_lang_tokenizer = self.tokenize(targ_lang, func)
return input_tensor, target_tensor, inp_lang_tokenizer, targ_lang_tokenizer
def call(self, dataset, BUFFER_SIZE, BATCH_SIZE, func):
input_tensor, target_tensor, self.inp_lang_tokenizer, self.targ_lang_tokenizer = self.load_dataset(dataset, func)
train_dataset = tf.data.Dataset.from_tensor_slices((input_tensor, target_tensor))
train_dataset = train_dataset.shuffle(BUFFER_SIZE).batch(BATCH_SIZE, drop_remainder=True)
return train_dataset, self.inp_lang_tokenizer, self.targ_lang_tokenizer
class Encoder(tf.keras.Model):
def __init__(self, vocab_size, embedding_dim, enc_units, batch_sz):
super(Encoder, self).__init__()
self.batch_sz = batch_sz
self.enc_units = enc_units
self.embedding = tf.keras.layers.Embedding(vocab_size, embedding_dim)
self.lstm_layer = tf.keras.layers.LSTM(self.enc_units,
return_sequences=True,
return_state=True,
recurrent_initializer='glorot_uniform')
def call(self, x, hidden):
x = self.embedding(x)
output, h, c = self.lstm_layer(x, initial_state = hidden)
return output, h, c
def initialize_hidden_state(self):
return [tf.zeros((self.batch_sz, self.enc_units)), tf.zeros((self.batch_sz, self.enc_units))]
class Decoder(tf.keras.Model):
def __init__(self, vocab_size, embedding_dim, dec_units, batch_sz, max_length_input, max_length_output, attention_type='luong'):
super(Decoder, self).__init__()
self.batch_sz = batch_sz
self.dec_units = dec_units
self.attention_type = attention_type
self.max_length_output = max_length_output
# Embedding Layer
self.embedding = tf.keras.layers.Embedding(vocab_size, embedding_dim)
#Final Dense layer on which softmax will be applied
self.fc = tf.keras.layers.Dense(vocab_size)
# Define the fundamental cell for decoder recurrent structure
self.decoder_rnn_cell = tf.keras.layers.LSTMCell(self.dec_units)
# Sampler
self.sampler = tfa.seq2seq.sampler.TrainingSampler()
# Create attention mechanism with memory = None
self.attention_mechanism = self.build_attention_mechanism(self.dec_units,
None, self.batch_sz*[max_length_input], self.attention_type)
# Wrap attention mechanism with the fundamental rnn cell of decoder
self.rnn_cell = self.build_rnn_cell(batch_sz)
# Define the decoder with respect to fundamental rnn cell
self.decoder = tfa.seq2seq.BasicDecoder(self.rnn_cell, sampler=self.sampler, output_layer=self.fc)
def build_rnn_cell(self, batch_sz):
rnn_cell = tfa.seq2seq.AttentionWrapper(self.decoder_rnn_cell,
self.attention_mechanism, attention_layer_size=self.dec_units)
return rnn_cell
def build_attention_mechanism(self, dec_units, memory, memory_sequence_length, attention_type='luong'):
# ------------- #
# typ: Which sort of attention (Bahdanau, Luong)
# dec_units: final dimension of attention outputs
# memory: encoder hidden states of shape (batch_size, max_length_input, enc_units)
# memory_sequence_length: 1d array of shape (batch_size) with every element set to max_length_input (for masking purpose)
if(attention_type=='bahdanau'):
return tfa.seq2seq.BahdanauAttention(units=dec_units, memory=memory, memory_sequence_length=memory_sequence_length)
else:
return tfa.seq2seq.LuongAttention(units=dec_units, memory=memory, memory_sequence_length=memory_sequence_length)
def build_initial_state(self, batch_sz, encoder_state, Dtype):
decoder_initial_state = self.rnn_cell.get_initial_state(batch_size=batch_sz, dtype=Dtype)
decoder_initial_state = decoder_initial_state.clone(cell_state=encoder_state)
return decoder_initial_state
def call(self, inputs, initial_state):
x = self.embedding(inputs)
outputs, _, _ = self.decoder(x, initial_state=initial_state, sequence_length=self.batch_sz*[self.max_length_output-1])
return outputs
def loss_function(real, pred):
# real shape = (BATCH_SIZE, max_length_output)
# pred shape = (BATCH_SIZE, max_length_output, tar_vocab_size )
cross_entropy = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True, reduction='none')
loss = cross_entropy(y_true=real, y_pred=pred)
mask = tf.logical_not(tf.math.equal(real,0)) #output 0 for y=0 else output 1
mask = tf.cast(mask, dtype=loss.dtype)
loss = mask* loss
loss = tf.reduce_mean(loss)
return loss
import json
functions = '8exp^(9e)'
f = open('modified_train.txt', 'r')
modified_text = f.readlines()
f.close()
modified_text = [m[:-1] for m in modified_text]
BUFFER_SIZE = 32000
BATCH_SIZE = 64
# Let's limit the #training examples for faster training
num_examples = 30000
inputs = []
targets = []
N_TRAIN = 800000
for dx in (modified_text):
try:
inp, tgt = dx.split("=")
inputs.append(inp)
targets.append(tgt)
except:
print(f"Error at: {dx}")
train_inputs = inputs[:N_TRAIN]
train_targets = targets[:N_TRAIN]
test_inputs = inputs[N_TRAIN:]
test_targets = targets[N_TRAIN:]
data = (train_targets, train_inputs)
print("Creating the dataset")
dataset_creator = MyDataset('calculus')
# print("Training the tokenizer")
# train_dataset, inp_lang, targ_lang = dataset_creator.call(data, BUFFER_SIZE, BATCH_SIZE, math_tokenizer)
f = open('./inp_lang_tokenizer.json')
inp_json = f.read()
inp_json = json.loads(inp_json)
f.close()
f = open('./targ_lang_tokenizer.json')
targ_json = f.read()
targ_json = json.loads(targ_json)
inp_lang = tokenizer_from_json(inp_json)
targ_lang = tokenizer_from_json(targ_json)
# example_input_batch, example_target_batch = next(iter(train_dataset))
# example_input_batch.shape, example_target_batch.shape
vocab_inp_size = len(inp_lang.word_index)+1
vocab_tar_size = len(targ_lang.word_index)+1
max_length_input = 31
max_length_output = 31
embedding_dim = 128
units = 256
steps_per_epoch = num_examples//BATCH_SIZE
train_dataset, inp_lang, targ_lang = dataset_creator.call(data, BUFFER_SIZE, BATCH_SIZE, math_tokenizer)
## Test Encoder Stack
example_input_batch, example_target_batch = next(iter(train_dataset))
print("Creating encoder")
encoder = Encoder(vocab_inp_size, embedding_dim, units, BATCH_SIZE)
sample_hidden = encoder.initialize_hidden_state()
sample_output, sample_h, sample_c = encoder(example_input_batch, sample_hidden)
sample_hidden = encoder.initialize_hidden_state()
# Test decoder stack
print("Creating decoder")
# vocab_size, embedding_dim, dec_units, batch_sz, max_length_input, max_length_output, attention_type='luong'
decoder = Decoder(vocab_tar_size, embedding_dim, units, BATCH_SIZE, max_length_input, max_length_output, 'luong')
sample_x = tf.random.uniform((BATCH_SIZE, max_length_output))
decoder.attention_mechanism.setup_memory(sample_output)
initial_state = decoder.build_initial_state(BATCH_SIZE, [sample_h, sample_c], tf.float32)
print("Creating the optimizer")
optimizer = tf.keras.optimizers.Adam()
checkpoint_enc_dir = './training_checkpoints/encoder'
checkpoint_enc_prefix = os.path.join(checkpoint_enc_dir, "ckpt")
checkpoint_dec_dir = './training_checkpoints/decoder'
checkpoint_dec_prefix = os.path.join(checkpoint_dec_dir, "ckpt")
checkpoint_enc = tf.train.Checkpoint(optimizer=optimizer,
encoder=encoder)
checkpoint_dec = tf.train.Checkpoint(optimizer=optimizer,
decoder=decoder)
# restoring the latest checkpoint in checkpoint_dir
checkpoint_enc.restore(tf.train.latest_checkpoint(checkpoint_enc_dir))
checkpoint_dec.restore(tf.train.latest_checkpoint(checkpoint_dec_dir))
print(decoder.embedding.variables)
```
### Relevant log output
```shell
[]
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61859/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61859/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61858 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61858/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61858/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61858/events | https://github.com/tensorflow/tensorflow/issues/61858 | 1,895,523,270 | I_kwDOArmXAs5w-2PG | 61,858 | ImportError : cannot import name 'context from 'tensorflow.python.eager' | {
"login": "inviul",
"id": 28164616,
"node_id": "MDQ6VXNlcjI4MTY0NjE2",
"avatar_url": "https://avatars.githubusercontent.com/u/28164616?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/inviul",
"html_url": "https://github.com/inviul",
"followers_url": "https://api.github.com/users/inviul/followers",
"following_url": "https://api.github.com/users/inviul/following{/other_user}",
"gists_url": "https://api.github.com/users/inviul/gists{/gist_id}",
"starred_url": "https://api.github.com/users/inviul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/inviul/subscriptions",
"organizations_url": "https://api.github.com/users/inviul/orgs",
"repos_url": "https://api.github.com/users/inviul/repos",
"events_url": "https://api.github.com/users/inviul/events{/privacy}",
"received_events_url": "https://api.github.com/users/inviul/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": 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": "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 | [
"@inviul,\r\nCould you please confirm whether you are facing the issue on only Windows environment or other env. as well. When I tried to import the above mentioned, I was able to import the same.\r\n\r\nAlso there is the numpy dependency. Could please re-check if you have installed the correct numpy version .\r\n[tensorflow/tensorflow/tools/pip_package/setup.py](https://github.com/tensorflow/tensorflow/blob/v2.13.0/tensorflow/tools/pip_package/setup.py#L93)\r\n\r\n**'numpy >= 1.22, <= 1.24.3',** \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/61858\">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/61858\">No</a>\n"
] | 2023-09-14T02:06:04 | 2023-10-04T01:48:25 | 2023-10-04T01:48:23 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.0
### Custom code
No
### OS platform and distribution
Windows 11
### 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 behavior?
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_23420\1827115418.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/go4av/OneDrive/Desktop/Dissertation/Code/2021fc04746/notebook/~/AppData/Local/Temp/ipykernel_23420/1827115418.py) in <module>
----> 1 from tensorflow import keras
2 from tensorflow.keras.models import Sequential
3 from tensorflow.keras.layers import Input, Dense, Activation, Dropout
4 from tensorflow.keras.optimizers import Adam
5 from keras import layers
[c:\Program](file:///C:/Program) Files\Python310\lib\site-packages\tensorflow\__init__.py in <module>
36 import typing as _typing
37
---> 38 from tensorflow.python.tools import module_util as _module_util
39 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
40
[c:\Program](file:///C:/Program) Files\Python310\lib\site-packages\tensorflow\python\__init__.py in <module>
35
36 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
---> 37 from tensorflow.python.eager import context
38
39 # pylint: enable=wildcard-import
ImportError: cannot import name 'context' from 'tensorflow.python.eager'
### Standalone code to reproduce the issue
```shell
from tensorflow import keras
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Input, Dense, Activation, Dropout
from tensorflow.keras.optimizers import Adam
from keras import layers
from keras import regularizers
```
### Relevant log output
```shell
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_23420\1827115418.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/go4av/OneDrive/Desktop/Dissertation/Code/2021fc04746/notebook/~/AppData/Local/Temp/ipykernel_23420/1827115418.py) in <module>
----> 1 from tensorflow import keras
2 from tensorflow.keras.models import Sequential
3 from tensorflow.keras.layers import Input, Dense, Activation, Dropout
4 from tensorflow.keras.optimizers import Adam
5 from keras import layers
[c:\Program](file:///C:/Program) Files\Python310\lib\site-packages\tensorflow\__init__.py in <module>
36 import typing as _typing
37
---> 38 from tensorflow.python.tools import module_util as _module_util
39 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
40
[c:\Program](file:///C:/Program) Files\Python310\lib\site-packages\tensorflow\python\__init__.py in <module>
35
36 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
---> 37 from tensorflow.python.eager import context
38
39 # pylint: enable=wildcard-import
ImportError: cannot import name 'context' from 'tensorflow.python.eager'
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61858/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61858/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61857 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61857/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61857/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61857/events | https://github.com/tensorflow/tensorflow/issues/61857 | 1,895,445,137 | I_kwDOArmXAs5w-jKR | 61,857 | Add support for `ios-arm64-simulator` to `TensorFlowLiteSelectTfOps` pod | {
"login": "mmaetzler",
"id": 105300787,
"node_id": "U_kgDOBkbDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/105300787?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mmaetzler",
"html_url": "https://github.com/mmaetzler",
"followers_url": "https://api.github.com/users/mmaetzler/followers",
"following_url": "https://api.github.com/users/mmaetzler/following{/other_user}",
"gists_url": "https://api.github.com/users/mmaetzler/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mmaetzler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mmaetzler/subscriptions",
"organizations_url": "https://api.github.com/users/mmaetzler/orgs",
"repos_url": "https://api.github.com/users/mmaetzler/repos",
"events_url": "https://api.github.com/users/mmaetzler/events{/privacy}",
"received_events_url": "https://api.github.com/users/mmaetzler/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1205765054,
"node_id": "MDU6TGFiZWwxMjA1NzY1MDU0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS",
"name": "subtype:macOS",
"color": "b619ea",
"default": false,
"description": "macOS Build/Installation issues"
}
] | open | false | {
"login": "yishuangP",
"id": 6421220,
"node_id": "MDQ6VXNlcjY0MjEyMjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/6421220?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yishuangP",
"html_url": "https://github.com/yishuangP",
"followers_url": "https://api.github.com/users/yishuangP/followers",
"following_url": "https://api.github.com/users/yishuangP/following{/other_user}",
"gists_url": "https://api.github.com/users/yishuangP/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yishuangP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yishuangP/subscriptions",
"organizations_url": "https://api.github.com/users/yishuangP/orgs",
"repos_url": "https://api.github.com/users/yishuangP/repos",
"events_url": "https://api.github.com/users/yishuangP/events{/privacy}",
"received_events_url": "https://api.github.com/users/yishuangP/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "yishuangP",
"id": 6421220,
"node_id": "MDQ6VXNlcjY0MjEyMjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/6421220?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yishuangP",
"html_url": "https://github.com/yishuangP",
"followers_url": "https://api.github.com/users/yishuangP/followers",
"following_url": "https://api.github.com/users/yishuangP/following{/other_user}",
"gists_url": "https://api.github.com/users/yishuangP/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yishuangP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yishuangP/subscriptions",
"organizations_url": "https://api.github.com/users/yishuangP/orgs",
"repos_url": "https://api.github.com/users/yishuangP/repos",
"events_url": "https://api.github.com/users/yishuangP/events{/privacy}",
"received_events_url": "https://api.github.com/users/yishuangP/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 @yishuangP, can you please take a look? Thanks.",
"Checking in if there is any update on this? ",
"Yes I would also really like that!"
] | 2023-09-14T00:44:29 | 2024-04-06T08:03:24 | null | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.13
### Custom code
No
### OS platform and distribution
macOS 13.5.1
### Mobile device
iOS 16.4
### 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?
The current pod for `TensorFlowLiteC` includes binaries built for the iOS simulator. However, the pod for `TensorFlowLiteSelectTfOps` does not include any simulator binaries.
Please consider building `TensorFlowLiteSelectTfOps` for the sim architecture as well.
This would allow us to run some of our unit tests on the simulator. In the current behavior, our app does not build for the sim since the included framework does not include any sim compatible binaries.
### Standalone code to reproduce the issue
```shell
1. Unpack the `TensorFlowLiteSelectTfOps` framework for release 2.13
2. Observe that there is no included binary for the sim architecture
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61857/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61857/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61856 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61856/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61856/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61856/events | https://github.com/tensorflow/tensorflow/issues/61856 | 1,895,269,788 | I_kwDOArmXAs5w94Wc | 61,856 | XLA compiled `tf.reshape` throws ValueError: Shape must be rank 1 but is rank 0 | {
"login": "dengyinlin",
"id": 30567397,
"node_id": "MDQ6VXNlcjMwNTY3Mzk3",
"avatar_url": "https://avatars.githubusercontent.com/u/30567397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dengyinlin",
"html_url": "https://github.com/dengyinlin",
"followers_url": "https://api.github.com/users/dengyinlin/followers",
"following_url": "https://api.github.com/users/dengyinlin/following{/other_user}",
"gists_url": "https://api.github.com/users/dengyinlin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dengyinlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dengyinlin/subscriptions",
"organizations_url": "https://api.github.com/users/dengyinlin/orgs",
"repos_url": "https://api.github.com/users/dengyinlin/repos",
"events_url": "https://api.github.com/users/dengyinlin/events{/privacy}",
"received_events_url": "https://api.github.com/users/dengyinlin/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": 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": 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 | [
"@SuryanarayanaY I was able to replicate the issue reported. Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/f0c6a28d05bd082dcb0f77e6ddb2f7af/xla-compiled-tf-reshape-throws-valueerror-shape-must-be-rank-1-but-is-rank-0.ipynb#scrollTo=7O8bcJB8WvA7). Thank you!",
"Hi @dengyinlin ,\r\n\r\nYou need to pass shape as tuple to get it work as intended. With that modification the `tf.function` decorator works fine with both `jit_compile=True `or `jit_compile=False`. Please refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/402d747df5cf8d09e2ed0903ebeb4caf/61856.ipynb).",
"Hi @SuryanarayanaY ,\r\nThanks for the reply! Changing to `(4,)` can indeed solve the issue.\r\n\r\nHowever, I also noticed that without compiling, `tf.reshape` can automatically convert the `(4)` to a tuple and the model can work fine. I think it would be good if such implicit conversion can be supported during compilation (`tf.function`), to ensure the model behavior is more consistent with or without compilation. ",
"I agree to @dengyinlin comment. It seems while tracing inside tf.function, its not able to convert (4) to (4,). I think the behaviour should be consistent with or without tf.function and I believe it can be fixed.",
"Hi @dengyinlin ,\r\n\r\nI agree to the fact that there should be consistency. We will deep dig into the issue and will update you. \r\n\r\nThank you!"
] | 2023-09-13T21:09:29 | 2023-10-12T09:14:09 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf2.13, 2.15.0-dev20230913
### 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?
The following model calls `tf.reshape` on an input tensor, and throws ValueError when compiled with XLA. Without XLA compilation, it runs smoothly.
This issue is observed on TF 2.13 and also nightly. See the [gist](https://colab.research.google.com/gist/dengyinlin/d9368054f16a011f9d1fed3cede96b95/xla-compiled-tf-reshape-throws-valueerror-shape-must-be-rank-1-but-is-rank-0.ipynb) for more detail.
### Standalone code to reproduce the issue
```python
class Model(tf.keras.Model):
def __init__(self):
super(Model, self).__init__()
@tf.function(jit_compile=True)
def call(self, x1):
x2 = tf.reshape(x1, (2, 2))
return tf.reshape(x2, (4))
m = Model()
input_shape = (4)
x1 = tf.constant([4.,5.,6.,7.], shape=input_shape)
y = m(x1)
print(y)
```
### Relevant log output
```shell
ValueError: Shape must be rank 1 but is rank 0 for '{{node Reshape_1}} = Reshape[T=DT_FLOAT, Tshape=DT_INT32](Reshape, Reshape_1/shape)' with input shapes: [2,2], [].
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61856/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61856/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61855 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61855/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61855/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61855/events | https://github.com/tensorflow/tensorflow/pull/61855 | 1,894,650,642 | PR_kwDOArmXAs5aPeax | 61,855 | Use different agent label for release testing and ci/nightlys | {
"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": 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 | [
"cc: @nitins17 "
] | 2023-09-13T14:25:27 | 2023-09-15T03:51:40 | 2023-09-15T03:51:40 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61855",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61855",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61855.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61855.patch",
"merged_at": "2023-09-15T03:51:40"
} | Currently the release builds and tests run on the same agents as nightly/ci. This will allow them to run on different agents with different VM timeout parameters for better release feedback. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61855/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61855/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61854 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61854/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61854/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61854/events | https://github.com/tensorflow/tensorflow/issues/61854 | 1,894,249,158 | I_kwDOArmXAs5w5_LG | 61,854 | TFLite - Cannot execute with NNAPI on Samsung Galaxy Tab S9 (Snapdragon 8 Gen 2). On delegate CPU available | {
"login": "FrancoisDn",
"id": 130443538,
"node_id": "U_kgDOB8ZpEg",
"avatar_url": "https://avatars.githubusercontent.com/u/130443538?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FrancoisDn",
"html_url": "https://github.com/FrancoisDn",
"followers_url": "https://api.github.com/users/FrancoisDn/followers",
"following_url": "https://api.github.com/users/FrancoisDn/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancoisDn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FrancoisDn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancoisDn/subscriptions",
"organizations_url": "https://api.github.com/users/FrancoisDn/orgs",
"repos_url": "https://api.github.com/users/FrancoisDn/repos",
"events_url": "https://api.github.com/users/FrancoisDn/events{/privacy}",
"received_events_url": "https://api.github.com/users/FrancoisDn/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": 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": "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 @FrancoisDn \r\n\r\nSorry for the delayed response. \r\n\r\nCan you please try in latest nightly snapshot and see if you are facing the issue?\r\n\r\nAlso, could you please provide the Android SDK and NDK versions being used to better understand the issue?\r\n\r\nAs per the [documentation](https://www.tensorflow.org/lite/android/delegates/nnapi#enable_nnapi_cpu_implementation),\r\n>A graph that can't be processed completely by an accelerator can fall back to the NNAPI CPU implementation. However, since this is typically less performant than the TensorFlow interpreter, this option is disabled by default in the NNAPI delegate for Android 10 (API Level 29) or above. To override this behavior, set setUseNnapiCpu to true in the NnApiDelegate.Options object.\r\n\r\nThanks.\r\n\r\n",
" Hi @pjpratik,\r\nthank you for you reply.\r\nI use Android NDK 25.1.8937393 and Android SDK 33.\r\n\r\nRegarding your remark, it's interesting, but strange for my case. In C++, I think that the equivalent to `setUseNnapiCpu()` is attribute `disallow_nnapi_cpu` of struct `tflite::StatefulNnApiDelegate::Options`. Indeed, this attribute is set `true` by default, and I do not change in my code, so the fallback to NNAPI CPU should not be used.\r\nBut according to the TFLite log, it's the case! I have no explanation for that yet.\r\n\r\nAbout testing a newest version, indeed it's a very good idea. I thought about that, because I used version 2.12.0. I'm using Conan package system to easily get TFLite, but unfortunately the last stable version 2.13.0 is not yet available on Conan Center.\r\nSo I will try to get the version by hand to test if the problem is still present with 2.13.0 or the nightly build, but it will require more time than using conan.",
" Hi @pjpratik,\r\nI just made a test with Tensorflow Lite last stable version 2.14.0 just released, and I have the exact same issue.\r\nThe NNAPI CPU delegate is used instead of the dedicated GPU/TPU on the Samsung S9.\r\n\r\n_Note that I used a Int8 model (because if float32, for the test I made, they will be executed on CPU, because seem not supported by GPU/TPU with NAPI)._",
"Hi @FrancoisDn \r\n\r\nThanks for the information.\r\n\r\n@pkgoogle Could you please look at this issue?\r\n\r\nThanks.",
"Hi @FrancoisDn, is it possible for you to share your model file to help us reproduce the issue? (If you can't share a full model, can you reduce/use a smaller/toy model to reproduce the issue?)",
" Hi @pkgoogle,\r\nthank you for proposition.\r\n\r\nI just succeed to reproduce the problem with a model not confidential.\r\n\r\nI used a public yolov8n model : [yolov8n-I8-256x320.zip](https://github.com/tensorflow/tensorflow/files/12784276/yolov8n-I8-256x320.zip). This model was export from https://hub.ultralytics.com/models/vY89GpzxNSze7BxrYy72?tab=deploy in TFLite format with option `INT8 Quantization` and image Size `256x320`.\r\n\r\nWith that model here the behavior I have: \r\n - (OK) On Samsung Galaxy S8, the inference is done on GPU/TPU. I have this log:\r\n```Initialized TensorFlow Lite runtime.\r\nCreated TensorFlow Lite delegate for NNAPI.\r\nNNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nReplacing 253 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 1 partitions.\r\n```\r\n\r\n- (NOK) On Samsung S9 and also new, on Google Pixel Tab with that yolo model, the inference is done on the CPU. I have this log on S9:\r\n```\r\nInitialized TensorFlow Lite runtime.\r\nCreated TensorFlow Lite delegate for NNAPI.\r\nCreated TensorFlow Lite XNNPACK delegate for CPU.\r\nReplacing 169 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 103 partitions.\r\n```\r\nAnd this log on Google Pixel Tab:\r\n```\r\nInitialized TensorFlow Lite runtime.\r\nCreated TensorFlow Lite delegate for NNAPI.\r\nNNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nReplacing 30 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 6 partitions.\r\nNNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nNNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nNNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nCreated TensorFlow Lite XNNPACK delegate for CPU.\r\nReplacing 145 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 98 partitions.\r\n```\r\n\r\nAs we can see, on S9 and Google Pixel Tab, even If I ask to use a NNAPI delegate to run on GPU/TPU, in both case it's run on CPU (log `Created TensorFlow Lite XNNPACK delegate for CPU`).\r\nI can also confirmed that the inference time on Samsung S9 is slower (20 ms) than the time on S8 (14ms). So it confirmed the TFlite log which tell that NNAPI CPU is used.",
"@Wawha, Thanks for the additional information, @miaout17, can you please take a look? Thanks.",
"I saw similar things galaxy s23 phone.\r\nIt also has snapdragon 8 gen 2 SoC.\r\nAny progress on this issue?",
"Hi @miaout17 and @pkgoogle,\r\nis there some news/progress about problem?\r\nCan you confirmed that it's a bug with TensorFlow Lite and Galaxy Tab S9/Snapdragon 8 Gen 2 ?",
"I saw similar issue by use public model [mobilenet_v2_1.0_224.tflite](https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/ml-test-assets-0.0.6.tar.gz) on Pixel 7 pro.\r\nI use [TFLite Model Benchmark Tool](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark) to inference.\r\n\r\ncommand:\r\nadb shell /data/local/tmp/benchmark_model --verbose=true --graph=/data/local/tmp/mobilenet_v2_1.0_224.tflite --use_nnapi=true\r\n\r\nmessage:\r\nINFO: Loaded model /data/local/tmp/mobilenet_v2_1.0_224.tflite\r\nINFO: Initialized TensorFlow Lite runtime.\r\nINFO: Created TensorFlow Lite delegate for NNAPI.\r\nINFO: NNAPI delegate created.\r\nWARNING: NNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nINFO: **_Though NNAPI delegate is explicitly applied, the model graph will not be executed by the delegate._**\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nVERBOSE: Replacing 66 out of 66 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions for the whole graph.",
"not sure whether it helps to solve the problem, but there are some discussions about Qualcomm disabling NNAPI support for Snapdragon 8 Gen 2:\r\nhttps://ai-benchmark.net/index.php?threads/what-are-qualcomm-qnn-htp-dsp-delegates.44/",
"Hi there! Any updates on this issue?\r\nI've been trying to run the sample model from https://www.tensorflow.org/lite/android/delegates/nnapi#use_supported_models_and_ops on the Samsung Galaxy S23 Ultra.\r\nHowever, I'm encountering a similar result. I've tried benchmark tools and the sample app with the NnApiDelegate, but in all cases, I see a full fallback on CPU. There are no signs of using NNAPI.\r\n",
"I'm also getting a similar issue on a Pixel 7. Unfortunately I can't share the model but the error when running the benchmarking tool is as follows:\r\n```\r\nINFO: Initialized TensorFlow Lite runtime.\r\nINFO: Created TensorFlow Lite delegate for NNAPI.\r\nWARNING: NNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nWARNING: NNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nERROR: Failed to add NN API tensor: type INT64 is not supported.\r\nERROR: Restored original execution plan after delegate application failure.\r\nERROR: Failed to apply NNAPI delegate.\r\nERROR: Benchmarking failed.\r\n```\r\nAny help much appreciated."
] | 2023-09-13T10:38:40 | 2024-05-01T12:02:02 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.12.0
### Custom code
No
### OS platform and distribution
Android 13
### Mobile device
Samsung Galaxy Tab S9
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
clang 14
### CUDA/cuDNN version
_No response_
### GPU model and memory
Snapdragon 8 Gen 2
### Current behavior?
I have a C++/Kotlin Android application which make inference using Tensorflow Lite (TFLite library 2.12.0 get using conan center).
I use NNAPI delegate and it work great on Google Pixel tab and Samsung Galaxy Tab S8.
I try my application on the new tablet, Samsung Galaxy Tab S8 which have a processor 'snapdragon 8 gen 2', and this time, the inference work, BUT it use delegate for CPU and its much slower than S8...
Looking at the problem, when I call the function to build the interperter, I have this message: `INFO: Created TensorFlow Lite delegate for NNAPI.`, so everything since ok until that.
But, when I call `AllocateTensors()` on the interpreter, I have this messages:
```
Access denied finding property "ro.mediatek.platform"
Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
```
Is there something special to do to used NNAPI on GPU/TPU in that case?
(You can see the full output of the build of interpreter + call to AllocateTensors() below)
### Standalone code to reproduce the issue
```shell
// Load the model
std::unique_ptr<tflite::FlatBufferModel> model = tflite::FlatBufferModel::BuildFromFile(filename);
// Build the interpreter
tflite::ops::builtin::BuiltinOpResolver resolver;
std::unique_ptr<tflite::Interpreter> interpreter;
tflite::InterpreterBuilder(*model, resolver)(&interpreter);
tflite::StatefulNnApiDelegate::Options options;
tflite::StatefulNnApiDelegate delegate(options);
interpreter->ModifyGraphWithDelegate(&delegate);
// Resize input tensors -> Here the delegate CPU will be used
interpreter->AllocateTensors();
```
```
### Relevant log output
```shell
12329-12329 Manager I findAvailableDevices
10477-10477 tflite I Created TensorFlow Lite delegate for NNAPI.
10477-10584 ....C++-Error I INFO: Created TensorFlow Lite delegate for NNAPI.
10477-10477 libc W Access denied finding property "ro.mediatek.platform"
10477-10477 tflite I Created TensorFlow Lite XNNPACK delegate for CPU.
10477-10584 ....C++-Error I INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
```
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61854/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61854/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61853 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61853/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61853/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61853/events | https://github.com/tensorflow/tensorflow/issues/61853 | 1,894,207,612 | I_kwDOArmXAs5w51B8 | 61,853 | Using TFLite GPU in Android gives warning about duplicate namespaces | {
"login": "bvschaik",
"id": 104874,
"node_id": "MDQ6VXNlcjEwNDg3NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/104874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bvschaik",
"html_url": "https://github.com/bvschaik",
"followers_url": "https://api.github.com/users/bvschaik/followers",
"following_url": "https://api.github.com/users/bvschaik/following{/other_user}",
"gists_url": "https://api.github.com/users/bvschaik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bvschaik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bvschaik/subscriptions",
"organizations_url": "https://api.github.com/users/bvschaik/orgs",
"repos_url": "https://api.github.com/users/bvschaik/repos",
"events_url": "https://api.github.com/users/bvschaik/events{/privacy}",
"received_events_url": "https://api.github.com/users/bvschaik/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 299643928,
"node_id": "MDU6TGFiZWwyOTk2NDM5Mjg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:contribution%20welcome",
"name": "stat:contribution welcome",
"color": "f4b400",
"default": false,
"description": "Status - Contributions welcome"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 4989164230,
"node_id": "LA_kwDOArmXAs8AAAABKWCaxg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/Android",
"name": "Android",
"color": "e99695",
"default": false,
"description": ""
},
{
"id": 5206407904,
"node_id": "LA_kwDOArmXAs8AAAABNlN64A",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12",
"name": "TF 2.12",
"color": "c5def5",
"default": false,
"description": "For issues related to Tensorflow 2.12"
}
] | closed | false | {
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @bvschaik, are you willing to contribute a PR? https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java are where the manifest files are. We will review your changes if you submit one.",
"Hi @pkgoogle, Sure! I'm looking into it now. I see that there are 5 .aar files that are deployed to maven:\r\n\r\n- tensorflow-lite\r\n- tensorflow-lite-api\r\n- tensorflow-lite-select-tf-ops\r\n- tensorflow-lite-gpu\r\n- tensorflow-lite-gpu-api\r\n\r\nI'm only familiar with the play services version, which can contain either just `api` or both `api` and `gpu-api`.\r\n\r\nIs it possible that a single app can contain any combination of above libraries? If so, I'll have to create 5 manifest files with 5 different namespaces.",
"Hi @bvschaik, my intuition tells me it's possible, the review process will ferret that out though, IMO let's iterate faster here and just give it a try and let's see how the review goes. Thanks for your help!",
"Alright, I have opened a PR: #61877",
"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/61853\">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/61853\">No</a>\n",
"Using a 2 year old version of AGP (which didn't issue a warning yet) is not a solution."
] | 2023-09-13T10:13:42 | 2024-01-10T07:04:35 | 2023-10-23T05:45:44 | CONTRIBUTOR | null | null | null | **Standalone code to reproduce the issue**
See: https://github.com/bvschaik/tflite-android-warning
Basically:
1. Create an empty Android project
2. Add tflite gpu dependency to build.gradle: `implementation("com.google.android.gms:play-services-tflite-gpu:16.2.0")`
3. Compile app: `./gradlew assembleDebug`
4. Note the warning emitted:
> [org.tensorflow:tensorflow-lite-api:2.12.0] ~/.gradle/caches/transforms-3/2eb840e608fe786447e3ad08d13f4541/transformed/tensorflow-lite-api-2.12.0/AndroidManifest.xml Warning:
> Namespace 'org.tensorflow.lite' is used in multiple modules and/or libraries: org.tensorflow:tensorflow-lite-api:2.12.0, org.tensorflow:tensorflow-lite-gpu-api:2.12.0. Please ensure that all modules and libraries have a unique namespace. For more information, See https://developer.android.com/studio/build/configure-app-module#set-namespace
Cause:
Using tflite-gpu adds both the -api and -gpu-api libraries (output from `./gradlew :app:dependencies`):
```
\--- com.google.android.gms:play-services-tflite-gpu:16.2.0
+--- com.google.android.gms:play-services-base:18.1.0 (*)
+--- com.google.android.gms:play-services-basement:18.1.0 (*)
+--- com.google.android.gms:play-services-tasks:18.0.2 (*)
+--- org.tensorflow:tensorflow-lite-api:2.12.0
\--- org.tensorflow:tensorflow-lite-gpu-api:2.12.0
```
Both org.tensorflow:tensorflow-lite-api and org.tensorflow:tensorflow-lite-gpu-api specify the same namespace (`org.tensorflow.lite`) in their mainfest:
```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.tensorflow.lite">
...
```
Suggested solution:
Change the namespace in the manifest of org.tensorflow:tensorflow-lite-gpu-api to `org.tensorflow.lite.gpu` to make them unique. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61853/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61853/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61852 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61852/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61852/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61852/events | https://github.com/tensorflow/tensorflow/pull/61852 | 1,894,166,730 | PR_kwDOArmXAs5aN0SN | 61,852 | Revert mistaken update to nightly package versions | {
"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
} | [] | open | false | null | [] | null | [] | 2023-09-13T09:51:32 | 2023-09-15T19:08:34 | null | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61852",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61852",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61852.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61852.patch",
"merged_at": null
} | The nightly package versions should not have been updated from the 2.13 versions so revert that change.
Also revert the change that skipped the tests that were broken by the nightly version change. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61852/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61852/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61851 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61851/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61851/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61851/events | https://github.com/tensorflow/tensorflow/issues/61851 | 1,894,060,423 | I_kwDOArmXAs5w5RGH | 61,851 | Cannot build interactive_graphviz | {
"login": "desenSunUBW",
"id": 131351590,
"node_id": "U_kgDOB9REJg",
"avatar_url": "https://avatars.githubusercontent.com/u/131351590?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/desenSunUBW",
"html_url": "https://github.com/desenSunUBW",
"followers_url": "https://api.github.com/users/desenSunUBW/followers",
"following_url": "https://api.github.com/users/desenSunUBW/following{/other_user}",
"gists_url": "https://api.github.com/users/desenSunUBW/gists{/gist_id}",
"starred_url": "https://api.github.com/users/desenSunUBW/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/desenSunUBW/subscriptions",
"organizations_url": "https://api.github.com/users/desenSunUBW/orgs",
"repos_url": "https://api.github.com/users/desenSunUBW/repos",
"events_url": "https://api.github.com/users/desenSunUBW/events{/privacy}",
"received_events_url": "https://api.github.com/users/desenSunUBW/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | 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 @desenSunUBW ,\r\n\r\nIt seems you are using older Tf1.x version build which is not supported now. Since then build configurations also changed.\r\n\r\nPlease test with latest versions as per tested configurations attached [here](https://www.tensorflow.org/install/source#tested_build_configurations).In case of problem please come back with complete configuration details like OS, bazel version, compiler version and build command etc which helps better to test and analyse the issue.\r\n\r\nThank you!",
"> Hi @desenSunUBW ,\r\n> \r\n> It seems you are using older Tf1.x version build which is not supported now. Since then build configurations also changed.\r\n> \r\n> Please test with latest versions as per tested configurations attached [here](https://www.tensorflow.org/install/source#tested_build_configurations).In case of problem please come back with complete configuration details like OS, bazel version, compiler version and build command etc which helps better to test and analyse the issue.\r\n> \r\n> Thank you!\r\n\r\nHi @SuryanarayanaY , I upgraded my gcc version to 7.2.1 to use bazel-6.1.0 to compile interactive_graphviz in tensorflow r2.14. However, there were still some errors:\r\n```\r\nERROR: /root/.cache/bazel/_bazel_root/416f10ed22bfff0f5a7b019527c9dfc7/external/com_google_protobuf/BUILD.bazel:27:11: Compiling src/google/protobuf/implicit_weak_message.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target @com_google_protobuf//:protobuf_lite) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 31 arguments skipped)\r\nexternal/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc: In constructor 'constexpr google::protobuf::internal::ImplicitWeakMessageDefaultType::ImplicitWeakMessageDefaultType()':\r\nexternal/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc:53:42: error: temporary of non-literal type 'google::protobuf::internal::ImplicitWeakMessage' in a constant expression\r\n : instance(ConstantInitialized{}) {}\r\n ^\r\nIn file included from external/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc:31:0:\r\nexternal/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:58:23: note: 'google::protobuf::internal::ImplicitWeakMessage' is not literal because:\r\n class PROTOBUF_EXPORT ImplicitWeakMessage : public MessageLite {\r\n ^~~~~~~~~~~~~~~~~~~\r\nexternal/com_google_protobuf/src/google/protobuf/implicit_weak_message.h:58:23: note: 'google::protobuf::internal::ImplicitWeakMessage' has a non-trivial destructor\r\nTarget //tensorflow/compiler/xla/tools:interactive_graphviz failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\n```\r\nI built interactive_graphviz with the command \"bazel build --experimental_repo_remote_exec tensorflow/compiler/xla/tools:interactive_graphviz\". It would be helpful if you can give me some advice.",
"@desenSunUBW Upgrade to GCC 7.4 or newer version will fix the error.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"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/61851\">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/61851\">No</a>\n"
] | 2023-09-13T08:55:18 | 2024-03-07T01:41:29 | 2024-03-07T01:41:26 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
r1.15
### 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?
I would like to use interactive_graphviz to check how xla works and why there's a memory increasing while I used it. However, when I tried to build it, I hit some errors that there're undefined references. Here's the detail about the errors:
```
ERROR: /workspace/tensorflow1.15/tensorflow/tensorflow/compiler/xla/tools/BUILD:219:13: Linking tensorflow/compiler/xla/tools/interactive_graphviz failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/interactive_graphviz-2.params
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'tensorflow::ProtoDebugString[abi:cxx11](tensorflow::DeviceAttributes const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'tensorflow::ProtoShortDebugString[abi:cxx11](tensorflow::ConfigProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::AlgorithmProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::InternalSwap(stream_executor::dnn::AlgorithmProto*)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::~AlgorithmProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::AlgorithmProto::AlgorithmProto(stream_executor::dnn::AlgorithmProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::CopyFrom(stream_executor::dnn::TensorDescriptorProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::TensorDescriptorProto(stream_executor::dnn::TensorDescriptorProto const&)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::TensorDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::clear_layout_oneof()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::~TensorDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::TensorDescriptorProto::InternalSwap(stream_executor::dnn::TensorDescriptorProto*)'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::ConvolutionDescriptorProto::ConvolutionDescriptorProto()'
bazel-out/k8-opt/bin/_solib_k8/_U_S_Stensorflow_Scompiler_Sxla_Stools_Cinteractive_Ugraphviz___Utensorflow/libtensorflow_framework.so.1: error: undefined reference to 'stream_executor::dnn::ConvolutionDescriptorProto::~ConvolutionDescriptorProto()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SubProcess(int)'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SetProgram(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::Start()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::~SubProcess()'
bazel-out/k8-opt/bin/tensorflow/compiler/xla/tools/_objs/interactive_graphviz/interactive_graphviz.o:interactive_graphviz.cc:function xla::tools::(anonymous namespace)::OpenUrl(xla::tools::(anonymous namespace)::Options const&, absl::string_view): error: undefined reference to 'tensorflow::SubProcess::SubProcess(int)'
bazel-out/k8-opt/bin/tensorflow/stream_executor/host/_objs/host_gpu_executor/host_gpu_executor.o:host_gpu_executor.cc:function stream_executor::host::HostExecutor::CreateDeviceDescription(int): error: undefined reference to 'tensorflow::profile_utils::CpuUtils::GetCycleCounterFrequency()'
collect2: error: ld returned 1 exit status
Target //tensorflow/compiler/xla/tools:interactive_graphviz failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4.118s, Critical Path: 3.69s
INFO: 3 processes: 3 internal.
FAILED: Build did NOT complete successfully
```
### Standalone code to reproduce the issue
```shell
Just run this compile instruction:
bazel build --experimental_repo_remote_exec tensorflow/compiler/xla/tools:interactive_graphviz
```
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61851/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61851/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61850 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61850/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61850/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61850/events | https://github.com/tensorflow/tensorflow/issues/61850 | 1,894,022,388 | I_kwDOArmXAs5w5Hz0 | 61,850 | ConverterError: 'tf.FastWordpieceTokenizeWithOffsets' op is neither a custom op nor a flex op | {
"login": "Alwaysadil",
"id": 91238948,
"node_id": "MDQ6VXNlcjkxMjM4OTQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/91238948?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Alwaysadil",
"html_url": "https://github.com/Alwaysadil",
"followers_url": "https://api.github.com/users/Alwaysadil/followers",
"following_url": "https://api.github.com/users/Alwaysadil/following{/other_user}",
"gists_url": "https://api.github.com/users/Alwaysadil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Alwaysadil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alwaysadil/subscriptions",
"organizations_url": "https://api.github.com/users/Alwaysadil/orgs",
"repos_url": "https://api.github.com/users/Alwaysadil/repos",
"events_url": "https://api.github.com/users/Alwaysadil/events{/privacy}",
"received_events_url": "https://api.github.com/users/Alwaysadil/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
}
] | 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 | [
"@Alwaysadil Thank you for raising the issue.\r\nPlease fill up the template with detailed information.\r\nHope you are using the latest version of TF , please follow the following to install the latest TF version, and restart the kernel. \r\n```\r\nimport tensorflow as tf\r\n\r\nif tf.__version__ != '2.13.0':\r\n !pip uninstall -y tensorflow\r\n !pip install tensorflow-gpu==2.13.0\r\n```\r\nFor more information on TFlite converter please follow the doc [here](https://www.tensorflow.org/lite/models/convert/). Thank you!",
"Hi @sushreebarsa ,thanks for your response\r\n\r\nERROR: Could not find a version that satisfies the requirement tensorflow-gpu==2.13.0 (from versions: 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.12.0)\r\nERROR: No matching distribution found for tensorflow-gpu==2.13.0\r\n\r\n\r\n!pip install tensorflow-gpu==2.12.0\r\nCollecting tensorflow-gpu==2.12.0\r\n Downloading tensorflow-gpu-2.12.0.tar.gz (2.6 kB)\r\n error: subprocess-exited-with-error\r\n \r\n × python setup.py egg_info did not run successfully.\r\n │ exit code: 1\r\n ╰─> See above for output.\r\n \r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n Preparing metadata (setup.py) ... error\r\nerror: metadata-generation-failed\r\n\r\n× Encountered error while generating package metadata.\r\n╰─> See above for output.\r\n\r\nnote: This is an issue with the package mentioned above, not pip.\r\nhint: See above for details.",
"Thank you for your response!\r\n@Alwaysadil Could you please fill up [this](https://github.com/tensorflow/tensorflow/issues/new/choose) template which will help us to analyze the issue?\r\nThank you!",
"hi @sushreebarsa i didn't get what you said\r\nyou are saying to raise me a new issue?\r\n",
"@Alwaysadil , No i am not asking to create a new ticket. I am asking to fill out all the details related to the issue. You may edit your first comment else please provide the following information;\r\n\r\nIssue type?\r\n\r\nHave you reproduced the bug with TensorFlow Nightly?\r\nSource?\r\nTensorFlow version?\r\nCustom code?\r\nOS platform and distribution?\r\nMobile device?\r\nPython version?\r\nBazel version?\r\nGCC/compiler version?\r\nCUDA/cuDNN version?\r\nGPU model and memory?\r\nCurrent behavior?\r\nExpected behaviour?\r\nThank you!",
"Hi @sushreebarsa thank you for your response\r\n**please check once my code https://colab.research.google.com/drive/14_ajVH4r4NXN6cDw96XJNBtltoueoGfN?usp=sharing**\r\n**Issue type**:tflite lite model conversion with input signature as string data type \r\n\r\n**Have you reproduced the bug with TensorFlow Nightly**:No\r\n**TensorFlow version**:2.13.0\r\nPython version:3.10\r\n**Current behavio**r: tflite lite model conversion with input signature as string data type i am getting this error\r\nConverterError: /usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: error:\r\n**Expected behaviour**:i want without any errors\r\nThank you!",
"Hi @Alwaysadil, you have one or more custom ops in your model, so you need to identify which of your ops are custom and then follow the instructions here: https://www.tensorflow.org/lite/guide/ops_custom, give that a try and see how far you can get. Specifically from your Colab it looks like this one: tf.TFText>FastWordpieceDetokenize\r\n\r\nAlso please triple quote your code sections to communicate code better on github, it helps us a lot, thanks!\r\nex:\r\n\\```\r\nyour code here\r\n\\```\r\n\r\ntranslates to:\r\n```\r\nyour code here\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/61850\">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/61850\">No</a>\n"
] | 2023-09-13T08:33:13 | 2023-10-04T01:48:28 | 2023-10-04T01:48:25 | NONE | null | null | null | While doing tflite lite model conversion with input signature as string data type i am getting this error
ConverterError: /usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: error: 'tf.FastWordpieceTokenizeWithOffsets' op is neither a custom op nor a flex op
:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall"]): called from
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: note: Error code: ERROR_NEEDS_CUSTOM_OPS
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: error: 'tf.TFText>FastWordpieceDetokenize' op is neither a custom op nor a flex op
:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall"]): called from
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: note: Error code: ERROR_NEEDS_CUSTOM_OPS
:0: error: failed while converting: 'main':
Some ops in the model are custom ops, See instructions to implement custom ops: https://www.tensorflow.org/lite/guide/ops_custom
Custom ops: FastWordpieceTokenizeWithOffsets, TFText>FastWordpieceDetokenize
Details:
tf.FastWordpieceTokenizeWithOffsets(tensor<?x!tf_type.string>, tensor<241460xui8>) -> (tensor<?x!tf_type.string>, tensor<?xi64>, tensor<?xi64>, tensor<?xi64>, tensor<?xi64>) : {device = "/device:CPU:0"}
tf.TFText>FastWordpieceDetokenize(tensor<40xi32>, tensor<2xi64>, tensor<339052xui8>) -> (tensor<?x!tf_type.string>) : {device = ""}
kindly please check this below colab link
https://colab.research.google.com/drive/14_ajVH4r4NXN6cDw96XJNBtltoueoGfN?usp=sharing | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61850/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61850/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61849 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61849/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61849/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61849/events | https://github.com/tensorflow/tensorflow/issues/61849 | 1,893,915,691 | I_kwDOArmXAs5w4twr | 61,849 | Could not find matching concrete function to call loaded from the SavedModel | {
"login": "UlionTse",
"id": 14334826,
"node_id": "MDQ6VXNlcjE0MzM0ODI2",
"avatar_url": "https://avatars.githubusercontent.com/u/14334826?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/UlionTse",
"html_url": "https://github.com/UlionTse",
"followers_url": "https://api.github.com/users/UlionTse/followers",
"following_url": "https://api.github.com/users/UlionTse/following{/other_user}",
"gists_url": "https://api.github.com/users/UlionTse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/UlionTse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UlionTse/subscriptions",
"organizations_url": "https://api.github.com/users/UlionTse/orgs",
"repos_url": "https://api.github.com/users/UlionTse/repos",
"events_url": "https://api.github.com/users/UlionTse/events{/privacy}",
"received_events_url": "https://api.github.com/users/UlionTse/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"
}
] | closed | false | {
"login": "Varsha-anjanappa",
"id": 137163810,
"node_id": "U_kgDOCCz0Ig",
"avatar_url": "https://avatars.githubusercontent.com/u/137163810?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varsha-anjanappa",
"html_url": "https://github.com/Varsha-anjanappa",
"followers_url": "https://api.github.com/users/Varsha-anjanappa/followers",
"following_url": "https://api.github.com/users/Varsha-anjanappa/following{/other_user}",
"gists_url": "https://api.github.com/users/Varsha-anjanappa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varsha-anjanappa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varsha-anjanappa/subscriptions",
"organizations_url": "https://api.github.com/users/Varsha-anjanappa/orgs",
"repos_url": "https://api.github.com/users/Varsha-anjanappa/repos",
"events_url": "https://api.github.com/users/Varsha-anjanappa/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varsha-anjanappa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "Varsha-anjanappa",
"id": 137163810,
"node_id": "U_kgDOCCz0Ig",
"avatar_url": "https://avatars.githubusercontent.com/u/137163810?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varsha-anjanappa",
"html_url": "https://github.com/Varsha-anjanappa",
"followers_url": "https://api.github.com/users/Varsha-anjanappa/followers",
"following_url": "https://api.github.com/users/Varsha-anjanappa/following{/other_user}",
"gists_url": "https://api.github.com/users/Varsha-anjanappa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varsha-anjanappa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varsha-anjanappa/subscriptions",
"organizations_url": "https://api.github.com/users/Varsha-anjanappa/orgs",
"repos_url": "https://api.github.com/users/Varsha-anjanappa/repos",
"events_url": "https://api.github.com/users/Varsha-anjanappa/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varsha-anjanappa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Only because of tuple! I 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/61849\">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/61849\">No</a>\n"
] | 2023-09-13T07:26:53 | 2023-09-13T08:39:00 | 2023-09-13T08:38:58 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf2.10
### Custom code
Yes
### OS platform and distribution
win10
### 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?
How to match data of signature?
### Standalone code to reproduce the issue
```shell
...
model.save(filepath=save_model_dir, save_format='tf', signatures=None)
local_model = tf.keras.models.load_model(filepath=save_model_dir)
y_local_pred = local_model.predict(x_test)
y_model_pred = model.predict(x_test)
print('y_local_pred == y_model_pred:', numpy.allclose(y_local_pred, y_model_pred))
user_inputs = [
tf.TensorSpec.from_tensor(tf.convert_to_tensor(user_inputs[0]), name='inputs/0'),
tf.TensorSpec.from_tensor(tf.convert_to_tensor(user_inputs[1]), name='inputs/1'),
tf.TensorSpec.from_tensor(tf.convert_to_tensor(user_inputs[2]), name='inputs/2'),
]
user_outputs = local_model.user_fn(user_inputs)
```
### Relevant log output
```shell
Could not find matching concrete function to call loaded from the SavedModel. Got:
Positional arguments (1 total):
* [<tf.Tensor 'inputs/0:0' shape=(150, 5) dtype=float32>,
<tf.Tensor 'inputs/1:0' shape=(150, 10) dtype=int32>,
<tf.Tensor 'inputs/2:0' shape=(150, 3, 5) dtype=int32>]
Keyword arguments: {}
Expected these arguments to match one of the following 1 option(s):
Option 1:
Positional arguments (1 total):
* (TensorSpec(shape=(None, 5), dtype=tf.float32, name='inputs/0'),
TensorSpec(shape=(None, 10), dtype=tf.int32, name='inputs/1'),
TensorSpec(shape=(None, 3, 5), dtype=tf.int32, name='inputs/2'))
Keyword arguments: {}
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61849/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61849/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61848 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61848/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61848/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61848/events | https://github.com/tensorflow/tensorflow/issues/61848 | 1,893,343,833 | I_kwDOArmXAs5w2iJZ | 61,848 | tensorflow-macos 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.7.1 which is incompatible. | {
"login": "vipervs",
"id": 33532138,
"node_id": "MDQ6VXNlcjMzNTMyMTM4",
"avatar_url": "https://avatars.githubusercontent.com/u/33532138?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vipervs",
"html_url": "https://github.com/vipervs",
"followers_url": "https://api.github.com/users/vipervs/followers",
"following_url": "https://api.github.com/users/vipervs/following{/other_user}",
"gists_url": "https://api.github.com/users/vipervs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vipervs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vipervs/subscriptions",
"organizations_url": "https://api.github.com/users/vipervs/orgs",
"repos_url": "https://api.github.com/users/vipervs/repos",
"events_url": "https://api.github.com/users/vipervs/events{/privacy}",
"received_events_url": "https://api.github.com/users/vipervs/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": 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": 1205765054,
"node_id": "MDU6TGFiZWwxMjA1NzY1MDU0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS",
"name": "subtype:macOS",
"color": "b619ea",
"default": false,
"description": "macOS Build/Installation issues"
},
{
"id": 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": "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 | [
"Same error here! Trying to use fastapi!",
"Hi,\r\n\r\nCould you please create a new environment and install Tensorflow 2.13 using below commands. \r\nI was able to successfully install TensorFlow in 2.13 in MacOS M1.\r\n\r\n```\r\npython3 -m venv temp_tf\r\nsource temp_tf/bin/activate\r\npip install tensorflow==2.13\r\n\r\npip list\r\ntyping_extensions 4.5.0\r\n```\r\n\r\n",
"That doesn't help, we need typing-extensions>=4.6.0 ",
"As the error suggests in the title, for Tensorflow MacOS 2.13, typing-`extensions` should be <4.6.0 and >=3.6.6\r\n",
"as described in my first post, if I use the proposed typing-extensions I cant use pydantic.\r\n\r\n\"pydantic-core 2.6.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.\r\npydantic 2.3.0 requires typing-extensions>=4.6.1, but you have typing-extensions 4.5.0 which is incompatible.\"",
"@kulinseth , Can we bump this version for tensorflow-macos. ",
"I am also getting this error but I am using linux.",
"Hi, is there a fix for the issue yet?\r\n\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\ntensorflow-macos 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible.\r\n\r\nERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\r\npydantic-core 2.6.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.\r\npydantic 2.3.0 requires typing-extensions>=4.6.1, but you have typing-extensions 4.5.0 which is incompatible.",
"same problem",
"no solution yet , even i am stucked ",
"please bump version for typing-extension",
"> please bump version for typing-extension\r\n\r\nWe should switch to using the official Tensorflow arm64 builds. They are available from 2.14 onwards.\r\ncc @learning-to-play , @rishikasinha-tf , @nitins17 ",
"@vipervs , Could you please install TensorFlow as per the above comment from official Tensorflow PyPi using `pip install tensorflow==2.14` and close the issue. Thanks!\r\nhttps://pypi.org/project/tensorflow/#files",
"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/61848\">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/61848\">No</a>\n"
] | 2023-09-12T21:54:53 | 2023-10-20T08:06:25 | 2023-10-20T08:06:22 | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.13.0
### Custom code
Yes
### OS platform and distribution
MacOS 13
### 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 can't use pydantic because it needs typing-extensions>=4.6.1 but tensorflow-macos doesn't support typing-extensions>4.6.0
please update tensorflow-macos for newer typing-extensions
pydantic-core 2.6.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.
pydantic 2.3.0 requires typing-extensions>=4.6.1, but you have typing-extensions 4.5.0 which is incompatible.
tensorflow-macos 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.7.1 which is incompatible.
Thanks
### Standalone code to reproduce the issue
```shell
just install the pip packages in MacOS terminal.
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61848/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/61848/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61847 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61847/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61847/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61847/events | https://github.com/tensorflow/tensorflow/pull/61847 | 1,892,907,156 | PR_kwDOArmXAs5aJpH9 | 61,847 | Set permissions to GITHUB_TOKEN | {
"login": "joycebrum",
"id": 22223372,
"node_id": "MDQ6VXNlcjIyMjIzMzcy",
"avatar_url": "https://avatars.githubusercontent.com/u/22223372?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joycebrum",
"html_url": "https://github.com/joycebrum",
"followers_url": "https://api.github.com/users/joycebrum/followers",
"following_url": "https://api.github.com/users/joycebrum/following{/other_user}",
"gists_url": "https://api.github.com/users/joycebrum/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joycebrum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joycebrum/subscriptions",
"organizations_url": "https://api.github.com/users/joycebrum/orgs",
"repos_url": "https://api.github.com/users/joycebrum/repos",
"events_url": "https://api.github.com/users/joycebrum/events{/privacy}",
"received_events_url": "https://api.github.com/users/joycebrum/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 | [
"Hi @halseycamilla Can you please review this PR ? Thank you!"
] | 2023-09-12T16:52:02 | 2023-09-25T18:50:00 | 2023-09-25T18:49:59 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61847",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61847",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61847.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61847.patch",
"merged_at": "2023-09-25T18:49:59"
} | Hi, as discussed through email, this one of the [OSSF Scorecard](https://github.com/ossf/scorecard) recommendations.
The default permissions given to GITHUB_TOKEN is write all, which can be exploited by an attacker in case of a compromised action.
To mitigate this risk it is important to [Use credentials that are minimally scoped](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-secrets). | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61847/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61847/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61846 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61846/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61846/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61846/events | https://github.com/tensorflow/tensorflow/pull/61846 | 1,892,864,286 | PR_kwDOArmXAs5aJfrA | 61,846 | [Linaro:ARM_CI] Exclude unit tests that are failing | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | {
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-09-12T16:27:25 | 2023-09-12T16:52:24 | 2023-09-12T16:46:29 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61846",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61846",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61846.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61846.patch",
"merged_at": "2023-09-12T16:46:29"
} | These tests passed on a previous release with no obvious reason why they have begun failing now but they need to be excluded in order to build the release.
Also revert the change to a more specific version of TensorFlow IO as it did not resolve this issue. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61846/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61846/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61845 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61845/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61845/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61845/events | https://github.com/tensorflow/tensorflow/issues/61845 | 1,892,637,461 | I_kwDOArmXAs5wz1sV | 61,845 | Tensorflow fails to compile on Lubuntu 22.04.3 | {
"login": "cuchio",
"id": 40829557,
"node_id": "MDQ6VXNlcjQwODI5NTU3",
"avatar_url": "https://avatars.githubusercontent.com/u/40829557?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cuchio",
"html_url": "https://github.com/cuchio",
"followers_url": "https://api.github.com/users/cuchio/followers",
"following_url": "https://api.github.com/users/cuchio/following{/other_user}",
"gists_url": "https://api.github.com/users/cuchio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cuchio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cuchio/subscriptions",
"organizations_url": "https://api.github.com/users/cuchio/orgs",
"repos_url": "https://api.github.com/users/cuchio/repos",
"events_url": "https://api.github.com/users/cuchio/events{/privacy}",
"received_events_url": "https://api.github.com/users/cuchio/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 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": "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 | [
"Hy try those....\r\n\r\n1) Upgrade gcc-9 to gcc-11.\r\n2) Install protobuf \" pip install protobuf \"\r\n3) Install jdk-8 or jdk-11 anyone.\r\n\r\nThen again try to install.",
"Is this using the docker install?\r\n\r\nIf so, using devel-gpu, I cannot install gcc-11 and protobuff is already installed. Ubuntu 20 is installed by devel-gpu. ",
"@cuchio, \r\n\r\nThe error seems related to protobuf. COuld you please check the protobuf version installed and confirm us. Please find the supported protobuf versions for TF2.13v below.\r\n\r\n`'protobuf>=3.20.3,<5.0.0dev,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5',`\r\n\r\nAlso, Just to inform you that from Tf2.13v onwards we are using Clang16 as compiler which is replacement of GCC and it's our official tested configuration. Is that possible to use Clang instead of GCC ?\r\n\r\nThank you!",
"I assume this is using the docker install?\r\n\r\nNote I have changed to devel-gpu as this is my aim. The command is as \r\n\r\ndocker run --gpus all -it -w /tensorflow_src -v $PWD:/mnt -e HOST_PERMS=\"$(id -u):$(id -g)\" \\\r\n tensorflow/tensorflow:devel-gpu bash\r\n\r\nI changed /tensorflow to /tensorflow_src.\r\n\r\nThen git pull to pull, I assume, the latest build.\r\n\r\nProtobuf version is 3.20.3\r\n\r\nRunning configure produces the following. I have left all as default except for CUDA (7.5 for my GPU). Leaving this as default does not change the following.\r\n\r\nAs you can see the clang directory is not visible.\r\n\r\nThanks for your help.\r\n\r\n-----\r\n\r\nYou have bazel 6.1.0 installed.\r\nPlease specify the location of python. [Default is /usr/bin/python3]: \r\n\r\n\r\nFound possible Python library paths:\r\n /usr/lib/python3/dist-packages\r\n /usr/local/lib/python3.8/dist-packages\r\nPlease input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]\r\n\r\nDo you wish to build TensorFlow with ROCm support? [y/N]: \r\nNo ROCm support will be enabled for TensorFlow.\r\n\r\nFound CUDA 11.2 in:\r\n /usr/local/cuda-11.2/targets/x86_64-linux/lib\r\n /usr/local/cuda-11.2/targets/x86_64-linux/include\r\nFound cuDNN 8 in:\r\n /usr/lib/x86_64-linux-gnu\r\n /usr/include\r\nFound TensorRT 7.2.2 in:\r\n /usr/lib/x86_64-linux-gnu\r\n /usr/include/x86_64-linux-gnu\r\n\r\n\r\nPlease specify a list of comma-separated CUDA compute capabilities you want to build with.\r\nYou can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as \"x.y\" or \"compute_xy\" to include both virtual and binary GPU code, or as \"sm_xy\" to only include the binary code.\r\nPlease note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 7.5\r\n\r\n\r\nDo you want to use clang as CUDA compiler? [Y/n]: Y\r\nClang will be used as CUDA compiler.\r\n\r\nPlease specify clang path that to be used as host compiler. [Default is ]: \r\n\r\n\r\n\r\n\r\n",
"@cuchio If you see your Python path that path. That means you need to install or upgrade some pkg. You don't have Clang installed that's why your Clang path default was empty.\r\n\r\n1. Install or upgrade gcc-9 to gcc-11 \"use sudo apt install\"\r\n2. Install or upgrade protobuf **remember version protobuf>=3.20.3,<5.0** \"use pip install or conda install\"\r\n3. Install or upgrade Clang-16 \"use pip install or conda install\"",
"@sparrow84001 In the docker container I assume? \r\n\r\nI ask as I already have these installed on my machine and versions are correct.\r\n\r\nAlso, when in the container, I am not able to change to see or change different versions of tensorflow. git pull works though.\r\n\r\ngit ls-remote tensorflow . \r\nfatal: 'tensorflow' does not appear to be a git repository",
"@cuchio Yes in docker container. Use \" apt install clang \"",
"Seeing changes made in tensorflow today I installed the supported cuda,cudnn and clang packages today.\r\n\r\ncuda toolkit 12.2,\r\nlibcudnn8 8.9.4.25-1+cuda12.2\r\nllvm 17.\r\n\r\nCuda toolkit 12.1 was also installed for tensorRT. I also installed python3.9\r\n\r\nAll installations done with apt-get.\r\n\r\nRunning configure is fine except that is does not see or allow selection of CUDA 12.2 (see output below). My docker system has the cuda-toolkit 11.1, 11.2, 12.1 and 12.2. \r\n\r\nCan this be fixed by manually editing the .tf_configure.bazelrc to only contain the 12.2 paths? \r\n\r\nSee below the contents of this file on my system as created by ./configure\r\n\r\n./configure\r\nYou have bazel 6.1.0 installed.\r\nPlease specify the location of python. [Default is /usr/bin/python3]: /usr/bin/python3.9\r\n\r\n\r\nFound possible Python library paths:\r\n /usr/lib/python3/dist-packages\r\n /usr/local/lib/python3.9/dist-packages\r\nPlease input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]\r\n\r\nDo you wish to build TensorFlow with ROCm support? [y/N]: \r\nNo ROCm support will be enabled for TensorFlow.\r\n\r\nFound CUDA 11.2 in:\r\n /usr/local/cuda-11.2/targets/x86_64-linux/lib\r\n /usr/local/cuda-11.2/targets/x86_64-linux/include\r\nFound cuDNN 8 in:\r\n /usr/lib/x86_64-linux-gnu\r\n /usr/include\r\nFound TensorRT 8.6.1 in:\r\n /usr/lib/x86_64-linux-gnu\r\n /usr/include/x86_64-linux-gnu\r\n\r\nPlease specify a list of comma-separated CUDA compute capabilities you want to build with.\r\nYou can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as \"x.y\" or \"compute_xy\" to include both virtual and binary GPU code, or as \"sm_xy\" to only include the binary code.\r\nPlease note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 7.5\r\n\r\nDo you want to use clang as CUDA compiler? [Y/n]: Y\r\nClang will be used as CUDA compiler.\r\n\r\nPlease specify clang path that to be used as host compiler. [Default is /usr/lib/llvm-17/bin/clang]: \r\n\r\nYou have Clang 17.0.0 installed.\r\n\r\nPlease specify optimization flags to use during compilation when bazel option \"--config=opt\" is specified [Default is -Wno-sign-compare]: \r\n\r\nWould you like to interactively configure ./WORKSPACE for Android builds? [y/N]: \r\nNot configuring the WORKSPACE for Android builds.\r\n\r\n\r\nFollowing is the .tf_configure.bazelrc contents.\r\n\r\nbuild --action_env PYTHON_BIN_PATH=\"/usr/bin/python3.9\"\r\nbuild --action_env PYTHON_LIB_PATH=\"/usr/lib/python3/dist-packages\"\r\nbuild --python_path=\"/usr/bin/python3.9\"\r\nbuild --config=tensorrt\r\nbuild --action_env TF_CUDA_VERSION=\"11.2\"\r\nbuild --action_env TF_CUDNN_VERSION=\"8\"\r\nbuild --action_env CUDA_TOOLKIT_PATH=\"/usr/local/cuda-11.2\"\r\nbuild --action_env TF_CUDA_COMPUTE_CAPABILITIES=\"7.5\"\r\nbuild --action_env LD_LIBRARY_PATH=\"/usr/local/cuda-11.0/targets/x86_64-linux/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/include/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs:/usr/local/cuda-11.0/lib64:/usr/local/cuda-11.2/lib64\"\r\nbuild --config=cuda_clang\r\nbuild --action_env CLANG_CUDA_COMPILER_PATH=\"/usr/lib/llvm-17/bin/clang\"\r\nbuild --config=cuda_clang\r\nbuild:opt --copt=-Wno-sign-compare\r\nbuild:opt --host_copt=-Wno-sign-compare\r\ntest --test_size_filters=small,medium\r\ntest --test_env=LD_LIBRARY_PATH\r\ntest:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-oss_serial\r\ntest:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu\r\ntest:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-oss_serial,-v1only\r\ntest:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-v1only\r\n",
"I think I may have found a partial reason for the fault. \r\n\r\nIn short, after looking at the .bazelrc file I saw the following line.\r\n\r\nbuild:cuda_clang_official --action_env=CUDA_TOOLKIT_PATH=\"/usr/local/cuda-12.2\"\r\nbuild:unsupported_gpu_linux --action_env=CUDA_TOOLKIT_PATH=\"/usr/local/cuda-11.2\"\r\n\r\nTherefore I think my gpu card is not being recognised and hence 11.2 is selected.\r\n\r\nHowever, nvidia-smi produced:\r\n\r\n+---------------------------------------------------------------------------------------+\r\n| NVIDIA-SMI 535.104.05 Driver Version: 535.104.05 CUDA Version: 12.2 |\r\n|-----------------------------------------+----------------------+----------------------+\r\n| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |\r\n| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |\r\n| | | MIG M. |\r\n|=========================================+======================+======================|\r\n| 0 NVIDIA GeForce GTX 1650 On | 00000000:01:00.0 On | N/A |\r\n| 26% 33C P8 9W / 75W | 220MiB / 4096MiB | 0% Default |\r\n| | | N/A |\r\n+-----------------------------------------+----------------------+----------------------+\r\n \r\n+---------------------------------------------------------------------------------------+\r\n| Processes: |\r\n| GPU GI CI PID Type Process name GPU Memory |\r\n| ID ID Usage |\r\n|=======================================================================================|\r\n+---------------------------------------------------------------------------------------+\r\n\r\nAlso,\r\n\r\n1) The test mnistCUDNN from the cudnn_samples_v8 also was OK and \r\n2) nvcc -- version produced 12.2\r\n\r\nTherefore, I have manually changed the configuration paths to 12.2. However it still fails to build. I think this may have to do with clang as a it suggests sending a bug report to llvm. However, could it also be caused by the configuration setup being incorrect.\r\n\r\nThe .tf_configure.bazelrc file is as follows\r\n\r\nbuild --action_env PYTHON_BIN_PATH=\"/usr/bin/python3.9\"\r\nbuild --action_env PYTHON_LIB_PATH=\"/usr/lib/python3/dist-packages\"\r\nbuild --python_path=\"/usr/bin/python3.9\"\r\nbuild --config=tensorrt\r\nbuild --action_env TF_CUDA_VERSION=\"12.2\"\r\nbuild --action_env TF_CUDNN_VERSION=\"8\"\r\nbuild --action_env CUDA_TOOLKIT_PATH=\"/usr/local/cuda-12.2\"\r\nbuild --action_env TF_CUDA_COMPUTE_CAPABILITIES=\"7.5\"\r\nbuild --action_env LD_LIBRARY_PATH=\"/usr/local/cuda-12.2/lib64:/usr/local/cuda-12.2/targets/x86_64-linux/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/include/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs\"\r\nbuild --config=cuda_clang\r\nbuild --action_env CLANG_CUDA_COMPILER_PATH=\"/usr/lib/llvm-17/bin/clang\"\r\nbuild --config=cuda_clang\r\nbuild:opt --copt=-Wno-sign-compare\r\nbuild:opt --host_copt=-Wno-sign-compare\r\ntest --test_size_filters=small,medium\r\ntest --test_env=LD_LIBRARY_PATH\r\ntest:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-oss_serial\r\ntest:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu\r\ntest:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-oss_serial,-v1only\r\ntest:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-no_gpu,-v1only\r\n\r\nThe dump is as follows\r\n\r\nERROR: /root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/external/com_google_protobuf/BUILD.bazel:364:11: Compiling src/google/protobuf/compiler/cpp/service.cc [for tool] failed: (Segmentation fault): clang failed: error executing command (from target @com_google_protobuf//:protoc_lib) /usr/lib/llvm-17/bin/clang -MD -MF bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf/_objs/protoc_lib/0/service.d ... (remaining 49 arguments skipped)\r\nPLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.\r\nStack dump:\r\n0. Program arguments: /usr/lib/llvm-17/bin/clang -MD -MF bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf/_objs/protoc_lib/0/service.d -frandom-seed=bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf/_objs/protoc_lib/0/service.o -DBAZEL_CURRENT_REPOSITORY=\\\"com_google_protobuf\\\" -iquote external/com_google_protobuf -iquote bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt-exec-50AE0418/bin/external/zlib -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt-exec-50AE0418/bin/external/zlib -fmerge-all-constants -Wno-builtin-macro-redefined -D__DATE__=\\\"redacted\\\" -D__TIMESTAMP__=\\\"redacted\\\" -D__TIME__=\\\"redacted\\\" -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -fstack-protector -Wall -Wno-invalid-partial-specialization -fno-omit-frame-pointer -no-canonical-prefixes -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections --cuda-path=/usr/local/cuda-12.2 -g0 -w -Wno-sign-compare -g0 -std=c++17 -DHAVE_ZLIB -Woverloaded-virtual -Wno-sign-compare -c external/com_google_protobuf/src/google/protobuf/compiler/cpp/service.cc -o bazel-out/k8-opt-exec-50AE0418/bin/external/com_google_protobuf/_objs/protoc_lib/0/service.o\r\n1. <eof> parser at end of file\r\n2. Optimizer\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\n\r\nThanks for your help. I will also send a report to llvm.",
"@cuchio ,\r\n\r\nAs bazelrc suggests to use cuda toolkit 12.2 at path `/usr/local/cuda-12.2`, could you tried installing cuda toolkit 12.2 and ensure that it exists in the specified path.\r\n\r\nFrom your .configure setting it seems you have cuda 11.2 installed. Could you please confirm you have upgraded to 12.2 version ? \r\n\r\nAlso please ignore the CUDA toolkit versions displayed in CUDA driver info. As per my knowledge it displays cuda version compatible with that driver and tensorflow won't access it.",
"Hi,\r\n\r\nYes I have cuda toolkit 12.2 installed in Docker and I have it in my path.\r\n\r\nAs an alternative, today I tried to build on my root machine i.e. not using Docker. Instead, in a Python venv. Cuda toolkit-12.2 and 12.1 (for tensorrt) installed. llvm 17. This worked better in that it selected the 12.2 path. The build still fails, which I think is due to llvm 17 dependencies. I will try to resolve tomorrow with the latest and an earlier tensorflow version (pre llvm).\r\n\r\nA question regarding llvm. For the Docker build I chose the Ubuntu 20.04 version (as the image was clearly Ubuntu 20). For the other venv method I installed the 22.04 as that is what is on my machine. Is this correct, especially for the Docker build?\r\n\r\nHaving these problems raises another question. My motherboard is old (2008), which is why I need to compile tensorflow. Could the age be a factor in other ways such as an old bios? I assume not given Linux's back compatibility.",
"Hi @cuchio ,\r\n\r\n> As an alternative, today I tried to build on my root machine i.e. not using Docker. Instead, in a Python venv. Cuda toolkit-12.2 and 12.1 (for tensorrt) installed. llvm 17. This worked better in that it selected the 12.2 path. The build still fails, which I think is due to llvm 17 dependencies. I will try to resolve tomorrow with the latest and an earlier tensorflow version (pre llvm).\r\n\r\nYou need to use LLVM16 for compilation.Please refer attached documentation [here](https://www.tensorflow.org/install/source#install_clang_recommended_linux_only).\r\n\r\n> A question regarding llvm. For the Docker build I chose the Ubuntu 20.04 version (as the image was clearly Ubuntu 20). \r\nFor the other venv method I installed the 22.04 as that is what is on my machine. Is this correct, especially for the Docker build?\r\n\r\nI don't think it should be a problem as long as you maintained the environment accordingly.\r\n\r\n> Having these problems raises another question. My motherboard is old (2008), which is why I need to compile tensorflow. Could the age be a factor in other ways such as an old bios? I assume not given Linux's back compatibility.\r\n\r\nYou CPU has to support AVX instructions set as tensorflow built on it.\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/61845\">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/61845\">No</a>\n"
] | 2023-09-12T14:23:27 | 2023-12-03T01:49:33 | 2023-12-03T01:49:30 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
Latest
### Custom code
Yes
### OS platform and distribution
Linux Lubuntu 22.04.3
### Mobile device
_No response_
### Python version
3.9
### Bazel version
6.1
### GCC/compiler version
gcc-9
### CUDA/cuDNN version
_No response_
### GPU model and memory
1650 4Gb
### Current behavior?
I have tried to compile tensorflow using Docker following the instructions at
https://www.tensorflow.org/install/source#linux
I installed the python and clang libraries but did not do the pip install as I assume they are not needed for Docker installation (is this correct?). Also, I checked the Lubuntu installation for these Python libraries (all appear present).
Initially I compiled with devel-gpu. Later tried with devel (cpu only).
In the configuration step the clang library was not visible. So I chose not to use it as I understand it has problems and gcc should work.
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package was run. Downloading and compilation started and ran for some time before failing.
Following are the messages prior to failure:
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
INFO: Reading 'startup' options from /tensorflow_src/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=87
INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc:
Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /tensorflow_src/.bazelrc:
'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /tensorflow_src/.tf_configure.bazelrc:
'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
INFO: Found applicable config definition build:short_logs in file /tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:opt in file /tensorflow_src/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare
INFO: Found applicable config definition build:linux in file /tensorflow_src/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wno-error=array-parameter --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Build options --action_env and --define have changed, discarding analysis cache.
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 43182 targets configured).
INFO: Found 1 target...
ERROR: /tensorflow_src/tensorflow/core/protobuf/BUILD:175:17: Compiling tensorflow/core/protobuf/tensor_bundle.pb.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target //tensorflow/core/protobuf:for_core_protos_cc_impl) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 41 arguments skipped)
during GIMPLE pass: store-merging
In file included from external/com_google_protobuf/src/google/protobuf/unknown_field_set.h:53,
from external/com_google_protobuf/src/google/protobuf/generated_message_reflection.h:47,
from bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/core/protobuf/tensor_bundle.pb.h:28,
from bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/core/protobuf/tensor_bundle.pb.cc:4:
external/com_google_protobuf/src/google/protobuf/parse_context.h: In function 'const char* google::protobuf::internal::VarintParse(const char*, T*) [with T = long unsigned int]':
external/com_google_protobuf/src/google/protobuf/parse_context.h:538:32: internal compiler error: Segmentation fault
538 | PROTOBUF_NODISCARD const char* VarintParse(const char* p, T* out) {
| ^~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 673.078s, Critical Path: 52.90s
INFO: 1362 processes: 22 internal, 1340 local.
FAILED: Build did NOT complete successfully
### Standalone code to reproduce the issue
```shell
docker pull tensorflow/tensorflow:devel
docker run -it -w /tensorflow_src -v $PWD:/mnt -e HOST_PERMS="$(id -u):$(id -g)" tensorflow/tensorflow:devel bash
./configure
You have bazel 6.1.0 installed.
Please specify the location of python. [Default is /usr/bin/python3]:
Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.8/dist-packages
Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.
Do you want to use Clang to build TensorFlow? [Y/n]: n
GCC will be used to compile TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl # Build with MKL support.
--config=mkl_aarch64 # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
--config=monolithic # Config for mostly static monolithic build.
--config=numa # Build with NUMA support.
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
--config=v1 # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
--config=nogcp # Disable GCP support.
--config=nonccl # Disable NVIDIA NCCL support.
Configuration finished
git pull
bazel build --config=opt --config=v2 //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61845/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61845/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61844 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61844/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61844/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61844/events | https://github.com/tensorflow/tensorflow/pull/61844 | 1,891,738,344 | PR_kwDOArmXAs5aFpPT | 61,844 | Update rocm_configure.bzl | {
"login": "SouSingh",
"id": 96938361,
"node_id": "U_kgDOBccpeQ",
"avatar_url": "https://avatars.githubusercontent.com/u/96938361?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SouSingh",
"html_url": "https://github.com/SouSingh",
"followers_url": "https://api.github.com/users/SouSingh/followers",
"following_url": "https://api.github.com/users/SouSingh/following{/other_user}",
"gists_url": "https://api.github.com/users/SouSingh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SouSingh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SouSingh/subscriptions",
"organizations_url": "https://api.github.com/users/SouSingh/orgs",
"repos_url": "https://api.github.com/users/SouSingh/repos",
"events_url": "https://api.github.com/users/SouSingh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SouSingh/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/61844/checks?check_run_id=16702631805) 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-09-12T06:07:12 | 2023-09-12T07:33:37 | 2023-09-12T07:33:33 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61844",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61844",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61844.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61844.patch",
"merged_at": null
} | fix issue #61823 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61844/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61844/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61843 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61843/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61843/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61843/events | https://github.com/tensorflow/tensorflow/pull/61843 | 1,891,723,146 | PR_kwDOArmXAs5aFl5S | 61,843 | rm unnecessary out_id variable | {
"login": "redwrasse",
"id": 6155946,
"node_id": "MDQ6VXNlcjYxNTU5NDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6155946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/redwrasse",
"html_url": "https://github.com/redwrasse",
"followers_url": "https://api.github.com/users/redwrasse/followers",
"following_url": "https://api.github.com/users/redwrasse/following{/other_user}",
"gists_url": "https://api.github.com/users/redwrasse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/redwrasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/redwrasse/subscriptions",
"organizations_url": "https://api.github.com/users/redwrasse/orgs",
"repos_url": "https://api.github.com/users/redwrasse/repos",
"events_url": "https://api.github.com/users/redwrasse/events{/privacy}",
"received_events_url": "https://api.github.com/users/redwrasse/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": 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 | [
"Hi @rohan100jain Can you please review this PR ? Thank you!",
"Hi @rohan100jain Can you please review this PR ? Thank you!",
"Thanks for the PR. However I don't think this is necessary for a bugfix or improves readability of the code. "
] | 2023-09-12T05:54:56 | 2023-11-03T16:31:21 | 2023-11-03T16:31:18 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61843",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61843",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61843.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61843.patch",
"merged_at": null
} | Don't think need to assign variable `int out_id = out->id();`, if only for consistency with rest of `tensorflow/core/graph/control_flow.cc` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61843/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61843/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61842 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61842/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61842/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61842/events | https://github.com/tensorflow/tensorflow/pull/61842 | 1,891,632,799 | PR_kwDOArmXAs5aFSY9 | 61,842 | consistent lowercase testname syntax in examples/adding_an_op tests | {
"login": "redwrasse",
"id": 6155946,
"node_id": "MDQ6VXNlcjYxNTU5NDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6155946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/redwrasse",
"html_url": "https://github.com/redwrasse",
"followers_url": "https://api.github.com/users/redwrasse/followers",
"following_url": "https://api.github.com/users/redwrasse/following{/other_user}",
"gists_url": "https://api.github.com/users/redwrasse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/redwrasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/redwrasse/subscriptions",
"organizations_url": "https://api.github.com/users/redwrasse/orgs",
"repos_url": "https://api.github.com/users/redwrasse/repos",
"events_url": "https://api.github.com/users/redwrasse/events{/privacy}",
"received_events_url": "https://api.github.com/users/redwrasse/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-09-12T04:13:24 | 2023-09-13T03:55:31 | 2023-09-13T03:55:31 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61842",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61842",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61842.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61842.patch",
"merged_at": "2023-09-13T03:55:31"
} | Changing a handful of python test names syntax to lowercase with underscores for consistency within `tensorflow/examples/adding_an_op` python unit tests. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61842/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61842/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61841 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61841/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61841/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61841/events | https://github.com/tensorflow/tensorflow/pull/61841 | 1,891,625,689 | PR_kwDOArmXAs5aFQ4Z | 61,841 | add empty file test cases to utils_test.cc | {
"login": "redwrasse",
"id": 6155946,
"node_id": "MDQ6VXNlcjYxNTU5NDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6155946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/redwrasse",
"html_url": "https://github.com/redwrasse",
"followers_url": "https://api.github.com/users/redwrasse/followers",
"following_url": "https://api.github.com/users/redwrasse/following{/other_user}",
"gists_url": "https://api.github.com/users/redwrasse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/redwrasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/redwrasse/subscriptions",
"organizations_url": "https://api.github.com/users/redwrasse/orgs",
"repos_url": "https://api.github.com/users/redwrasse/repos",
"events_url": "https://api.github.com/users/redwrasse/events{/privacy}",
"received_events_url": "https://api.github.com/users/redwrasse/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @terryheo Can you please review this PR ? Thank you!",
"Hi @terryheo Can you please review this PR ? Thank you!",
"Hi @rascani Can you please review this PR ? Thank you!"
] | 2023-09-12T04:03:23 | 2024-01-12T06:53:46 | 2024-01-12T06:00:31 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61841",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61841",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61841.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61841.patch",
"merged_at": "2024-01-12T06:00:31"
} | Add a couple more test cases of the empty file (`empty.txt`) to `utils_test.cc`:
- reading empty file does not return nullptr
- reading empty file results in 0 lines written to vector | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61841/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61841/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61840 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61840/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61840/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61840/events | https://github.com/tensorflow/tensorflow/issues/61840 | 1,891,594,991 | I_kwDOArmXAs5wv3Lv | 61,840 | load_associated_files does not load a txt file | {
"login": "ChurikiTenna",
"id": 52132649,
"node_id": "MDQ6VXNlcjUyMTMyNjQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/52132649?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ChurikiTenna",
"html_url": "https://github.com/ChurikiTenna",
"followers_url": "https://api.github.com/users/ChurikiTenna/followers",
"following_url": "https://api.github.com/users/ChurikiTenna/following{/other_user}",
"gists_url": "https://api.github.com/users/ChurikiTenna/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ChurikiTenna/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChurikiTenna/subscriptions",
"organizations_url": "https://api.github.com/users/ChurikiTenna/orgs",
"repos_url": "https://api.github.com/users/ChurikiTenna/repos",
"events_url": "https://api.github.com/users/ChurikiTenna/events{/privacy}",
"received_events_url": "https://api.github.com/users/ChurikiTenna/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
}
] | 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 | [
"@ChurikiTenna Could you please provide the complete standalone code to replicate the issue reported here. 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/61840\">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/61840\">No</a>\n"
] | 2023-09-12T03:18:12 | 2023-09-29T01:47:39 | 2023-09-29T01:47:36 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
latest
### 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?
On "load_associated_files", it emit longest `does not exist` error.
All the lines below reproduce the same result.
```
populator.load_associated_files([os.path.abspath("./label_file.txt")])
populator.load_associated_files([])
populator.load_associated_files(['label_file.txt'])
```
The label_file.txt exist in the same folder as main.py.
<img width="981" alt="スクリーンショット 2023-09-12 12 15 38" src="https://github.com/tensorflow/tensorflow/assets/52132649/178ef07f-e6a3-446e-856e-865b12a36962">
Also, what information am I supposed to put in the txt file ?
Is there any documentation for that ?
### Standalone code to reproduce the issue
```shell
# Creates model info.
model_meta = _metadata_fb.ModelMetadataT()
model_meta.name = "Cup classifier"
model_meta.description = ("Identify a cup")
model_meta.version = "v1"
model_meta.author = "Integro"
model_meta.license = ("Apache License. Version 2.0 "
"http://www.apache.org/licenses/LICENSE-2.0.")
# Creates input info.
input_meta = _metadata_fb.TensorMetadataT()
# Creates output info.
output_meta = _metadata_fb.TensorMetadataT()
input_meta.name = "image"
input_meta.description = (
"Input image to be classified. The expected image is {0} x {1}, with "
"three channels (red, blue, and green) per pixel. Each value in the "
"tensor is a single byte between 0 and 255.".format(160, 160))
input_meta.content = _metadata_fb.ContentT()
input_meta.content.contentProperties = _metadata_fb.ImagePropertiesT()
input_meta.content.contentProperties.colorSpace = (
_metadata_fb.ColorSpaceType.RGB)
input_meta.content.contentPropertiesType = (
_metadata_fb.ContentProperties.ImageProperties)
input_normalization = _metadata_fb.ProcessUnitT()
input_normalization.optionsType = (
_metadata_fb.ProcessUnitOptions.NormalizationOptions)
input_normalization.options = _metadata_fb.NormalizationOptionsT()
input_normalization.options.mean = [127.5]
input_normalization.options.std = [127.5]
input_meta.processUnits = [input_normalization]
input_stats = _metadata_fb.StatsT()
input_stats.max = [255]
input_stats.min = [0]
input_meta.stats = input_stats
# Creates output info.
output_meta = _metadata_fb.TensorMetadataT()
output_meta.name = "probability"
output_meta.description = "Probabilities of the 1001 labels respectively."
output_meta.content = _metadata_fb.ContentT()
output_meta.content.content_properties = _metadata_fb.FeaturePropertiesT()
output_meta.content.contentPropertiesType = (
_metadata_fb.ContentProperties.FeatureProperties)
output_stats = _metadata_fb.StatsT()
output_stats.max = [1.0]
output_stats.min = [0.0]
output_meta.stats = output_stats
label_file = _metadata_fb.AssociatedFileT()
label_file.name = 'label_file.txt'
label_file.description = "Labels for objects that the model can recognize."
label_file.type = _metadata_fb.AssociatedFileType.TENSOR_AXIS_LABELS
output_meta.associatedFiles = [label_file]
# Creates subgraph info.
subgraph = _metadata_fb.SubGraphMetadataT()
subgraph.inputTensorMetadata = [input_meta]
subgraph.outputTensorMetadata = [output_meta]
model_meta.subgraphMetadata = [subgraph]
b = flatbuffers.Builder(0)
b.Finish(
model_meta.Pack(b),
_metadata.MetadataPopulator.METADATA_FILE_IDENTIFIER)
metadata_buf = b.Output()
populator = _metadata.MetadataPopulator.with_model_file(tflite_model)
populator.load_metadata_buffer(metadata_buf)
populator.load_associated_files([os.path.abspath("./label_file.txt")])
populator.populate()
```
### Relevant log output
```shell
.....{q2\xbd\xf6\\\x9c\xbd\x80\xa1\x0c=\xa6\xfa\x1f\xbd\xc2\xdd\x99\xb9:x\xa9\xbb]B\xe4=\xd4\xef\x14\xbdm\xcb\x0c\xbdO8\xfb\xbdk\x8dl=}s\x11=\xb6\xcf\xab=\x07x\x0c=\xf2t\xe5\xbc:\x01\x8a\xb9\xdb+\xa0\xbd\x0f\xf5\xea\xbd\xf8\xaf\x1d\xbd\xe3s\xde\xbcm\x86\x87\xbd\x11\xa3\x18=\x1e\x0bM=\xb6\x00\x17=\x97:\xd0=\x10\xda\xf2;\x89\x1b>=.0\xa4\xbde\xd7\xad\xbd\x88\x00R=\x0f\xe7\x85=_\xda\x9b=\xd2v\xfe<\xa9\xe9\x07=\xba\x91\xaf=\xaa\xad\x98\xbc)\x9c\xbe\xbc"\x17s=0n\xfc\xbdB\x9c\xd1=\x9er\t=R\\\xad=\xac\xc9x=\xe9R\x94\xbdR\xd4\x13=\xb9\xc7D=\x91\x18T=J\x8e\x94=\xe2\xeb\x8a\xbd\xe3\xf8\x00\xbd6\xa2\x9b\xbc\xfa\t\x98=\xf9\x18\xdf<C\x1e\xa7=\xe2\x9a\xa0=]k\x0b\xbd\x86.7\xbc\xbar\xe4;\xcb\x9b\x0c>\xc2#\xd9=\xaaB\x1f\xbc\xa4\x03\xbc\xbd6\xea\xf0\xbd\xca\xae\xa8\xbd(\xb7\xfa\xbd\xff\x92D=\xa66\xd7\xbd\xf7\xea)=`\xf1\xa2=\x92\x120\xbd\x8eb\xa9=\x13\x8e\xfd\xbd\xe0\x9d)\xbd\n\xd1$=\xd7K\x12\xbd\xb6X\xa0<\xaeL\xd1=\x053\xa2=\x01X\xb3\xbd8\x9df\xbd\\\xef&\xbd+k&\xbc\xc8\xa0\x8a=G\x81\xc8\xbd\xeal5=\xd4`\xbf\xbd\xca\ny=T\xb0P\xbd<e\x7f\xbc\xcaU^<\x7f\xc2\xd1;p\xa3\xb8\xbd\x16\xefF\xbd%r\x87\xbd\x81{\xb1=\xf9\x13\xfb\xbc\xc1\xf8\xce;\x06\x8a\x87\xbd\r\x8fK\xbd\xb2\xd4\x14=\x9d\xecL\xbd\x0c\xe6"=F:o\xbd\xd8_\x9c\xbd\x18\xd6:=\xa6\x1b<=\xde\xd3\xa1=fY\xfd\xbcw),=\xec\xa4\x80=\x89\xdf\x9b\xbd\x8c\xf6\x06\xbe\xc9\xc7\xab\xbdO\x00\x93\xbd+\xf8\x98\xbd\x84\xeff\xbb5\xa3\xd2=v4\x19\xbc\xd3\x7f\xe7\xbd\xa3}\x84\xbd\xd6\xb2C\xbd\xda\xc6`\xbd\xf5\xde\xb5\xbdr\xed5<uo\x84<\x03\xd7\xdb\xbd\xa9\x00\x94\xbd\x06(\x88\xbdM\xa4\x82\xbd\x1a\xdb\xc9=\xcf\x9d\xcd\xbc~SG\xbd\x18\xeb~\xbd\xd0Wv<\x01[\x98=\x92\xba\x98= \x83\xd5\xbd\x10\x85b\xbc\x95+\x92=\x8a\x1f\x11\xbb\x18b$=<\xe9\xaf\xbdjfr=\x958\xed\xbd\xd8\xb2\xc2<Q[\x97\xbd\x14\x9e\x9e=\xdd\x19\x18\xbb\x8c\xa0\x81\xbb^0\x1a<\x7fW\x00\xbd\x1c\xc9\xd4=\x83\xa8\x04\xbd\xd7\x99k=-\xe5U=\x16\x83\x9b\xbcf\x90\xb9\xbdJ\x1f\xab=\x82\x00\xe3\xbd@3.=\x1e\x98\xac\xbdX\x8e\x1c\xbd\x91\x83\xca=\xed\xedJ\xbd@\x96\xd8=\x87\xb6\x0e=?q\xb4\xbd\xc4\xe9\xac=q\xe8\xbd\xbd\x7fe\xed<:\xb4\x1a=G\x9a\xc9\xbd\xf0\xc4\xc2=NN\xe8\xbd\xfdb\xf7<\xacs\xb7\xbd\xa6\xd9\xf1\xbcg\xff\x0b<\xdc\x8ea=u>\x98\xbb\xc2f\x86\xbd\xaf\xd8I\xbd|\xc4R=Pk\x04=\xde\xbfL=\xb8&\xa8\xbd:\xe0\xf0\xbdKo\xc9\xbd\xac\x1e-=\xfe\x0b\xa5=2\x02.\xbdk\xac\x8c\xbd\xf8\n;<w\xca)<\xc8\xae\xd9\xbdj\xd9\x9d\xbd\xd4.B\xbd\x80]\x02\xbd\x9a\xe1\xa3\xbdGLe\xba\xac\xf3N\xbd0\x81\x12=\xc0\xa0\xa5\xbd\x0c-\xf3<\xeb\xca\xda\xbd>\x0bE<}\xcf\x84=\xb1\xf9\xac=\xf5\x87X\xbdP"_\xbc\x8c?\xf4<\xb7\x94\x1d=\xd2\xdbG\xbb\xe5?<={Y\xe3=\xbf?\x83\xbd\xfe\xe8\xbb=*\xc2\x9f\xbd\xbd\xb3\xd0=\x18j\xf9=\x9b\x8d\xd0\xbc\x08\xb4^<\xa74*\xbc\xe7\x12\xea\xbc\x81\x88Y=o\r\x7f\xbdP\x8f\x8d<YH\xa8\xbba\x0c\xf9\xbc_\x87\xac\xbd7<_=\x05\xe53=\x01\xabH<%\xfe\x9f<%yP<w\xd3\x83\xbd\x9aL\xbe<&\xd3\xb9=\x93\x94\xbe=\x85\x11o\xbd\x11F\xc1<"\x8c\xa2=\xb5\x13\xb9\xbb\xae\xe4\xef\xbd\xb1y =\x92\xe5\xc5=\x10\xcb\xf8\xbd\xce\x8b\xd0\xbd\\\xceX=$\xb5\xe7<v\x10\x9f\xbd\xd3^\xbf=n\xff\x9f<\x83\xcb\x85\xbd\x14\x7f\x94=\xfb\xda\x95=\xa07q;\x8f\xe9\xb7\xbd\xdc16\xbc\xed_\xb3\xbd\xdf\xf1E\xbd_\xa1\x02\xbe`B\xb5\xbd\x1f\x15\x80=\xc9\xba\x9b<6\xa7\x83\xbd\x8c\x11\xd2\xbd\xe2\xaa\x94\xbc\xafHO=D\xeb\xcb\xbd\x19\xf6\x12\xbb9\xbf\x98=e\xa9\xb4\xbd\xde\x89\xa0\xbc\n\xe6\xcb<\xa5\x99\x89:\xc1z\xd6=\xb7h\xc0\xbde\xde\x13=Fo\xf3\xbd\xc2\xa5\xaf\xbd\x8b\x1bw=7\xf0\xac\xbd\x0e\x9a\x9d<4\x00\x9e\xbb\x8d?\xd1\xbd\x84\xf0w=]Y\'\xbd\x80Dz=\xe0"\xc2=bG?\xbc_7\xc3=\x83=\xc5=;\x11\xea\xbd\x84|\xbc=\xdc\xcf"<\x02\x01\xa8\xbc}\x96\xa0\xbd\xe5\xf9\xd7\xbd\xdaS\xa8=y\xd1\x96<\xe82U\xbdS\xbb\x9f\xbdr\xf7\xca=\x87\xb2\xa7\xbc\xde\x9c\xfa\xbd\xb0\x12\x01=\xef\\\xa3\xbc\x00.\xb4=\xdf\xfdS=\x87\xc3h=\xae \xa9\xbc\x08\xd8\xc9\xbd\xd2P\xcf\xbc\x991\xa4=\xa1s*\xbd\x07\x16\xee;\xb4\xbeO\xbd\x8b\x95\xfd<\xe8H\xb7<\xdd\xe4\xd7\xbd\x87\xefo=\x9f\xc8\xce=\x04A\xa6\xbd\x88\x95q=\xcd\xf9\xd7\xbdZ\xc4\xb3\xbd\xcap~<\xbd\xa8\x86\xbd\xf5\xf2\x83=\xac3^=\x1c\xc6%\xbdn\xd6\x9b\xbd|\xa5\xda\xbd\x12\xec\x98=\xd8\xd2q=H\x1f\x01=\xe7\xcf\xec<\xb6G\xd5\xbc\xf3>w=\x10\x05\xff\xbd\x92\xa2E;\xd4\x8fm\xbd\x07\xce\x1c=\xc3O:\xbd%\xca=\xbcKi\x8d\xbd;\xef,=\xee\x1d\x91=\xca=Z\xbd\x166w\xbc\x1a<\x83=\xbeG\x9e\xbd\xbcw\x04=\xf3$\x96\xbd\xdf\xd5\xa6<\xd8j\xd9=e\xe7\x9b\xbd3s\x81\xbd\x04\x15\xb7\xbc\xc8\x9e\xb0\xbd\xe8\xad\x9b<{\xab\x94<\xa1=\x9a<\x81\xfe\xcf\xbda\xbbr\xbc\x95\x9f\x8d=\r\x9e\xba\xbd\x84(&\xbd-L\xad=\x10)^=\xb1\xefQ=u\xde\xb68\xb7\xe2\xab<\x88\x1c\x9a=R\\\x00\xbd\xa2q\x96\xbd\xda\xc3,\xbd\xaf\xc4\xf3\xbd\xed<:=\xd3\xc1\xe8\xbd\x9d\x12\xa3\xbdG$\xb2\xbdC2\x1e\xbc\xb7o\x05\xbd\x10\xe0Q;\x08\x19\xe7\xbd\xd7\xf4\x94\xbdB\x85\x97\xbd\xbf\xf8\xab\xbd\xb9|m=/h\xa5\xbd\xbe7\x15=\xfd\xd8\xa5\xbd\xbb\xbc\xa8\xbd\x8c\xe3\x02\xbdx\x05\xfe<q}\xcd=G\xd8\xcf\xbc\r\x84\xb1\xbd\xea\n\x84=\xbe\xfai=\x80b\t=\xc5i\xa2=\xf5<"<+K~=_\xcb#\xbd\xfa\xe3N\xbd\x82(\xe1<\x19hs\xbd\xd6\xc9\x0f=\xad\\\x1e<\xb5\xdbL=&\r\x1e=I\x9f\xef<\x05\xbc\xeb=\x90\x8e\xa9\xbb\x1c\x88\xca\xbaT(?\xbd\xa0\x8e\xc7\xbd\x99\xa7 \xbd\x0e\xa8\x94=\xa5*\xea<\xd8\xc2g<\xb26\xc8\xbd\x92\xd4\xee\xbcPQ\xeb\xbd\xdf\x00\x14=\xc2s\xa6\xbd\xd6\xf0\x02\xbd~\x15\xc5=\xa4\x90\xce<\x88\x0b\xb8\xbc\xe2C\x8b\xbcV\xf5\xb2=\x97\xcc\xc7\xbd\xe9\xf7P=\xa3\xceL;\x92\xdb\xd8\xbdsn\x89= u\xf2\xbb\xcc\xf4\xd2<\x01\xfe\x96=\x04\x8c\xa8\xbc\xbca\xd3\xbdUg\xa2=\xd5\xda\xeb=\xb0:\xd0\xbbj\x18=\xbd\x00\xaf\x9a:R\xa0<=\xe0Af;\x98r\xbb\xbd\xb5\x0c\x96\xbd\x0c\xcb\x08\xbc6\xa2\xef\xbd$W\xa9\xbd]\x16\x9b\xbd\x16T\x9b\xbc$\xad\xa0<\x03\x83J\xbd\xf7\xac\xbe\xbda\x9cY<l_\xb3\xbdE_\xb6=5Z\x0b\xbd:N\x8a<o\x1e\x9b=\xc16\x87=\xe2[\x1c\xbc\xc0\xb0\xf3\xbcKo\xb3=\xd1\x04.\xbd\xb6c\xc2\xbd\x16w}=\x8ezY\xbd\x93\xf2\xc8\xbd\xa1]\xac\xbd\xd2\xaf_=\xad\xf0z\xbd\xca\x98\x99\xbdG\x8a\xc0\xbd\xbb\xfa\x9c=\x93\x00n=\xa8Q\xc1\xbc\'\xc8\x95\xbd\x97\xc3\x99=~\x98\x17=\x83\xdc\xcf\xbd\xd9\x04\xbd=\x05\xee\x94\xbd\xbcv\x9b\xbc\xf3\x88\xa2=*\xc9\xab\xbdd\x9c\xa2\xbd\x80d\x13\xbcaB\xd6=hgg\xbc\x90\xd0\xce\xbc\x03\x17\xc2=\n\x83\x93\xbd\xccac\xbd$\xcd\x83=P\xdab\xbc\x11\x1e\xb0\xbcmP\xb9\xbd\x10\xeb\xe6\xbc\x83\xa1\x93\xbd8\xdf\xad\xbd\x08\xf5J<\xfbW\xfe<\x1eF\xc2=\xd1\x11\xea;\xa5\x9e\xcc=\x9d[\r=\xc87\xf9\xbd\xf0\xafH\xbc W\xda<<x+<\x88\x86\x08<\xd7\xd5\x97<w\x99\xb5\xbc\xcd"B\xbd\xa1:\xfe\xbd\xd1m\x96\xbd\x12\xe2\xb0\xbd]~7=}\x80V=\xf0\xed\x94\xbdB\xcb\x17=\xe1\xfb\x8c=\xaa_\xba=\xb6)g\xbd\xde/\x9b\xbd\x94\x18\xc8\xbc<\xde\xc1<\x91\x9a\xa9=r\x04x\xbdZ\xfb|\xbd\x04\x15\x96<\x19C\xad=\xc7\xca\xc3\xbd[\x95\xe9\xbd\xd2.T\xbd\xb0_\t\xbd\x8e\xe2\x04=\xfbM\xbe=\x18g\xe3\xbcdf\x8f\xbd\xb6\x8d\xab\xbd&\x8c\xb9\xbd\x98\xc2\xee\xbd\xdd\x9a4=\x0e\xa65<\xfa,\x0f\xbd\x1dX\xe7<\x7f\x0c\xdc=!\x08\xb0\xbd>\xa2\xce\xbc7\xd7\xb9\xbd1K\xbf=\x98d\xcf\xbdt\xa2\xb7=\'\x18\xa9=\x92\xe7\xb7\xbd\xfe\xb7\xcf\xbd\x9bn\x85\xbd\xcd\x0ca=\xa1Cy=\x84\xb5\xe3<\xc7X_<\x8ey%=bK\xbe=\xab\x01\xb6=h\x88\xd4\xbc2\x92I\xbd\xfc\xee<=62\xef<!\x1c\x15\xbc\xf8$+\xbd|\xf6z=\x8b\xc6\x89=z\x8dp\xbd\x8a\xe0/\xbd\xf2g\xcf\xbd\x16\x18\x01\xbe{_\xc3=\x9b\xf7\xaf\xbc\xda\xa3\xbc;\x0bM\xe4\xbdv\xbf\xd9\xbcD:I=\xd4\xcc\xbc\xbd\xc6x\xdc=\xcdG\xa2=\x1e|\xdd\xbd\x0e#\x9c=\xb3\xf0\x8d=->\x83\xbd\xa1\xd2N\xbdVD\x84\xbc\xe2\x1c\xc8=\xa6\xab\xec<\x1a\xd4\x81=\xe0\x99\xdb<\xeb,\xc6\xbd1\xef\xcf=\x1f\x1f\xbf\xbd\xc2\x84\x19<\xd0\x8an=\xdbg\x86=fs\x97=\xe0=\x02=\x99\xe3\n\xbdX\x13\xe1<)\xe1u\xbc\xba\x9f\x03<\x8a\xc8Z\xbd^[\xbd=\xdfx\x9a\xbdR\x18\x9e=\xc7\x8f\x9c=\x98P\x80\xbd\xa65\x07\xbb\xbe|\xa1=\x04{\xc8=\x06\x94\x84\xbd\x86p4\xbc\xa7l9\xbc\x89\x0e\xa9\xbdh\x0f\xb8\xbc\x02\x9a$<\xfb6\x84\xbd\t\xbe\xc1=F\xbe\x14\xbc@\xb2\xb0=\x11s+=\n\xfb[=4\xdfM\xbb\xf1\x8f\x89\xbd\xad\xc1\x9a<3\xa1/\xbdz\xf8\x9a\xbc^\x96\xd9\xbc\x8c{\xa8=\x02\xff\xa3={\x9a\xa4=Z\xc5\x05=:\x81\x0b\xbd\x02\x95\xcd=a\xcc\xfc=A\xf6\xcc\xbdA\xa0\xd7="\xa4\x9d=\xdd\xee\xcb\xbd\x8d\x0e\xce;Y\xc7\xfb\xbc\x1e\xa0\x8b=|\xa6\xf6\xbdMS\xa3\xbdE7\x10\xbd\xd5\xc0\x80\xbd\xf5\x8a\x8a=\xb7\'\x9d=\xb8\xea\xe1\xbcJF\xc0<p\x99P\xbd\xe0Uz\xbc\xd2\xf1\x80=\x01\x01,\xbdx\x87@\xbd\xef\x8b_=\x90\x99\xbb\xbdP\x81\xc1=~\xf6\xa6=\xa1\xa3\x99=\xd3mM\xbd\xb96\xe2\xbdP\x8e\xbd\xbd\x90fb\xbdH\x13\xcb\xbd\xd3&\xd0<;\xea\xb3<\x02\xc0\xd2\xbd\xef\xe4&<B.\xbf=\xf0\xc6\xaa\xbd\n\x16*=T\xcc\xae=\xcd\xd7<=\x94\xfdv\xbc\xb9g\x90\xbdp\x1e\xc8\xbd\xb3#\xef<\xb0\xf8\x15=\x9a\xf3Q\xba\xa9B\x8f\xbd\xf1j\x9b\xbd\xb1\x8f\xc6\xbd^\x07\x88=\xc6sj\xbd\xed\xf3\xea\xbd\xf0\xaa\xd8\xbd\xd5\x80e\xbd\xb5\xfch<\xc55\x83\xbd\xc9\xc5\xaa=\x06\x8d\x98\xbd\x9d\xa4\xc7;I\xab\xcf<\x02\xdcU\xbd\x83B\xd3=\x86\x18\xa1;\x1f`\x89=b\x16\xa6:l\xf9\xb0\xbdN\x16\\\xbd>|i\xbc>J\xf1\xbd\xd3\xe0\xb8\xbd\x90lz\xbd_\xae\xe2\xbd\xee\x84\xab=\xcc@\x83<\x99\xaf\xa5=\xe0Y\xcf\xbdH\xaf\x1e=\x16\x12\xd2\xbd\xfd\xcc\xcc=\xd17\xa3\xbcG\xf7\xfb=\xd1\xe9\x9b\xbc\xdc\x16\xf6:\xf4\xb4\xb3\xbd\xd4f\x81=\xf6\x98\x9a;\xf2I\x14\xbda\x98D\xbd\x16eS=\x9cB\x92\xbd\xd5\x07m\xbd)j\x1f=\xa0\x1aW=\xb1\xe8_=\x06\x84\x9b8n\xe7H=\x86\x83T\xbd\x85H\xbc\xbd\xdb\xda1<\x81N\x1f\xbd\x9ff\x1b=\x96\xa07=vCB\xbdL\xad\xbd\xbdjc\xce\xbd\xb3))<\x16$\xdd\xbd\xde~\x19\xbd\xd4\xb5\xa0<y\xfd\xda\xbc\xec\xc8\x84=\xf5\x1au\xbb\xdd\xe9\x0c\xbd\x10\xfd\x92=\x02\xe4\x01=z\x1f^\xbd\x8e\xef\xc9\xbd\x99\xf0\x85=\x90\xba\xc9\xbd\t\xa5\xc7\xbd\xc4\xaf\xe1<\xbf\xae\xc5\xbd\xbdu\xcc\xbcUI\x94=\xa0\xf9\xa5=\x93\x91\x02\xbdY\xed\x88<\xd0L\x16=\x07}a=\xc0\xab\xcc\xbc\x96\xbf\t\xbd\xe9]\x82\xbd\x1c6\xab=\x1d\x0e\x81\xbdm\xb1\xda<\x13`\x03<\xb9\x9d\x14=\xed*\xbc<\xd8V\x96=\xcf\xc1\x90\xbc\xf8\x81\x91=\x1bn\x9e=c\xf9\x93\xbc\xcf\x9d\xe3\xbc\x91\x04\x85\xbd\xb0\xbe\xb2=C%\xa2\xbc\x82\x8e\x99\xbd%\xe4\x86\xbd\'\xe6Z=\xfc\x89V\xbbI\xaf\xda<\x82\xec\x17\xbdp\xeer\xbd\n\x8e\x9c\xbd\x10&\x1f=\xfa:\x14\xbd\xea\xbf%\xbd\xdfB\x02\xbes\xeb\xff;\xfb \xc4\xbd\xcf\xcd\xed\xbd\xe7\x96\x83\xbdK0\x81=\xc0\xb0\xcc\xbd\x81\x05\x9d\xbd\xa4\xff\xc7=Lv7\xbdJ\x04\xf9\xbdp\\\xa3=\x0e\xa9 \xbd-\xc3\x9d\xbcy\xbeb=\xc9\x1b\x92=\x01\x97\xbb\xbd\xd6\xba\xb2=\xda\xee\xeb\xbc\xbb\x16\x94<\xdew\x03\xbe\t+8\xbd\x05<\x88<\xc3l\x02=\xad\xac\x91<\xde\x1f6\xbd\xf2U4\xbc\xab\xddx\xbd\x03\xf4\xc1\xbd\xaci\x10\xbd?\x9c\xc0\xbd\xffMh=dM\x14\xbd?\xa6n\xbd]j\x04\xbd\xa5]\x05\xbb\x0cs\xac\xbd\xf6%\xbd\xbd\xd4s\xa9<\xa8\x1f\xbd=\x19\xdb\xac<\x01\xda\xdb\xbd\x0c\xa6\xdd\xbc\xdcz\x85=<\xde}\xbd\r\xda:\xbd\xee\xa3\xcb=\x9bM\xac\xbdz\x8aT\xbcHF\xc3=!}\x7f\xbd\x1d>\xb2\xbd\xe9\xbe\xba=^\x0c\x9b=\xef-M\xbd\x11\x8f\xb9\xbd\xb9>\x8c\xbb8\xbf\x1d=\xd5\xdc!\xbd\x1a\xb0\xae\xbd\xb7E\xe5;.\x8fN\xbd\xaf&\xfc\xbd\xd2}\xfa;u\xa4;\xbc\xb9-\x93\xbd\x0880\xbc]\xba\xc5=[\xbc\x87\xbd8]\xe5\xbdz\xa4\x08\xbc\xe4\x87\x95=\x8f\xf7\xa6=3\xc9y=\x1a&b\xbd\xc4\x88\xd8=t\xde\xbb\xbb_m\xd1<\r\xa5\x9b=\xf8x\xc7=\xc4\xc1\x0c=w\xcf\xe0\xbd9\xc3P\xbb\xf5J\x8c\xbd\'\xc82=:\xe3\xb8=\rp\x7f\xbd<\xf0T\xbd\xdb3\xcd=\xfd\r\xcd=\x9d\x7f\xad=\xea\xc6\xe1\xbd-\x98\xa1\xbd\xde\xc6\xce=\xcc\x8b|\xbd\xd6\xb4\xc3<\x1ax/\xbdV,\xce=\xb9o\x1d\xbd\x1b\xac\x84\xbdtF\xd0;\xe2\x1f\xb0=\xf7\r\xb7\xbcb\xf6\xa4\xbdt/\xd3\xbd\x9f\xb4\xad\xbd\xd9\x06\x1c\xbdt\n\xce=\xa6\xc5\r=}t\xf1<;]\x93\xbd\xbb5\xee\xbd\x14\x8b\x8d=I2\xa9\xbd\xa7\xd4\t\xbc\xb7\n\xe2\xbb\xaca\xc6=\xc9!\xb7=\xef\x9c\xe2\xbc_,\xd2;\x1c\xbe\'<\x9d\xc5\x8b=\xd57\x1d\xbd\x9b\xd2\xbb=1X\xb6\xbd\xcc\xe6Q\xbd]E\xcb=\x87\xab(=g\xdf\xb0\xbd\xcb\x1d\x82\xbd\x0fb\xae\xbb\xb34\xb3=C&`\xbdw+a\xbd\x96m\x19\xbd)s5=\xfdF\xc3=\xf5F\xb5=\xa46\x9f\xbc\xc7\x96\x8b<u9\x05\xbd;\xe5\x88\xbdQN\x86\xbd\xa9zy<\xfa\x80H=\x15PJ=\xd8\xa4\xa1=\xb2\x0f\xa2=vl_\xbd\x93\x82\xbf\xbdrP3=k#\xc6<U]\x81\xbd\x9d\x7f\x99\xbd)\xe8\x7f\xbd\x82Y\xda=`:\x92=D\xf1O\xbd\x89\xf8 \xbd\x81|`\xbb\xd6\xa6\xea;6t\xa8\xbd\x9f.\xc7\xbc\xe0\xbe\xbe<\x90\xcd\x93\xbd2A&=:\xecm\xbbn\xaa\xa7\xbd\x1e\xe9\xfb<\xae=\x1a=g$\xde\xbdX\xa2Z\xbd\xd4\xde\x00\xbd\xe9)\xf2\xbc\xe4!\xdf\xbc\xea\xcc\x8a\xbc\x05\x94\x8c\xbd\xf6P\xcd=\x16\x12\x8f\xbd\xa6\xac\x15=\x8b$\x1c\xbd\xcas}=\xca\x92\xc7=\x1a\xb0\x12\xbd\xf0\xeck\xbd\xf03\x0b\xbd7\x89\x02>\'\xabM\xbd\xc5+r\xbc\xd8\xd7\xa6=\xa6\x0c\xb5=\x95\t\xb0=\xd5\xc1\xdb;\xc3\xbb\x86\xbd\x89\xe6\xde=\x87\xc0\x1e\xbd\x80A\xef=\x87\xfb\xc3\xbd\x06k\n\xbd"R8=\x99\xddK\xbd\r\xbf\xf9\xbda\xc9\xd2=\xca\xfb\x17=\xa5\xac\xdb\xbd\x12\xfd9\xbd2\xb4%=\x8c\x93\x92\xbdX\xb3\xa7\xbd\xf2\xef\x97\xbd\xbf\xad\xf0\xbd\x8f\x96\xda=\xe8\xc8\xf6\xbb\xafY\x11\xbd\x9d\x12\x07>\x9fE\xa2<M\xf0(=\x8a\xb1\xdc\xbb\x7f\xaa\xb6\xbd\xb9p\x8f\xbd\xb8\xe8\xb3\xbdA\x87\xbd=w+\xe4=\x8d\xcc\x1d=\x049\xad\xbd\x9f\xa4\xd8\xbd\xf6W\xf2<\x028H\xbc\x90\xb1\x82=r\xe2>\xbc\xf4\x8c\r\xbd4\xf3\xab\xbdd\x95\xde<\xcb`\n\xbe\\\xb38=\x81\xef\xa5\xbdq\xd2\x82\xbd<\xb2\xb9;\xb3\x82\x1a\xbd]\xad#=\x10\xb3\xbc\xbd7\xee\x84\xbd\xf037=\xfd\xaa[\xbd\x86\x92\xbb=\xc6\xcf==\xb6b;\xbd\xec\x01\xcd<g%\xbd=d\x11\xc2<\xca\xf7\xa7\xbd\xc39\x9b\xbd\xfaI\xaa\xbc:\x1a\xf5\xbc\x84F\x1e\xbd%;\x8a\xbd\xb6\xbb\xa9\xbd\xd3\x83\xb1\xbd\xf8\xf3\xdf=\x03~\xeb\xbc\xe1\xe8\xf1=\xe9k\xc2\xbd\xcaa\x91\xbc\xd1\x81\xe9\xbc\x06\xbaK=!0Y\xbdy\xba#=\xefL\xe9=\xea\xd6\xd0\xbb\xf3\r\x00\xbd\x0f\xc4\xf3<bX\xc2<\x8ai\xb3\xbd\x95&3=\xbb\xfbh=\xb9\xe1\xa3={\x06\x04>J/\xcb=\xb0\x8a\xaf\xbd\xd2\x18M\xbbm\xa4\x1b=\x99\xc8\xe8\xbds\x0b-\xbd\x8c\xed@=)\xe0\x8c\xbd\xef\x17\xed=\xdf4\x84\xbd\xb4\x08\x8b\xbc\'m[;\xc85\xbe\xbd\x82_\xd7<UJ{=\xadf\xd5\xbd\xb4F\xdc\xbdS=\x9d\xbd\xb7x\x96\xbc\n6\xc3\xbd\xf0\x8f2\xbd\x0cM\x97=\x9b5^=\xbbW}\xbdE\xdfM=8\xa5\xa5\xbb\xfd\x8a\xe9=r\x91\xc7=\x9d\\\xdc\xbd\xddV\x1c\xbd\xa7\xc7\xc1\xbd(\xad\xd9\xbc\xb8Y\xba\xbd\x1c\x9a?\xbd\x7f3\x8e\xbd\xb7\x11\x1d<\x03\xc5\xc6=#{\xa7\xbc\x94\xcf\xd1=\xb6\xf9\xc9\xbc\xbd!\xd1\xbd\xba8\xce\xbd\xaa/2=\xffm!=\x01\xc9\xd7=n\x852<\x8fU\xbf\xbc\x8b|\xa3<V}\xc0<\xa9\xbd\x9f=j\xbe&<\xb3$8=\xd6 \xb2\xbd\x98\xda\xf3\xbd\xce\xe7\xd9\xbd\xc3\x1e\xee\xbde%K=0\x9fZ=\xac\x85\xd6=&p\xab\xbd\xac{\x00<t7g\xbd{\x01\xd5=\xc4eI=A\xf7a\xbc\x18\x15F\xbd\x7fT\xff=\x08\xf4\x10=#l\xd7\xbd\\p\x9f\xbdxm\x0c\xbd\x8f\x92\x1e;O\xde$=\x8ev\xfb\xba\xc9|\x9e\xbc\xef\x8a\xdc=\xa3\n\xae=\xb9\xe4o\xbd\xfa9\xab\xbd\xa8\x1f\xd9=\x06\x15t\xbd\x9c.y\xbd\xc6BW=\xa2*u=\xda\x07d<q\xeb-=\xd3\xf2\x92=\xd8i^=e\x83\xd2=\x12\xa2\xbc:\xb6\xaa+\xbd.\xe7\xeb=]\x9f\x85=<\t\xa7\xbdbZ\xa3\xbd\xd2Z\x9a\xbc\x07\x87\xc5=\x84y\xb2\xbd\x97\xcc\xe6\xbc\xfb\xe2\x11\xbd\x1bG\xb4<\xa9\xfc\xb9=\xdam\x95=v\xf0\xdb<\x06\x1e\xb5\xbd\xbf\x87\xbd=\xa0\x1dA=\x8e\xfb\xcc\xbb#\x19\x15=Bb\xb2\xbd\xf3\xfd\xf0\xbd\xe8\xb9\xe7\xbc\xd5\x86\xc0=4|\x18\xbd\x82\xed\xfe\xbc\xc1\n\xf0=&6\xdb\xbc:\xe5E\xbd\xbd!\xd6=,\xa5\x89=\xae\xfcg\xbdk\xafT=\x15\x8d|\xbcb@\x81<Z\x00\xd8\xbd\x17@\x88\xbc\xaa\x84\x9c=\xc5\xa4\xeb\xbd\x08AX=\xa5t\xdc=\x8f\xb2\x88=\xda\xe0\xab\xbd\xefi\xeb\xbdJ\x05\x94\xbdD\xd9\xda\xbd\xebs\xb4\xbc\x19\xb9\xaa\xbdU^\xb2=\xae\x8f\x89<\xada^=\x93\x0e\x10=\x9f\xe8\x8a\xbc\xc4\xd0\x86=GR\xac;\x12\xd4\x9d\xbd\x95\xbf\xf3\xbcgk\x01\xbd\xacM\xc6=0\xd9\xec\xbc\xba\x02\x9a\xbc\xcc\xe5\xa8\xbbg\xe51\xbd\xee\x1e\xf1<\x04\xf6\xa0\xbd\xf7\xe5\xf3\xbd\xd3\xb4T\xbc\x7fI\x84="\xea\x12=f\x89\xf7<\xd9\x00\xb7<\xe7K\xe7=\xb3\xcb\xb7=\xd1\xef\xc6\xbc.\xaf\x18\xbcb\x97\x01>a\xe0b=\xed\xbe\xa3\xbc\xb2a\xa1=e\x19T=NX\x95\xbd\xd3J\x8b=3\xf4\xd0<\xe6I\x96\xbdg4\x80\xbd\xf4\x82\xf7\xbd\xc1\x9d\xd8\xbc\xa1\x0e{\xbd\x8e\xf4\xfe\xbd\xa3\x16\xf3=3\xbc\x8b\xbc\xeb\xac\xb6=\x8f\xec\x99<q\xa2\xe3<\x14\xccA\xbd\x02\x9a\xc8\xbdf\xf0:=\xfe\x89\xc0\xbbj\xbe\xb0\xbc\x8bC\x80\xbc!\'5=\xdb\x83\xb2=\x1b\xae\\\xbd\xf3\xb2\xd5=\xe6i\xa6\xbdSi\x95=A\xb6G=\x1f\x95\x94\xbdf\xac\xf5;\x1b\x9c\xad\xbd:C8\xbc\xab\x95\x88\xbc\xe6\x83\x87\xbd\x92\x13\xee\xbd\x88\x11\xb8\xbd\xb1]\xcc=\x9doM\xbd\xde\xa2)=>\xc2v=\x8a\x97\x06\xbcj\xc8\xc0<\xfd*\x1f\xbc\xa8\xd2#=5|\x15\xbd\x05\x10\xcd\xbc\xf1\xa8\xb6\xbd\x85\x94z\xbd=\xf0x\xbdj[\x92\xbci\x03(=\xfeI~\xbd\xbdh\xa4=\x0e=\x06>\xdd\xf4\xba\xbd\x10\xa6\x9d=j\xe0\x96\xbd\xcb\x03\x91=C\xb3\xb1\xbdE\x8c \xbb0\x14\xee;\xc7\xf9&\xbb\\\xea\xf6\xbd\xdd\x1e\xe5\xbb\xd2\xd6\xa1\xbc\x96k\x06\xbd\xa2\xc5+:\x845\x1b\xbd{\xe0&\xbd\xb1\x83Q=L\xa5\xb4\xbd\xa2\x82\xcf=\x19\'\xce:\x9e\x96\xc8=\xec\xa7\xb4\xbbW\x0f\xc3=\n\x00\x9f\xbc\xb7-\xbc=hj\x98=\xd1s\xb1=d`s=\xbb\xd6 \xbc\xee\xd9\xa3\xbc\x16\x9d\xa7=\xc2\xfa\x05=2\x1b\xff\xba\xca\xd6g=\x92\xec\x92\xbdX\xb5)\xbbB\xb8\xc7\xbd\xacf\x95=A\xbf\xc2\xbc\xb7\xb5\xb7=\xa5\xa2>\xbd\xb2\x04\x9f=\x06m\xbb<\xe2\xc6\t\xbd\xc9\x19\xfd\xbd!\xa1;=~M7\xbc{\xe4\x03\xbc+\xdd\xbd=B\xaf \xbc\x82\x95\xcf;c\tS=\x1eU\xe5\xbd\xff\x86l\xbd\xf3\x06\xa5;w\xd6\x16\xbd\x900\x89<\xd5;?\xbd\x9d[\x98\xbd\xf2\xff\x08=\x84\x92\\;\xe3\xa5\x87\xbc\x84\xf4@=\xe0\x03&\xbb\xb9Q\xbe\xbd\x9d0!=\xc8_\x88\xbd{\xa5\xc8=\xaafw\xbdP\x15\xe5\xbc\x99\x03\x89\xbd\xe1b,==\x7f9\xbd\xccK\xe4\xbdp<\x95=\xf0\xc2\xcd=\xf5:\x88=}FF\xbdF4\x1f=\x80\xe4b\xbd\xec\x93\xc8\xbc\x0e\t\xff;Ga\xd7\xbd<l\xaa\xbc\n\xa9}\xbde\xb9w\xbd\xdb\x90\xb9;\x11\xb7\xab\xbd@A\x02\xbd)\x85_\xbd\x87C*\xbd\xd9\xbc\x85<5r\x9f\xbc_\xfa\xf3\xbdGJ\x00\xbe\xc7\xb6\x97\xbd\xf8M\x08=e?\xd4=\xdf\x9cG\xbb6\x8e7=m\x16\x08=\xe5J\r\xbd\xecS\x1c=\x83\xa5\xc0=\xfc\xe1\xcd\xbd\xba\xde\xa6\xbdy\xd7N\xbd\x98{B\xbc\x1a\xfe\xff\xff\x04\x00\x00\x00\x00\x01\x00\x00\xb6_)\xbc\xe4\x81,\xbc\x9b\xcdv\xbb\xf9\x90\x07=\xee\x96"\xbcH\x177\xbc\t\xb4@\xbc\xe2S\x1b\xbc\xd7kq\xbc:\xd3-\xbc\xbe\r\xc9<b\xbd\x92<\x98\xc5%\xbcE6\x13\xbc\x1d)8\xbc\x94N"\xbc!\xe4P\xbcnDG<\x02\xec-\xbb\xbb\x8c\xd7;&\xaa#\xbc\x1b\xec\x02=\xa33T\xbc5\xf5\r\xbc\x10\xf7Q\xbc\xf2p3\xbc[\xa7\x1d\xbco(\x01\xbcE\xe4B\xbc\xf6O\x0f\xbc\x8fJ\xfb\xbb\x03g\xf6;\r\x98$\xbc\xb9\xb9\x83;\xb6%Y\xbc\x82o\x96\xbb\xa6\xe3N\xbc8O\xf2<{U(\xbcg \xf1\xbbOp#\xbc\x8b&3\xbcnW\xdd;\x00\x00\x00\x00\x9b\x92\'\xbc+a|:\xb4\xb5\x98<\x9e\xc9\x8d\xbc\x06\\\xcd\xbb\xff\xc3\xe2\xbb\xcf\x1e\x10\xbc\xff :\xbc\x8es\xc4\xbb\x1b\xf8#\xbc\x0fD}\xbc\xf6a1\xbc\xbf\xca\x7f\xbcE\xcc\x13=]\xa2\x18\xbc\n\xe40\xbc6\xd8%\xbc\xfew\xc3\xbb\xc8\xb0G\xbc\xec\xfdQ\xbc&\xff\xff\xff\x04\x00\x00\x00\x80\x00\x00\x00\xf6c^=5\xd6\xbc<\xa5j4\xbcosb\xba\x16\xe0C\xbc\r\x179\xbc\x8e|\x1a\xbchlT\xbc\xab\x90\x16\xbc<t\x1e\xbc\xcd\x04h;C-\xfb\xbb\x0c\x90\x84<H,\x18\xbaZ\xa0/\xba\xaef\xfd\xb9W1\x07\xbc\xc0\xa37<\xcf\x19\xf4\xbb\xc8{\x14\xbc\xa7\xbbM\xbc\x1e\xc3\x0f=,\x0c.\xbc\xb1\xe26\xbc)\x87\x13\xbcoA\xf8\xbb\x1b\x03<\xbc\x1519\xbc\xebz\x14\xbcE\x89\x03;\xa9S\xab\xb8\xb5~\x15\xbc\xb2\xff\xff\xff\x04\x00\x00\x00@\x00\x00\x00K\x1bo\xbbKj?\xbb6\xee@;]r(\xbc\'\x83\xc1\xba\x1b*\x84<;\xde\xc8\xbc\xef\xd0\x9c\xbaWt%\xbc\xc8\'\x1b=K\xaa\x0c=*\xd4p<\xa3\x9d\x93\xbcJ0\x83; \x9a.<\xa8\x10h\xbc\x00\x00\x06\x00\x08\x00\x04\x00\x06\x00\x00\x00\x04\x00\x00\x00\xc0\x06\x00\x00\x9a\x07\xc7\xb9\xb4\x1f=\xba;,\xb9\xb8\xa0T\x0b\xb8`\xbb\x1b:/$\xc99?\xc8\x808\xbf2\xc89\xe1x_\xb7\xc3\xcd-:1"\xe59K\x00\xdf\xb9\x0e\xf7\x10\xba\xf8\x13\x1c\xb91]\xd6\xb6\xef\x04\x0e:\x87|\xb8\xb83\xfc\x949H\xfcd9\xab]\xe79Di\xf98\x84\xac!:\xe2\xb4\x85\xb7\x04\x8f\x8a\xb9\xa2\x94\x1e:\xfc\xca\x18:\x18\\r\xb7\x8d\xb1\x039\x8d\x0c(9\x1au@\xba[\xc7a96!^\xb9\x94\xbf\xc1\xb9F\xc0\n:\xf7\x84\xd89\x1fJD\xba&\xe0#\xba\xdcY\x16\xbaE\xf7,:\x18\xc3\x198HM\xeb\xb8a\xa8\x199`\x8c\xca\xb9m\'\x13\xb9\xc4\x05\xf79\xee*\xae\xb86g :rs\'9S\xe8\x1c\xba\xfc}o\xb8\xc3<\xd19\x1a\x0b\x8a\xb9-\xc8\x15:\xbd\xf0\x1d\xba\xf2\'$\xba\xa8\x1al\xb7\xcfZZ9\xb4L\xe09h\x16\xcc\xb9#\x00=9\xaa\xa6\x959Y\x8e6\xb9?\xaa\x9a\xb9?\xd0\xd09*M99\xaa\xac\xb1\xb9\xf3\xa30:o(n9\x8d\x82\n:\xc5\x15$:\x93\xd3"\xba\x11\x16\xfd\xb9\x16:\xca9\x90\xcaq\xb9\x06\xfa%:K{3\xba\x9bK\x8d\xb9\x03K\xbe\xb9\xac\x05\x16\xba\x06\x00)\xba\xf9]\x9d9\x85!\x1f\xba:\x142\xbat\x9a"\xb9\xb0\xd4*\xb9V\x90\x1b:~\xc5v9,e\xf99\xd6X]\xb9\xa2s\x1f\xba7X7\xb9\x8f\xe5\x05\xbar6\xcc\xb7%\xcd\x909x\x98\xa59\xc0\xfd\xb8\xb9\xc16\x1b:\xcbe2:W\xe2\xa39w}\xca\xb9\xf4\n\xd07\x89V"\xba\xfa\xbc\x05\xba\x97\xb6t\xb80,J\xb7\xc4\x00\xf19 M\xcc\xb9\x02%V8\xc7\x18\xce\xb9\x8d\x932:\xc6\xa9X:w!\x04\xbaJ\xbb\xd8\xb9\xba\xe7V:\xa8{\x869\x1c\x06\x0e\xbaC\x8b\xd19s\xc3\xa28\xbbT\n\xba\xe3x\x18:\xbe\xa7\xa3\xb9,\xb5\xae\xb9\x84\xb4\xee\xb9\xe5n\xa19\x9a\xca\xed8\xb9\x13\x869\x0bh8\xb9_\x13\x11\xba\xd7\xcb\xea70_f\xb9\xab\xdd\xd4\xb8\xaa\xfc\x8b9\xb0*#:]E\xc0\xb9\x9e\xa5S\xb9\x8f{\xc09p\xe6@9)M\xe8\xb7\x15\xe8r9:$9\xb9\x0b\xb3\x17\xb9\x9f\xc4\xff\xb8\x82\x03\xf2\xb9I\xa6+:\x13\x82\xf69\xe5}\xf3\xb7\xcf\x1c\xa1\xb90\xbc%:Sx"\xbaA\xf0\xb3\xb9\x11E\xc1\xb8t\xa7L\xb9\xc3M\x1a\xba\xcb1\x1c\xb6J\xf5\xb9\xb9\x80K\xfb\xb9\xa9\xe2\x8f9\xdb\x038:\xf4\xd3\xb48\x99\xb8\xcb9\x9f\xaf\xd4\xb9\x98"#\xb9^\xfc0:d\xfbR\xb8\x8c\x0e\x829C\xd8\xc0\xb97\x909:\x8f\xb4\xfe\xb9\x8d\xa1\xca\xb8\x04L@\xba\xf3\xc9\x9e9O\xd6\xc3\xb8\xb8_\x0c9<\x8a\xe17\xb8\xc7\xad\xb9\xd0b\xcb9\x8f\xd4\x9f9\xaed\x0e:0\xc4\xf59\xc3\x0f\xdd93!\xe78\xa0\xbeS9\x81\x88\xd39\xca\xf0:\xb9\t\x86w\xb9lV\x9f9\x05\x08\xb79\x1c\x03T8[%\xba9M-o\xb8\x9f\xa8\x12\xba\\l\x13:\xf1\x9f{9\x88\xc7\xd99\x140\x05\xbagaF\xb9]\x8d\xfb4\x18e\xa5\xb9\xa4\x87\xe0\xb9\x85\x0cQ7\x8aY\x079\x9f\xd6\xe9\xb9n\r\xe1\xb9Iw*\xb9\x88\xf9m7I\xce!:\x06`\x8c\xb9k\xdf\xc6\xb9\x83\xa9\xd89\xd8T\x8d\xb9;\xf9\xaf9\xf8\x95\xd6\xb9\xfc\x98\r\xba\x97\x19Q9\x83\xa9\xe0\xb8\xbd\xd7\x9f\xb9\xdb\xfaX\xb9\xc1\x10\xb09\xe8\xe7$:\xba\x8dP\xb8\x8b8\xd57\x95\xc1(:$6\xcd\xb8\xf3\xf2\x9d\xb9\x8a\x0e\x07\xba\x1cXP9x\xd1\x83\xb8\xc5!^9h\xe9\xa39\x01m>\xba\x03\xb8\x04\xb9H\xf3/\xba\xaf\xf3\x10\xba\xbe3\xad\xb9%&\xe09\xc7A29\x7f\xb4\x8b\xb8\xeb8\x1e\xbaN&\xe8\xb9D\xb2,\xbaw\xa3r\xb9!\xa5\x85\xb9B\xf6u\xb9\xe7\xcf.\xba\x95#\xd5\xb9Ps\xae8\x0c|\xce9U\x05\xa88g\xe8\x1b\xba\xab\x8e\x83\xb7\x07[\xb6\xb9@\x0e^8\xad\x1b\xad\xb9\xd5\x90"\xba\x99(\xe39a\x01\xea9/=P\xb8\xf9\xde<:P\xcf\x1e:\xcc\xde?\xba\xe4\xf0\xfc\xb9Ho\x1c\xb8I\n\x14\xba\x04\xd2\xa08`\x9f\xec8\xca\x1b\x1c\xba\x9ea\xf39\xc7\xdfM:\xbf\x9f\xc58*\xfc\x12\xb9\xbf\xe1\x84\xb8zF#\xba@\t\':k\xe9\xbd\xb9Z+\xe49\xbe\x11\xce\xb9.\xe8$:\x88:\xf1\xb9\xa3\xef\x10\xba\xcar\xe0\xb9\xa4I;\xb9\xae\xa3Z\xb9x\x0f\x1b:O4\x08\xba:x\x17\xba\xdb! :]{"\xba\xeaC\x9d\xb9\xae\xdc\xbe\xb9?i3\xba /\xc7\xb9\n\xb95:\x95\x01\x0e\xba\xe1M\xa09\xa6C(:\xdcD\xeb9\xf7$\xf58/[%\xbak\xb12\xba\x96r\xc49#D\xd79\x17\xd5<:.\x1cA7\xbf\xc6\xdf\xb6r\xe0\x089\xe7\xc7\x05:\x11\xa4/\xba\xf8\x8c?:\x02B@:ky\x969\xaa\xa6=:J\xad\xae9>H\xa2\xb9sl\x18:\xc6N\n\xbaq~;\xba9\x98}8\xfe\xf9"9\xf3d:\xba\xe3\t\xd49\xf6\xcc\xd0\xb9zs3\xba\\\x02\x0b\xbaS\xa4\x95\xb9G\xa8\xb09\xd7\xdd,:O\xfc\x0c\xba\x94\xc2\xe2\xb9<\x97R9\xa5\xf6\xa1\xb6\xf1\x8b\xe0\xb9\xf1\x89\xd2\xb9+f\xdf8\x12g\x04\xb9\xda\xd2\xda9~\x14\xf37\x8c<$:\xf53\x19:\xfcKx7\xae\x9c9\xba\x1f\x8d\xee\xb8\x0f\x19\x1e\xb9\x12\xa5\t:\xe6\xb0z9\xab&\xa6\xb7\xb5\xbcX\xb9\xa2\x9c\x129\x12G\x80\xb9\x91\x92\xf69\x92\x03\x01\xba\xfb\xfd\x0b:\xb4\xf4f9\xcf\x80\x148M\x0b\xb8\xb9\xeb\xebW8,@\xf8\xb9f\x00\xe78\xc64\xfd\xb9+[\x8c8\xec\xca\xd89\x89\xa6%\xb8\xeff\x13\xba\x11_\xf8\xb9)\xd0\xc29\xda4\x1f\xb9O<\x10:\xe3P\x0c:%f\xb8\xb9\x18\xe6\xfa9\x0b/|9\xd8\x8b\xcb9\x8e_\'\xba\x8f\xb5\xbf91r\xf5\xb9\xdf\xfb)\xbaYb\x17\xb8O=\xdf8Q\xea`\xb9\x88+\x058u\xba\x13\xbaG\x1f\x18981\xd09\xb3\x96\xc29\x99I\x1e\xb8G\xb3\x0e\xba|\x0e\x879\xb06\x049\xb1F,:o\x99@\xba\x1b\xa5#9\xf4\x00\xc7\xb7\xa6\x17Q\xba\x07Hp9Z\xc7&:\xe8\xa4\x02:k\xbd\xb19\xffU 8\x0c:R\xba\xb2\xcc\xe49\xfef\x9c9\xf3p6\xba\xe4\x10\xc1\xb9\x1cq9\xb8$\xa9\x06\xba)w\x189%\x18\x00:\xeat\xc9\xb8\x86+!\xb7\xe2\x10\x06\xbaMx48\x06\xf0\xf2\xb9S\x186\xb9\xdc\xc0\x16:\xb6\xb9O\xb9\n\n2\xbaKP\x8e9\xaf\x88\xc39\xb4\x9e6:\xba\xc8\x1a\xb9\x80\xb5\x0f:\xf1\xb8\xc39\xccy\x1f:\xbc\xbf\x1f\xba\xc8\xaf\xed9\x12\x82\x19:*\xfe\xff8\x10\x02\xfa9-\x11a90}5:\x82\x96\xa49\xf8N\x0f:I\xde:\xb9p\xf3\xff\xfft\xf3\xff\xff\x0f\x00\x00\x00MLIR Converted.\x00\x01\x00\x00\x00\x14\x00\x00\x00\x00\x00\x0e\x00\x18\x00\x14\x00\x10\x00\x0c\x00\x08\x00\x04\x00\x0e\x00\x00\x00\x14\x00\x00\x00\x1c\x00\x00\x00\x94\x02\x00\x00\x98\x02\x00\x00\x9c\x02\x00\x00\x04\x00\x00\x00main\x00\x00\x00\x00\t\x00\x00\x000\x02\x00\x00\xcc\x01\x00\x00|\x01\x00\x008\x01\x00\x00\xf8\x00\x00\x00\xb4\x00\x00\x00\x8c\x00\x00\x00<\x00\x00\x00\x04\x00\x00\x00b\xfe\xff\xff\x14\x00\x00\x00\x00\x00\x00\x08\x10\x00\x00\x00\x14\x00\x00\x00\x03\x00\x00\x00\x08\xf4\xff\xff\x01\x00\x00\x00\x14\x00\x00\x00\x03\x00\x00\x00\x13\x00\x00\x00\x0b\x00\x00\x00\x08\x00\x00\x00\x96\xfe\xff\xff\x1c\x00\x00\x00\x00\x00\x00\x08\x1c\x00\x00\x00 \x00\x00\x00\x03\x00\x00\x00\x00\x00\x06\x00\x08\x00\x07\x00\x06\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x13\x00\x00\x00\x03\x00\x00\x00\x12\x00\x00\x00\n\x00\x00\x00\t\x00\x00\x00\x00\x00\n\x00\x10\x00\x0c\x00\x08\x00\x04\x00\n\x00\x00\x00\x0c\x00\x00\x00\x10\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x02\x00\x00\x00\x11\x00\x00\x00\x07\x00\x00\x00\x06\xff\xff\xff\x14\x00\x00\x00\x00\x00\x00\x05$\x00\x00\x00(\x00\x00\x00\x01\x00\x00\x00\xf6\xfe\xff\xff\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x11\x00\x00\x00\x01\x00\x00\x00\x10\x00\x00\x00\xe6\xfe\xff\xff\x10\x00\x00\x00\x00\x00\x00\x01\x18\x00\x00\x00\x1c\x00\x00\x00\xd8\xfe\xff\xff\x00\x00\x00\x01\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x10\x00\x00\x00\x03\x00\x00\x00\x0f\x00\x00\x00\x06\x00\x00\x00\x04\x00\x00\x00\x82\xff\xff\xff\x14\x00\x00\x00\x00\x00\x00\x05$\x00\x00\x00(\x00\x00\x00\x01\x00\x00\x00r\xff\xff\xff\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x0f\x00\x00\x00\x01\x00\x00\x00\x0e\x00\x00\x00b\xff\xff\xff\x10\x00\x00\x00\x00\x00\x00\x01\x18\x00\x00\x00\x1c\x00\x00\x00T\xff\xff\xff\x00\x00\x00\x01\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x0e\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\x05\x00\x00\x00\x03\x00\x00\x00\x00\x00\x0e\x00\x1a\x00\x14\x00\x10\x00\x0c\x00\x0b\x00\x04\x00\x0e\x00\x00\x00$\x00\x00\x00\x00\x00\x00\x054\x00\x00\x008\x00\x00\x00\x01\x00\x00\x00\x00\x00\x0e\x00\x18\x00\x17\x00\x10\x00\x0c\x00\x08\x00\x04\x00\x0e\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\r\x00\x00\x00\x01\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x0e\x00\x14\x00\x00\x00\x10\x00\x0c\x00\x0b\x00\x04\x00\x0e\x00\x00\x00\x1c\x00\x00\x00\x00\x00\x00\x01$\x00\x00\x00(\x00\x00\x00\x0c\x00\x10\x00\x00\x00\x0c\x00\x08\x00\x07\x00\x0c\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x0c\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x14\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00x\t\x00\x00\xac\x08\x00\x00<\x08\x00\x00\xe0\x07\x00\x00\x84\x07\x00\x00,\x07\x00\x00\xd4\x06\x00\x00\x88\x06\x00\x00\x18\x06\x00\x00\xc0\x05\x00\x00t\x05\x00\x00(\x05\x00\x00\\\x04\x00\x00\xe8\x03\x00\x00\x14\x03\x00\x00\x9c\x02\x00\x00\xc8\x01\x00\x00P\x01\x00\x00\xf0\x00\x00\x00`\x00\x00\x00\x04\x00\x00\x00\xf2\xf6\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00\x1c\x00\x00\x00\x1c\x00\x00\x00\x15\x00\x00\x004\x00\x00\x00\x02\x00\x00\x00\xff\xff\xff\xff\x0b\x00\x00\x00\xd4\xf6\xff\xff\x19\x00\x00\x00StatefulPartitionedCall:0\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00J\xf7\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00\x1c\x00\x00\x00\x1c\x00\x00\x00\x14\x00\x00\x00h\x00\x00\x00\x02\x00\x00\x00\xff\xff\xff\xff\x80\x00\x00\x00,\xf7\xff\xffL\x00\x00\x00sequential_1/dense/MatMul;sequential_1/dense/Relu;sequential_1/dense/BiasAdd\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x80\x00\x00\x00\xd6\xf7\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00\x1c\x00\x00\x00\x1c\x00\x00\x00\x13\x00\x00\x008\x00\x00\x00\x02\x00\x00\x00\xff\xff\xff\xff\x00y\x00\x00\xb8\xf7\xff\xff\x1c\x00\x00\x00sequential_1/flatten/Reshape\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x00y\x00\x002\xf8\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\x12\x00\x00\x00H\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xff\x16\x00\x00\x00\x16\x00\x00\x00@\x00\x00\x00\x1c\xf8\xff\xff$\x00\x00\x00sequential_1/max_pooling2d_2/MaxPool\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\x16\x00\x00\x00\x16\x00\x00\x00@\x00\x00\x00\xa6\xf8\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\x11\x00\x00\x00\xa4\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xff-\x00\x00\x00-\x00\x00\x00@\x00\x00\x00\x90\xf8\xff\xff\x82\x00\x00\x00sequential_1/conv2d_2/Relu;sequential_1/conv2d_2/BiasAdd;sequential_1/conv2d_2/Conv2D;sequential_1/conv2d_2/BiasAdd/ReadVariableOp\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00-\x00\x00\x00-\x00\x00\x00@\x00\x00\x00v\xf9\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\x10\x00\x00\x00H\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xff-\x00\x00\x00-\x00\x00\x00 \x00\x00\x00`\xf9\xff\xff$\x00\x00\x00sequential_1/max_pooling2d_1/MaxPool\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00-\x00\x00\x00-\x00\x00\x00 \x00\x00\x00\xea\xf9\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\x0f\x00\x00\x00\xa4\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xffZ\x00\x00\x00Z\x00\x00\x00 \x00\x00\x00\xd4\xf9\xff\xff\x82\x00\x00\x00sequential_1/conv2d_1/Relu;sequential_1/conv2d_1/BiasAdd;sequential_1/conv2d_1/Conv2D;sequential_1/conv2d_1/BiasAdd/ReadVariableOp\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00Z\x00\x00\x00Z\x00\x00\x00 \x00\x00\x00\xba\xfa\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\x0e\x00\x00\x00D\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xffZ\x00\x00\x00Z\x00\x00\x00\x10\x00\x00\x00\xa4\xfa\xff\xff"\x00\x00\x00sequential_1/max_pooling2d/MaxPool\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00Z\x00\x00\x00Z\x00\x00\x00\x10\x00\x00\x00*\xfb\xff\xff\x00\x00\x00\x01\x14\x00\x00\x00$\x00\x00\x00$\x00\x00\x00\r\x00\x00\x00\x9c\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xff\xb4\x00\x00\x00\xb4\x00\x00\x00\x10\x00\x00\x00\x14\xfb\xff\xff{\x00\x00\x00sequential_1/conv2d/Relu;sequential_1/conv2d/BiasAdd;sequential_1/conv2d/Conv2D;sequential_1/conv2d/BiasAdd/ReadVariableOp1\x00\x04\x00\x00\x00\x01\x00\x00\x00\xb4\x00\x00\x00\xb4\x00\x00\x00\x10\x00\x00\x00\xba\xfc\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x0c\x00\x00\x00(\x00\x00\x00\xc4\xfb\xff\xff\x1b\x00\x00\x00sequential_1/dense_1/MatMul\x00\x02\x00\x00\x00\x0b\x00\x00\x00\x80\x00\x00\x00\x02\xfd\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x0b\x00\x00\x00(\x00\x00\x00\x0c\xfc\xff\xff\x19\x00\x00\x00sequential_1/dense/MatMul\x00\x00\x00\x02\x00\x00\x00\x80\x00\x00\x00\x00y\x00\x00J\xfd\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\n\x00\x00\x008\x00\x00\x00T\xfc\xff\xff)\x00\x00\x00sequential_1/dense/BiasAdd/ReadVariableOp\x00\x00\x00\x01\x00\x00\x00\x80\x00\x00\x00\x9e\xfd\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\t\x00\x00\x008\x00\x00\x00\xa8\xfc\xff\xff+\x00\x00\x00sequential_1/dense_1/BiasAdd/ReadVariableOp\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x16\x00\x1c\x00\x18\x00\x17\x00\x10\x00\x0c\x00\x08\x00\x00\x00\x00\x00\x00\x00\x07\x00\x16\x00\x00\x00\x00\x00\x00\x01\x14\x00\x00\x00\x14\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x02(\x00\x00\x00\x18\xfd\xff\xff\x1a\x00\x00\x00sequential_1/flatten/Const\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00R\xfe\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x07\x00\x00\x00,\x00\x00\x00\\\xfd\xff\xff\x1c\x00\x00\x00sequential_1/conv2d_2/Conv2D\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00 \x00\x00\x00\xa6\xfe\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x06\x00\x00\x00,\x00\x00\x00\xb0\xfd\xff\xff\x1c\x00\x00\x00sequential_1/conv2d_1/Conv2D\x00\x00\x00\x00\x04\x00\x00\x00 \x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00\x10\x00\x00\x00\xfa\xfe\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x05\x00\x00\x00<\x00\x00\x00\x04\xfe\xff\xff,\x00\x00\x00sequential_1/conv2d_2/BiasAdd/ReadVariableOp\x00\x00\x00\x00\x01\x00\x00\x00@\x00\x00\x00R\xff\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x04\x00\x00\x00<\x00\x00\x00\\\xfe\xff\xff,\x00\x00\x00sequential_1/conv2d_1/BiasAdd/ReadVariableOp\x00\x00\x00\x00\x01\x00\x00\x00 \x00\x00\x00\xaa\xff\xff\xff\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x03\x00\x00\x008\x00\x00\x00\xb4\xfe\xff\xff*\x00\x00\x00sequential_1/conv2d/BiasAdd/ReadVariableOp\x00\x00\x01\x00\x00\x00\x10\x00\x00\x00\x00\x00\x16\x00\x18\x00\x14\x00\x00\x00\x10\x00\x0c\x00\x08\x00\x00\x00\x00\x00\x00\x00\x07\x00\x16\x00\x00\x00\x00\x00\x00\x01\x10\x00\x00\x00\x10\x00\x00\x00\x02\x00\x00\x00\x88\x00\x00\x00 \xff\xff\xffz\x00\x00\x00sequential_1/conv2d/Relu;sequential_1/conv2d/BiasAdd;sequential_1/conv2d/Conv2D;sequential_1/conv2d/BiasAdd/ReadVariableOp\x00\x00\x04\x00\x00\x00\x10\x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00\x00\x00\x16\x00\x1c\x00\x18\x00\x00\x00\x14\x00\x10\x00\x0c\x00\x00\x00\x00\x00\x08\x00\x07\x00\x16\x00\x00\x00\x00\x00\x00\x01\x14\x00\x00\x00(\x00\x00\x00(\x00\x00\x00\x01\x00\x00\x00H\x00\x00\x00\x04\x00\x00\x00\xff\xff\xff\xff\xb4\x00\x00\x00\xb4\x00\x00\x00\x03\x00\x00\x00\x04\x00\x04\x00\x04\x00\x00\x00"\x00\x00\x00serving_default_sequential_input:0\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\xb4\x00\x00\x00\xb4\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00$\x00\x00\x00\x14\x00\x00\x00\x04\x00\x00\x00\xdc\xff\xff\xff\t\x00\x00\x00\x00\x00\x00\t\xe8\xff\xff\xff\x16\x00\x00\x00\x00\x00\x00\x16\xf4\xff\xff\xff\x11\x00\x00\x00\x00\x00\x00\x11\x0c\x00\x0c\x00\x0b\x00\x00\x00\x00\x00\x04\x00\x0c\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x03'', does not exist.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61840/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61840/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61839 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61839/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61839/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61839/events | https://github.com/tensorflow/tensorflow/issues/61839 | 1,891,563,117 | I_kwDOArmXAs5wvvZt | 61,839 | Build fail on TFLite C API for Android with CMake | {
"login": "ysohma",
"id": 74748700,
"node_id": "MDQ6VXNlcjc0NzQ4NzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/74748700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ysohma",
"html_url": "https://github.com/ysohma",
"followers_url": "https://api.github.com/users/ysohma/followers",
"following_url": "https://api.github.com/users/ysohma/following{/other_user}",
"gists_url": "https://api.github.com/users/ysohma/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ysohma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ysohma/subscriptions",
"organizations_url": "https://api.github.com/users/ysohma/orgs",
"repos_url": "https://api.github.com/users/ysohma/repos",
"events_url": "https://api.github.com/users/ysohma/events{/privacy}",
"received_events_url": "https://api.github.com/users/ysohma/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 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": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I am able to reproduce and confirm that it does work in for r2.13. @terryheo, can you please take a look? Thanks.",
"Reproducible on master branch.",
"@terryheo @pkgoogle \r\nIt's be still reproduced on `2.14.0` and master branch.",
"Let me share my analysis, \r\nI found https://github.com/tensorflow/tensorflow/commit/599baefe9e2ac8d16202553f01f252dc48cbda72 (by @daniel-lang) brings error.\r\n\r\nBy this change, gemmlowp's CMake module add \"pthread\" to link_libraries(), but it's unwanted for Android target.\r\nhttps://github.com/google/gemmlowp/blob/master/contrib/CMakeLists.txt#L27\r\nThat should be excluded on Android by if statement, for example.\r\n\r\nOne of straight-forward solution is to fix gemmlowp CMake and then switch GIT_TAG.\r\nAnother possible solution is to avoid use gemmlowp's CMakeLists.txt. It's more simple but I'm not sure that's doable.",
"The analysis sounds right to me.\r\n\r\nDo you want to send a PR to gemmlowp to fix this in gemmlowp?",
"@fergushenderson \r\nYes, I've just submitted PR for gemmlowp. https://github.com/google/gemmlowp/pull/212 \r\n\r\nAlso I already checked this change of gemmlowp can be fix tflite build error. ",
"I've submitted PR. https://github.com/tensorflow/tensorflow/pull/62330",
"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/61839\">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/61839\">No</a>\n"
] | 2023-09-12T02:33:05 | 2023-11-08T06:04:48 | 2023-11-08T06:04:46 | CONTRIBUTOR | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.14.0-rc1
### Custom code
No
### OS platform and distribution
macOS 13.5.2
### Mobile device
Android
### 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?
On version 2.14.0-rc1, Building TFLite C API for Android target with CMake fails by link error.
It works fine on version 2.13.0.
`ld: error: unable to find library -lpthread`
Error is caused by linking `pthread`. I guess pthread is unnecessary for android.
#### Extra information to my environment
- CMake: 3.26.4
- Android NDK: 25.2.9519653(r25c)
### Standalone code to reproduce the issue
```shell
mkdir tf-build
cd tf-build
cmake -DCMAKE_TOOLCHAIN_FILE=<NDK path>/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a ../tensorflow/lite/c
cmake --build . -j
```
### Relevant log output
```shell
...
[ 70%] Built target absl_status
[ 75%] Built target absl_flags
[ 95%] Built target tensorflow-lite
[100%] Linking CXX shared library libtensorflowlite_c.so
ld: error: unable to find library -lpthread
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtensorflowlite_c.so] Error 1
make[1]: *** [CMakeFiles/tensorflowlite_c.dir/all] Error 2
make: *** [all] Error 2
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61839/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61839/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61838 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61838/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61838/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61838/events | https://github.com/tensorflow/tensorflow/pull/61838 | 1,891,424,361 | PR_kwDOArmXAs5aEmdz | 61,838 | Update RELEASE.md for 2.14.0 release | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-09-11T23:36:57 | 2023-09-11T23:46:03 | 2023-09-11T23:46:03 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61838",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61838",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61838.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61838.patch",
"merged_at": "2023-09-11T23:46:03"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61838/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61838/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61837 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61837/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61837/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61837/events | https://github.com/tensorflow/tensorflow/pull/61837 | 1,891,230,625 | PR_kwDOArmXAs5aD73a | 61,837 | update setup.py, requirements.in with final versions | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-09-11T20:39:43 | 2023-10-25T11:03:40 | 2023-09-11T21:09:45 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61837",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61837",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61837.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61837.patch",
"merged_at": "2023-09-11T21:09:45"
} | Update setup.py, requirements.in with final Keras, Tensorboard and Estimator versions | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61837/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61837/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61836 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61836/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61836/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61836/events | https://github.com/tensorflow/tensorflow/pull/61836 | 1,890,965,039 | PR_kwDOArmXAs5aDB3W | 61,836 | Update release notes r2.14 | {
"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
} | [] | closed | false | null | [] | null | [] | 2023-09-11T17:36:39 | 2023-09-11T18:01:18 | 2023-09-11T18:01:16 | MEMBER | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61836",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61836",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61836.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61836.patch",
"merged_at": "2023-09-11T18:01:16"
} | Follow up to https://github.com/tensorflow/tensorflow/pull/61834 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61836/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61836/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61835 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61835/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61835/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61835/events | https://github.com/tensorflow/tensorflow/pull/61835 | 1,890,932,243 | PR_kwDOArmXAs5aC6xr | 61,835 | Update version numbers for TensorFlow 2.13.1 | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-09-11T17:13:34 | 2023-09-11T17:59:17 | 2023-09-11T17:59:17 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61835",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61835",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61835.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61835.patch",
"merged_at": "2023-09-11T17:59:17"
} | 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 -> 1
WARNING: Below are potentially instances of lingering old version string
"2.13.0" in source directory "tensorflow/" that are not updated by this script.
Please check them manually!
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.13.0
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.13.0
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:28:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:29:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:30:2.13.0
tensorflow/tools/pip_package/setup.py:116:2.13.0
tensorflow/tools/pip_package/setup.py:117:2.13.0
tensorflow/lite/core/c/c_api.h:116:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:87:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:136:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:140:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:167:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:252:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:262:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:311:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:319:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:322:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:334:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:359:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:415:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:416:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:417:2.13.0
WARNING: Below are potentially instances of lingering old version string
"2.13.0" in source directory "tensorflow/" that are not updated by this script.
Please check them manually!
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.13.0
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.13.0
tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:28:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:29:2.13.0
tensorflow/tools/ci_build/release/requirements_common.txt:30:2.13.0
tensorflow/tools/pip_package/setup.py:116:2.13.0
tensorflow/tools/pip_package/setup.py:117:2.13.0
tensorflow/lite/core/c/c_api.h:116:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:87:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:136:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:140:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:167:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:252:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:262:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:311:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:319:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:322:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:334:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:359:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:415:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:416:2.13.0
tensorflow/lite/tools/versioning/runtime_version.cc:417:2.13.0
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61835/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61835/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61834 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61834/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61834/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61834/events | https://github.com/tensorflow/tensorflow/pull/61834 | 1,890,922,641 | PR_kwDOArmXAs5aC4s9 | 61,834 | r2.14 cherry-pick: 1a6c8304e87 "Enable tensorflow-io-gcs-filesystem as a runtime dependency for Apple Silicon machines" | {
"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-09-11T17:06:28 | 2023-09-11T18:00:40 | 2023-09-11T18:00:39 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61834",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61834",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61834.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61834.patch",
"merged_at": "2023-09-11T18:00:39"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/1a6c8304e874c3188940da477427e410894c4c71 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61834/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61834/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61833 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61833/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61833/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61833/events | https://github.com/tensorflow/tensorflow/pull/61833 | 1,890,807,702 | PR_kwDOArmXAs5aCf9T | 61,833 | [Linaro:ARM_CI] Update to clang-17 | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I have halted merging this PR internally since it has been marked as draft. @elfringham Please let me know when it is ready to be merged. ",
"@nitins17 It should be OK now thanks. It just needed a little tweak to get past configure.py when applied to a container with only clang-17 installed.",
"Thanks, I'll resume the merge process internally. "
] | 2023-09-11T15:52:42 | 2023-09-15T03:59:06 | 2023-09-15T03:59:06 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61833",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61833",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61833.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61833.patch",
"merged_at": "2023-09-15T03:59:05"
} | Update compiler in use to be clang-17 to
maintain sync with other builds. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61833/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61833/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61832 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61832/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61832/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61832/events | https://github.com/tensorflow/tensorflow/issues/61832 | 1,890,627,375 | I_kwDOArmXAs5wsK8v | 61,832 | Model train failing | {
"login": "chrisvdt",
"id": 5311644,
"node_id": "MDQ6VXNlcjUzMTE2NDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5311644?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chrisvdt",
"html_url": "https://github.com/chrisvdt",
"followers_url": "https://api.github.com/users/chrisvdt/followers",
"following_url": "https://api.github.com/users/chrisvdt/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisvdt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chrisvdt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisvdt/subscriptions",
"organizations_url": "https://api.github.com/users/chrisvdt/orgs",
"repos_url": "https://api.github.com/users/chrisvdt/repos",
"events_url": "https://api.github.com/users/chrisvdt/events{/privacy}",
"received_events_url": "https://api.github.com/users/chrisvdt/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
},
{
"id": 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": 2477739347,
"node_id": "MDU6TGFiZWwyNDc3NzM5MzQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.4",
"name": "TF 2.4",
"color": "5319e7",
"default": false,
"description": "for issues related to TF 2.4"
}
] | closed | false | {
"login": "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 | [
"@chrisvdt Could you please upgrade to the latest TF version 2.13 as the older versions are not actively supported. I was able to run the code successfully using TF v2.13 . Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/e914f851201383d0d71d8bc556bebbc4/advanced.ipynb#scrollTo=nOOLr8yP4h6Z) and confirm the same. Thank you!",
"@sushreebarsa Yes I can confirm that it works now.\r\nI only realized later that I had to exactly follow the instructions on this page :\r\nhttps://www.tensorflow.org/install/pip#step-by-step_instructions\r\n\r\nthanks",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61832\">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/61832\">No</a>\n"
] | 2023-09-11T14:18:12 | 2023-09-14T12:57:34 | 2023-09-14T12:57:31 | NONE | null | null | null | ### Issue type
Performance
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.4.1
### Custom code
No
### OS platform and distribution
Windows 11 WSL Ubuntu 20.04.6 LTS
### Mobile device
_No response_
### Python version
3.9.17
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
Cudatoolkit 10.1.234 Cudann 7.6.5
### GPU model and memory
NVIDIA GeForce RTX 4080 deviceMemorySize: 15.99GiB
### Current behavior?
Running : jupyter notebook: TensorFlow 2 quickstart for experts
https://www.tensorflow.org/tutorials/quickstart/advanced
2023-09-08 23:55:01.853625: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 4080 computeCapability: 8.9
coreClock: 2.505GHz coreCount: 76 deviceMemorySize: 15.99GiB deviceMemoryBandwidth: 667.63GiB/s
TRAINING THE MODEL:
2023-09-09 14:21:13.106797: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
2023-09-09 14:21:13.108589: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency: 3417595000 Hz
2023-09-09 14:21:13.135568: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.10
2023-09-09 14:22:05.711952: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.7
NOT LEARNING!!!
Epoch 14, Loss: 2.3014447689056396, Accuracy: 11.233333587646484, Test Loss: 2.3011932373046875, Test Accuracy: 11.34000015258789
Epoch 15, Loss: 2.301426410675049, Accuracy: 11.236666679382324, Test Loss: 2.3012006282806396, Test Accuracy: 11.329999923706055
### Standalone code to reproduce the issue
```shell
https://www.tensorflow.org/tutorials/quickstart/advanced
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61832/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61832/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61831 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61831/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61831/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61831/events | https://github.com/tensorflow/tensorflow/issues/61831 | 1,890,453,756 | I_kwDOArmXAs5wrgj8 | 61,831 | Tersorflow deterministic training not working for different workflows even when GPU and envs are same | {
"login": "N-Harish",
"id": 48133371,
"node_id": "MDQ6VXNlcjQ4MTMzMzcx",
"avatar_url": "https://avatars.githubusercontent.com/u/48133371?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/N-Harish",
"html_url": "https://github.com/N-Harish",
"followers_url": "https://api.github.com/users/N-Harish/followers",
"following_url": "https://api.github.com/users/N-Harish/following{/other_user}",
"gists_url": "https://api.github.com/users/N-Harish/gists{/gist_id}",
"starred_url": "https://api.github.com/users/N-Harish/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/N-Harish/subscriptions",
"organizations_url": "https://api.github.com/users/N-Harish/orgs",
"repos_url": "https://api.github.com/users/N-Harish/repos",
"events_url": "https://api.github.com/users/N-Harish/events{/privacy}",
"received_events_url": "https://api.github.com/users/N-Harish/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 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": 2498949452,
"node_id": "MDU6TGFiZWwyNDk4OTQ5NDUy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.5",
"name": "TF 2.5",
"color": "5319e7",
"default": false,
"description": "Issues related to TF 2.5"
}
] | 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 @ N-Harish,\r\n\r\nIn Tensorflow there are 2 random seeds one is at global level set by `tf.random.set_seed(seed)` and another at **Op** level for eg. say` tf.random.uniform(..., seed=seed2)`. Together with both these seeds we can able to get deterministic results. If we don't set seed at Op level each process will generate its own random seed which may result in difference of outputs.\r\n\r\nI am not sure whether your code has both seeds set for all workflows. Please confirm whether your code has any other Op which needs to set the seed? Please check and confirm the problem with reproducible code. \r\n\r\nThanks!",
"We are using tf dataset map method and shuffle method so do we need to set separate seed for that as well ?",
"@N-Harish ,\r\n\r\nIf you are using tf.data.Dataset.[shuffle](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle) method it has `seed` argument for which you can pass a constant value to enable determinism.\r\n\r\nAlso for [map](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#map) method you may need to pass `deterministic = True` to preserve the order.But this will have some performance cost.Please go through attached documentation for more details.\r\n\r\nThanks!",
"we have added seed for randomflip, shuffle and set deterministic=true for map but still there are some differences in the models. Also tf dataset has num_parallel_calls set eqaul to tf.data.AUTOTUNE",
"Hi @N-Harish ,\r\n\r\nCould you please confirm the difference in the results in terms of percentages rather than absolute difference? Also TF2.5v is quiet older and not having active support now, Could you able to test with latest versions and confirm the results. \r\n\r\nAlso please submit some the code snippet that can reproduce the issue so that we may check it on different environments.\r\nIt's hard to get at a solution without reproducible code snippet.\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/61831\">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/61831\">No</a>\n"
] | 2023-09-11T12:57:08 | 2023-09-28T01:47:35 | 2023-09-28T01:47:32 | NONE | null | null | null | ### System information
- Ubuntu 20.04
- Tensorflow version :- 2.5.0
- python version :- 3.7
- GPU model and memory :- Nvidia RTX 4090, 24 GB GPU memory
### Describe the problem
We recently started setting environmental variable for enabling deterministic training on tensorflow version 2.5. We have 5 to 6 models, most of which are regression models and one of them is a classification model. The following seed values were set :-
```
os.environ["PYTHONHASHSEED"] = str(seed)
import tensorflow as tf
import random
import numpy as np
# set seed for random, numpy and tensorflow
random.seed(seed)
np.random.seed(seed)
tf.random.set_seed(seed)
# set env for determinism
os.environ["TF_DETERMINISTIC_OPS"] = "1"
os.environ["TF_CUDNN_DETERMINISTIC"] = "1"
# to ensure determinism set threads to one
tf.config.threading.set_inter_op_parallelism_threads(1)
tf.config.threading.set_intra_op_parallelism_threads(1)
``````
We created multiple workflows by keeping the same GPU version and all of the above environmental variables and seed values. But, for different workflows we get different results even though the initial weights for all models on both workflows are same. On the other hand, on training in the same workflow, we get similar results. kindly let us know what other seed values do we need to set and let us know a solution so that we can train the models in a deterministic way
### Source code / logs
Here is the code to compare initialised weights of model in different workflow but when performing inference after training for 70 epochs the results vary a lot
```
import tensorflow as tf
import numpy as np
tf_det_ini = tf.keras.models.load_model("./tf_det/nobrainer_initial.h5")
wb_diff_ini = tf.keras.models.load_model("./wb_diff/nobrainer_initial.h5")
diff_arr = []
cnt = 0
for tf_m, wb in zip(tf_det_ini.layers[1:], wb_diff_ini.layers[1:]):
if tf_m.name == 'MobilenetV3large':
tf_m_mob = tf_m.layers
wb_mob = wb.layers
for tf_m_mobl, wb_mob_l in zip(tf_m_mob[2:], wb_mob[2:]):
try:
diff = np.unique(tf_m_mobl.weights[0].numpy() - wb_mob_l.weights[0].numpy())
diff_arr.extend(diff)
except:
continue
# print(tf_m_mobl.weights[0].numpy())
try:
print(tf_m.name)
diff = tf_m.weights[0].numpy() - wb.weights[0].numpy()
diff_arr.extend(np.unique(diff))
except:
continue
print(max(diff_arr))
print(min(diff_arr))
```
output :-
```
MobilenetV3large
global_average_pooling2d
extradata
concatenate
dense
0.0
0.0
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61831/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61831/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61830 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61830/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61830/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61830/events | https://github.com/tensorflow/tensorflow/issues/61830 | 1,890,224,806 | I_kwDOArmXAs5wqoqm | 61,830 | `#include "tsl/framework/numeric_types.h"` 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": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1478826728,
"node_id": "MDU6TGFiZWwxNDc4ODI2NzI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core",
"name": "comp:core",
"color": "024391",
"default": false,
"description": "issues related to core part of tensorflow"
},
{
"id": 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": "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 | [
"This could be due to the commit [Vendor XLA/TSL into TensorFlow as Bazel dependencies](https://github.com/tensorflow/tensorflow/commit/132c98b29c1a42298cd13055d1168c8d67177bc9)\r\nAnd the below files are affected for `numberic_types.h `\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/numeric_types.h\r\nhttps://github.com/tensorflow/tensorflow/blob/master/third_party/xla/third_party/tsl/tsl/framework/numeric_types.h\r\n\r\n@jakeharmon8 , Could you please take a look into this. Thanks!",
"Hi @sachinprasadhs,\r\n\r\nIt seems to work now.",
"Thanks for confirming, could you pease close this issue. ",
"I still got this error with 2.15.0rc0 on Windows. The package was installed using `pip`.\r\n\r\n```\r\n C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-csrgykur/normal/Lib/site-packages/tensorflow/include\\tensorflow/core/framework/numeric_types.h(24,1): fatal error C1083: Cannot open include file: 'tsl/framework/numeric_types.h': No such file or directory [D:\\a\\deepmd-kit\\deepmd-kit\\build\\py37-none-win_amd64\\op\\deepmd_op.vcxproj]\r\n Building Custom Rule D:/a/deepmd-kit/deepmd-kit/source/op/CMakeLists.txt\r\n cmake_pch.cxx\r\n C:/Users/runneradmin/AppData/Local/Temp/pip-build-env-csrgykur/normal/Lib/site-packages/tensorflow/include\\tensorflow/core/framework/numeric_types.h(24,1): fatal error C1083: Cannot open include file: 'tsl/framework/numeric_types.h': No such file or directory [D:\\a\\deepmd-kit\\deepmd-kit\\build\\py37-none-win_amd64\\op\\op_grads.vcxproj]\r\n```\r\n\r\nThere are no errors on Linux and macOS, though.",
"> There are no errors on Linux and macOS, though.\r\n\r\nI checked the Linux wheel and the Windows wheel. The Linux wheel contains `include/tsl` and `include/xla` directories, but the Windows wheel doesn't.",
"This time I see:\r\n```\r\nfatal error: third_party/eigen3/unsupported/Eigen/CXX11/Tensor: No such file or directory\r\n 23 | #include \"third_party/eigen3/unsupported/Eigen/CXX11/Tensor\"```",
"> I checked the Linux wheel and the Windows wheel. The Linux wheel contains `include/tsl` and `include/xla` directories, but the Windows wheel doesn't.\r\n\r\nHi @sachinprasadhs, this issue still exists in 2.15.0rc1. I know now Intel builds the Windows package. Is there some way to report to them?",
"cc: @mraunak ",
"Hi @njzjz and @sachinprasadhs, the above issue will be fixed and missing xla/tsl files will be available in the include folder in the next release TF 2.16.",
"> the above issue will be fixed and missing xla/tsl files will be available in the include folder in the next release TF 2.16.\r\n\r\nI confirm it has been fixed in TF 2.16.",
"Closing since it is fixed. Thank you for the confirmation",
"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/61830\">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/61830\">No</a>\n"
] | 2023-09-11T10:47:01 | 2024-04-30T13:36:24 | 2024-04-30T13:36:21 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.15
### Custom code
Yes
### OS platform and distribution
docker/tensorflow/tensorflow:nightly-gpu
### Mobile device
no
### Python version
3.11
### Bazel version
NR
### GCC/compiler version
NR
### CUDA/cuDNN version
NR
### GPU model and memory
NR
### Current behavior?
Create test.cc
```
#include "tensorflow/core/framework/op.h"
```
compile it with flags provided by TensorFlow:
get_compile_flags():
```['-I/usr/local/lib/python3.11/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.11/dist-packages/tensorflow', '-l:libtensorflow_framework.so.2']```
Then
```
g++ test.cc -o /tmp/test.o -fPIC -I/usr/local/lib/python3.11/dist-packages/tensorflow/include -D_GLIBCXX_USE_CXX11_ABI=1 --std=c++17 -DEIGEN_MAX_ALIGN_BYTES=64 -L/usr/local/lib/python3.11/dist-packages/tensorflow -l:libtensorflow_framework.so.2 -O2```
The error
```
In file included from /usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/bfloat16.h:19,
from /usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/types.h:24,
from /usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/op_def_builder.h:28,
from /usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/full_type_inference_util.h:24,
from /usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:27,
from test.cc:1:
/usr/local/lib/python3.11/dist-packages/tensorflow/include/tensorflow/core/framework/numeric_types.h:24:10: fatal error: tsl/framework/numeric_types.h: No such file or directory
24 | #include "tsl/framework/numeric_types.h"
```
### Standalone code to reproduce the issue
```shell
As above
```
### Relevant log output
```shell
As above
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61830/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/61830/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61829 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61829/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61829/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61829/events | https://github.com/tensorflow/tensorflow/pull/61829 | 1,890,140,848 | PR_kwDOArmXAs5aAOdE | 61,829 | Need to be more precise about version of TensorFlow IO | {
"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, the pylint and 'Code Check' failures are because of a pre-existing line being too long which cannot easily be fixed."
] | 2023-09-11T10:01:36 | 2023-09-11T16:47:17 | 2023-09-11T16:47:17 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61829",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61829",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61829.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61829.patch",
"merged_at": "2023-09-11T16:47:17"
} | The API has changed so need to use the matching version of TensorFlow IO, not the latest. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61829/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61829/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61828 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61828/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61828/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61828/events | https://github.com/tensorflow/tensorflow/issues/61828 | 1,889,542,579 | I_kwDOArmXAs5woCGz | 61,828 | Segmentation fault for TFLite Interpreter | {
"login": "CorbinFoucart",
"id": 4095293,
"node_id": "MDQ6VXNlcjQwOTUyOTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4095293?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CorbinFoucart",
"html_url": "https://github.com/CorbinFoucart",
"followers_url": "https://api.github.com/users/CorbinFoucart/followers",
"following_url": "https://api.github.com/users/CorbinFoucart/following{/other_user}",
"gists_url": "https://api.github.com/users/CorbinFoucart/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CorbinFoucart/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CorbinFoucart/subscriptions",
"organizations_url": "https://api.github.com/users/CorbinFoucart/orgs",
"repos_url": "https://api.github.com/users/CorbinFoucart/repos",
"events_url": "https://api.github.com/users/CorbinFoucart/events{/privacy}",
"received_events_url": "https://api.github.com/users/CorbinFoucart/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": 2671351731,
"node_id": "MDU6TGFiZWwyNjcxMzUxNzMx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ModelOptimizationToolkit",
"name": "ModelOptimizationToolkit",
"color": "BFD629",
"default": false,
"description": "TF Model Optimization Toolkit"
},
{
"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": "abattery",
"id": 3203059,
"node_id": "MDQ6VXNlcjMyMDMwNTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3203059?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abattery",
"html_url": "https://github.com/abattery",
"followers_url": "https://api.github.com/users/abattery/followers",
"following_url": "https://api.github.com/users/abattery/following{/other_user}",
"gists_url": "https://api.github.com/users/abattery/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abattery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abattery/subscriptions",
"organizations_url": "https://api.github.com/users/abattery/orgs",
"repos_url": "https://api.github.com/users/abattery/repos",
"events_url": "https://api.github.com/users/abattery/events{/privacy}",
"received_events_url": "https://api.github.com/users/abattery/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "abattery",
"id": 3203059,
"node_id": "MDQ6VXNlcjMyMDMwNTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3203059?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abattery",
"html_url": "https://github.com/abattery",
"followers_url": "https://api.github.com/users/abattery/followers",
"following_url": "https://api.github.com/users/abattery/following{/other_user}",
"gists_url": "https://api.github.com/users/abattery/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abattery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abattery/subscriptions",
"organizations_url": "https://api.github.com/users/abattery/orgs",
"repos_url": "https://api.github.com/users/abattery/repos",
"events_url": "https://api.github.com/users/abattery/events{/privacy}",
"received_events_url": "https://api.github.com/users/abattery/received_events",
"type": "User",
"site_admin": false
},
{
"login": "yijie-yang",
"id": 47220338,
"node_id": "MDQ6VXNlcjQ3MjIwMzM4",
"avatar_url": "https://avatars.githubusercontent.com/u/47220338?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yijie-yang",
"html_url": "https://github.com/yijie-yang",
"followers_url": "https://api.github.com/users/yijie-yang/followers",
"following_url": "https://api.github.com/users/yijie-yang/following{/other_user}",
"gists_url": "https://api.github.com/users/yijie-yang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yijie-yang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yijie-yang/subscriptions",
"organizations_url": "https://api.github.com/users/yijie-yang/orgs",
"repos_url": "https://api.github.com/users/yijie-yang/repos",
"events_url": "https://api.github.com/users/yijie-yang/events{/privacy}",
"received_events_url": "https://api.github.com/users/yijie-yang/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 @CorbinFoucart \r\n\r\nThe representative dataset might be causing the problem. Usually, this is a small subset of a few hundred samples randomly chosen. I have tried with random input data and I was succesfully able to invoke the interpreter and allocate the tensors.\r\n\r\nPlease find this [gist](https://colab.research.google.com/gist/pjpratik/0943560e00d3834ab6c9ee8e637114be/61828.ipynb).\r\n\r\nThanks.",
"I appreciate the fast response @pjpratik -- Interesting, how would the nature of the dataset itself be causing a segfault? Does the representative dataset need to be a certain size?\r\n\r\nAnd correct me if I'm wrong, isn't a segfault under any representative dataset size considered a bug?\r\n\r\nThank you! ",
"Hi @CorbinFoucart \r\n\r\nSorry for the delayed response.\r\n\r\nAs far as I know, there is not strict rule for representative dataset. It needs to be a small portion of the data samples to calibrate the ranges. \r\n\r\n@pkgoogle is this an intended behaviour? \r\n\r\nThanks.\r\n\r\n\r\n",
"Hi @CorbinFoucart, can you resolve what tflite means in this gist? https://colab.sandbox.google.com/gist/pkgoogle/2667494c5beeb55a4e47da0b942e4a0f/61828.ipynb It seems like you installed or defined it somewhere else as it's not a known package to me, the next line redefines it but I am unable to resolve the original symbol.",
"Sure, this is the tflite library built which I compiled from source as a wheel file.\r\n```python\r\nimport tflite as tfl\r\nprint(tfl)\r\n``` \r\nprints \r\n` module 'tflite' from '/home/_my_path_to_/tflite/__init__.py`\r\n\r\nwhich I built from source via docker with a command like \r\n```\r\ndocker run --rm -w /opt/tensorflow_src -v ${SCRIPT_DIR}/third_party/tensorflow_src:/opt/tensorflow_src -t tflite_wheel:latest \\\r\n bash -c \"PYTHON=python3 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh native\"\r\n```",
"Hi @CorbinFoucart, I'm not familiar with your environment/workflow, where is the image \"tflite_wheel:latest\" coming from? How is $SCRIPT_DIR defined? Are you using a Dockerfile? Are you following a particular resource/link?",
"Yes, I'm using a Dockerfile. Unfortunately, I can't share the process by which I'm doing the build. However, the last line is the relevant one--I'm just compiling tensorflow from source. So tflite is simply the tflite module as is typically packaged by tensorflow.",
"Hi @CorbinFoucart, ok understood, can you help me understand where Model is coming from (The one where you call GetRootAsModel)?\r\n\r\n[gist](https://colab.sandbox.google.com/gist/pkgoogle/2987b4cd34bd29b2d33b51cf0b0488ce/61828)\r\n\r\nYour original code is not resolving for me and I tried a couple of different things, using tf.keras.Model, tflite.tflite.Model, tflite.Interpreter.Model. None of these work.",
"In this case, that line is irrelevant (it does some flatbuffer reading) and can be commented out; I should have removed it earlier. I reproduce the segfault with that line removed--I can write the TfL model to file, instantiate the Interpreter object, and `interpreter.allocate_tensors()` still results in the segfault.\r\n\r\n\r\n```python\r\n# ...\r\n_tflite_quant_model = converter.convert()\r\n#tfl_model = Model.Model.GetRootAsModel(_tflite_quant_model, 0) \r\n\r\n# write model to file\r\nmodel_file = \"segfault_test.tfl\"\r\nwith open(model_file, \"wb\") as fp:\r\n# ... \r\n...\r\n\r\n```\r\n\r\n\r\nMy apologies for the confusion!",
"Thanks!, I was able to replicate with and without tf-nightly, [gist](https://colab.sandbox.google.com/gist/pkgoogle/2987b4cd34bd29b2d33b51cf0b0488ce/61828.ipynb#scrollTo=mqwm4Z2KzbBa).\r\n\r\n@yijie-yang, can you please take a look? Thanks!",
"Sorry I'm not very familiar with the representation data related problem. I think MOT team will be more helpful with this issue. Jaesung, could you take a look at this plz? @abattery",
"Hi everyone,\r\n\r\n@abattery I wanted to follow up with this in case it's dropped off your radar. Thank you!",
"Hi everyone, is there any update on how to fix this error? I'm also facing the same problem ...",
"I'm looking more into this... currently it is failing this check which effectively throws an ABORT, double_multiplier=243.18696458117677 for the model that gets saved in the above gist, https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/kernels/internal/quantization_util.cc#L117",
"@CorbinFoucart, the original code sample uses identical tensors, so effectively in your representative datasets, this operation produces zero tensors for the output. Our automatic quantization scaling ends up giving the output a scale of 7.84313681e-09. This is effectively too small and causes the assert to trigger. This gist replaces the identical tensors with random tensors and it is able to run through correctly: [gist](https://colab.sandbox.google.com/gist/pkgoogle/02a7dc93b9f89eda92eb65102e2a5af5/61828.ipynb). I'll work on fixing this (as it shouldn't crash) but I wanted to let you know the information for now.\r\n\r\n@HajarAva, If what I just said doesn't apply to you, please create a new issue with your specific problem.",
"@pkgoogle : Thanks for your quick response, I've made a new issue and explained my problem [here](https://github.com/tensorflow/tensorflow/issues/64296). ",
"Hi @CorbinFoucart, this should now be resolved .. here's a gist showing it no longer crashes with tf-nightly: [gist](https://colab.sandbox.google.com/gist/pkgoogle/02a7dc93b9f89eda92eb65102e2a5af5/61828.ipynb#scrollTo=mqwm4Z2KzbBa). The change is here: https://github.com/tensorflow/tensorflow/commit/ea158b22e6e3449cf73e784ca8fbce5ec6c1656f. Please test with nightly and let us know if it resolves your issue. Thanks.",
"@pkgoogle -- yes, this resolves the crash. Thanks for the patch.",
"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/61828\">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/61828\">No</a>\n"
] | 2023-09-11T02:46:10 | 2024-05-09T01:35:58 | 2024-05-09T01:35:55 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.0
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 22.04.03
### Mobile device
_No response_
### Python version
3.8.17
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I create a simple tensorflow model and convert it to a TFLite model.
Upon calling the TFLite interpreter's allocate_tensors() method, I find that TFLite segfaults, perhaps similar to [this issue](https://github.com/tensorflow/tensorflow/issues/47996).
### Standalone code to reproduce the issue
```shell
import numpy as np
import tensorflow as tf
from tflite import Model
import tflite_runtime.interpreter as tflite
if __name__ == '__main__':
data1 = np.arange(-128, 128).reshape((16, 16, 1)).astype(np.float32)
data2 = np.arange(-128, 128).reshape((16, 16, 1)).astype(np.float32)
_merge = tf.keras.layers.Subtract()
def _dataset_generator():
for _ in range(1):
arr1 = data1.reshape(1, *data1.shape)
arr2 = data2.reshape(1, *data2.shape)
yield [arr1.astype(np.float32), arr2.astype(np.float32)]
# base TF model
_inputs1 = tf.keras.layers.Input(shape=data1.shape, dtype=np.float32)
_inputs2 = tf.keras.layers.Input(shape=data2.shape, dtype=np.float32)
_merge = _merge([_inputs1, _inputs2])
tf_model = tf.keras.Model([_inputs1, _inputs2], _merge)
# TFL model
converter = tf.lite.TFLiteConverter.from_keras_model(tf_model)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = _dataset_generator
_tflite_quant_model = converter.convert()
tfl_model = Model.GetRootAsModel(_tflite_quant_model, 0)
# write model to file
model_file = "segfault_test.tfl"
with open(model_file, "wb") as fp:
fp.write(_tflite_quant_model)
# create interpreter
interpreter = tflite.Interpreter(
model_path=model_file,
experimental_op_resolver_type=tflite.OpResolverType.BUILTIN_REF)
# this call causes a segfault
interpreter.allocate_tensors()
```
### Relevant log output
```shell
2023-09-11 11:38:16.876852: 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-09-11 11:38:16.877887: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-09-11 11:38:16.894424: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:7630] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-09-11 11:38:16.894443: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-09-11 11:38:16.894454: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-09-11 11:38:16.898344: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2023-09-11 11:38:16.898500: 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 AVX512_BF16 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-09-11 11:38:17.196991: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
WARNING:tensorflow:From /home/miniconda3/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/ops/distributions/distribution.py:259: ReparameterizationType.__init__ (from tensorflow.python.ops.distributions.distribution) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use `tfp.distributions` instead of `tf.distributions`.
WARNING:tensorflow:From /home/miniconda3/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/ops/distributions/bernoulli.py:165: RegisterKL.__init__ (from tensorflow.python.ops.distributions.kullback_leibler) is deprecated and will be removed after 2019-01-01.
Instructions for updating:
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use `tfp.distributions` instead of `tf.distributions`.
2023-09-11 11:38:17.461212: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:894] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2023-09-11 11:38:17.461403: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2158] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2023-09-11 11:38:17.559681: I tensorflow/cc/saved_model/reader.cc:83] Reading SavedModel from: /tmp/tmpnwirm5mk
/home/miniconda3/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/lite/python/convert.py:928: UserWarning: Statistics for quantized inputs were expected, but not specified; continuing anyway.
warnings.warn(
2023-09-11 11:38:17.578426: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored output_format.
2023-09-11 11:38:17.578436: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:368] Ignored drop_control_dependency.
2023-09-11 11:38:17.578732: I tensorflow/cc/saved_model/reader.cc:83] Reading SavedModel from: /tmp/tmpnwirm5mk
2023-09-11 11:38:17.578885: I tensorflow/cc/saved_model/reader.cc:51] Reading meta graph with tags { serve }
2023-09-11 11:38:17.578889: I tensorflow/cc/saved_model/reader.cc:146] Reading SavedModel debug info (if present) from: /tmp/tmpnwirm5mk
2023-09-11 11:38:17.579556: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:382] MLIR V1 optimization pass is not enabled
2023-09-11 11:38:17.579648: I tensorflow/cc/saved_model/loader.cc:233] Restoring SavedModel bundle.
2023-09-11 11:38:17.582018: I tensorflow/cc/saved_model/loader.cc:217] Running initialization op on SavedModel bundle at path: /tmp/tmpnwirm5mk
2023-09-11 11:38:17.583376: I tensorflow/cc/saved_model/loader.cc:316] SavedModel load for tags { serve }; Status: success: OK. Took 4645 microseconds.
2023-09-11 11:38:17.586236: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:269] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable.
fully_quantize: 0, inference_type: 6, input_inference_type: FLOAT32, output_inference_type: FLOAT32
Aborted (core dumped)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61828/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61828/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61827 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61827/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61827/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61827/events | https://github.com/tensorflow/tensorflow/issues/61827 | 1,889,196,873 | I_kwDOArmXAs5wmttJ | 61,827 | tf.linalg.eigvals outputs UnboundLocalError when receiving a float16 tensor | {
"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": 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 | [
"@drewshark you are correct it accepts tf.float32, tf.complex64, tf.float64, tf.complex128 and doesn't accept tf.float64\r\n\r\n```python\r\nif tensor.dtype == dtypes.float32 or tensor.dtype == dtypes.complex64:\r\n out_dtype = dtypes.complex64\r\nelif tensor.dtype == dtypes.float64 or tensor.dtype == dtypes.complex128:\r\n out_dtype = dtypes.complex128\r\ne, _ = gen_linalg_ops.eig(tensor, Tout=out_dtype, compute_v=False, name=name)\r\nreturn e\r\n```\r\n",
"Can I take a shot at this issue?",
"hey @sahusiddharth can I try to solve this one",
"@sachinprasadhs I was able to replicate the issue reported here. Please find the attached [gist](https://colab.research.google.com/gist/sushreebarsa/75e17bf472b2ebfbccb4fa4f6a48feef/61827.ipynb).\r\nThank you!"
] | 2023-09-10T15:58:12 | 2023-10-24T17:45:51 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.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?
Given a float16 tensor, tf.linalg.eigvals outputs `UnboundLocalError: local variable 'out_dtype' referenced before assignment`. If tf.linalg.eigvals does not accept float16 tensor, it would be better if it can be explicit in the documentation and the error message can point this issue out.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
tensor = tf.constant([[1,2],[3,4]], dtype=tf.float16)
tf_out = tf.linalg.eigvals(tf.constant(tensor))
print("TensorFlow's result: ",tf_out)
```
### Relevant log output
```shell
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
<ipython-input-69-5a0470cb5082> in <cell line: 3>()
1 import tensorflow as tf
2 tensor = tf.constant([[1,2],[3,4]], dtype=tf.float16)
----> 3 tf_out = tf.linalg.eigvals(tf.constant(tensor))
4 print("TensorFlow's result: ",tf_out)
1 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/ops/linalg_ops.py in eigvals(tensor, name)
431 elif tensor.dtype == dtypes.float64 or tensor.dtype == dtypes.complex128:
432 out_dtype = dtypes.complex128
--> 433 e, _ = gen_linalg_ops.eig(tensor, Tout=out_dtype, compute_v=False, name=name)
434 return e
435
UnboundLocalError: local variable 'out_dtype' referenced before assignment
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61827/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61827/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61826 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61826/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61826/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61826/events | https://github.com/tensorflow/tensorflow/issues/61826 | 1,889,195,589 | I_kwDOArmXAs5wmtZF | 61,826 | Inconsistent result between tf.linalg.eigvals and numpy/scipy on a (3,3) tensor | {
"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": 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 @drewshark,\r\n\r\nI have replicated the behaviour for multiple inputs and my observations follows below.\r\n\r\n1. The output values returned by TF compared to Numpy or Scipy is different wrt Order.Also this order is inconsistent some times TF output order inline with Numpy and Scipy and sometimes not. But as per Numpy and Scipy documentation you can find a note that the order of output Eigen values need not have any specific order. Please find notes of [Numpy](https://numpy.org/doc/stable/reference/generated/numpy.linalg.eigvals.html#:~:text=Returns,for%20real%20matrices.) and [Scipy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.eigvals.html#scipy.linalg.eigvals:~:text=Returns%3A,homogeneous_eigvals%3DTrue.) for same.\r\n\r\n<img width=\"702\" alt=\"Screenshot 2023-09-11 at 12 40 12 PM\" src=\"https://github.com/tensorflow/tensorflow/assets/116063290/521c36c1-b24d-45f7-9cb3-afd1b73749ce\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n<img width=\"779\" alt=\"Screenshot 2023-09-11 at 12 38 38 PM\" src=\"https://github.com/tensorflow/tensorflow/assets/116063290/e1991149-7fb3-4e37-8f2e-32e6f4c827e0\">\r\n\r\n\r\n3. The values more or less same with some precisional differences of **e-05** order which can be ignored as these precision levels might be different for different backends and also varies w.r.t the hardware also.\r\n\r\nI hope wrt the order of results the documentation states the documentation states that its need not be same. I am curious to know any use case that might get effects with this order.\r\n\r\n",
"I am curious to know how the order of eigen values generated may affect for the case of batch normalization applied on inputs.\r\n\r\n@drewshark , Could you please confirm whether you are looking the differences in results wrt precision or order ?",
"Hi @SuryanarayanaY,\r\n\r\nI am looking the differences in results wrt both precision and order and I agree with you that the precision difference is very close so the problem may only be the order problem. I observe this difference because I am calling the eigvals API and only use the first result returned by it. "
] | 2023-09-10T15:54:18 | 2023-09-14T07:06:29 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.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?
Given the same tensor, tf.linalg.eigvals outputs results different from np.linalg.eigvals and scipy.linalg.eig. The latter two APIs are also computing the eigenvalues and it may be expected if tf.linalg.eigvals can output the same results as theirs.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
import scipy
import numpy as np
np.random.seed(1234)
tensor = np.random.random((3, 3)).astype(np.float32)
tf_out = tf.linalg.eigvals(tf.constant(tensor))
np_out = np.linalg.eigvals(tensor)
scipy_out = scipy.linalg.eig(tensor)[0]
print("TensorFlow's result: ",tf_out)
print("Numpy's result: ", np_out)
print("Scipy's result: ", scipy_out)
```
### Relevant log output
```shell
TensorFlow's result: tf.Tensor([-0.20270659+0.j 1.7388148 +0.j 0.3935262 +0.j], shape=(3,), dtype=complex64)
Numpy's result: [ 1.7388151 -0.20270674 0.39352626]
Scipy's result: [ 1.7388152 +0.j -0.20270659+0.j 0.39352617+0.j]
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61826/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61826/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61825 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61825/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61825/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61825/events | https://github.com/tensorflow/tensorflow/issues/61825 | 1,889,132,796 | I_kwDOArmXAs5wmeD8 | 61,825 | Pytorch solves gym environments faster than tensorflow using the same training implementation and network architecture | {
"login": "LuisFMCuriel",
"id": 41307097,
"node_id": "MDQ6VXNlcjQxMzA3MDk3",
"avatar_url": "https://avatars.githubusercontent.com/u/41307097?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LuisFMCuriel",
"html_url": "https://github.com/LuisFMCuriel",
"followers_url": "https://api.github.com/users/LuisFMCuriel/followers",
"following_url": "https://api.github.com/users/LuisFMCuriel/following{/other_user}",
"gists_url": "https://api.github.com/users/LuisFMCuriel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LuisFMCuriel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LuisFMCuriel/subscriptions",
"organizations_url": "https://api.github.com/users/LuisFMCuriel/orgs",
"repos_url": "https://api.github.com/users/LuisFMCuriel/repos",
"events_url": "https://api.github.com/users/LuisFMCuriel/events{/privacy}",
"received_events_url": "https://api.github.com/users/LuisFMCuriel/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": 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": 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": 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 | [
"Hello, @LuisFMCuriel ! Could you please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/ad0f5f56ae553c4c706de7d1ff732dce/swarmymcqlearny.ipynb#scrollTo=stXA1XfmHCOx) where I tried to replicate the error reported? Please confirm the result.\r\nThank you!",
"Hi @sushreebarsa ! Thanks for the quick replay. Yes, I confirm the result. Running the example for each (for example for 60 episodes), the tensorflow implementation has an elapsed time of 00:00:37 whereas the pytorch implementation has an elapsed time of only 00:00:09, having roughly the same reward (these numbers might change since seed is not set, but the behaviour is the same every time you run it). Is this a problem with my implementation of the neural gradient optimization? The program gives you the optimization time, and it looks to be approximately the same for both, so I am not sure where is the timing bottleneck. \r\n\r\nThanks again for the time!!"
] | 2023-09-10T12:45:13 | 2023-10-05T08:34:07 | null | NONE | null | null | null | ### Issue type
Performance
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf2.13
### Custom code
Yes
### OS platform and distribution
Ubuntu 22.04.2 LTS
### Mobile device
_No response_
### Python version
3.10.12
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
T4 GPU
### Current behavior?
I have encountered a performance difference between my PyTorch and TensorFlow implementations of the Double Deep Q-Network (DDQN) algorithm in a Gym environment. Both implementations share identical DDQN architectures, exploration routines, and training flows. However, the PyTorch implementation consistently converges faster, requiring fewer episodes to solve the environment.
Details:
**Network and Training Flow**: Both PyTorch and TensorFlow implementations employ the same dense neural network architecture (two hidden layers of [512, 128]) and training procedures. The timing for weight optimization is nearly identical between the two.
**Exploration**: Identical exploration strategies are employed in both implementations, ensuring consistency in agent behavior. Both of them use epsilon-greedy exploration.
The optimization code for each framework is:
**Tensorflow:**
```
@tf.function
def optimize_model(self,
experiences,
max_gradient_norm = float('inf')):
states, actions, rewards, next_states, is_terminals = experiences
#batch_size = len(is_terminals)
with tf.GradientTape() as tape:
# We get the argmax (or maximum action index using the online network)
argmax_a_q_sp = tf.argmax(self.online_model(next_states), axis=1)
# Then we use the target model to calculate the estimated Q-values
q_sp = tf.stop_gradient(self.target_model(next_states))
# And extract the max value using the index gotten with the online model
max_a_q_sp = tf.expand_dims(tf.gather(q_sp, argmax_a_q_sp, axis = 1)[:,0], axis = 1)
# Then we start computing the loss value
target_q_sa = rewards + (self.gamma * max_a_q_sp * (1 - is_terminals))
# Flatten the column_indices tensor
actions_ = tf.reshape(actions, [-1])
# Use tf.range to create row indices
row_indices = tf.range(actions_.shape[0])
row_indices = tf.cast(row_indices, tf.int64)
# Create combined indices
combined_indices = tf.stack([row_indices, actions_], axis=1)
# Gather elements from the second tensor using combined indices
q_sa = tf.gather_nd(self.online_model(states), combined_indices)
q_sa = tf.reshape(q_sa, (-1, 1))
#q_sa = tf.gather(self.online_model(states), actions, axis=1)
td_error = q_sa - target_q_sa
value_loss = tf.reduce_mean(tf.square(td_error) * 0.5)
variables = self.online_model.trainable_variables
gradients = tape.gradient(value_loss, variables)
self.value_optimizer.apply_gradients(zip(gradients, self.online_model.trainable_variables))
```
**Pytorch:**
```
def optimize_model(self,
experiences,
max_gradient_norm = float('inf')):
states, actions, rewards, next_states, is_terminals = experiences
batch_size = len(is_terminals)
# We get the argmax (or maximum action index using the online network)
argmax_a_q_sp = self.online_model(next_states).max(1)[1]
# Then we use the target model to calculate the estimated Q-values
q_sp = self.target_model(next_states).detach()
# And extract the max value using the index gotten with the online model
max_a_q_sp = q_sp[np.arange(batch_size), argmax_a_q_sp].unsqueeze(1)
# Then we start computing the loss value
target_q_sa = rewards + (self.gamma * max_a_q_sp * (1 - is_terminals))
q_sa = self.online_model(states).gather(1, actions)
td_error = q_sa - target_q_sa
value_loss = td_error.pow(2).mul(0.5).mean()
self.value_optimizer.zero_grad()
value_loss.backward()
#torch.nn.utils.clip_grad_norm_(self.online_model.parameters(), max_gradient_norm)
self.value_optimizer.step()
```
I'm seeking guidance on potential factors that might explain this performance gap. Could variations in internal library optimizations, autograd systems, GPU utilization, or other factors play a role in this discrepancy? Any insights or suggestions for further investigation would be greatly appreciated.
You can access to an example by following this link:
[](https://colab.research.google.com/github/LuisFMCuriel/SwarmyMcQLearny/blob/main/notebooks/SwarmyMcQLearny.ipynb)
### Standalone code to reproduce the issue
```shell
You can find the code in this GitHub repository: [GitHub Repository](https://github.com/LuisFMCuriel/SwarmyMcQLearny).
Alternatively, you can easily access an example by following this link to a Colab notebook:
[](https://colab.research.google.com/github/LuisFMCuriel/SwarmyMcQLearny/blob/main/notebooks/SwarmyMcQLearny.ipynb)
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61825/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61825/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61824 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61824/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61824/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61824/events | https://github.com/tensorflow/tensorflow/pull/61824 | 1,888,855,955 | PR_kwDOArmXAs5Z8E8- | 61,824 | fix hipcc path | {
"login": "acxz",
"id": 17132214,
"node_id": "MDQ6VXNlcjE3MTMyMjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/17132214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/acxz",
"html_url": "https://github.com/acxz",
"followers_url": "https://api.github.com/users/acxz/followers",
"following_url": "https://api.github.com/users/acxz/following{/other_user}",
"gists_url": "https://api.github.com/users/acxz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/acxz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/acxz/subscriptions",
"organizations_url": "https://api.github.com/users/acxz/orgs",
"repos_url": "https://api.github.com/users/acxz/repos",
"events_url": "https://api.github.com/users/acxz/events{/privacy}",
"received_events_url": "https://api.github.com/users/acxz/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 | [
"@i-chaochen I have no way to test whether this change is ok, can you please confirm whether this change makes sense?"
] | 2023-09-09T19:46:42 | 2023-09-22T23:05:12 | 2023-09-21T06:56:17 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61824",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61824",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61824.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61824.patch",
"merged_at": "2023-09-21T06:56:17"
} | original author @lubosz
closes #61823 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61824/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61824/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61823 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61823/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61823/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61823/events | https://github.com/tensorflow/tensorflow/issues/61823 | 1,888,839,924 | I_kwDOArmXAs5wlWj0 | 61,823 | [rocm] [build] sh: line 1: /opt/rocm/hip/bin/hipcc: No such file or directory | {
"login": "acxz",
"id": 17132214,
"node_id": "MDQ6VXNlcjE3MTMyMjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/17132214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/acxz",
"html_url": "https://github.com/acxz",
"followers_url": "https://api.github.com/users/acxz/followers",
"following_url": "https://api.github.com/users/acxz/following{/other_user}",
"gists_url": "https://api.github.com/users/acxz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/acxz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/acxz/subscriptions",
"organizations_url": "https://api.github.com/users/acxz/orgs",
"repos_url": "https://api.github.com/users/acxz/repos",
"events_url": "https://api.github.com/users/acxz/events{/privacy}",
"received_events_url": "https://api.github.com/users/acxz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 1205615612,
"node_id": "MDU6TGFiZWwxMjA1NjE1NjEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux",
"name": "subtype: ubuntu/linux",
"color": "b619ea",
"default": false,
"description": "Ubuntu/Linux Build/Installation Issues"
},
{
"id": 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": "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 | [
"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/61823\">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/61823\">No</a>\n"
] | 2023-09-09T18:40:05 | 2023-09-21T06:56:21 | 2023-09-21T06:56:18 | CONTRIBUTOR | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.0
### Custom code
No
### OS platform and distribution
Arch Linux
### Mobile device
_No response_
### Python version
3.11
### Bazel version
5.4.0
### GCC/compiler version
12.3.0
### CUDA/cuDNN version
ROCm 5.6.0
### GPU model and memory
_No response_
### Current behavior?
Build fails with the following error:
```
sh: line 1: /opt/rocm/hip/bin/hipcc: No such file or directory
```
### Standalone code to reproduce the issue
```shell
Build the code from source with ROCM 5.6.0
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61823/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61823/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61822 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61822/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61822/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61822/events | https://github.com/tensorflow/tensorflow/issues/61822 | 1,888,819,337 | I_kwDOArmXAs5wlRiJ | 61,822 | Error installing build from source | {
"login": "sparrow84001",
"id": 37022413,
"node_id": "MDQ6VXNlcjM3MDIyNDEz",
"avatar_url": "https://avatars.githubusercontent.com/u/37022413?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sparrow84001",
"html_url": "https://github.com/sparrow84001",
"followers_url": "https://api.github.com/users/sparrow84001/followers",
"following_url": "https://api.github.com/users/sparrow84001/following{/other_user}",
"gists_url": "https://api.github.com/users/sparrow84001/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sparrow84001/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sparrow84001/subscriptions",
"organizations_url": "https://api.github.com/users/sparrow84001/orgs",
"repos_url": "https://api.github.com/users/sparrow84001/repos",
"events_url": "https://api.github.com/users/sparrow84001/events{/privacy}",
"received_events_url": "https://api.github.com/users/sparrow84001/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 4257391797,
"node_id": "LA_kwDOArmXAs79wqS1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/wsl2",
"name": "wsl2",
"color": "A352E6",
"default": false,
"description": "Windows Subsystem for Linux"
}
] | 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 | [
"@sparrow84001 Could you please elaborate on the steps you followed and fill up the template [here](https://github.com/tensorflow/tensorflow/issues/new?assignees=&labels=&projects=&template=tensorflow_issue_template.yaml).?\r\nIf you are using WSL2 for GPU access for a later version of 2.10 on windows, then please make sure that you have followed the steps mentioned [here](https://www.tensorflow.org/install/pip#windows-wsl2). Thank you! \r\n",
"1) I tried Check this #60144 that uses **onednn (intel opt)**\r\n2) That's why I use build from source. I want to use **cudnn (nvidia opt)** .\r\n3) errors \r\n\r\n **1st error**\r\n\r\n \" ERROR: Traceback (most recent call last):\r\n File \"/home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/internal/transition_support.bzl\", line 547, column 46, in <toplevel>\r\n _apple_platform_split_transition = transition(Error in transition: Invalid transition input '//command_line_option:incompatible_enable_apple_toolchain_resolution'. Cannot transition on --experimental_* or --incompatible_* options\" \"\r\n\r\n **2nd error**\r\n\r\n \" ERROR: /mnt/d/TensorflowC/tensorflow/WORKSPACE:88:14: error loading package '@com_github_grpc_grpc//src/compiler': at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:28:6: at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/ios.bzl:33:5: at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl:95:5: initialization of module 'apple/internal/transition_support.bzl' failed and referenced by '//external:grpc_python_plugin' \"\r\n\r\n\r\n4) Check the attached video.\r\n\r\nhttps://github.com/tensorflow/tensorflow/assets/37022413/b8bba37c-6335-494c-ab44-64e12f4dc94c\r\n\r\n",
"Same issue happens here, trying to build tensorflow inside a docker container. Seems not limited to WSL2"
] | 2023-09-09T17:20:46 | 2023-11-14T23:03:36 | null | NONE | null | null | null | WSL2 - Ubantu-22.4
When configured I use
"Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: N
Not configuring the WORKSPACE for Android builds."
But when I build I get this error
"ERROR: Traceback (most recent call last):
File "/home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/internal/transition_support.bzl", line 547, column 46, in <toplevel>
_apple_platform_split_transition = transition(
Error in transition: Invalid transition input '//command_line_option:incompatible_enable_apple_toolchain_resolution'. Cannot transition on --experimental_* or --incompatible_* options
ERROR: /mnt/d/TensorflowC/tensorflow/WORKSPACE:88:14: error loading package '@com_github_grpc_grpc//src/compiler': at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:28:6: at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/ios.bzl:33:5: at /home/n3/.cache/bazel/_bazel_n3/6f14c15d85335b4cb3c9403635dfd45f/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl:95:5: initialization of module 'apple/internal/transition_support.bzl' failed and referenced by '//external:grpc_python_plugin'"
This is an iOS support error, right?
I couldn't configure any iOS and Android WORKSPACE so why do I get this error? | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61822/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61822/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61821 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61821/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61821/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61821/events | https://github.com/tensorflow/tensorflow/issues/61821 | 1,888,687,336 | I_kwDOArmXAs5wkxTo | 61,821 | Does TensorFloat-32 support `tf.compat.v1.nn.depthwise_conv2d_native`? How can I identify whether an op is supported by TensorFloat-32? | {
"login": "oawxkw",
"id": 48113733,
"node_id": "MDQ6VXNlcjQ4MTEzNzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/48113733?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oawxkw",
"html_url": "https://github.com/oawxkw",
"followers_url": "https://api.github.com/users/oawxkw/followers",
"following_url": "https://api.github.com/users/oawxkw/following{/other_user}",
"gists_url": "https://api.github.com/users/oawxkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oawxkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oawxkw/subscriptions",
"organizations_url": "https://api.github.com/users/oawxkw/orgs",
"repos_url": "https://api.github.com/users/oawxkw/repos",
"events_url": "https://api.github.com/users/oawxkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/oawxkw/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": 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": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | 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 | [] | 2023-09-09T10:42:10 | 2023-11-20T23:37:12 | null | NONE | null | null | null | ### Issue type
Performance
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.14.0-rc1
### 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?
I'm trying to use TensorFloat-32 to accelerate my model.
But I found that `tf.compat.v1.nn.depthwise_conv2d_native` is not currently supported by TensorFloat-32, by comparing the output with and without TensorFloat-32.
The [documentation](https://www.tensorflow.org/api_docs/python/tf/config/experimental/enable_tensor_float_32_execution) says _"Note TensorFloat-32 is not always used in supported ops, as only inputs of certain shapes are supported. Support for more input shapes and more ops may be added in the future."_
I also found that #46168 and #58047 mention some ops that are not supported by TensorFloat-32.
So I'm wondering if there is a way to identify whether an op is supported by TensorFloat-32?
### Standalone code to reproduce the issue
```python
import numpy as np
import tensorflow as tf
print(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)
print(tf.config.list_physical_devices(), flush=True)
x_in = np.random.rand(1,7,7,16)
kernel_in = np.random.rand(3,3,16,16)
tf.config.experimental.enable_tensor_float_32_execution(True)
x = tf.constant(x_in, dtype=tf.float32)
kernel = tf.constant(kernel_in, dtype=tf.float32)
res_tf32 = tf.compat.v1.nn.depthwise_conv2d_native(x, kernel, strides=[1, 1, 1, 1], padding='VALID')
tf.config.experimental.enable_tensor_float_32_execution(False)
x = tf.constant(x_in, dtype=tf.float32)
kernel = tf.constant(kernel_in, dtype=tf.float32)
res_full = tf.compat.v1.nn.depthwise_conv2d_native(x, kernel, strides=[1, 1, 1, 1], padding='VALID')
print("res_tf32==res_full:", np.all(res_tf32==res_full))
```
### Relevant log output
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
res_tf32==res_full: True
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61821/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61821/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61820 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61820/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61820/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61820/events | https://github.com/tensorflow/tensorflow/issues/61820 | 1,888,671,304 | I_kwDOArmXAs5wktZI | 61,820 | The `mask` dtype should be asserted to be boolean in `tf.compat.v1.boolean_mask` (and `tf.boolean_mask`) | {
"login": "oawxkw",
"id": 48113733,
"node_id": "MDQ6VXNlcjQ4MTEzNzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/48113733?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oawxkw",
"html_url": "https://github.com/oawxkw",
"followers_url": "https://api.github.com/users/oawxkw/followers",
"following_url": "https://api.github.com/users/oawxkw/following{/other_user}",
"gists_url": "https://api.github.com/users/oawxkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oawxkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oawxkw/subscriptions",
"organizations_url": "https://api.github.com/users/oawxkw/orgs",
"repos_url": "https://api.github.com/users/oawxkw/repos",
"events_url": "https://api.github.com/users/oawxkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/oawxkw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | 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 | [
"@SuryanarayanaY I was able to replicate this issue on colab, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/f2a39e8023cb25652a046bda86f7ebc6/61820.ipynb) here. Thank you!",
"The best we could do is update the documentation, since there are several users who already rely on this behavior."
] | 2023-09-09T09:40:31 | 2023-12-12T17:50:31 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.14.0-rc1
### 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?
The `mask` dtype should be asserted to be boolean in `tf.compat.v1.boolean_mask` (and `tf.boolean_mask`).
The documentation [`tf.boolean_mask`](https://www.tensorflow.org/api_docs/python/tf/boolean_mask) states that the `mask` is a K-D boolean Tensor, K <= N and K must be known statically.
However, currently, the `mask` dtype is not asserted to be boolean in `tf.compat.v1.boolean_mask` (and `tf.boolean_mask`) and cast to boolean if it is not a boolean Tensor, which may lead to unexpected results.
Generally, only the `0` and `1` values in the `mask` can be directly treated as `False` and `True` respectively, while other values should be determined by certain rules in different scenarios (_e.g._ negative values can be treated as `False` in some scenarios, or close to `0` values can be treated as `False` in some other scenarios).
I think it's worth updating the documentation to state that the `mask` will be cast to boolean if it is not a boolean Tensor, or warning users that the `mask` dtype should be boolean.
As mentioned in #54412, it is better to raise an InvalidArgumentError Exception when the `mask` dtype is not boolean, which forces users to cast the `mask` to boolean explicitly.
### Standalone code to reproduce the issue
```python
import tensorflow as tf
print(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)
print(tf.config.list_physical_devices(), flush=True)
try:
tensor = [0,1,2,3]
mask = tf.random.uniform([4], dtype=tf.float64)
x1 = tf.compat.v1.boolean_mask(tensor, mask)
print(x1, flush=True)
except Exception as e:
print("Success! Error:", str(e), flush=True)
else:
print("Failed!", flush=True)
```
### Relevant log output
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
tf.Tensor([0 1 2 3], shape=(4,), dtype=int32)
Failed!
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61820/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61820/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61819 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61819/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61819/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61819/events | https://github.com/tensorflow/tensorflow/pull/61819 | 1,888,624,258 | PR_kwDOArmXAs5Z7XXp | 61,819 | [MLIR/TF2XLA] Do not convert tf.Select when element type is tf_type.s… | {
"login": "heromapwrd",
"id": 18663065,
"node_id": "MDQ6VXNlcjE4NjYzMDY1",
"avatar_url": "https://avatars.githubusercontent.com/u/18663065?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/heromapwrd",
"html_url": "https://github.com/heromapwrd",
"followers_url": "https://api.github.com/users/heromapwrd/followers",
"following_url": "https://api.github.com/users/heromapwrd/following{/other_user}",
"gists_url": "https://api.github.com/users/heromapwrd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/heromapwrd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/heromapwrd/subscriptions",
"organizations_url": "https://api.github.com/users/heromapwrd/orgs",
"repos_url": "https://api.github.com/users/heromapwrd/repos",
"events_url": "https://api.github.com/users/heromapwrd/events{/privacy}",
"received_events_url": "https://api.github.com/users/heromapwrd/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/61819/checks?check_run_id=16637955422) 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.",
"Thanks for writing the patch! Do you have any context as to why this change is needed?\r\n\r\nI'll need to dig to see if the spec actually prevents String types here. ",
"I dug a bit and it looks like strings should be supported. Is there an issue you're seeing that needs this patch?",
"Hi @heromapwrd Can you please check @changm's comments and keep us posted ? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Hi @heromapwrd, Any update on this PR? Please. Thank you!",
"Hi @heromapwrd, Any update on this PR? Please. Thank you!",
"Hi @heromapwrd 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 your contribution!"
] | 2023-09-09T07:27:13 | 2023-12-29T08:20:25 | 2023-12-29T08:20:20 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61819",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61819",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61819.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61819.patch",
"merged_at": null
} | fix: do not convert tf.Select to mhlo.select when element type is !tf_type.string | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61819/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61819/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61818 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61818/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61818/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61818/events | https://github.com/tensorflow/tensorflow/pull/61818 | 1,888,192,597 | PR_kwDOArmXAs5Z56RW | 61,818 | r2.14 cherry-pick: [XLA:CPU] Refactor CpuExecutable so LLVM errors can be propagated | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-09-08T19:13:45 | 2023-09-08T20:39:03 | 2023-09-08T20:39:03 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61818",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61818",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61818.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61818.patch",
"merged_at": "2023-09-08T20:39:03"
} | Otherwise we'd crash on cases like non-existing CustomCall target.
PiperOrigin-RevId: 562563302 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61818/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61818/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61817 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61817/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61817/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61817/events | https://github.com/tensorflow/tensorflow/pull/61817 | 1,887,994,091 | PR_kwDOArmXAs5Z5PDA | 61,817 | Switch to using new API generation. | {
"login": "DrMarcII",
"id": 4109465,
"node_id": "MDQ6VXNlcjQxMDk0NjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/4109465?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DrMarcII",
"html_url": "https://github.com/DrMarcII",
"followers_url": "https://api.github.com/users/DrMarcII/followers",
"following_url": "https://api.github.com/users/DrMarcII/following{/other_user}",
"gists_url": "https://api.github.com/users/DrMarcII/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DrMarcII/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DrMarcII/subscriptions",
"organizations_url": "https://api.github.com/users/DrMarcII/orgs",
"repos_url": "https://api.github.com/users/DrMarcII/repos",
"events_url": "https://api.github.com/users/DrMarcII/events{/privacy}",
"received_events_url": "https://api.github.com/users/DrMarcII/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 | [
"@MichaelHudgins How do I run the optional nightlies?",
"I have successfully run the nightly builds and they pass.",
"Bisected the regression in #62497 (and #62500) to this PR. Can any of you look?"
] | 2023-09-08T16:33:25 | 2023-12-01T21:34:00 | 2023-09-14T22:53:51 | MEMBER | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61817",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61817",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61817.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61817.patch",
"merged_at": "2023-09-14T22:53:51"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61817/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61817/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61816 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61816/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61816/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61816/events | https://github.com/tensorflow/tensorflow/issues/61816 | 1,887,966,691 | I_kwDOArmXAs5wiBXj | 61,816 | Dataset will not be optimized because the dataset does not implement the AsGraphDefInternal() method needed to apply optimizations | {
"login": "bkocis",
"id": 8027065,
"node_id": "MDQ6VXNlcjgwMjcwNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/8027065?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bkocis",
"html_url": "https://github.com/bkocis",
"followers_url": "https://api.github.com/users/bkocis/followers",
"following_url": "https://api.github.com/users/bkocis/following{/other_user}",
"gists_url": "https://api.github.com/users/bkocis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bkocis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bkocis/subscriptions",
"organizations_url": "https://api.github.com/users/bkocis/orgs",
"repos_url": "https://api.github.com/users/bkocis/repos",
"events_url": "https://api.github.com/users/bkocis/events{/privacy}",
"received_events_url": "https://api.github.com/users/bkocis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
},
{
"id": 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"
}
] | 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 | [
"@bkocis Could you please provide the complete standalone code to replicate this issue?\r\nThank you!",
"I would need to rewrite a big chunk of the example code to remove very specific implementation code. \r\nI wanted to ask a more general question regarding the memory usage increase that increases over the training epochs. \r\n\r\nSearching the net, I found that this is most likely due to how tf handles its graph and stores the gradients. \r\n\r\nSpecifically, the model.fit method could be the cause of this increase on memory usage, due to how it handles the mode, the data, and stores parameters. \r\n\r\nIt appears that during training, one can not free up memory by deleting the model or clearing the session, or similar. \r\n\r\nI found this as the only post that was highly ranked as a good answer: \r\nhttps://github.com/tensorflow/tensorflow/issues/36465#issuecomment-582749350 \r\n\r\nOther references to this are: \r\nhttps://github.com/keras-team/keras/issues/15887\r\nhttps://github.com/tensorflow/tensorflow/issues/35030\r\n\r\nIs there any simple way to free up memory while training (tf 2.11.0)? Things like this don't work: \r\n```python\r\nfrom keras import backend as K\r\nK.clear_session()\r\n# or \r\n tf.keras.backend.clear_session()\r\n```",
"Hello, @bkocis! If you want to allocate specific memory or increase the memory growth then, please have a look at this [page](https://www.tensorflow.org/guide/gpu#limiting_gpu_memory_growth) which clearly explains about how to limit the gpu memory growth. There are mainly two options;\r\nFirstly, to turn on memory growth by calling [tf.config.experimental.set_memory_growth](https://www.tensorflow.org/api_docs/python/tf/config/experimental/set_memory_growth), which attempts to allocate only as much GPU memory as needed for the runtime allocations \r\n```\r\ngpus = tf.config.list_physical_devices('GPU')\r\nif gpus:\r\n try:\r\n # Currently, memory growth needs to be the same across GPUs\r\n for gpu in gpus:\r\n tf.config.experimental.set_memory_growth(gpu, True)\r\n logical_gpus = tf.config.list_logical_devices('GPU')\r\n print(len(gpus), \"Physical GPUs,\", len(logical_gpus), \"Logical GPUs\")\r\n except RuntimeError as e:\r\n # Memory growth must be set before GPUs have been initialized\r\n print(e)\r\n```\r\n\r\nAnd secondly, to configure a virtual GPU device with [tf.config.set_logical_device_configuration](https://www.tensorflow.org/api_docs/python/tf/config/set_logical_device_configuration) and set a hard limit on the total memory to allocate on the GPU\r\n```\r\ngpus = tf.config.list_physical_devices('GPU')\r\nif gpus:\r\n # Restrict TensorFlow to only allocate 1GB of memory on the first GPU\r\n try:\r\n tf.config.set_logical_device_configuration(\r\n gpus[0],\r\n [tf.config.LogicalDeviceConfiguration(memory_limit=1024)])\r\n logical_gpus = tf.config.list_logical_devices('GPU')\r\n print(len(gpus), \"Physical GPUs,\", len(logical_gpus), \"Logical GPUs\")\r\n except RuntimeError as e:\r\n # Virtual devices must be set before GPUs have been initialized\r\n print(e)\r\n```\r\nPlease let me 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.",
"@sushreebarsa \r\nI implemented this - it got me further. But this alone did not solve my issues. \r\nI can't confirm yet, but what helped was to remove validation dataset from the training (model.fit). Do you know why that might be the case?\r\n",
"Any updates on this? ",
"Hi, Along with the linked issues there is one more issue which is open since long. if you find this issue is related to your issue, could you please close this issue and track the progress in the linked issue. https://github.com/tensorflow/tensorflow/issues/58676",
"The above linked issue is closed with a fix, please refer and let us know if that fix works for you.",
"Hi @sachinprasadhs - as far as I can understand, this fix is in 2.15 version. This is not yet on pip - any ideas when this will come out? ",
"We initially release 2.15rc0, which should be ideally released within a week and after few more weeks final release will happen.\r\nTill then you can use tf-nightly which will include the above changes. ",
"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/61816\">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/61816\">No</a>\n"
] | 2023-09-08T16:13:58 | 2023-10-20T07:59:33 | 2023-10-20T07:59:30 | NONE | null | null | null | ### Issue type
Performance
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.11.0
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 20.04
### Mobile device
_No response_
### Python version
3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I have an issue with memory consumption during training. After each epoch more memory is used. In case of bigger dataset, the training crashed mid training.
I use loading the training data from generator, where I sample the batch using pandas sample method.
One of the warnings from tf is:
`W tensorflow/core/framework/dataset.cc:769] Input of GeneratorDatasetOp::Dataset will not be optimized because the dataset does not implement the AsGraphDefInternal() method needed to apply optimizations.`
I am a bit confused, whether using the generator and sampling from a pandas dataframe can cause memory accumulation during the training?
### Standalone code to reproduce the issue
```shell
def generate_samples(epochs: int, steps_per_epoch: int, token_y_df: pd.DataFrame, num_fields: int, batch_size: int = 32, max_len: int = 1024) -> tuple[np.array, np.array]:
pad_value_y = get_padding_value_y(num_fields)
while True:
batch_df = token_y_df.sample(batch_size, replace=True)
_x, _y = get_fixed_batch(batch_df, max_len, pad_value_y=pad_value_y,
use_additional_features=use_additional_features)
yield _x, _y
model.fit(generate_samples, ....)
The `get_padding` and the `get_fixed_batch` are longer functions, that pad and create the X and y np.arrays from the sampled pandas dataframe.
```
### Relevant log output
```shell
W tensorflow/core/framework/dataset.cc:769] Input of GeneratorDatasetOp::Dataset will not be optimized because the dataset does not implement the AsGraphDefInternal() method needed to apply optimizations.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61816/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61816/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61815 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61815/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61815/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61815/events | https://github.com/tensorflow/tensorflow/issues/61815 | 1,887,775,515 | I_kwDOArmXAs5whSsb | 61,815 | Wrong answer from tflite model with certain configurations of depthwise conv2d | {
"login": "boweia",
"id": 40442145,
"node_id": "MDQ6VXNlcjQwNDQyMTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/40442145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/boweia",
"html_url": "https://github.com/boweia",
"followers_url": "https://api.github.com/users/boweia/followers",
"following_url": "https://api.github.com/users/boweia/following{/other_user}",
"gists_url": "https://api.github.com/users/boweia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/boweia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/boweia/subscriptions",
"organizations_url": "https://api.github.com/users/boweia/orgs",
"repos_url": "https://api.github.com/users/boweia/repos",
"events_url": "https://api.github.com/users/boweia/events{/privacy}",
"received_events_url": "https://api.github.com/users/boweia/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": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | open | false | {
"login": "majiddadashi",
"id": 5490974,
"node_id": "MDQ6VXNlcjU0OTA5NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5490974?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/majiddadashi",
"html_url": "https://github.com/majiddadashi",
"followers_url": "https://api.github.com/users/majiddadashi/followers",
"following_url": "https://api.github.com/users/majiddadashi/following{/other_user}",
"gists_url": "https://api.github.com/users/majiddadashi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/majiddadashi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/majiddadashi/subscriptions",
"organizations_url": "https://api.github.com/users/majiddadashi/orgs",
"repos_url": "https://api.github.com/users/majiddadashi/repos",
"events_url": "https://api.github.com/users/majiddadashi/events{/privacy}",
"received_events_url": "https://api.github.com/users/majiddadashi/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "majiddadashi",
"id": 5490974,
"node_id": "MDQ6VXNlcjU0OTA5NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5490974?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/majiddadashi",
"html_url": "https://github.com/majiddadashi",
"followers_url": "https://api.github.com/users/majiddadashi/followers",
"following_url": "https://api.github.com/users/majiddadashi/following{/other_user}",
"gists_url": "https://api.github.com/users/majiddadashi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/majiddadashi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/majiddadashi/subscriptions",
"organizations_url": "https://api.github.com/users/majiddadashi/orgs",
"repos_url": "https://api.github.com/users/majiddadashi/repos",
"events_url": "https://api.github.com/users/majiddadashi/events{/privacy}",
"received_events_url": "https://api.github.com/users/majiddadashi/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I am able to reproduce on nightly: [gist](https://colab.sandbox.google.com/gist/pkgoogle/11b39c4c2962fdcedce78dac2be1a1fa/61815.ipynb), The problem is the output tensor (in the TFLite case) is all zeroes.\r\n\r\nHi @majiddadashi, can you please take a look? Thanks."
] | 2023-09-08T14:16:17 | 2023-09-14T20:24:22 | null | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Debian 11
- TensorFlow installation (pip package or built from source): pip package
- TensorFlow library (version, if pip package or github SHA, if built from source): 2.13.0
### 2. Code
```
import tensorflow as tf
import numpy as np
tf.keras.utils.set_random_seed(0)
# Layer parameter values
imageSize = (8, 8)
numChannels = 2
fmt = 'channels_last'
kernelSize = (3, 1)
padding = 'same'
depthMult = 1
useBias = False
strides = (2, 2)
# Determine input shape
if fmt == 'channels_last':
inShape = imageSize + (numChannels,)
else:
inShape = (numChannels,) + imageSize
# Determine input size and create input data
inSize = (1,) + inShape
rng = np.random.default_rng(seed=999)
x = rng.random(size=inSize, dtype=np.float32)
# Construct Keras model
inp = tf.keras.layers.Input(shape=inShape, batch_size=1)
dconv = tf.keras.layers.DepthwiseConv2D(kernelSize, strides=strides, padding=padding, depth_multiplier=depthMult,
data_format=fmt, activation=None, use_bias=useBias)(inp)
kModel = tf.keras.models.Model(inputs=inp, outputs=dconv)
kModel.compile()
# Run Keras model predict
kY = kModel.predict(x)
print(kY)
# Convert model to tflite
converter = tf.lite.TFLiteConverter.from_keras_model(kModel)
tfModel = converter.convert()
# Run tflite interpreter
interpreter = tf.lite.Interpreter(model_content=tfModel)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.set_tensor(input_details[0]['index'], x)
interpreter.invoke()
tfY = interpreter.get_tensor(output_details[0]['index'])
print(tfY)
isequal = np.allclose(kY, tfY, rtol=1e-4, atol=1e-4)
print(isequal)
```
### 3. Failure after conversion
If the conversion is successful, but the generated model is wrong, then state what is wrong:
- Model produces wrong results - in this case all 0s
5. (optional) Any other info / logs
Some general observations on when this wrong answer occurs (all of the following must be met):
- One of the kernel_size dimensions is 1 (1xN or Nx1)
- Stride is not 1
- Padding is same
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61815/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61815/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61814 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61814/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61814/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61814/events | https://github.com/tensorflow/tensorflow/issues/61814 | 1,887,214,550 | I_kwDOArmXAs5wfJvW | 61,814 | `tensorflow/python/compiler/xla/jit_test` fails on PPC with $HOME unset | {
"login": "Flamefire",
"id": 309017,
"node_id": "MDQ6VXNlcjMwOTAxNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/309017?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Flamefire",
"html_url": "https://github.com/Flamefire",
"followers_url": "https://api.github.com/users/Flamefire/followers",
"following_url": "https://api.github.com/users/Flamefire/following{/other_user}",
"gists_url": "https://api.github.com/users/Flamefire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Flamefire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Flamefire/subscriptions",
"organizations_url": "https://api.github.com/users/Flamefire/orgs",
"repos_url": "https://api.github.com/users/Flamefire/repos",
"events_url": "https://api.github.com/users/Flamefire/events{/privacy}",
"received_events_url": "https://api.github.com/users/Flamefire/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": 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 | [] | 2023-09-08T08:32:32 | 2023-09-11T21:36:51 | null | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.13.0
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
3.11
### Bazel version
6.3.1
### GCC/compiler version
12.3
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Running the test `//tensorflow/python/compiler/xla:jit_test_cpu` through Bazels build system with a pre-installed numpy (build from source) yields a segmentation fault I cannot explain.
It happened after upgrading our toolchain from GCC 11 & Python 3.10 to GCC 12 and Python 3.11 but includes also a couple other software versions which changed but trying to narrow them down wasn't successful. But seemingly only Python and OpenSSL (instead of BoringSSL which doesn't work on PPC) as well as the mentioned numpy should be involved.
After a lot of digging I found that omitting `$HOME` when executing the test (which Bazel does) triggers the segmentation fault.
Adding `--test_env HOME=/non-existing` works around this.
I further traced it to `testJITCreateOpsLambda` in particular keeping only the single `compute` call at https://github.com/tensorflow/tensorflow/blob/v2.13.0/tensorflow/python/compiler/xla/jit_test.py#L76 is enough while `self.compute(False, create_ops)` works which means it is related to XLA compilation.
Also replacing [`random_uniform`](https://github.com/tensorflow/tensorflow/blob/v2.13.0/tensorflow/python/compiler/xla/jit_test.py#L70) by `constant_op.constant(1)` avoids the error, so it is related to how that call is compiled/run but I failed to further follow how that happens
I'm at loss how to debug this further and whether this is an issue with TensorFlows XLA compilation or a bug elsewhere only triggered by that special environment
### Standalone code to reproduce the issue
```shell
`bazel test --config=noaws --config=nogcp --config=nohdfs --compilation_mode=opt --config=opt --copt="-fPIC" --action_env=CPATH='/sw/installed/OpenSSL/1.1/include' --host_action_env=CPATH='/sw/installed/OpenSSL/1.1/include' --action_env=LIBRARY_PATH='/sw/installed/OpenSSL/1.1/lib' --host_action_env=LIBRARY_PATH='/sw/installed/OpenSSL/1.1/lib' --action_env=PYTHONPATH --host_action_env=PYTHONPATH --action_env PYTHON_BIN_PATH --action_env PYTHON_LIB_PATH --python_path=$(which python) -- //tensorflow/python/compiler/xla:jit_test_cpu`
or reduced to the actual invocation after bazel failed:
`export PYTHONPATH=bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/com_google_protobuf/python:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/tblib_archive/src:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/astunparse_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/com_google_protobuf:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/dill_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/gast_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/opt_einsum_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/six_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/tblib_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/termcolor_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/typing_extensions_archive:bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/wrapt:$PYTHONPATH
(cd /dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/bazel-root/9c88b62e77874bb73aea75868f86ebae/execroot/org_tensorflow && \
cd - &&
exec env - \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH \
PATH=$PATH \
PYTHONNOUSERSITE=1 \
PYTHONPATH=$PYTHONPATH \
HOME2='/fake' \
python bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/compiler/xla/jit_test.py)`
```
### Relevant log output
```shell
Running tests under Python 3.11.3: /beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/bin/python
[ RUN ] JITTest.testJITCreateOpsLambda
2023-09-08 10:32:04.231849: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:375] MLIR V1 optimization pass is not enabled
2023-09-08 10:32:04.404724: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x201108083080 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-09-08 10:32:04.404765: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2023-09-08 10:32:04.603193: I ./tensorflow/compiler/jit/device_compiler.h:186] Compiled cluster using XLA! This line is logged at most once for the lifetime of the process.
Fatal Python error: Segmentation fault
Thread 0x0000200000048800 (most recent call first):
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1455 in _call_tf_sessionrun
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1362 in _run_fn
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1379 in _do_call
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1372 in _do_run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1192 in _run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 969 in run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 2059 in run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/compiler/xla/jit_test.py", line 55 in compute
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/compiler/xla/jit_test.py", line 81 in testJITCreateOpsLambda
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/case.py", line 579 in _callTestMethod
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/case.py", line 623 in run
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/case.py", line 678 in __call__
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/suite.py", line 122 in run
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/suite.py", line 84 in __call__
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/suite.py", line 122 in run
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/suite.py", line 84 in __call__
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/runner.py", line 217 in run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/testing/_pretty_print_reporter.py", line 86 in run
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/main.py", line 274 in runTests
File "/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/unittest/main.py", line 102 in __init__
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/testing/absltest.py", line 2537 in _run_and_get_tests_result
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/testing/absltest.py", line 2568 in run_tests
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/testing/absltest.py", line 2156 in _run_in_app
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/testing/absltest.py", line 2049 in main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 51 in g_main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/app.py", line 258 in _run_main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/absl_py/absl/app.py", line 312 in run
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 60 in main_wrapper
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/benchmark.py", line 489 in benchmarks_main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/googletest.py", line 62 in main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/test.py", line 56 in main
File "/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/compiler/xla/jit_test.py", line 321 in <module>
Extension modules: google.protobuf.pyext._message, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, tensorflow.python.framework.fast_tensor_util (total: 15)
*** Received signal 11 ***
*** BEGIN MANGLED STACK TRACE ***
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_ppc/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2(+0xd76744)[0x200b0de86744]
[0x2000000504d8]
/beegfs/ws/1/s3248973-EasyBuild/easybuild-ml/software/Python/3.11.3-GCCcore-12.3.0/lib/libpython3.11.so.1.0(+0x14090c)[0x2000001b090c]
[0x2000000504d8]
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../libtensorflow_cc.so.2(_ZN3xla3cpu13CpuExecutable22ExecuteComputeFunctionEPKNS_20ExecutableRunOptionsEN4absl12lts_202301254SpanIKNS_23MaybeOwningDeviceMemoryEEEPNS_19HloExecutionProfileE+0x150)[0x200b15956c40]
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../libtensorflow_cc.so.2(+0x5be7c04)[0x200b15957c04]
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../libtensorflow_cc.so.2(_ZN15stream_executor4host10HostStream8WorkLoopEv+0x1ac)[0x200b1d822b0c]
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../libtensorflow_cc.so.2(+0xdab3274)[0x200b1d823274]
/dev/shm/s3248973-EasyBuild/TensorFlow/2.13.0/foss-2022b/TensorFlow/tensorflow-2.13.0/bazel-out/ppc-opt/bin/tensorflow/python/compiler/xla/jit_test_cpu.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_ppc/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2(+0xd85088)[0x200b0de95088]
/lib64/libpthread.so.0(+0x8b94)[0x2000008c8b94]
/lib64/libc.so.6(clone+0xe4)[0x200000a585f4]
*** END MANGLED STACK TRACE ***
*** Begin stack trace ***
tsl::CurrentStackTrace[abi:cxx11]()
__kernel_sigtramp_rt64
__kernel_sigtramp_rt64
xla::cpu::CpuExecutable::ExecuteComputeFunction(xla::ExecutableRunOptions const*, absl::lts_20230125::Span<xla::MaybeOwningDeviceMemory const>, xla::HloExecutionProfile*)
stream_executor::host::HostStream::WorkLoop()
clone
*** End stack trace ***
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61814/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61814/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61813 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61813/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61813/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61813/events | https://github.com/tensorflow/tensorflow/issues/61813 | 1,887,165,777 | I_kwDOArmXAs5we91R | 61,813 | ValueError: Unable to create dataset (name already exists) | {
"login": "Alwaysadil",
"id": 91238948,
"node_id": "MDQ6VXNlcjkxMjM4OTQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/91238948?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Alwaysadil",
"html_url": "https://github.com/Alwaysadil",
"followers_url": "https://api.github.com/users/Alwaysadil/followers",
"following_url": "https://api.github.com/users/Alwaysadil/following{/other_user}",
"gists_url": "https://api.github.com/users/Alwaysadil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Alwaysadil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alwaysadil/subscriptions",
"organizations_url": "https://api.github.com/users/Alwaysadil/orgs",
"repos_url": "https://api.github.com/users/Alwaysadil/repos",
"events_url": "https://api.github.com/users/Alwaysadil/events{/privacy}",
"received_events_url": "https://api.github.com/users/Alwaysadil/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": 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": 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": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello, @Alwaysadil!\r\nCould you please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/f596ec59abbf469bd97beb1790337bb9/61813.ipynb) which shows a different error?\r\nThis error generally occurs when the layer names are duplicates across the namespaces of the pre-trained model and your downstream-task network. It can be useful to choose a unique name to call every layer of your downstream task network. Thank you!",
"Hi @sushreebarsa i resolved that issue by changing .hdf5 to .tf\r\nThank you for your response\r\n",
"@Alwaysadil True! It is always recommended to use .tf as the saving format instead of .hdf5 after TF v2.9.\r\nGlad it worked for you! \r\nCould you please confirm if we can close the issue if it is resolved?\r\n\r\nThank you!\r\n",
"yes @sushreebarsa you can close this issue now \r\nbut please check this below one i alreaded raised issue please check #61850\r\nhttps://github.com/tensorflow/tensorflow/issues/61850\r\none more that below \r\n\r\nWhile doing tflite lite model conversion with input signature as string data type i am getting this error\r\nConverterError: /usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: error: 'tf.FastWordpieceTokenizeWithOffsets' op is neither a custom op nor a flex op\r\n:0: note: loc(fused[\"StatefulPartitionedCall:\", \"StatefulPartitionedCall\"]): called from\r\n/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: note: Error code: ERROR_NEEDS_CUSTOM_OPS\r\n/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: error: 'tf.TFText>FastWordpieceDetokenize' op is neither a custom op nor a flex op\r\n:0: note: loc(fused[\"StatefulPartitionedCall:\", \"StatefulPartitionedCall\"]): called from\r\n/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/func_graph.py:670:0: note: Error code: ERROR_NEEDS_CUSTOM_OPS\r\n:0: error: failed while converting: 'main':\r\nSome ops in the model are custom ops, See instructions to implement custom ops: https://www.tensorflow.org/lite/guide/ops_custom\r\nCustom ops: FastWordpieceTokenizeWithOffsets, TFText>FastWordpieceDetokenize\r\nDetails:\r\ntf.FastWordpieceTokenizeWithOffsets(tensor<?x!tf_type.string>, tensor<241460xui8>) -> (tensor<?x!tf_type.string>, tensor<?xi64>, tensor<?xi64>, tensor<?xi64>, tensor<?xi64>) : {device = \"/device:CPU:0\"}\r\ntf.TFText>FastWordpieceDetokenize(tensor<40xi32>, tensor<2xi64>, tensor<339052xui8>) -> (tensor<?x!tf_type.string>) : {device = \"\"}\r\n\r\nkindly please check this below colab link\r\nhttps://colab.research.google.com/drive/14_ajVH4r4NXN6cDw96XJNBtltoueoGfN?usp=sharing",
"@Alwaysadil Thank you for the confirmation.\r\nWe will look into the other one. 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/61813\">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/61813\">No</a>\n"
] | 2023-09-08T07:58:42 | 2023-09-13T13:16:50 | 2023-09-13T13:16:47 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.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?
Epoch 1/10
1/1 [==============================] - ETA: 0s - loss: 6.8405 - accuracy: 0.3250
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-57-865e41f45523> in <cell line: 1>()
----> 1 transformer.fit(train_ds, epochs=EPOCHS, validation_data=val_ds,batch_size=BATCH_SIZE,callbacks=[early_stop, checkpoint_call, plot_losses])
2 frames
/usr/local/lib/python3.10/dist-packages/h5py/_hl/dataset.py in make_new_dset(parent, shape, dtype, data, name, chunks, compression, shuffle, fletcher32, maxshape, compression_opts, fillvalue, scaleoffset, track_times, external, track_order, dcpl, dapl, efile_prefix, virtual_prefix, allow_unknown_filter, rdcc_nslots, rdcc_nbytes, rdcc_w0)
161 sid = h5s.create_simple(shape, maxshape)
162
--> 163 dset_id = h5d.create(parent.id, name, tid, sid, dcpl=dcpl, dapl=dapl)
164
165 if (data is not None) and (not isinstance(data, Empty)):
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
h5py/h5d.pyx in h5py.h5d.create()
ValueError: Unable to create dataset (name already exists)
i want to save each epoch as a checkpoint two weeks back back without any any error each checkpoint will save as a checkpoint but suddenly now getting error
### Standalone code to reproduce the issue
```shell
import matplotlib.pyplot as plt
from tensorflow.keras.callbacks import Callback
import os
checkpoint_dir = '/model/checkpoints_m_1'
if not os.path.exists(checkpoint_dir):
os.makedirs(checkpoint_dir)
from tensorflow.keras.callbacks import EarlyStopping
early_stop = EarlyStopping(monitor='val_loss', patience=3)
# Set up the model checkpoint callback
checkpoint_call = ModelCheckpoint(filepath=checkpoint_dir+"/checkpoint_{epoch}.hdf5",
monitor='val_loss',
save_best_only=True,
save_weights_only=False,
mode='min',
save_freq='epoch')
transformer.fit(train_ds, epochs=EPOCHS, validation_data=val_ds,batch_size=BATCH_SIZE,callbacks=[early_stop, checkpoint_call)
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61813/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61813/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61812 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61812/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61812/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61812/events | https://github.com/tensorflow/tensorflow/issues/61812 | 1,886,905,643 | I_kwDOArmXAs5wd-Ur | 61,812 | Building TF Lite C++ static library for iOS | {
"login": "harufumigithub",
"id": 61513032,
"node_id": "MDQ6VXNlcjYxNTEzMDMy",
"avatar_url": "https://avatars.githubusercontent.com/u/61513032?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harufumigithub",
"html_url": "https://github.com/harufumigithub",
"followers_url": "https://api.github.com/users/harufumigithub/followers",
"following_url": "https://api.github.com/users/harufumigithub/following{/other_user}",
"gists_url": "https://api.github.com/users/harufumigithub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harufumigithub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harufumigithub/subscriptions",
"organizations_url": "https://api.github.com/users/harufumigithub/orgs",
"repos_url": "https://api.github.com/users/harufumigithub/repos",
"events_url": "https://api.github.com/users/harufumigithub/events{/privacy}",
"received_events_url": "https://api.github.com/users/harufumigithub/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
}
] | open | false | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Currently we only support building the .dylib for iOS, as such I'll consider this as a feature request.\r\n\r\nHi @terryheo, can you please take a look? Thanks."
] | 2023-09-08T04:16:50 | 2023-09-11T22:58:10 | null | NONE | null | null | null | Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
1. It must be a bug, a feature request, or a significant problem with the
documentation (for small docs fixes please send a PR instead).
2. The form below must be filled out.
3. It shouldn't be a TensorBoard issue. Those go
[here](https://github.com/tensorflow/tensorboard/issues).
**Here's why we have that policy**: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
------------------------
### System information
- **Have I written custom code (as opposed to using a stock example script
provided in TensorFlow)**:
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: MacOS M1 Version 13.2.1
- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device**:
- **TensorFlow installed from (source or binary)**: master branch of https://github.com/tensorflow/tensorflow/tree/master Sept 7, 2023
- **TensorFlow version (use command below)**: TensorFlow 2.14.0
- **Python version**: Python 3.9.6
- **Bazel version (if compiling from source)**: bazel 6.1.0
- **GCC/Compiler version (if compiling from source)**:
- **CUDA/cuDNN version**:
- **GPU model and memory**: 8GB
- **Exact command to reproduce**: bazel build --config=ios_fat -c opt --cxxopt=--std=c++17 \
//tensorflow/lite:libtensorflowlite.so
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
```bash
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
```
### Describe the problem
Currect tensorflow only generates dynamic or static framework and does not static library for iOS. I need to integrate tensorflow with c++ code in WebAssembly without framework so that I could have same source code for Android and iOS build.
### Source code / logs
bazel build --config=ios_fat -c opt --cxxopt=--std=c++17 \
//tensorflow/lite:libtensorflowlite.a
AND
bazel build --config=ios_fat -c opt --cxxopt=--std=c++17
//tensorflow/lite/c:libtensorflowlite.a
Similar issue to https://github.com/tensorflow/tensorflow/issues/40438 but this source are outdated and does not apply to current master source.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61812/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61812/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61811 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61811/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61811/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61811/events | https://github.com/tensorflow/tensorflow/issues/61811 | 1,886,587,420 | I_kwDOArmXAs5wcwoc | 61,811 | tf.data.Dataset.list_files(): You must feed a value for placeholder tensor | {
"login": "thierryherrmann",
"id": 249455,
"node_id": "MDQ6VXNlcjI0OTQ1NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/249455?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thierryherrmann",
"html_url": "https://github.com/thierryherrmann",
"followers_url": "https://api.github.com/users/thierryherrmann/followers",
"following_url": "https://api.github.com/users/thierryherrmann/following{/other_user}",
"gists_url": "https://api.github.com/users/thierryherrmann/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thierryherrmann/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thierryherrmann/subscriptions",
"organizations_url": "https://api.github.com/users/thierryherrmann/orgs",
"repos_url": "https://api.github.com/users/thierryherrmann/repos",
"events_url": "https://api.github.com/users/thierryherrmann/events{/privacy}",
"received_events_url": "https://api.github.com/users/thierryherrmann/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"
}
] | 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/61811\">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/61811\">No</a>\n",
"Closed as a duplicate of https://github.com/tensorflow/tensorflow/issues/60833 \r\nThis is actually not specific to `tf.data.Dataset.list_files()` but to dataset iteration. \r\nA simple program to show the problem:\r\n```python\r\nd = tf.data.Dataset.from_tensor_slices(tf.range(10))\r\nnext(iter(d)) # logs appear when iterating on the dataset\r\n```\r\nprints this:\r\n```\r\n2023-09-08 09:13:55.788352: I tensorflow/core/common_runtime/executor.cc:1209] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype int32 and shape [10]\r\n```\r\nIf you try the above in colab, the log can be seen with colab -> Runtime -> View Runtime Logs"
] | 2023-09-07T21:31:59 | 2023-09-08T13:27:43 | 2023-09-08T13:24:47 | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.12.0-rc1-12-g0db597d0d75 2.12.0
### Custom code
No
### OS platform and distribution
Ubuntu 20.04.5 LTS
### Mobile device
_No response_
### Python version
3.8.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Reading a dataset obtained with `tf.data.Dataset.list_files()` prints incomprehensible warnings.
Create two files:
```bash
touch a.txt
touch b.txt
```
Run this python program:
```python
import tensorflow as tf
dataset = tf.data.Dataset.list_files(['a.txt', 'b.txt'])
for f in dataset:
print(f)
```
Prints some incomprehensible warnings:
```
tf.Tensor(b'b.txt', shape=(), dtype=string)
tf.Tensor(b'a.txt', shape=(), dtype=string)
2023-09-07 17:19:04.634978: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype string and shape [2]
[[{{node Placeholder/_0}}]]
2023-09-07 17:19:04.635273: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype string and shape [2]
[[{{node Placeholder/_0}}]]
```
This is a ~duplicate of https://github.com/tensorflow/tensorflow/issues/41648 that was marked as resolved 3 years ago.
### Standalone code to reproduce the issue
```shell
With tensorflow==2.12.0:
https://colab.research.google.com/drive/1_kjUH6BzcLnlM4rc8mY7JcnhE5NdaRGy?usp=sharing
No warning with tensorflow==2.11.1
https://colab.research.google.com/drive/1QhatrE7hdJIxIUAIrYw5yDPQ50SeqFrI?usp=sharing
```
### Relevant log output
```shell
2023-09-07 17:19:04.635273: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype string and shape [2]
[[{{node Placeholder/_0}}]]
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61811/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61811/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61810 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61810/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61810/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61810/events | https://github.com/tensorflow/tensorflow/pull/61810 | 1,886,474,137 | PR_kwDOArmXAs5Z0EBj | 61,810 | r2.14 cherry-pick: 70ee782d213 "[XLA:CPU] Refactor CpuExecutable so LLVM errors can be propagated" | {
"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-09-07T19:43:47 | 2023-09-08T18:30:13 | 2023-09-08T18:30:11 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61810",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61810",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61810.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61810.patch",
"merged_at": "2023-09-08T18:30:11"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/70ee782d2131754b45cf29c08cb717c8714046b8 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61810/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61810/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61809 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61809/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61809/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61809/events | https://github.com/tensorflow/tensorflow/pull/61809 | 1,886,365,420 | PR_kwDOArmXAs5ZzsYP | 61,809 | Support NDK r25 | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"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-09-07T18:09:32 | 2023-09-07T18:24:45 | 2023-09-07T18:16:53 | MEMBER | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61809",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61809",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61809.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61809.patch",
"merged_at": null
} | Bazel NDK r25 supports needs to use the new Starlark rules of [https://github.com/bazelbuild/rules_android_ndk](https://www.google.com/url?sa=D&q=https%3A%2F%2Fgithub.com%2Fbazelbuild%2Frules_android_ndk).
This PR checks NDK toolchain version and generates proper rules. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61809/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61809/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61808 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61808/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61808/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61808/events | https://github.com/tensorflow/tensorflow/issues/61808 | 1,885,455,449 | I_kwDOArmXAs5wYcRZ | 61,808 | Support mathematical operations for boolean tensors in tensorflow like in numpy | {
"login": "VachanVY",
"id": 109357590,
"node_id": "U_kgDOBoSqFg",
"avatar_url": "https://avatars.githubusercontent.com/u/109357590?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/VachanVY",
"html_url": "https://github.com/VachanVY",
"followers_url": "https://api.github.com/users/VachanVY/followers",
"following_url": "https://api.github.com/users/VachanVY/following{/other_user}",
"gists_url": "https://api.github.com/users/VachanVY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/VachanVY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VachanVY/subscriptions",
"organizations_url": "https://api.github.com/users/VachanVY/orgs",
"repos_url": "https://api.github.com/users/VachanVY/repos",
"events_url": "https://api.github.com/users/VachanVY/events{/privacy}",
"received_events_url": "https://api.github.com/users/VachanVY/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": 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 | [
"can you please explain what sort of problem is this, because the matrix multiplication of 2 tf.constants having bool type is not possible.\r\nif possible please tell me whats wrong because i'm new to opensource",
"hey please tell me what i did is correct or not,\r\n`a=tnp.array([True, False])\r\n\r\nb=tnp.array([True, True])\r\n\r\nc=tf.cast(a,tf.float32)\r\n\r\nd=tf.cast(b,tf.float32)\r\n\r\nmulti=c*d\r\n\r\ndiv=c/d\r\n\r\nback_to_bool=tf.cast(multi,tf.bool)\r\n\r\nback_to_bool,div`",
"Hey please assign this to me",
"> hey please tell me what i did is correct or not, `a=tnp.array([True, False])\r\n> \r\n> b=tnp.array([True, True])\r\n> \r\n> c=tf.cast(a,tf.float32)\r\n> \r\n> d=tf.cast(b,tf.float32)\r\n> \r\n> multi=c*d\r\n> \r\n> div=c/d\r\n> \r\n> back_to_bool=tf.cast(multi,tf.bool)\r\n> \r\n> back_to_bool,div`\r\n\r\nThis can be done but I want direct support for operations with bool like on Numpy\r\n```python\r\n>>> np.array([True, False])*np.array([True, True])\r\narray([ True, False])\r\n>>> np.array([True, False])/np.array([True, True])\r\narray([1., 0.])\r\n```\r\nwhen the same is done with tf tensors, I get an error as in the issue.\r\nI want support for tf tensors like there is in Numpy.",
"Convert Boolean to Integer: Convert the boolean tensors to integer tensors (True to 1 and False to 0) before performing arithmetic operations.\r\n\r\nPerform the Operation: Multiply the integer tensors.\r\n\r\nConvert Back to Boolean (if needed): If you want the result in boolean form, convert the resulting integer tensor back to boolean.\r\n\r\n```python\r\nimport tensorflow as tf\r\n\r\n# Convert boolean tensors to integer tensors\r\ntensor1 = tf.cast(tf.constant([True, False]), tf.int32)\r\ntensor2 = tf.cast(tf.constant([True, True]), tf.int32)\r\n\r\n# Multiply the integer tensors\r\nresult = tensor1 * tensor2\r\n\r\n# Convert the result back to boolean\r\nbool_result = tf.cast(result, tf.bool)\r\n\r\nprint(bool_result.numpy()) # Output: [ True False]\r\n\r\n``` ",
"Hi @VachanVY ,\r\n\r\nTensorflow not supporting mathematical operations on boolean tensors. Any ways one can use tf.cast() to convert the boolean Tensors into numerics of required `dtype`. IMO, there is some flexibility here to convert into Tensors of user choice.\r\n\r\nAlso if atleast one item of the Tensor has any numeric dtype, then tf.experimental.numpy can able to convert remaining bool dtypes into given input numeric dtype which covers part of the case.\r\n\r\n```\r\nx = tnp.array([1,True, False])\r\nx # outputs: <tf.Tensor: shape=(3,), dtype=int64, numpy=array([1, 1, 0])>\r\nx = tnp.array([1.0,True, False])\r\nx # outputs:<tf.Tensor: shape=(3,), dtype=float64, numpy=array([1., 1., 0.])>\r\n```\r\n\r\n\r\nIn Numpy if you take division of bool it will give float64 and this needs to be again converted into desired dtype.\r\n\r\nI think this is intentionally left to the users choice as multiple conversions may affect performance.\r\n\r\nIf you have come up with a use case of demonstrating the advantage of this feature or any problem with current behaviour without this feature then it might add more weightage.\r\n\r\nThanks!\r\n",
"Hi @SuryanarayanaY, (sorry for the late response), there is as such no big advantage in adding that feature, it just makes the code less lengthy (or clean):\r\n\r\n```python\r\n# without feature \r\n>>> tf.cast(tf.cast(tf.constant([True, False]), tf.int32)* tf.cast(tf.constant([True, True]), tf.int32), bool)\r\n<tf.Tensor: shape=(2,), dtype=bool, numpy=array([ True, False])>\r\n# with the feature\r\n>>> tf.constant([True, False])*tf.constant([True, True])\r\n<tf.Tensor: shape=(2,), dtype=bool, numpy=array([ True, False])>\r\n```\r\n\r\nAnd I think it's good to add the feature because `numpy` has the feature and it is good to have `numpy`-like features in `tensorflow` or at least in `tensorflow.experimental.numpy` as `tensorflow` tensors supports operations with `numpy` arrays.",
"@VachanVY , We are reviewing internally and will update with outcome.\r\n",
"Hi @VachanVY thanks for raising the issue. We do plan to add the feature in TF-NumPy. However it's a low priority given our current bandwidth. We are open to OSS contributions though."
] | 2023-09-07T09:13:10 | 2023-09-27T23:35:29 | null | NONE | null | null | null | ### Issue type
bug/support
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.13.0
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
3.11.4
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
```python
>>>import tensorflow as tf
>>>import numpy as np
>>>tnp = tf.experimental.numpy
>>>tf.constant([True, False])*tf.constant([True, True]) # same error for tnp.array([True, False])*tnp.array([True, True])
InvalidArgumentError Traceback (most recent call last)
[<ipython-input-5-5eb244ee10ef>](https://localhost:8080/#) in <cell line: 1>()
----> 1 tnp.array([True, False])*tnp.array([True, True])
1 frames
[/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/ops.py](https://localhost:8080/#) in raise_from_not_ok_status(e, name)
5885 def raise_from_not_ok_status(e, name) -> NoReturn:
5886 e.message += (" name: " + str(name if name is not None else ""))
-> 5887 raise core._status_to_exception(e) from None # pylint: disable=protected-access
5888
5889
InvalidArgumentError: Value for attr 'T' of bool is not in the list of allowed values: bfloat16, half, float, double, uint8, int8, uint16, int16, int32, uint32, uint64, int64, complex64, complex128
; NodeDef: {{node Mul}}; Op<name=Mul; signature=x:T, y:T -> z:T; attr=T:type,allowed=[DT_BFLOAT16, DT_HALF, DT_FLOAT, DT_DOUBLE, DT_UINT8, DT_INT8, DT_UINT16, DT_INT16, DT_INT32, DT_UINT32, DT_UINT64, DT_INT64, DT_COMPLEX64, DT_COMPLEX128]; is_commutative=true> [Op:Mul] name:
>>> #but for numpy arrays this is not the case
>>> np.array([True, False])*np.array([True, True])
array([ True, False])
>>> np.array([True, False])/np.array([True, True])
array([1., 0.])
```
### Standalone code to reproduce the issue
[Google Colab link](https://colab.research.google.com/drive/1y41vpFs6Cd4NHmSY6IRmU53PXgl_SAFE?usp=sharing)
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61808/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61808/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61807 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61807/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61807/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61807/events | https://github.com/tensorflow/tensorflow/pull/61807 | 1,885,305,208 | PR_kwDOArmXAs5ZwE1I | 61,807 | [Linaro:ARM_CI] Remove mention of XLA unit tests | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 703812914,
"node_id": "MDU6TGFiZWw3MDM4MTI5MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/kokoro:force-run",
"name": "kokoro:force-run",
"color": "1d76db",
"default": false,
"description": "Tests on submitted change"
},
{
"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 | [] | 2023-09-07T07:44:52 | 2023-09-07T16:35:00 | 2023-09-07T16:34:59 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61807",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61807",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61807.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61807.patch",
"merged_at": "2023-09-07T16:34:59"
} | The XLA code is no longer present in the TensorFlow tree so need to remove mention of the XLA unit tests from the skip list | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61807/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61807/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61806 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61806/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61806/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61806/events | https://github.com/tensorflow/tensorflow/issues/61806 | 1,885,144,143 | I_kwDOArmXAs5wXQRP | 61,806 | ADD Suppport for VEDV (https://github.com/yunielrc/vedv) | {
"login": "yunielrc",
"id": 28462092,
"node_id": "MDQ6VXNlcjI4NDYyMDky",
"avatar_url": "https://avatars.githubusercontent.com/u/28462092?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yunielrc",
"html_url": "https://github.com/yunielrc",
"followers_url": "https://api.github.com/users/yunielrc/followers",
"following_url": "https://api.github.com/users/yunielrc/following{/other_user}",
"gists_url": "https://api.github.com/users/yunielrc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yunielrc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yunielrc/subscriptions",
"organizations_url": "https://api.github.com/users/yunielrc/orgs",
"repos_url": "https://api.github.com/users/yunielrc/repos",
"events_url": "https://api.github.com/users/yunielrc/events{/privacy}",
"received_events_url": "https://api.github.com/users/yunielrc/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"
}
] | 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 | [] | 2023-09-07T05:31:36 | 2023-09-11T13:30:44 | 2023-09-11T13:30:44 | NONE | null | null | null | Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
1. It must be a bug, a feature request, or a significant problem with the
documentation (for small docs fixes please send a PR instead).
2. The form below must be filled out.
3. It shouldn't be a TensorBoard issue. Those go
[here](https://github.com/tensorflow/tensorboard/issues).
**Here's why we have that policy**: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
------------------------
### System information
- **Have I written custom code (as opposed to using a stock example script
provided in TensorFlow)**:
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**:
- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device**:
- **TensorFlow installed from (source or binary)**:
- **TensorFlow version (use command below)**:
- **Python version**:
- **Bazel version (if compiling from source)**:
- **GCC/Compiler version (if compiling from source)**:
- **CUDA/cuDNN version**:
- **GPU model and memory**:
- **Exact command to reproduce**:
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
```bash
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
```
### Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
### Source code / 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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61806/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61806/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61805 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61805/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61805/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61805/events | https://github.com/tensorflow/tensorflow/pull/61805 | 1,885,060,897 | PR_kwDOArmXAs5ZvQoo | 61,805 | Bugfix To Build | {
"login": "pcoramasionwu",
"id": 84868214,
"node_id": "MDQ6VXNlcjg0ODY4MjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/84868214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pcoramasionwu",
"html_url": "https://github.com/pcoramasionwu",
"followers_url": "https://api.github.com/users/pcoramasionwu/followers",
"following_url": "https://api.github.com/users/pcoramasionwu/following{/other_user}",
"gists_url": "https://api.github.com/users/pcoramasionwu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pcoramasionwu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pcoramasionwu/subscriptions",
"organizations_url": "https://api.github.com/users/pcoramasionwu/orgs",
"repos_url": "https://api.github.com/users/pcoramasionwu/repos",
"events_url": "https://api.github.com/users/pcoramasionwu/events{/privacy}",
"received_events_url": "https://api.github.com/users/pcoramasionwu/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 | [
"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/61805/checks?check_run_id=16568173616) 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-09-07T03:41:08 | 2023-09-12T03:19:34 | 2023-09-07T03:41:35 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61805",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61805",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61805.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61805.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61805/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61805/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61804 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61804/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61804/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61804/events | https://github.com/tensorflow/tensorflow/pull/61804 | 1,885,034,645 | PR_kwDOArmXAs5ZvLJu | 61,804 | Update build rule to support Android NDK r25 | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"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 | [
"FYI, it's still WIP.",
"Closed by https://github.com/tensorflow/tensorflow/pull/61809"
] | 2023-09-07T03:01:50 | 2023-09-07T18:33:06 | 2023-09-07T04:02:40 | MEMBER | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61804",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61804",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61804.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61804.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61804/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61804/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61803 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61803/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61803/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61803/events | https://github.com/tensorflow/tensorflow/pull/61803 | 1,884,757,907 | PR_kwDOArmXAs5ZuQVf | 61,803 | Update version numbers for TensorFlow 2.14.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-09-06T21:10:07 | 2023-09-06T21:19:59 | 2023-09-06T21:19:59 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61803",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61803",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61803.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61803.patch",
"merged_at": "2023-09-06T21:19:59"
} | 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: 14 -> 14
Patch: 0 -> 0
No lingering old version strings "2.14.0-rc1" found in source directory
"tensorflow/". Good.
No lingering old version strings "2.14.0rc1" found in source directory
"tensorflow/". Good.
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61803/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61803/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61802 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61802/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61802/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61802/events | https://github.com/tensorflow/tensorflow/pull/61802 | 1,884,286,226 | PR_kwDOArmXAs5ZspU7 | 61,802 | Add clang-tidy and upgrade clang-format in docker | {
"login": "MichaelHudgins",
"id": 30155094,
"node_id": "MDQ6VXNlcjMwMTU1MDk0",
"avatar_url": "https://avatars.githubusercontent.com/u/30155094?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MichaelHudgins",
"html_url": "https://github.com/MichaelHudgins",
"followers_url": "https://api.github.com/users/MichaelHudgins/followers",
"following_url": "https://api.github.com/users/MichaelHudgins/following{/other_user}",
"gists_url": "https://api.github.com/users/MichaelHudgins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MichaelHudgins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MichaelHudgins/subscriptions",
"organizations_url": "https://api.github.com/users/MichaelHudgins/orgs",
"repos_url": "https://api.github.com/users/MichaelHudgins/repos",
"events_url": "https://api.github.com/users/MichaelHudgins/events{/privacy}",
"received_events_url": "https://api.github.com/users/MichaelHudgins/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 | [
"Hi @MichaelHudgins Can you please resolve conflicts? Thank you!"
] | 2023-09-06T15:40:42 | 2023-09-28T17:07:16 | 2023-09-28T17:07:10 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61802",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61802",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61802.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61802.patch",
"merged_at": null
} | Add clang-tidy to the sig build image and upgrade clang format to match the version of the other clang tools | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61802/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61802/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61801 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61801/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61801/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61801/events | https://github.com/tensorflow/tensorflow/issues/61801 | 1,884,055,692 | I_kwDOArmXAs5wTGiM | 61,801 | Linux tensorflow build from source: bash failed genrule-setup.sh has carriage return | {
"login": "tomeeeS",
"id": 8675771,
"node_id": "MDQ6VXNlcjg2NzU3NzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8675771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomeeeS",
"html_url": "https://github.com/tomeeeS",
"followers_url": "https://api.github.com/users/tomeeeS/followers",
"following_url": "https://api.github.com/users/tomeeeS/following{/other_user}",
"gists_url": "https://api.github.com/users/tomeeeS/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomeeeS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomeeeS/subscriptions",
"organizations_url": "https://api.github.com/users/tomeeeS/orgs",
"repos_url": "https://api.github.com/users/tomeeeS/repos",
"events_url": "https://api.github.com/users/tomeeeS/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomeeeS/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": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "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 @tomeeeS ,\r\n\r\nCould you please provide build command along with the bazel and compiler details used for build?\r\n\r\nThanks!",
"@SuryanarayanaY \r\nUpdated OP, excuse me for being sloppy",
"Hi, \r\n\r\nCould you please Test against the 2.14 version and Master and let us know the outcome. 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.",
"I believe I overcame it with `git config --global core.autocrlf true` when checking out tf. Thanks.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61801\">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/61801\">No</a>\n"
] | 2023-09-06T13:46:00 | 2023-10-26T08:35:17 | 2023-10-26T08:35:15 | NONE | null | null | null | ### Issue type
Documentation Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.13
### Custom code
Yes
### OS platform and distribution
Linux
### Mobile device
_No response_
### Python version
3.10
### Bazel version
5.3.0
### GCC/compiler version
LLVM = CLang = 16
### CUDA/cuDNN version
CPU only
### GPU model and memory
N/A
### Current behavior?
bazel build fails with "bash failed: error executing command", "/bin/bash: line 1: $'\r': command not found"
(bash failed, genrule-setup.sh has carriage return (windows line endings))
modifying this .sh file does not work, because bazel won't even start the build, saying that file is modified, it might be corrupt.
Docs need to tell us we should check out tf repo after
`git config --global core.autocrlf input`
Thanks.
### Standalone code to reproduce the issue
```shell
# git config --global core.autocrlf input # very important!!! otherwise your bazel build will fail, because an invoked shell script will have Windows line endings.
# git config --global core.eol lf
git clone https://github.com/tensorflow/tensorflow.git &
cd tensorflow
git checkout -b r2.13 origin/r2.13
apt install python3.10-venv
cd ..
python3 -m venv tf_venv
tf_venv/bin/pip install -U pip numpy wheel packaging requests opt_einsum
tf_venv/bin/pip install -U keras_preprocessing --no-deps
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64
mv bazelisk-linux-amd64 bazel
chmod +x bazel
mv -v bazel /usr/local/bin
#install clang-16
cd tensorflow
../tf_venv/bin/python3 configure.py # (dl clang: N, opti flag: -msse4.1)
bazel build --local_ram_resources=2048 --jobs=4 --verbose_failures //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61801/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61801/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61800 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61800/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61800/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61800/events | https://github.com/tensorflow/tensorflow/issues/61800 | 1,883,862,873 | I_kwDOArmXAs5wSXdZ | 61,800 | Incorrect behaviour of `tf.nn.sigmoid` on complex inputs | {
"login": "jshepherd01",
"id": 72616151,
"node_id": "MDQ6VXNlcjcyNjE2MTUx",
"avatar_url": "https://avatars.githubusercontent.com/u/72616151?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jshepherd01",
"html_url": "https://github.com/jshepherd01",
"followers_url": "https://api.github.com/users/jshepherd01/followers",
"following_url": "https://api.github.com/users/jshepherd01/following{/other_user}",
"gists_url": "https://api.github.com/users/jshepherd01/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jshepherd01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jshepherd01/subscriptions",
"organizations_url": "https://api.github.com/users/jshepherd01/orgs",
"repos_url": "https://api.github.com/users/jshepherd01/repos",
"events_url": "https://api.github.com/users/jshepherd01/events{/privacy}",
"received_events_url": "https://api.github.com/users/jshepherd01/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 | [
"@sachinprasadhs I was able to replicate the issue on colab using TF v2.13, tf-nightly. Please find the [gist](https://colab.research.google.com/gist/sushreebarsa/ea440d43307ea574e87511ad26ac5c12/61800.ipynb) here for reference. Thank you!",
"The same issue happens on `tf.Tensor((-inf+0j), shape=(), dtype=complex128)`, the result is `1+0j` instead of 0.\r\nPlease see the code below.\r\n```python\r\ninput = tf.constant(-np.inf, dtype='complex128')\r\nprint(input) # tf.Tensor((-inf+0j), shape=(), dtype=complex128)\r\n\r\nout = tf.nn.sigmoid(input)\r\nprint(out) # tf.Tensor((1+0j), shape=(), dtype=complex128)\r\n```"
] | 2023-09-06T11:59:27 | 2024-03-14T15:15:54 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
tf v1.12.1-96406-gfa4d29bfef8 2.14.0-dev20230706
### Custom code
Yes
### OS platform and distribution
WSL Ubuntu 20.04.5 LTS
### 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.nn.sigmoid` gives incorrect values for complex numbers with large, negative real parts (which should map to within a rounding error of 0). For example, when `x = -709-1j` (`complex128`) I expect `tf.nn.sigmoid(x) = 0`, but instead `tf.nn.sigmoid(x) = 1`.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
x = tf.constant([-709-1j], dtype=tf.complex128)
tf.nn.sigmoid(x) # <tf.Tensor: shape=(1,), dtype=complex128, numpy=array([1.+0.j])>
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61800/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61800/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61799 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61799/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61799/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61799/events | https://github.com/tensorflow/tensorflow/pull/61799 | 1,883,115,153 | PR_kwDOArmXAs5Zopnk | 61,799 | [oneDNN] update sqlite from 3.40.1 to 3.43.0 | {
"login": "justkw",
"id": 32109466,
"node_id": "MDQ6VXNlcjMyMTA5NDY2",
"avatar_url": "https://avatars.githubusercontent.com/u/32109466?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/justkw",
"html_url": "https://github.com/justkw",
"followers_url": "https://api.github.com/users/justkw/followers",
"following_url": "https://api.github.com/users/justkw/following{/other_user}",
"gists_url": "https://api.github.com/users/justkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/justkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/justkw/subscriptions",
"organizations_url": "https://api.github.com/users/justkw/orgs",
"repos_url": "https://api.github.com/users/justkw/repos",
"events_url": "https://api.github.com/users/justkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/justkw/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": 703812914,
"node_id": "MDU6TGFiZWw3MDM4MTI5MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/kokoro:force-run",
"name": "kokoro:force-run",
"color": "1d76db",
"default": false,
"description": "Tests on submitted change"
},
{
"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-09-06T03:31:16 | 2023-09-15T02:46:25 | 2023-09-15T02:46:24 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61799",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61799",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61799.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61799.patch",
"merged_at": "2023-09-15T02:46:24"
} | sqlite upgrade to 3.43.0 which has CVE fixes. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61799/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61799/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61798 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61798/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61798/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61798/events | https://github.com/tensorflow/tensorflow/pull/61798 | 1,883,068,514 | PR_kwDOArmXAs5ZofYs | 61,798 | [TFLite] Fix cmake build kernel test fail when `-DTFLITE_ENABLE_GPU=OFF` | {
"login": "bhbruce",
"id": 55973122,
"node_id": "MDQ6VXNlcjU1OTczMTIy",
"avatar_url": "https://avatars.githubusercontent.com/u/55973122?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bhbruce",
"html_url": "https://github.com/bhbruce",
"followers_url": "https://api.github.com/users/bhbruce/followers",
"following_url": "https://api.github.com/users/bhbruce/following{/other_user}",
"gists_url": "https://api.github.com/users/bhbruce/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bhbruce/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bhbruce/subscriptions",
"organizations_url": "https://api.github.com/users/bhbruce/orgs",
"repos_url": "https://api.github.com/users/bhbruce/repos",
"events_url": "https://api.github.com/users/bhbruce/events{/privacy}",
"received_events_url": "https://api.github.com/users/bhbruce/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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 | [
"This PR is the revised version of https://github.com/tensorflow/tensorflow/pull/61473.\r\n@grantjensen "
] | 2023-09-06T02:43:27 | 2023-09-11T23:21:51 | 2023-09-11T23:21:51 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61798",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61798",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61798.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61798.patch",
"merged_at": "2023-09-11T23:21:50"
} | - Problem:
Using CMake to build the TFLite kernel test will fail in linking stage when `-DTFLITE_ENABLE_GPU=OFF`
- Log:
```
ld: libtensorflow-lite-test-base.a(op_version.cc.o): in function `.LBB1_18':
op_version.cc:(.text._ZN6tflite15UpdateOpVersionEPh+0x14c): undefined reference to `tflite::GetOpSignature(tflite::OperatorCode const*, tflite::Operator const*, tflite::SubGraph const*, tflite::Model const*)'
clang++: rror: linker command failed with exit code 1 (use -v to see invocation)
```
- Solution:
Add `versioning/op_signature.cc` to TEST_FRAMEWORK_SRC if `-DTFLITE_ENABLE_GPU=OFF`. `versioning/op_version.cc` depends on `versioning/op_signature.cc` because of using GetOpSignature().
We don't need to add `versioning/op_signature.cc` to TEST_FRAMEWORK_SRC if `-DTFLITE_ENABLE_GPU=ON`. Because `versioning/op_signature.cc` is appended in `TFLITE_DELEGATES_GPU_SRCS`, it makes `tensorflow-lite.a` define `GetOpSignature`. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61798/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61798/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61797 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61797/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61797/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61797/events | https://github.com/tensorflow/tensorflow/issues/61797 | 1,882,971,014 | I_kwDOArmXAs5wO9uG | 61,797 | bazel test failed with some ctest | {
"login": "south-ocean",
"id": 30514703,
"node_id": "MDQ6VXNlcjMwNTE0NzAz",
"avatar_url": "https://avatars.githubusercontent.com/u/30514703?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/south-ocean",
"html_url": "https://github.com/south-ocean",
"followers_url": "https://api.github.com/users/south-ocean/followers",
"following_url": "https://api.github.com/users/south-ocean/following{/other_user}",
"gists_url": "https://api.github.com/users/south-ocean/gists{/gist_id}",
"starred_url": "https://api.github.com/users/south-ocean/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/south-ocean/subscriptions",
"organizations_url": "https://api.github.com/users/south-ocean/orgs",
"repos_url": "https://api.github.com/users/south-ocean/repos",
"events_url": "https://api.github.com/users/south-ocean/events{/privacy}",
"received_events_url": "https://api.github.com/users/south-ocean/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1205615612,
"node_id": "MDU6TGFiZWwxMjA1NjE1NjEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux",
"name": "subtype: ubuntu/linux",
"color": "b619ea",
"default": false,
"description": "Ubuntu/Linux Build/Installation Issues"
},
{
"id": 5206407904,
"node_id": "LA_kwDOArmXAs8AAAABNlN64A",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12",
"name": "TF 2.12",
"color": "c5def5",
"default": false,
"description": "For issues related to Tensorflow 2.12"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"It looks like it's caused by another issue and can't be executed directly。",
"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/61797\">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/61797\">No</a>\n"
] | 2023-09-06T01:05:08 | 2023-09-07T02:02:56 | 2023-09-07T02:02:54 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf2.12
### Custom code
Yes
### OS platform and distribution
centos7.6
### Mobile device
_No response_
### Python version
3.9
### Bazel version
5.3.0
### GCC/compiler version
9.3.1
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
After compiling tensorflow based on the source code, bazel test is executed for unit testing, some test items are passed, but there are many failures, and the reasons for the error are as follows
So I want to know if I'm executing the statement incorrectly, how should I set it up?
bazel test -c opt --config=cuda --test_sharding_strategy=disabled //tensorflow/core/kernels/...
output information:
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //tensorflow/core/kernels/image:resize_ops_test_gpu


### Standalone code to reproduce the issue
```shell
bazel test -c opt --config=cuda --test_sharding_strategy=disabled //tensorflow/core/kernels/...
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61797/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61797/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61796 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61796/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61796/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61796/events | https://github.com/tensorflow/tensorflow/issues/61796 | 1,882,822,560 | I_kwDOArmXAs5wOZeg | 61,796 | Uncompliant tflite model when converting "MultiHeadAttention" layer | {
"login": "kobygold",
"id": 6744658,
"node_id": "MDQ6VXNlcjY3NDQ2NTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/6744658?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kobygold",
"html_url": "https://github.com/kobygold",
"followers_url": "https://api.github.com/users/kobygold/followers",
"following_url": "https://api.github.com/users/kobygold/following{/other_user}",
"gists_url": "https://api.github.com/users/kobygold/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kobygold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kobygold/subscriptions",
"organizations_url": "https://api.github.com/users/kobygold/orgs",
"repos_url": "https://api.github.com/users/kobygold/repos",
"events_url": "https://api.github.com/users/kobygold/events{/privacy}",
"received_events_url": "https://api.github.com/users/kobygold/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 2671351731,
"node_id": "MDU6TGFiZWwyNjcxMzUxNzMx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ModelOptimizationToolkit",
"name": "ModelOptimizationToolkit",
"color": "BFD629",
"default": false,
"description": "TF Model Optimization Toolkit"
},
{
"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": "abattery",
"id": 3203059,
"node_id": "MDQ6VXNlcjMyMDMwNTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3203059?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abattery",
"html_url": "https://github.com/abattery",
"followers_url": "https://api.github.com/users/abattery/followers",
"following_url": "https://api.github.com/users/abattery/following{/other_user}",
"gists_url": "https://api.github.com/users/abattery/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abattery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abattery/subscriptions",
"organizations_url": "https://api.github.com/users/abattery/orgs",
"repos_url": "https://api.github.com/users/abattery/repos",
"events_url": "https://api.github.com/users/abattery/events{/privacy}",
"received_events_url": "https://api.github.com/users/abattery/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "abattery",
"id": 3203059,
"node_id": "MDQ6VXNlcjMyMDMwNTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3203059?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abattery",
"html_url": "https://github.com/abattery",
"followers_url": "https://api.github.com/users/abattery/followers",
"following_url": "https://api.github.com/users/abattery/following{/other_user}",
"gists_url": "https://api.github.com/users/abattery/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abattery/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abattery/subscriptions",
"organizations_url": "https://api.github.com/users/abattery/orgs",
"repos_url": "https://api.github.com/users/abattery/repos",
"events_url": "https://api.github.com/users/abattery/events{/privacy}",
"received_events_url": "https://api.github.com/users/abattery/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 @kobygold, Can you help me out my providing the code you use to \r\n\r\n> when trying to run this model on [tflite-micro](https://github.com/tensorflow/tflite-micro) engine (C/C++ engine) it fail with assert!\r\n\r\nI've tried reproducing on my end, with your model and the hello-world micro example but I am running into a different issue, b/c I want to actually resolve your issue and not my own, if you can help me short-cut the process that'll be great. A minimally reproducible example would be best. \r\n\r\nThe reason I want to reproduce is I am unsure if that assert is the same as expecting the weights to have a 0 zero-point. Though assymetric_quantization == false and a non-zero zero-point seems inconsistent at the very least for the FC layer. If we can reproduce we can be 100% sure this is an issue. Thanks for your help.",
"Dear @pkgoogle,\r\nthanks for your help!\r\n\r\ntflite-micro gave us a bit of hard time as well at the beginning, but now we have it working flawlessly.\r\nWe are running many models on that engine without issues, so I can tell for sure that this issue is due to the asymmetric quantization of the weights. We will try to create a minimally reproducible example code and send you, but it may take a day or two to prepare... In the meanwhile I can show you a screenshot from my visual studio environment with this assert, and you can see that the failure is exactly on the zero-point = -18 (and can also see the output zero-point = 28, matching the model, which is OK):\r\n\r\n\r\n\r\n\r\n\r\nUntil our reproducible code is ready it would be great if you could take a look at the tflite converter code for this \"MultiHeadAttention\" layer, to see how difficult it would be to fix the quantization of those tensors.\r\n\r\nThanks,\r\nKoby",
"Hi @pkgoogle ,\r\nWe've created a fork of the tflite-micro repo on github with this model inside. Here is the code:\r\nhttps://github.com/kslavka/tflite-micro-asymmetric\r\n\r\nTo build use:\r\n`make -f tensorflow/lite/micro/tools/make/Makefile network_tester_test\r\n`\r\n\r\nTo run use:\r\n`./gen/linux_x86_64_default/bin/network_tester_test\r\n`\r\n\r\nI hope this helps.\r\n\r\nThanks,\r\nKoby\r\n",
"Hi @kobygold, thanks for the information it definitely helps.\r\n\r\n@abattery can you please take a look? Thanks.",
"@pkgoogle @abattery \r\nHi guys,\r\nAny update...?\r\n",
"Hi guys,\r\nCan you give some life signs...?\r\nIs someone watching this issue...?\r\nI'm checking for updates every few days, and waiting patiently, but please let me know that someone is looking at it...\r\nIs there something I can help with?\r\n\r\nThanks,\r\nKoby\r\n",
"Hi @kobygold, apologies, there are many simultaneous issues. There are ways you can help yourself, it is an open source framework after all. Please review https://github.com/tensorflow/tensorflow/blob/master/CONTRIBUTING.md, if you are able to fix the issue please feel free to submit a PR.\r\n\r\nEveryone debugs differently, but one option is to use a debugger, generally I recommend gdb for C++ code.",
"Thanks @pkgoogle, \r\ndebugging C++ code is my bread & butter :-)\r\nBut in this case the python converter is the problem...\r\nI need to dive deep into the tflite converter (which is a pretty complicated code) and change those Fully Connected weights to use symmetric quantization, or alternatively replace those special Fully Connected layers with some kind of MUL operator that would implement matrix multiplication (y = A*x) if possible. The MUL operator supports the two inputs as asymmetric quantized, so maybe that could be easier... Do you know if matrix multiplication can be implemented by tflite MUL operator (with some \"broadcast\" mode perhaps? Simple element-wise is not the right mathematical operation here)... I'm not an expert at that... Where can I see the various MUL options, mathematical equations? I would love to contribute, but need a bit of guidance at the right direction on the tflite converter... \r\n\r\nThanks,\r\nKoby ",
"@kobygold, haha yes, I am familiar with the complexity as well. So one of the reasons the converter is hard is because a general TF (graph) program can be thought in many ways as a general program, converting to TFLite is essentially kind of, sort of, going through multiple passes of converting one program to another. This is very similar to how compiler's go through passes of an AST.\r\n\r\nThis is probably a good readme to start\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/mlir/lite/README.md\r\n\r\nThen I recommend just putting a breakpoint in the C++ code and start exploring. Also let me update my gdb recommendation, It's the most reliable one but if you can use lldb, it will have better integration with mlir/llvm.\r\n\r\nKernels are where most of the math happens: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/kernels"
] | 2023-09-05T22:48:33 | 2023-09-26T23:48:34 | null | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution: WIndows 10
- TensorFlow installation: pip package
- TensorFlow library (version): 2.13.0
### 2. Code
```
import tensorflow as tf
from tensorflow.keras import layers
import numpy as np
def model(q, v):
x = layers.MultiHeadAttention(num_heads=2, key_dim=2)(q, v)
return x
def representative_dataset():
for _ in range(100):
q = np.log(np.random.random((8, 16)))
v = np.log(np.random.random((4, 16)))
yield [q.astype(np.float32), v.astype(np.float32)]
target = tf.keras.Input(shape=[8, 16])
source = tf.keras.Input(shape=[4, 16])
out = model(target, source)
model = tf.keras.Model(inputs=(target, source), outputs=out)
model.summary()
model.save('MultiHeadAttention.h5')
run_model = tf.function(model)
# let's fix the input size.
concrete_func = run_model.get_concrete_function((
tf.TensorSpec([1, 8, 16], model.inputs[0].dtype), tf.TensorSpec([1, 4, 16], model.inputs[0].dtype)))
# model directory.
MODEL_DIR = "MultiHeadAttention"
model.save(MODEL_DIR, save_format="tf", signatures=concrete_func)
converter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.representative_dataset = representative_dataset
converter.inference_input_type = tf.int8 # or tf.uint8
converter.inference_output_type = tf.int8 # or tf.uint8
tflite_model = converter.convert()
# Save the model.
with open('MultiHeadAttention.tflite', 'wb') as f:
f.write(tflite_model)
print(f'Created model: MultiHeadAttention.tflite')
```
generated tf (h5) model: [link](https://drive.google.com/file/d/1QuSu77qI6o5y6bnoGzFJanlO6NP-lQXz/view?usp=sharing)
generated tflite model: [link](https://drive.google.com/file/d/1_DA5bJleAhLeBxGqmj3dfnK8u0ZhZiu5/view?usp=sharing)
### 3. Failure after conversion
The conversion to quantized 8bit is successful, but the generated model has problems:
The "MultiHeadAttention" layer is converted to many simpler layers on the tflite model (which is fine),
but among those layers there are 4 fully connected (FC) layers that are not tflite compliant and when trying to run this model on [tflite-micro](https://github.com/tensorflow/tflite-micro) engine (C/C++ engine) it fail with assert! The problem with those 4 FC layers is that their weights quantization is asymmetric where one of the fundamental assumptions of tflite quantization is that the weights (on FC or CONV layers) should be symmetric, i.e. the "zero-point" should be zero. And as can be seen on my model screenshot the zero_point is 18. On the layer attributes it looks like "assymetric_quantization = false", but that is not correct, as we see the zero-point is not 0.

See more about the tflite weights symmetric quantization requirement [here](https://www.tensorflow.org/lite/performance/quantization_spec#:~:text=Weights%20are%20symmetric).
See also the assert check in the tflite-micro code [here](https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/kernels/fully_connected_common.cc).
Lines 67-71:
```
// Filter weights will always be symmetric quantized since we only support
// int8 quantization. See
// https://github.com/tensorflow/tensorflow/issues/44912 for additional
// context.
TFLITE_DCHECK(filter->params.zero_point == 0);
```
**Note**: those FC layers take their weights from previous layers outputs (unlike simple FC layers where the weights are known in advance). Those layer outputs should have symmetric quantization to be qualified as FC weights.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61796/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61796/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61795 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61795/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61795/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61795/events | https://github.com/tensorflow/tensorflow/pull/61795 | 1,882,791,434 | PR_kwDOArmXAs5ZnimM | 61,795 | Update release notes for TensorFlow 2.13.1 | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-09-05T22:10:29 | 2023-09-11T16:47:59 | 2023-09-11T16:47:58 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61795",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61795",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61795.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61795.patch",
"merged_at": "2023-09-11T16:47:58"
} | This PR is intentionally incomplete. One of the Release Owners for 2.13.1
needs to fill in the internal release notes for this version before the PR gets
submitted. Click on the :pencil2: icon in the header for `RELEASE.md` under
"Files Changed" above. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61795/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61795/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61794 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61794/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61794/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61794/events | https://github.com/tensorflow/tensorflow/pull/61794 | 1,882,522,304 | PR_kwDOArmXAs5Zmn-I | 61,794 | Update .bazelignore | {
"login": "Granthj",
"id": 144146590,
"node_id": "U_kgDOCJeAng",
"avatar_url": "https://avatars.githubusercontent.com/u/144146590?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Granthj",
"html_url": "https://github.com/Granthj",
"followers_url": "https://api.github.com/users/Granthj/followers",
"following_url": "https://api.github.com/users/Granthj/following{/other_user}",
"gists_url": "https://api.github.com/users/Granthj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Granthj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Granthj/subscriptions",
"organizations_url": "https://api.github.com/users/Granthj/orgs",
"repos_url": "https://api.github.com/users/Granthj/repos",
"events_url": "https://api.github.com/users/Granthj/events{/privacy}",
"received_events_url": "https://api.github.com/users/Granthj/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 | 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/61794/checks?check_run_id=16518967487) 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 @Granthj 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\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\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/\r\nThank you for your contribution.\r\nCc @mihaimaruseac "
] | 2023-09-05T18:29:05 | 2023-09-07T03:12:41 | 2023-09-06T14:31:11 | NONE | spam | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61794",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61794",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61794.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61794.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61794/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61794/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61793 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61793/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61793/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61793/events | https://github.com/tensorflow/tensorflow/pull/61793 | 1,882,456,723 | PR_kwDOArmXAs5ZmZzt | 61,793 | Allocator options | {
"login": "sagyakwa",
"id": 20828318,
"node_id": "MDQ6VXNlcjIwODI4MzE4",
"avatar_url": "https://avatars.githubusercontent.com/u/20828318?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sagyakwa",
"html_url": "https://github.com/sagyakwa",
"followers_url": "https://api.github.com/users/sagyakwa/followers",
"following_url": "https://api.github.com/users/sagyakwa/following{/other_user}",
"gists_url": "https://api.github.com/users/sagyakwa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sagyakwa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sagyakwa/subscriptions",
"organizations_url": "https://api.github.com/users/sagyakwa/orgs",
"repos_url": "https://api.github.com/users/sagyakwa/repos",
"events_url": "https://api.github.com/users/sagyakwa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sagyakwa/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1133285679,
"node_id": "MDU6TGFiZWwxMTMzMjg1Njc5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla",
"name": "comp:xla",
"color": "0052cc",
"default": false,
"description": "XLA"
},
{
"id": 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-09-05T17:39:05 | 2023-09-12T03:21:12 | 2023-09-05T17:40:32 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61793",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61793",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61793.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61793.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61793/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61793/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61792 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61792/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61792/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61792/events | https://github.com/tensorflow/tensorflow/issues/61792 | 1,881,944,604 | I_kwDOArmXAs5wLDIc | 61,792 | Cannot create interpreter when using GPU-Delegate or NNAPI-Delegate | {
"login": "JHarzenetter",
"id": 38456787,
"node_id": "MDQ6VXNlcjM4NDU2Nzg3",
"avatar_url": "https://avatars.githubusercontent.com/u/38456787?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JHarzenetter",
"html_url": "https://github.com/JHarzenetter",
"followers_url": "https://api.github.com/users/JHarzenetter/followers",
"following_url": "https://api.github.com/users/JHarzenetter/following{/other_user}",
"gists_url": "https://api.github.com/users/JHarzenetter/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JHarzenetter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JHarzenetter/subscriptions",
"organizations_url": "https://api.github.com/users/JHarzenetter/orgs",
"repos_url": "https://api.github.com/users/JHarzenetter/repos",
"events_url": "https://api.github.com/users/JHarzenetter/events{/privacy}",
"received_events_url": "https://api.github.com/users/JHarzenetter/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 2671354709,
"node_id": "MDU6TGFiZWwyNjcxMzU0NzA5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteNNAPIDelegate",
"name": "TFLiteNNAPIDelegate",
"color": "65916E",
"default": false,
"description": "For issues related to TFLite NNAPI Delegate"
},
{
"id": 3835861157,
"node_id": "LA_kwDOArmXAs7kopil",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGooglePlayServices",
"name": "TFLiteGooglePlayServices",
"color": "27FAE2",
"default": false,
"description": "For issues related to TensorFlow Lite in Google Play Services"
}
] | 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 @JHarzenetter \r\n\r\nCould you please provide more information related to the issue?\r\n\r\nWhat was the output when `TfLiteGpu.isGpuDelegateAvailable(context)` is printed?\r\n\r\nYou might not need the org.tensorflow:tensorflow-lite-task-vision-play-services dependency if you are using InterpreterApi.\r\n\r\nThanks.",
"Hi @pjpratik \r\n\r\nif you mean the result of ```TfLiteGpu.isGpuDelegateAvailable(context)```, it returns true.\r\n\r\nI tried to improve the performance of the model with those delegates. I used the official TF-Website for this, but this isn't working for me. \r\nI tested everything again on a Pixel 6 and got the same result.\r\n\r\nHope this helps",
"Hi @JHarzenetter \r\n\r\nThanks for the information. \r\n\r\nWhen you say performance, it is related to the delegate performance w.r.t to cpu or something else? Can you please provide more context regarding this?\r\n\r\nAlso, if you can provide the android studio project or a toy version that reproduces the issue will help us to investigate the cause better.\r\n\r\nThanks.",
"Hi @pjpratik \r\n\r\nWe're trying to implement a Speechrecognition based on [this Repository](https://github.com/nyadla-sys/whisper.tflite/tree/main/android_example).\r\n*Heads up if you try this Repo: it only works correctly with audio captured by the app itself.*\r\n\r\nThe Main Change, i have made so far, is the migration to the play-services Version of TF (as recommended). \r\n\r\nWith performance i meant the time it takes to transcribe the passed audio. We tried to lower it with the given delegates and ran into this issue.\r\n\r\nThanks",
"Hi @JHarzenetter \r\n\r\nThanks for the information. \r\n\r\nCan you confirm that you have followed this [migration document](https://www.tensorflow.org/lite/android/play_services#migrating) for migrating from stand-alone TensorFlow Lite to the Play services API?\r\n\r\nThanks.\r\n",
"Hi @pjpratik \r\n\r\nyes that's the document i followed for the migration",
"Hi @JHarzenetter, can you fork that repo and make the minimal changes to reproduce your issue? We don't know how exactly you changed it and any little change can potentially be the culprit. Thanks for your help.",
"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/61792\">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/61792\">No</a>\n"
] | 2023-09-05T13:06:02 | 2023-09-28T18:04:06 | 2023-09-28T01:47:34 | NONE | null | null | null | **System information**
- Android Device information: samsung/a14mnseea/a14m:13/TP1A.220624.014/A145RXXU2AWG3:user/release-keys
- TensorFlow Lite in Play Services SDK version (found in `build.gradle`):
- com.google.android.gms:play-services-tflite-java:16.1.0
- com.google.android.gms:play-services-tflite-support:16.1.0
- com.google.android.gms:play-services-tflite-gpu:16.2.0
- Google Play Services version: 23.33.16
**Standalone code to reproduce the issue**
var useGpu = Tasks.await(TfLiteGpu.isGpuDelegateAvailable(context));
var optionsBuilder = TfLiteInitializationOptions.builder();
optionsBuilder.setEnableGpuDelegateSupport(useGpu);
Tasks.await(TfLite.initialize(context, optionsBuilder.build()));
var options = new InterpreterApi.Options();
if(useGpu){
options.addDelegateFactory(new GpuDelegateFactory());
}
/*delegate = new NnApiDelegate();
options.addDelegate(delegate);
options.setUseNNAPI(true);*/
options.setRuntime(InterpreterApi.Options.TfLiteRuntime.FROM_SYSTEM_ONLY);
//load Model from App assets
interpreter = InterpreterApi.create(new File(modelPath), options);
**Any other info / logs**
I oriented my code on the official documentation [on here](https://www.tensorflow.org/lite/android/delegates/gpu)
Logcat-Output:
java.lang.IllegalArgumentException: Internal error: Cannot create interpreter:
at com.google.android.gms.tflite.NativeInterpreterWrapper.createInterpreter(Native Method)
at com.google.android.gms.tflite.NativeInterpreterWrapper.zzl(com.google.android.gms:play-services-tflite-java@@16.1.0:34)
at com.google.android.gms.tflite.NativeInterpreterWrapper.<init>(com.google.android.gms:play-services-tflite-java@@16.1.0:6)
at com.google.android.gms.tflite.zzd.<init>(com.google.android.gms:play-services-tflite-java@@16.1.0:1)
at com.google.android.gms.tflite.InterpreterFactoryImpl.create(com.google.android.gms:play-services-tflite-java@@16.1.0:2)
at org.tensorflow.lite.InterpreterApi.create(InterpreterApi.java:336)
at com.example.tfliteaudio.TFLiteEngine.initialize(TFLiteEngine.java:83)
at com.example.tfliteaudio.MainActivity.lambda$transcribeAudio$5(MainActivity.java:143)
at com.example.tfliteaudio.MainActivity.$r8$lambda$1xqJ9hAvPXTc26gXgWfy8QcV0VE(Unknown Source:0)
at com.example.tfliteaudio.MainActivity$$ExternalSyntheticLambda2.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61792/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61792/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61791 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61791/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61791/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61791/events | https://github.com/tensorflow/tensorflow/issues/61791 | 1,881,518,351 | I_kwDOArmXAs5wJbEP | 61,791 | Memory leak when using tf.Model and tf.Model.fit() in a loop. clear_session() does not help | {
"login": "alessiomora",
"id": 43724325,
"node_id": "MDQ6VXNlcjQzNzI0MzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/43724325?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alessiomora",
"html_url": "https://github.com/alessiomora",
"followers_url": "https://api.github.com/users/alessiomora/followers",
"following_url": "https://api.github.com/users/alessiomora/following{/other_user}",
"gists_url": "https://api.github.com/users/alessiomora/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alessiomora/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alessiomora/subscriptions",
"organizations_url": "https://api.github.com/users/alessiomora/orgs",
"repos_url": "https://api.github.com/users/alessiomora/repos",
"events_url": "https://api.github.com/users/alessiomora/events{/privacy}",
"received_events_url": "https://api.github.com/users/alessiomora/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": 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 | [
"@alessiomora Could you please confirm if all the dependencies are shared? I tried to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/b8efa42dcc80605890f82b56360f18ae/61791.ipynb), please let me know what I am missing here. Thank you!",
"@sushreebarsa it's hard to reproduce this on colab. Anyway, I simplified the code and you can run the following code on colab. Also, it would be a lot easier with a GPU. Also, the printed results are reliable if this is the only process running (in my machine I can be sure about that, I am not in colab).\r\n\r\nThank you in advance!\r\n```\r\n!pip install tensorflow==2.13\r\n!pip install psutil==5.9.5\r\n\r\nimport tensorflow as tf # same issue with tf-nightly = \"2.15.0.dev20230904\"\r\nimport time\r\nimport gc\r\nimport psutil # psutil == \"5.9.5\"\r\nimport subprocess as sp\r\n\r\nclass MyModel(tf.keras.Model):\r\n\r\n def __init__(self):\r\n super().__init__()\r\n self.dense1 = tf.keras.layers.Dense(1000, activation=tf.nn.relu)\r\n self.dense2 = tf.keras.layers.Dense(10000, activation=tf.nn.relu)\r\n self.dense3 = tf.keras.layers.Dense(10000, activation=tf.nn.relu)\r\n self.dense4 = tf.keras.layers.Dense(1000, activation=tf.nn.softmax)\r\n\r\n def call(self, inputs):\r\n x = self.dense1(inputs)\r\n x = self.dense2(x)\r\n x = self.dense3(x)\r\n x = self.dense4(x)\r\n return x\r\n\r\n\r\nif __name__ == '__main__':\r\n print(f\"Starting..\")\r\n memory_free_val_initial, memory_perc_initial = get_cpu_memory()\r\n print(f\"[Memory monitoring] Free memory CPU {memory_free_val_initial} MB, {memory_perc_initial} %.\")\r\n\r\n for r in range(0, 1000):\r\n model = MyModel()\r\n # ds = tf.data.Dataset.from_tensor_slices((tf.random.uniform((64*4, 1000)), tf.ones((64*4))))\r\n ds = (lambda: tf.data.Dataset.from_tensor_slices((tf.random.uniform((64 * 20, 1000)), tf.ones((64 * 20)))))\r\n model.compile(optimizer='sgd', loss=tf.keras.losses.SparseCategoricalCrossentropy())\r\n\r\n model.fit(ds().batch(64), verbose=0)\r\n model.evaluate(ds().batch(64), verbose=0)\r\n tf.keras.backend.clear_session()\r\n\r\n if r % 5 == 0:\r\n # print every 5 model.fit\r\n print(f\"Round: {r}\")\r\n memory_free_val, memory_perc = get_cpu_memory()\r\n print(f\"[Memory monitoring] Free memory CPU {memory_free_val} MB, {memory_perc} %.\")\r\n if r == 0:\r\n memory_free_first = memory_free_val\r\n\r\n del model\r\n gc.collect()\r\n del ds\r\n\r\n print(f\"[Memory monitoring CPU] Memory usage increased by {memory_free_first - memory_free_val} MB, \"\r\n \"during the process.\")\r\n\r\n```\r\n\r\n",
"Hi @alessiomora ,\r\n\r\nI have checked the code snippet with different functions and listed the results below.\r\n\r\n1.With `psutil.virtual_memory()` and **CPU** runtime: \r\n\r\nHere I have tested for 100 epochs and I observed after 2nd round the memory is oscillating around a fixed value.Not changing much.[gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/ec8e035019714802f9bbae59f84ddff8/61791_r1.ipynb). Not sure with 1000 epochs it will change much as it is time taking. Could we need to test for 1000 epochs? Please confirm.\r\n\r\n2. With **GPU** runtime and using `tf.config.experimental.get_memory_info()`\r\n\r\nI have checked with GPU runtime also using TF inbuilt function tf.config.experimental.get_memory_info and GPU memory stayed at constant fixed value. Here I have tested for 300 epochs.Please find the attached [gist](https://colab.sandbox.google.com/drive/1qYJimUa7UA6-lPK3NVWgenO-qNDj6cV-?resourcekey=0-jaV4kAHfXOyzlcpHXdonJg#scrollTo=BVQl3WdWxVsi) for reference.\r\n\r\nIf I consider GPU part I don't observe Memory leak.\r\n\r\nCould you please check and come back with your comments.\r\n\r\nThanks!",
"@SuryanarayanaY thank you. \r\nFor the constant value of GPU memory usage: as my first attached code and results were showing, also in my case GPU memory does not increase significantly.\r\nFor CPU memory usage, can you reproduce the code in a Linux/Ubuntu OS?\r\nIn the results I provided, in 1000 rounds there is an increase of 6767 MB (also consider that the dataset and the model used in this exemplary code are just toys! The problem is way worse with a more complex setting).\r\nI would like to know if you are not experiencing the issue with 1000 rounds, and also if you are able to reproduce the issue outside colab.\r\nThank you so much!",
"Hi @alessiomora ,\r\n\r\nThis [PR](https://github.com/tensorflow/tensorflow/pull/62154) might addresses the issue now. Could you please check the behaviour with tf-nightly ?",
"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/61791\">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/61791\">No</a>\n"
] | 2023-09-05T08:54:21 | 2023-11-03T01:47:57 | 2023-11-03T01:47:55 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes (tf-nightly = "2.15.0.dev20230904")
### Source
source
### TensorFlow version
2.13, 2.12, 2.11
### Custom code
Yes
### OS platform and distribution
Ubuntu 22.04.1 LTS (GNU/Linux 5.16.10 x86_64)
### Mobile device
_No response_
### Python version
3.10.0, 3.9.0
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
cuDNN 8600
### GPU model and memory
NVIDIA RTX A5000, 24GB
### Current behavior?
Memory usage steadily increases when using tf.keras.Model and tf.keras.Model.fit() in a loop, and leads to Out Of Memory exception saturating the memory eventually. clear_session() does not help. The same code with TF version == 2.9.2 has an almost constant memory usage instead, and works as expected.
I've also opened [this issue](https://github.com/keras-team/tf-keras/issues/286) on Keras's GitHub, months ago, with no solutions from the Keras team.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf # same issue with tf-nightly = "2.15.0.dev20230904"
import time
import gc
import psutil # psutil == "5.9.5"
import subprocess as sp
gpus = tf.config.experimental.list_physical_devices('GPU')
for gpu in gpus:
tf.config.experimental.set_memory_growth(
device=gpu, enable=True
)
def get_cpu_memory():
memory_info = psutil.virtual_memory()
# you can have the percentage of used RAM
memory_percent = 100.0 - memory_info.percent
memory_free_values = memory_info.available / (1024 * 1024) # in MB
# you can calculate percentage of available memory
return memory_free_values, memory_percent
def get_gpu_memory():
command = "nvidia-smi --query-gpu=memory.free --format=csv"
memory_free_info = sp.check_output(command.split()).decode('ascii').split('\n')[:-1][1:]
memory_free_values = [int(x.split()[0]) for i, x in enumerate(memory_free_info)][0]
memory_percent = (memory_free_values / 24564) * 100 # my gpu has 24564 MB of memory
return memory_free_values, memory_percent
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(1000, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(10000, activation=tf.nn.relu)
self.dense3 = tf.keras.layers.Dense(10000, activation=tf.nn.relu)
self.dense4 = tf.keras.layers.Dense(1000, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
x = self.dense2(x)
x = self.dense3(x)
x = self.dense4(x)
return x
if __name__ == '__main__':
print(f"Starting..")
memory_free_val_initial, memory_perc_initial = get_cpu_memory()
print(f"[Memory monitoring] Free memory CPU {memory_free_val_initial} MB, {memory_perc_initial} %.")
memory_free_val_initial_gpu, memory_perc_initial_gpu = get_gpu_memory()
print(f"[Memory monitoring] Free memory GPU {memory_free_val_initial_gpu} MB, {memory_perc_initial_gpu} %.")
for r in range(0, 1000):
model = MyModel()
# ds = tf.data.Dataset.from_tensor_slices((tf.random.uniform((64*4, 1000)), tf.ones((64*4))))
ds = (lambda: tf.data.Dataset.from_tensor_slices((tf.random.uniform((64 * 20, 1000)), tf.ones((64 * 20)))))
model.compile(optimizer='sgd', loss=tf.keras.losses.SparseCategoricalCrossentropy())
model.fit(ds().batch(64), verbose=0)
model.evaluate(ds().batch(64), verbose=0)
tf.keras.backend.clear_session()
if r % 5 == 0:
# print every 5 model.fit
print(f"Round: {r}")
memory_free_val, memory_perc = get_cpu_memory()
print(f"[Memory monitoring] Free memory CPU {memory_free_val} MB, {memory_perc} %.")
memory_free_val_gpu, memory_perc_gpu = get_gpu_memory()
print(f"[Memory monitoring] Free memory GPU {memory_free_val_gpu} MB, {memory_perc_gpu} %.")
if r == 0:
memory_free_first = memory_free_val
memory_free_first_gpu = memory_free_val_gpu
# time.sleep(2)
del model
gc.collect()
del ds
print(f"[Memory monitoring CPU] Memory usage increased by {memory_free_first - memory_free_val} MB, "
"during the process.")
print(f"[Memory monitoring GPU] Memory usage increased by {memory_free_first_gpu - memory_free_val_gpu} MB, "
"during the process.")
```
### Relevant log output
```shell
Round: 0
[Memory monitoring] Free memory CPU 56633.48046875 MB, 88.5 %.
[Memory monitoring] Free memory GPU 21180 MB, 86.2237420615535 %.
Round: 995
[Memory monitoring] Free memory CPU 49866.3046875 MB, 77.9 %.
[Memory monitoring] Free memory GPU 21156 MB, 86.12603810454324 %.
[Memory monitoring CPU] Memory usage increased by 6767.17578125 MB, during the process.
[Memory monitoring GPU] Memory usage increased by 24 MB, during the process.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61791/reactions",
"total_count": 3,
"+1": 3,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61791/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61790 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61790/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61790/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61790/events | https://github.com/tensorflow/tensorflow/issues/61790 | 1,881,493,499 | I_kwDOArmXAs5wJU_7 | 61,790 | import tensorflow as tf delegate = tf.lite.experimental.load_delegate('/content/drive/MyDrive/test_delegate/libtensorflowlite_gpu_delegate.so')#with this we ca get faster predictions OSError: libEGL.so: cannot open shared object file: No such file or directory | {
"login": "Alwaysadil",
"id": 91238948,
"node_id": "MDQ6VXNlcjkxMjM4OTQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/91238948?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Alwaysadil",
"html_url": "https://github.com/Alwaysadil",
"followers_url": "https://api.github.com/users/Alwaysadil/followers",
"following_url": "https://api.github.com/users/Alwaysadil/following{/other_user}",
"gists_url": "https://api.github.com/users/Alwaysadil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Alwaysadil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alwaysadil/subscriptions",
"organizations_url": "https://api.github.com/users/Alwaysadil/orgs",
"repos_url": "https://api.github.com/users/Alwaysadil/repos",
"events_url": "https://api.github.com/users/Alwaysadil/events{/privacy}",
"received_events_url": "https://api.github.com/users/Alwaysadil/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 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": 2671339633,
"node_id": "MDU6TGFiZWwyNjcxMzM5NjMz",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate",
"name": "TFLiteGpuDelegate",
"color": "F71F04",
"default": false,
"description": "TFLite Gpu delegate issue"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Alwaysadil \r\n\r\nCan we close this issue as it is duplicate of #61743 and it is being tracked there?\r\n\r\nThanks.",
"Okay @pjpratik thank you for your response",
"Thanks for the confirmation.",
"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/61790\">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/61790\">No</a>\n"
] | 2023-09-05T08:39:49 | 2023-09-08T08:42:02 | 2023-09-08T08:41:59 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
- TensorFlow installation (pip package or built from source):
- TensorFlow library (version, if pip package or github SHA, if built from source):
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
#### Option A: Reference colab notebooks
1) Reference [TensorFlow Model Colab](https://colab.research.google.com/gist/ymodak/e96a4270b953201d5362c61c1e8b78aa/tensorflow-datasets.ipynb?authuser=1): Demonstrate how to build your TF model.
2) Reference [TensorFlow Lite Model Colab](https://colab.research.google.com/gist/ymodak/0dfeb28255e189c5c48d9093f296e9a8/tensorflow-lite-debugger-colab.ipynb): Demonstrate how to convert your TF model to a TF Lite model (with quantization, if used) and run TFLite Inference (if possible).
```
(You can paste links or attach files by dragging & dropping them below)
- Provide links to your updated versions of the above two colab notebooks.
- Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model.
```
#### Option B: Paste your code here or provide a link to a custom end-to-end colab
```
(You can paste links or attach files by dragging & dropping them below)
- Include code to invoke the TFLite Converter Python API and the errors.
- Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model.
```
### 3. Failure after conversion
If the conversion is successful, but the generated model is wrong, then state what is wrong:
- Model produces wrong results and/or has lesser accuracy.
- Model produces correct results, but it is slower than expected.
### 4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
### 5. (optional) Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61790/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61790/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61789 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61789/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61789/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61789/events | https://github.com/tensorflow/tensorflow/issues/61789 | 1,881,250,683 | I_kwDOArmXAs5wIZt7 | 61,789 | TensorFlow Lite in Play Services issue [email protected] not my devices are the login in just this phone device that are not this one getting them out of my server please send them a little massage to buy there phone and don't use my phone number and my email at all | {
"login": "aguinigacervantesjerardo",
"id": 141539613,
"node_id": "U_kgDOCG-5HQ",
"avatar_url": "https://avatars.githubusercontent.com/u/141539613?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aguinigacervantesjerardo",
"html_url": "https://github.com/aguinigacervantesjerardo",
"followers_url": "https://api.github.com/users/aguinigacervantesjerardo/followers",
"following_url": "https://api.github.com/users/aguinigacervantesjerardo/following{/other_user}",
"gists_url": "https://api.github.com/users/aguinigacervantesjerardo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aguinigacervantesjerardo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aguinigacervantesjerardo/subscriptions",
"organizations_url": "https://api.github.com/users/aguinigacervantesjerardo/orgs",
"repos_url": "https://api.github.com/users/aguinigacervantesjerardo/repos",
"events_url": "https://api.github.com/users/aguinigacervantesjerardo/events{/privacy}",
"received_events_url": "https://api.github.com/users/aguinigacervantesjerardo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
}
] | closed | false | {
"login": "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 | [
"@aguinigacervantesjerardo,\r\nCould you please share the tensorflow version, colab link or simple standalone code to reproduce the issue in our environment. It helps us in localizing the issue faster. 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/61789\">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/61789\">No</a>\n"
] | 2023-09-05T05:58:09 | 2023-09-21T01:47:17 | 2023-09-21T01:47:15 | NONE | null | null | null | **System information**
- Android Device information (use `adb shell getprop ro.build.fingerprint`
if possible):
- TensorFlow Lite in Play Services SDK version (found in `build.gradle`):
- Google Play Services version
(`Settings` > `Apps` > `Google Play Services` > `App details`):
**Standalone code to reproduce the issue**
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to or attach code demonstrating
the problem.
**Any other info / logs**
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and files
should be attached.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61789/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61789/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61788 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61788/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61788/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61788/events | https://github.com/tensorflow/tensorflow/issues/61788 | 1,881,146,220 | I_kwDOArmXAs5wIANs | 61,788 | Unable to open file (truncated file: eof = 2568306, sblock->base_addr = 0, stored_eof = 9406464) | {
"login": "cikichen",
"id": 1478821,
"node_id": "MDQ6VXNlcjE0Nzg4MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1478821?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cikichen",
"html_url": "https://github.com/cikichen",
"followers_url": "https://api.github.com/users/cikichen/followers",
"following_url": "https://api.github.com/users/cikichen/following{/other_user}",
"gists_url": "https://api.github.com/users/cikichen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cikichen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cikichen/subscriptions",
"organizations_url": "https://api.github.com/users/cikichen/orgs",
"repos_url": "https://api.github.com/users/cikichen/repos",
"events_url": "https://api.github.com/users/cikichen/events{/privacy}",
"received_events_url": "https://api.github.com/users/cikichen/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": 1205765054,
"node_id": "MDU6TGFiZWwxMjA1NzY1MDU0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS",
"name": "subtype:macOS",
"color": "b619ea",
"default": false,
"description": "macOS Build/Installation issues"
},
{
"id": 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 @cikichen ,\r\n\r\nI have tested the code on Mac and its working fine. Please refer to attached logs below.\r\n\r\n[61788_mac-logs.txt](https://github.com/tensorflow/tensorflow/files/12519961/61788_mac-logs.txt)\r\n\r\nIt seems the issue is related to your own environment or Memory resources.Please confirm whether your Mac has intel chip or Apple. For Apple silicon you need to follow metal plugin instructions additionally.\r\n\r\nThanks!",
"> Hi @cikichen ,\r\n> \r\n> I have tested the code on Mac and its working fine. Please refer to attached logs below.\r\n> \r\n> [61788_mac-logs.txt](https://github.com/tensorflow/tensorflow/files/12519961/61788_mac-logs.txt)\r\n> \r\n> It seems the issue is related to your own environment or Memory resources.Please confirm whether your Mac has intel chip or Apple. For Apple silicon you need to follow metal plugin instructions additionally.\r\n> \r\n> Thanks!\r\n\r\nmac m1",
"```\r\n#!/usr/bin/env python\r\n# coding: utf-8\r\n\r\n\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport os\r\nimport tensorflow as tf\r\n\r\n\r\n\r\n_URL = 'https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip'\r\npath_to_zip = tf.keras.utils.get_file('cats_and_dogs.zip', origin=_URL, extract=True)\r\nPATH = os.path.join(os.path.dirname(path_to_zip), 'cats_and_dogs_filtered')\r\n\r\ntrain_dir = os.path.join(PATH, 'train')\r\nvalidation_dir = os.path.join(PATH, 'validation')\r\nprint(train_dir)\r\nBATCH_SIZE = 32\r\nIMG_SIZE = (96, 96)\r\n\r\ntrain_dataset = tf.keras.utils.image_dataset_from_directory(train_dir,\r\n shuffle=True,\r\n batch_size=BATCH_SIZE,\r\n image_size=IMG_SIZE)\r\n\r\n\r\n\r\nvalidation_dataset = tf.keras.utils.image_dataset_from_directory(validation_dir,\r\n shuffle=True,\r\n batch_size=BATCH_SIZE,\r\n image_size=IMG_SIZE)\r\n\r\n\r\n\r\n\r\n\r\nclass_names = train_dataset.class_names\r\n\r\nplt.figure(figsize=(10, 10))\r\nfor images, labels in train_dataset.take(1):\r\n for i in range(9):\r\n ax = plt.subplot(3, 3, i + 1)\r\n plt.imshow(images[i].numpy().astype(\"uint8\"))\r\n plt.title(class_names[labels[i]])\r\n plt.axis(\"off\")\r\n\r\n\r\n\r\n\r\n\r\nval_batches = tf.data.experimental.cardinality(validation_dataset)\r\ntest_dataset = validation_dataset.take(val_batches // 5)\r\nvalidation_dataset = validation_dataset.skip(val_batches // 5)\r\n\r\n\r\n\r\n\r\nprint('Number of validation batches: %d' % tf.data.experimental.cardinality(validation_dataset))\r\nprint('Number of test batches: %d' % tf.data.experimental.cardinality(test_dataset))\r\n\r\n\r\n\r\n\r\nAUTOTUNE = tf.data.AUTOTUNE\r\n\r\ntrain_dataset = train_dataset.prefetch(buffer_size=AUTOTUNE)\r\nvalidation_dataset = validation_dataset.prefetch(buffer_size=AUTOTUNE)\r\ntest_dataset = test_dataset.prefetch(buffer_size=AUTOTUNE)\r\n\r\n\r\n\r\n\r\ndata_augmentation = tf.keras.Sequential([\r\n tf.keras.layers.RandomFlip('horizontal'),\r\n tf.keras.layers.RandomRotation(0.2),\r\n])\r\n\r\n\r\n\r\nfor image, _ in train_dataset.take(1):\r\n plt.figure(figsize=(10, 10))\r\n first_image = image[0]\r\n for i in range(9):\r\n ax = plt.subplot(3, 3, i + 1)\r\n augmented_image = data_augmentation(tf.expand_dims(first_image, 0))\r\n plt.imshow(augmented_image[0] / 255)\r\n plt.axis('off')\r\n\r\n\r\n\r\n\r\npreprocess_input = tf.keras.applications.mobilenet_v2.preprocess_input\r\n\r\n\r\n\r\nrescale = tf.keras.layers.Rescaling(1./127.5, offset=-1)\r\n\r\n\r\n\r\n# Create the base model from the pre-trained model MobileNet V2\r\nIMG_SHAPE = IMG_SIZE + (3,)\r\nbase_model = tf.keras.applications.MobileNetV2(input_shape=IMG_SHAPE,\r\n include_top=False,\r\n weights='imagenet')\r\n\r\n\r\n\r\n\r\nimage_batch, label_batch = next(iter(train_dataset))\r\nfeature_batch = base_model(image_batch)\r\nprint(feature_batch.shape)\r\n\r\n\r\n\r\nbase_model.trainable = False\r\n\r\n\r\n\r\n# Let's take a look at the base model architecture\r\nbase_model.summary()\r\n\r\n\r\n\r\nglobal_average_layer = tf.keras.layers.GlobalAveragePooling2D()\r\nfeature_batch_average = global_average_layer(feature_batch)\r\nprint(feature_batch_average.shape)\r\n\r\n\r\n\r\nprediction_layer = tf.keras.layers.Dense(1)\r\nprediction_batch = prediction_layer(feature_batch_average)\r\nprint(prediction_batch.shape)\r\n\r\n\r\n\r\ninputs = tf.keras.Input(shape=(160, 160, 3))\r\nx = data_augmentation(inputs)\r\nx = preprocess_input(x)\r\nx = base_model(x, training=False)\r\nx = global_average_layer(x)\r\nx = tf.keras.layers.Dropout(0.2)(x)\r\noutputs = prediction_layer(x)\r\nmodel = tf.keras.Model(inputs, outputs)\r\n\r\n\r\n\r\n\r\nbase_learning_rate = 0.0001\r\nmodel.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=base_learning_rate),\r\n loss=tf.keras.losses.BinaryCrossentropy(from_logits=True),\r\n metrics=['accuracy'])\r\n\r\n\r\n\r\n\r\nmodel.summary()\r\n\r\n\r\n\r\nlen(model.trainable_variables)\r\n\r\n\r\n\r\ninitial_epochs = 10\r\n\r\nloss0, accuracy0 = model.evaluate(validation_dataset)\r\n\r\n\r\n\r\n\r\nprint(\"initial loss: {:.2f}\".format(loss0))\r\nprint(\"initial accuracy: {:.2f}\".format(accuracy0))\r\n\r\n\r\n\r\n\r\nhistory = model.fit(train_dataset,\r\n epochs=initial_epochs,\r\n validation_data=validation_dataset)\r\n\r\n\r\n\r\nacc = history.history['accuracy']\r\nval_acc = history.history['val_accuracy']\r\n\r\nloss = history.history['loss']\r\nval_loss = history.history['val_loss']\r\n\r\nplt.figure(figsize=(8, 8))\r\nplt.subplot(2, 1, 1)\r\nplt.plot(acc, label='Training Accuracy')\r\nplt.plot(val_acc, label='Validation Accuracy')\r\nplt.legend(loc='lower right')\r\nplt.ylabel('Accuracy')\r\nplt.ylim([min(plt.ylim()),1])\r\nplt.title('Training and Validation Accuracy')\r\n\r\nplt.subplot(2, 1, 2)\r\nplt.plot(loss, label='Training Loss')\r\nplt.plot(val_loss, label='Validation Loss')\r\nplt.legend(loc='upper right')\r\nplt.ylabel('Cross Entropy')\r\nplt.ylim([0,1.0])\r\nplt.title('Training and Validation Loss')\r\nplt.xlabel('epoch')\r\nplt.show()\r\n\r\n\r\n\r\nbase_model.trainable = True\r\n\r\n\r\n\r\n# Let's take a look to see how many layers are in the base model\r\nprint(\"Number of layers in the base model: \", len(base_model.layers))\r\n\r\n# Fine-tune from this layer onwards\r\nfine_tune_at = 100\r\n\r\n# Freeze all the layers before the `fine_tune_at` layer\r\nfor layer in base_model.layers[:fine_tune_at]:\r\n layer.trainable = False\r\n\r\n\r\n\r\nmodel.compile(loss=tf.keras.losses.BinaryCrossentropy(from_logits=True),\r\n optimizer = tf.keras.optimizers.RMSprop(learning_rate=base_learning_rate/10),\r\n metrics=['accuracy'])\r\n\r\n\r\n\r\n\r\nmodel.summary()\r\n\r\n\r\n\r\nlen(model.trainable_variables)\r\n\r\n\r\n\r\n\r\nfine_tune_epochs = 10\r\ntotal_epochs = initial_epochs + fine_tune_epochs\r\n\r\nhistory_fine = model.fit(train_dataset,\r\n epochs=total_epochs,\r\n initial_epoch=history.epoch[-1],\r\n validation_data=validation_dataset)\r\n\r\n\r\n\r\nacc += history_fine.history['accuracy']\r\nval_acc += history_fine.history['val_accuracy']\r\n\r\nloss += history_fine.history['loss']\r\nval_loss += history_fine.history['val_loss']\r\n\r\n\r\n\r\n\r\nplt.figure(figsize=(8, 8))\r\nplt.subplot(2, 1, 1)\r\nplt.plot(acc, label='Training Accuracy')\r\nplt.plot(val_acc, label='Validation Accuracy')\r\nplt.ylim([0.8, 1])\r\nplt.plot([initial_epochs-1,initial_epochs-1],\r\n plt.ylim(), label='Start Fine Tuning')\r\nplt.legend(loc='lower right')\r\nplt.title('Training and Validation Accuracy')\r\n\r\nplt.subplot(2, 1, 2)\r\nplt.plot(loss, label='Training Loss')\r\nplt.plot(val_loss, label='Validation Loss')\r\nplt.ylim([0, 1.0])\r\nplt.plot([initial_epochs-1,initial_epochs-1],\r\n plt.ylim(), label='Start Fine Tuning')\r\nplt.legend(loc='upper right')\r\nplt.title('Training and Validation Loss')\r\nplt.xlabel('epoch')\r\nplt.show()\r\n\r\n\r\n\r\nloss, accuracy = model.evaluate(test_dataset)\r\nprint('Test accuracy :', accuracy)\r\n\r\n\r\n\r\n# Retrieve a batch of images from the test set\r\nimage_batch, label_batch = test_dataset.as_numpy_iterator().next()\r\npredictions = model.predict_on_batch(image_batch).flatten()\r\n\r\n# Apply a sigmoid since our model returns logits\r\npredictions = tf.nn.sigmoid(predictions)\r\npredictions = tf.where(predictions < 0.5, 0, 1)\r\n\r\nprint('Predictions:\\n', predictions.numpy())\r\nprint('Labels:\\n', label_batch)\r\n\r\nplt.figure(figsize=(10, 10))\r\nfor i in range(9):\r\n ax = plt.subplot(3, 3, i + 1)\r\n plt.imshow(image_batch[i].astype(\"uint8\"))\r\n plt.title(class_names[predictions[i]])\r\n plt.axis(\"off\")\r\n```",
"```\r\npython transfer_learning.py\r\n/Users/xx/.keras/datasets/cats_and_dogs_filtered/train\r\nFound 2000 files belonging to 2 classes.\r\n2023-09-06 11:30:26.013698: I metal_plugin/src/device/metal_device.cc:1154] Metal device set to: Apple M1\r\n2023-09-06 11:30:26.013724: I metal_plugin/src/device/metal_device.cc:296] systemMemory: 16.00 GB\r\n2023-09-06 11:30:26.013732: I metal_plugin/src/device/metal_device.cc:313] maxCacheSize: 5.33 GB\r\n2023-09-06 11:30:26.013761: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:303] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.\r\n2023-09-06 11:30:26.013780: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:269] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 0 MB memory) -> physical PluggableDevice (device: 0, name: METAL, pci bus id: <undefined>)\r\nFound 1000 files belonging to 2 classes.\r\nNumber of validation batches: 26\r\nNumber of test batches: 6\r\n2023-09-06 11:30:26.517778: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.601981: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.623299: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.645325: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.665856: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.686681: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.707228: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.728116: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\n2023-09-06 11:30:26.748746: I metal_plugin/src/kernels/stateless_random_op.cc:282] Note the GPU implementation does not produce the same series as CPU implementation.\r\nTraceback (most recent call last):\r\n File \"/Users/xx/Downloads/transfer_learning.py\", line 103, in <module>\r\n base_model = tf.keras.applications.MobileNetV2(input_shape=IMG_SHAPE,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/xx/.pyenv/versions/3.11.3/lib/python3.11/site-packages/keras/src/applications/mobilenet_v2.py\", line 481, in MobileNetV2\r\n model.load_weights(weights_path)\r\n File \"/Users/xx/.pyenv/versions/3.11.3/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py\", line 70, in error_handler\r\n raise e.with_traceback(filtered_tb) from None\r\n File \"/Users/xx/.pyenv/versions/3.11.3/lib/python3.11/site-packages/h5py/_hl/files.py\", line 567, in __init__\r\n fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/xx/.pyenv/versions/3.11.3/lib/python3.11/site-packages/h5py/_hl/files.py\", line 231, in make_fid\r\n fid = h5f.open(name, flags, fapl=fapl)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"h5py/_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper\r\n File \"h5py/_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper\r\n File \"h5py/h5f.pyx\", line 106, in h5py.h5f.open\r\nOSError: Unable to open file (truncated file: eof = 2568306, sblock->base_addr = 0, stored_eof = 9406464)\r\n```",
"@SuryanarayanaY The issue has been resolved by deleting the v2 models in ~/.keras/models directory, and then running it again.",
"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/61788\">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/61788\">No</a>\n"
] | 2023-09-05T04:04:13 | 2023-09-07T02:00:43 | 2023-09-07T02:00:40 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
v2.13.0-rc2-7-g1cb1a030a62 2.13.0
### Custom code
No
### OS platform and distribution
mac os 13.5.1
### Mobile device
_No response_
### Python version
3.11.3
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[15], line 3
1 # Create the base model from the pre-trained model MobileNet V2
2 IMG_SHAPE = IMG_SIZE + (3,)
----> 3 base_model = tf.keras.applications.mobilenet_v2.MobileNetV2(input_shape=IMG_SHAPE,
4 include_top=False,
5 weights='imagenet')
File [~/.pyenv/versions/3.11.3/lib/python3.11/site-packages/keras/src/applications/mobilenet_v2.py:481], in MobileNetV2(input_shape, alpha, include_top, weights, input_tensor, pooling, classes, classifier_activation, **kwargs)
477 weight_path = BASE_WEIGHT_PATH + model_name
478 weights_path = data_utils.get_file(
479 model_name, weight_path, cache_subdir="models"
480 )
--> 481 model.load_weights(weights_path)
482 elif weights is not None:
483 model.load_weights(weights)
File [~/.pyenv/versions/3.11.3/lib/python3.11/site-packages/keras/src/utils/traceback_utils.py:70], in filter_traceback..error_handler(*args, **kwargs)
67 filtered_tb = _process_traceback_frames(e.__traceback__)
68 # To get the full stack trace, call:
69 # `tf.debugging.disable_traceback_filtering()`
---> 70 raise e.with_traceback(filtered_tb) from None
71 finally:
72 del filtered_tb
...
File h5py/_objects.pyx:55, in h5py._objects.with_phil.wrapper()
File h5py/h5f.pyx:106, in h5py.h5f.open()
OSError: Unable to open file (truncated file: eof = 2568306, sblock->base_addr = 0, stored_eof = 9406464)
### Standalone code to reproduce the issue
```shell
https://tensorflow.google.cn/tutorials/images/transfer_learning
# Create the base model from the pre-trained model MobileNet V2
IMG_SHAPE = IMG_SIZE + (3,)
base_model = tf.keras.applications.MobileNetV2(input_shape=IMG_SHAPE,
include_top=False,
weights='imagenet')
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61788/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61788/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61787 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61787/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61787/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61787/events | https://github.com/tensorflow/tensorflow/issues/61787 | 1,881,110,598 | I_kwDOArmXAs5wH3hG | 61,787 | hope keras.layers.HashedCrossing support feature crossing with shape [batch_size, None] like tf.feature_column.crossed_column | {
"login": "fire-keeper",
"id": 30102390,
"node_id": "MDQ6VXNlcjMwMTAyMzkw",
"avatar_url": "https://avatars.githubusercontent.com/u/30102390?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fire-keeper",
"html_url": "https://github.com/fire-keeper",
"followers_url": "https://api.github.com/users/fire-keeper/followers",
"following_url": "https://api.github.com/users/fire-keeper/following{/other_user}",
"gists_url": "https://api.github.com/users/fire-keeper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fire-keeper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fire-keeper/subscriptions",
"organizations_url": "https://api.github.com/users/fire-keeper/orgs",
"repos_url": "https://api.github.com/users/fire-keeper/repos",
"events_url": "https://api.github.com/users/fire-keeper/events{/privacy}",
"received_events_url": "https://api.github.com/users/fire-keeper/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
},
{
"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 | [
"Is there anyone already working on the issue?"
] | 2023-09-05T03:12:28 | 2023-09-17T17:24:16 | null | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.12
### Custom code
Yes
### OS platform and distribution
ubuntu 16.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 behavior?
now keras.layers.HashedCrossing asssets All `HashedCrossing` inputs should have shape `[]`, `[batch_size]` or `[batch_size, 1]`. Received: inputs=[, ]. I need to cross [batch_size, 1] with shape [batch_size, None]( indefinite length sequence which is stored as sparse tensor). tf.feature_column.crossed_column could satisfy the demand while keras.layers.HashedCrossing dose not.
I hope keras.layers.HashedCrossing could get new feature to satisfy the demand.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
from tensorflow import keras
# cross with shape [None]
indices = [[0,0], [1,0], [2,0], [3,0], [3,1], [4,0], [4,1], [5,0], [5,1], [5,2], [6,0], [6,1], [6,2], [6,3]]
values = list("abcabacabcaaaa")
shape = [7, 4]
sparse_feature_tensor = tf.sparse.SparseTensor(indices, values, dense_shape=shape)
"""
[['a' ]
['b' ]
['c' ]
['a' 'b' ]
['a' 'c' ]
['a' 'b' 'c' ]
['a' 'a' 'a' 'a']]
"""
dense_feature_tensor = tf.constant([[1], [1], [1], [2], [1], [1], [1], ])
sparse_feature = keras.Input(shape=(None, ), dtype=tf.string)
dense_feature = keras.Input(shape=(1,), dtype=tf.int64)
cross_layer = keras.layers.HashedCrossing(num_bins = 100)
cross_output = cross_layer((sparse_feature, dense_feature))
embedding_layer = keras.layers.Embedding(100+1, 8, sparse=True)
cross_embedding = embedding_layer(cross_output)
preprocessing_model = keras.Model({"sparse_feature": sparse_feature, "dense_feature": dense_feature}, {"cross_output": cross_output, "cross_embedding": cross_embedding})
# raise ValueError: Exception encountered when calling layer "hashed_crossing" (type HashedCrossing).
# All `HashedCrossing` inputs should have shape `[]`, `[batch_size]` or `[batch_size, 1]`. Received: inputs=[, ]
# Call arguments received by layer "hashed_crossing" (type HashedCrossing):
• inputs=('tf.Tensor(shape=(None, None), dtype=string)', 'tf.Tensor(shape=(None, 1), dtype=int64)')
# cross with shape [2]
dense_feature_tensor = tf.constant([[1], [1], [1], [2], [1], [1], [1], ])
dense_feature_2_tensor = tf.constant([[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ])
dense_feature_2 = keras.Input(shape=(2, ), dtype=tf.string)
dense_feature = keras.Input(shape=(1,), dtype=tf.int64)
cross_layer = keras.layers.HashedCrossing(num_bins = 100)
cross_output = cross_layer((dense_feature_2, dense_feature))
embedding_layer = keras.layers.Embedding(100+1, 8, sparse=True)
cross_embedding = embedding_layer(cross_output)
preprocessing_model = keras.Model({"dense_feature_2": dense_feature_2, "dense_feature": dense_feature}, {"cross_output": cross_output, "cross_embedding": cross_embedding})
# raise the same error like previous code block
```
### Relevant log output
```shell
File d:\software\conda\envs\py38\lib\site-packages\keras\layers\preprocessing\hashed_crossing.py:206, in HashedCrossing._check_input_shape_and_type(self, inputs)
204 rank = len(first_shape)
205 if rank > 2 or (rank == 2 and first_shape[-1] != 1):
--> 206 raise ValueError(
207 "All `HashedCrossing` inputs should have shape `[]`, "
208 "`[batch_size]` or `[batch_size, 1]`. "
209 f"Received: inputs={inputs}"
210 )
211 if not all(x.shape.as_list() == first_shape for x in inputs[1:]):
212 raise ValueError(
213 "All `HashedCrossing` inputs should have equal shape. "
214 f"Received: inputs={inputs}"
215 )
ValueError: Exception encountered when calling layer "hashed_crossing_1" (type HashedCrossing).
All `HashedCrossing` inputs should have shape `[]`, `[batch_size]` or `[batch_size, 1]`. Received: inputs=[, ]
Call arguments received by layer "hashed_crossing_1" (type HashedCrossing):
• inputs=('tf.Tensor(shape=(None, 2), dtype=string)', 'tf.Tensor(shape=(None, 1), dtype=int64)')
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61787/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61787/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61786 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61786/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61786/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61786/events | https://github.com/tensorflow/tensorflow/issues/61786 | 1,881,103,591 | I_kwDOArmXAs5wH1zn | 61,786 | How do I set the threshold(iou/score) of TFLite Detection PostProcess via interpreter? | {
"login": "Bajirak",
"id": 108508050,
"node_id": "U_kgDOBnezkg",
"avatar_url": "https://avatars.githubusercontent.com/u/108508050?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Bajirak",
"html_url": "https://github.com/Bajirak",
"followers_url": "https://api.github.com/users/Bajirak/followers",
"following_url": "https://api.github.com/users/Bajirak/following{/other_user}",
"gists_url": "https://api.github.com/users/Bajirak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Bajirak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Bajirak/subscriptions",
"organizations_url": "https://api.github.com/users/Bajirak/orgs",
"repos_url": "https://api.github.com/users/Bajirak/repos",
"events_url": "https://api.github.com/users/Bajirak/events{/privacy}",
"received_events_url": "https://api.github.com/users/Bajirak/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": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 2788658540,
"node_id": "MDU6TGFiZWwyNzg4NjU4NTQw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support",
"name": "comp:lite-support",
"color": "4A5F20",
"default": false,
"description": "Lite support library related issues"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Bajirak \r\n\r\nWe don't have any method to set threshold in the interpreter API, however you can run the get the output from the interpreter and applying threshold explicitly as given below\r\n```\r\ndef detect_objects(interpreter, image, threshold):\r\n \"\"\"Returns a list of detection results, each a dictionary of object info.\"\"\"\r\n\r\n signature_fn = interpreter.get_signature_runner()\r\n\r\n # Feed the input image to the model\r\n output = signature_fn(images=image)\r\n\r\n # Get all outputs from the model\r\n count = int(np.squeeze(output['output_0']))\r\n scores = np.squeeze(output['output_1'])\r\n classes = np.squeeze(output['output_2'])\r\n boxes = np.squeeze(output['output_3'])\r\n\r\n results = []\r\n for i in range(count):\r\n if scores[i] >= threshold:\r\n result = {\r\n 'bounding_box': boxes[i],\r\n 'class_id': classes[i],\r\n 'score': scores[i]\r\n }\r\n results.append(result)\r\n return results\r\n```\r\nPlease check this example of postprocessing for TFLite object detetcion and let us know if it helps.\r\nhttps://www.tensorflow.org/lite/models/modify/model_maker/object_detection#load_the_trained_tflite_model_and_define_some_visualization_functions\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.",
"Hi, @pjpratik \r\n\r\nYou responded quickly, but I'm sorry for being late.\r\n\r\nThank you for letting me know that I cannot control the threshold through the interpreter API.\r\n\r\nIt was very helpful.\r\n\r\nThanks.",
"Hi @Bajirak \r\n\r\nGlad it helped. Please feel free to close the issue since it is resolved.\r\n\r\nThanks."
] | 2023-09-05T03:05:41 | 2023-09-21T01:23:06 | 2023-09-21T01:23:06 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 18.04
- TensorFlow installation (pip package or built from source): pip package, python3.8
- TensorFlow library (version, if pip package or github SHA, if built from source): 2.13.0
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
Download tflite model from https://tfhub.dev/iree/lite-model/ssd_mobilenet_v1_100_320/fp32/nms/1?lite-format=tflite
#### Interpreter code
`
import numpy as np
import tensorflow as tf
//TensorFlow Lite model path
tflite_model_file = 'lite-model_ssd_mobilenet_v1_100_320_fp32_nms_1.tflite'
interpreter = tf.lite.Interpreter(model_path=tflite_model_file)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
input_shape = input_details[0]['shape']
input_array = np.array(np.random.random_sample(input_shape), dtype=np.float32)
//HOW TO SET THRESHOLD POST-PROCESS
// is there any method like 'interpreter.set_threshold()' ?
interpreter.set_tensor(input_details[0]['index'], input_array)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
print(output_data)
`
### 3. Failure after conversion
### 4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
### 5. (optional) Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61786/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61786/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61784 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61784/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61784/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61784/events | https://github.com/tensorflow/tensorflow/pull/61784 | 1,880,506,251 | PR_kwDOArmXAs5Zfz-R | 61,784 | Remove unused `LIBDIR` and `INCLUDEDIR` build variables | {
"login": "Flamefire",
"id": 309017,
"node_id": "MDQ6VXNlcjMwOTAxNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/309017?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Flamefire",
"html_url": "https://github.com/Flamefire",
"followers_url": "https://api.github.com/users/Flamefire/followers",
"following_url": "https://api.github.com/users/Flamefire/following{/other_user}",
"gists_url": "https://api.github.com/users/Flamefire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Flamefire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Flamefire/subscriptions",
"organizations_url": "https://api.github.com/users/Flamefire/orgs",
"repos_url": "https://api.github.com/users/Flamefire/repos",
"events_url": "https://api.github.com/users/Flamefire/events{/privacy}",
"received_events_url": "https://api.github.com/users/Flamefire/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | open | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, Can you please review this PR ? Thank you!"
] | 2023-09-04T15:25:24 | 2024-06-07T16:12:29 | null | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61784",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61784",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61784.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61784.patch",
"merged_at": null
} | Those are no longer. Technically only `PROTOBUF_INCLUDE_PATH` is required but as it uses `PREFIX` by default other projects could use the latter so I kept `PREFIX` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61784/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61784/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61783 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61783/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61783/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61783/events | https://github.com/tensorflow/tensorflow/issues/61783 | 1,879,609,835 | I_kwDOArmXAs5wCJHr | 61,783 | Quantization aware training - label smoothing drops performance? | {
"login": "mhyeonsoo",
"id": 32179857,
"node_id": "MDQ6VXNlcjMyMTc5ODU3",
"avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mhyeonsoo",
"html_url": "https://github.com/mhyeonsoo",
"followers_url": "https://api.github.com/users/mhyeonsoo/followers",
"following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}",
"gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions",
"organizations_url": "https://api.github.com/users/mhyeonsoo/orgs",
"repos_url": "https://api.github.com/users/mhyeonsoo/repos",
"events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/mhyeonsoo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 2671351731,
"node_id": "MDU6TGFiZWwyNjcxMzUxNzMx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ModelOptimizationToolkit",
"name": "ModelOptimizationToolkit",
"color": "BFD629",
"default": false,
"description": "TF Model Optimization Toolkit"
},
{
"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 @mhyeonsoo \r\n\r\nCould you please share a reproducible code in order to better understand and investigate the issue?\r\n\r\nThanks.",
"@pjpratik \r\nSure, here's my all code for training.\r\n\r\n```python\r\ndef build_model(args):\r\n IMG_SHAPE = (args.input_dim, args.input_dim, 3)\r\n # Transfer learning model with MobileNetV3\r\n base_model = tf.keras.applications.MobileNetV3Large(\r\n input_shape=IMG_SHAPE,\r\n include_top=False,\r\n weights='imagenet',\r\n minimalistic=True,\r\n# include_preprocessing=False\r\n )\r\n # Freeze the pre-trained model weights\r\n base_model.trainable = False\r\n x = tf.keras.layers.GlobalMaxPooling2D()(base_model.output)\r\n x = tf.keras.layers.Dropout(0.2, name=\"top_dropout\")(x)\r\n x = tf.keras.layers.Dense(args.num_classes, activation='softmax')(x)\r\n \r\n model = tf.keras.Model(base_model.input, x)\r\n\r\n return model\r\n\r\n\r\ndef setup_pretrained_model(args, ckpt_path):\r\n \"\"\"\r\n Function to load pretrained model\r\n \"\"\"\r\n \r\n model = build_model(args)\r\n model.load_weights(ckpt_path)\r\n \r\n return model\r\n\r\n\r\ndef run_model(args, ckpt_path):\r\n # build base model architecture\r\n model = build_model(args)\r\n label_list = os.listdir(args.input_path)\r\n \r\n # Compile the model \r\n lr_schedule = tf.keras.optimizers.schedules.ExponentialDecay(\r\n args.lr,\r\n decay_steps=100000,\r\n decay_rate=0.96,\r\n staircase=True)\r\n model.compile(optimizer=tf.keras.optimizers.Lion(lr=args.lr), \r\n loss=tf.keras.losses.CategoricalCrossentropy(label_smoothing=args.label_smoothing),\r\n metrics=['accuracy']\r\n )\r\n \r\n # load data\r\n n_sample, train_ds, val_ds = load_data(args, args.input_dim)\r\n\r\n \r\n hist = model.fit(train_ds,\r\n epochs=args.epochs,\r\n validation_data=val_ds,\r\n steps_per_epoch=n_sample // args.batch_size,\r\n validation_steps=val_ds.n // args.batch_size,\r\n callbacks=[checkpoint_callback(ckpt_path),\r\n early_stopping(),\r\n logging_callback(args.log_dir),\r\n save_metadata_callback(ckpt_path, label_list)],\r\n verbose=1)\r\n\r\n\r\ndef fit_model(args):\r\n save_model_file = args.model_path + '/model_best.h5'\r\n qat_model_file = args.model_path + '/qat_model_best.h5'\r\n label_list = os.listdir(args.input_path)\r\n # fine-tunining baseline model for few epochs\r\n history = run_model(args, save_model_file)\r\n \r\n # load trained weights for quantization aware training\r\n model = setup_pretrained_model(args, save_model_file)\r\n \r\n def apply_quantization_to_dense(layer):\r\n if isinstance(layer, tf.keras.layers.Dense):\r\n return tfmot.quantization.keras.quantize_annotate_layer(layer)\r\n return layer\r\n\r\n annotated_model = tf.keras.models.clone_model(\r\n model,\r\n clone_function=apply_quantization_to_dense,\r\n )\r\n \r\n # Now that the Dense layers are annotated,\r\n # `quantize_apply` actually makes the model quantization aware.\r\n quant_aware_model = tfmot.quantization.keras.quantize_apply(annotated_model)\r\n\r\n n_sample, train_ds, val_ds = load_data(args, args.input_dim)\r\n\r\n # `quantize_model` requires a recompile.\r\n lr_schedule = tf.keras.optimizers.schedules.ExponentialDecay(\r\n args.lr / 10.0,\r\n decay_steps=100000,\r\n decay_rate=0.96,\r\n staircase=True)\r\n \r\n # Compile the model\r\n quant_aware_model.compile(optimizer=tf.keras.optimizers.Lion(lr=lr_schedule), \r\n loss=tf.keras.losses.CategoricalCrossentropy(label_smoothing=args.label_smoothing),\r\n metrics=['accuracy']\r\n )\r\n \r\n hist = quant_aware_model.fit(train_ds,\r\n epochs=args.epochs,\r\n validation_data=val_ds,\r\n steps_per_epoch=n_sample // args.batch_size,\r\n validation_steps=val_ds.n // args.batch_size,\r\n callbacks=[checkpoint_callback(qat_model_file),\r\n early_stopping(),\r\n logging_callback(args.log_dir),\r\n save_metadata_callback(qat_model_file, label_list)],\r\n verbose=1)\r\n\r\n plot_hist(hist)\r\n quant_aware_model.save(args.model_path + '/qat_model_last.h5')\r\n \r\n```",
"Hi @mhyeonsoo, do you have logs showing the performance differences? If your dataset is small enough and shareable that'll be easiest. Also can you provide the code used to call the above functions that show the performance difference? Thanks for your help!",
"@pkgoogle \r\nsorry for the late response.\r\nI am using private data so I am not allowed to share the dataset.\r\nBut yes, I am using small amount of data (~50 to 100 for each class).\r\n\r\nI think as for the log, I can share this evaluation results. (includes confidence score / prediction result)\r\n1. For the non-Label-smoothing trained model\r\n\r\n\r\n2. For the Label-smoothing trained model\r\n\r\n\r\n\r\nIt seemed like the model does not work at all for few data which shows 0.125 confidence (I am using 8 classes total)",
"Hi @mhyeonsoo,\r\n\r\nI am having trouble reproducing your issue, where are you getting your callbacks? (checkpoint_callback, early_stopping, logging_callback, and save_metadata_callback), how is load_data defined? Here is a slightly modified version of your code, if you can help me resolve these definitions or add more context we can investigate better. Here is a [gist](https://colab.sandbox.google.com/gist/pkgoogle/e7d48935d27c869b5578a1144b7ae650/61783.ipynb#scrollTo=5fGNAN4Znm61) that starts that process, if you can return to me a working version which shows your issue, that'll be easiest. I used MNIST here to get us started, it seems like the issue might be data independent but this will help us figure that out. Thanks for your help.",
"Hi @pkgoogle,\r\n\r\nHere is the callback functions that I used.\r\n\r\n```python\r\nclass SaveMetadataCallback(Callback):\r\n def __init__(self, filepath, labels):\r\n super(SaveMetadataCallback, self).__init__()\r\n self.filepath = filepath\r\n self.labels = labels\r\n\r\n def on_epoch_end(self, epoch, logs=None):\r\n # Save after each epoch\r\n with h5py.File(self.filepath, 'a') as f:\r\n if 'label_names' not in f:\r\n label_dataset = f.create_dataset('label_names', data=self.labels)\r\n\r\n def on_train_end(self, logs=None):\r\n # OR Save after training completion\r\n with h5py.File(self.filepath, 'a') as f:\r\n if 'label_names' not in f:\r\n label_dataset = f.create_dataset('label_names', data=self.labels)\r\n\r\n\r\ndef save_metadata_callback(ckpt_path, labels):\r\n return SaveMetadataCallback(filepath=ckpt_path, labels=labels)\r\n\r\n# Create a callback that saves the model's checkpoints\r\ndef checkpoint_callback(ckpt_path):\r\n return tf.keras.callbacks.ModelCheckpoint(filepath=ckpt_path,\r\n monitor='val_loss',\r\n verbose=1,\r\n save_best_only=True,\r\n save_weights_only=False,\r\n mode='auto',\r\n save_freq='epoch')\r\n\r\n\r\n\r\ndef early_stopping():\r\n return tf.keras.callbacks.EarlyStopping(monitor='val_loss',\r\n patience=10,\r\n verbose=1)\r\n\r\n\r\ndef logging_callback(log_dir):\r\n return tf.keras.callbacks.TensorBoard(log_dir=log_dir,\r\n histogram_freq=0,\r\n write_graph=True,\r\n write_images=False,\r\n update_freq='epoch',\r\n profile_batch=2,\r\n embeddings_freq=0,\r\n embeddings_metadata=None)\r\n```\r\n\r\n\r\nAnd for the dataloader, I followed tensorflow keras ImageDataGenerator.\r\n```python\r\ndef load_data(args, input_size):\r\n train_datagen = ImageDataGenerator(\r\n rotation_range=20,\r\n zoom_range=0.05,\r\n width_shift_range=0.05,\r\n height_shift_range=0.05,\r\n shear_range=0.05,\r\n horizontal_flip=True,\r\n fill_mode=\"nearest\",\r\n brightness_range=[0.8, 1.2],\r\n preprocessing_function=tray_crop,\r\n validation_split=0.2)\r\n```\r\n\r\n\r\nPlease tell me if there is anything else needed.\r\n\r\nThanks",
"Hi @mhyeonsoo,\r\n\r\nHow do you define the class \"Callback\"? is ImageDataGenerator tf.keras.preprocessing.image.ImageDataGenerator or something else? where/how is tray_crop defined?\r\n\r\nAlternatively, if you can resolve the issues in this gist we can reduce the amount of turn around: [gist](https://colab.sandbox.google.com/gist/pkgoogle/b4e011c99e76665d79e75a8b10ef0d3c/61783.ipynb) ",
"@pkgoogle \r\nMy apologies for the incomplete codes. I needed some filtering due to the private information.\r\nI setup the codes in the gist, so it may work without an error! The callback class was just a subclassing Class of keras Callback.",
"It seems like it had not been saved well. I saved the [gist](https://colab.research.google.com/gist/mhyeonsoo/3b0d0f05128f893aaca467f24ef0b656/61783.ipynb) again. Please check the updates. Thanks!",
"Hi @mhyeonsoo, your load_data function doesn't return anything and you try to unpack 3 values (n_sample, train_ds, val_ds) from it... did you finish it but not include the return statement? Thanks for your help.",
"Hi @pkgoogle, I used custom directory_based image dataloader so it returned successfully, but since we reproduce with the MNIST here, I think we can just use ds_train and ds_test instead.\r\nI modified the [gist](https://colab.research.google.com/gist/mhyeonsoo/3b0d0f05128f893aaca467f24ef0b656/61783.ipynb), so please test with this one.\r\n",
"Hi @mhyeonsoo, I made a decent amount of changes to try to reproduce this: [gist](https://colab.sandbox.google.com/gist/pkgoogle/7c9af594527e8c4bc227dd9573d3e2e5/61783.ipynb)\r\n\r\nI got the label_list from ds_train directly, I am unsure if this is what you meant by label_list\r\n\r\nIt seems like the model explicitly expects a batch dimension. I am running into the current issue you can see on the gist (can't batch inconsistent image sizes). I switched to imagenette as that's closer to how mobilenetv3 is trained. Can you give me some statistics about your dataset to see how to best progress on this? (i.e. what are the sizes of your dataset) Is it consistent? Any other information you think will be useful?",
"Hi @pkgoogle, sorry for these delays. It must be weigh easier to reproduce if I could share the whole dataset, my apologies.\r\nAs for the label_list, I just removed the part that is using label_list because it is not mandatory.\r\n[gist](https://colab.research.google.com/gist/mhyeonsoo/5747d34914914cdd34831ebe81e0e4f7/61783.ipynb)\r\nFor the image info, I resized the image as 224x224. And the whole dimension of it is (1,224,224,3) which is 3 channel.\r\nSince the number of my dataset is about ~700, I used 16 as batch size.\r\n\r\nI am not sure how tfds.load works here, but for mine, since I directly used ImageDataGenerator format, there had been a target_size argument so that I could resize it with this.\r\n\r\nAgain, sorry for making this inconvenience, and please tell me if anything is needed.\r\n\r\nThanks",
"Hi @mhyeonsoo, I was able to get things through this way: [gist](https://colab.sandbox.google.com/gist/pkgoogle/24c1bd9a459174143e051ce2ca1f7817/61783.ipynb)\r\n\r\nLower label_smoothing in general performs better. Imagenette's labeling is likely not incorrect, so I wouldn't expect label_smoothing to help. If you think your labeling is more likely to be incorrect then it may help (at least on validation accuracy). Of course if your labeling is more incorrect than 10% then I recommend improving your labeling instead. So it essentially doesn't make sense to have label_smoothing > 10% (0.1) anyways.\r\n\r\nare you using label_smoothing = 1.0? or near 1.0? If you are then it makes sense that your model can't tell the classes apart, which is why P(c) = 1/num_classes.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Hi @pkgoogle \nThanks for testing all these things. I was wondering about the possibility of the performance fluctuation depending on the dataset or baseline model architecture.\n\nAs you mentioned, it may be because of my dataset (it's quite small amount, pretty clear to understand, etc). \n\nAgain, thanks for considering responses and reproducues for this issue.\n\nThanks!",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61783\">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/61783\">No</a>\n"
] | 2023-09-04T06:37:40 | 2023-10-03T09:43:48 | 2023-10-03T09:43:46 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu18.04
- TensorFlow installation (pip package or built from source): pip package
- TensorFlow library (version, if pip package or github SHA, if built from source): 2.13.0
### 2. Code
```python
# fine-tunining baseline model for few epochs
history = run_model(args, save_model_file)
# load trained weights for quantization aware training
model = setup_pretrained_model(args, save_model_file)
def apply_quantization_to_dense(layer):
if isinstance(layer, tf.keras.layers.Dense):
return tfmot.quantization.keras.quantize_annotate_layer(layer)
return layer
annotated_model = tf.keras.models.clone_model(
model,
clone_function=apply_quantization_to_dense,
)
# Build Model
annotated_model.build((None, args.input_dim, args.input_dim ,3))
# Now that the Dense layers are annotated,
# `quantize_apply` actually makes the model quantization aware.
quant_aware_model = tfmot.quantization.keras.quantize_apply(annotated_model)
# quant_aware_model.summary()
n_sample, train_ds, val_ds = load_data(args, args.input_dim)
# `quantize_model` requires a recompile.
lr_schedule = tf.keras.optimizers.schedules.ExponentialDecay(
args.lr / 10.0,
decay_steps=100000,
decay_rate=0.96,
staircase=True)
# Compile the model
quant_aware_model.compile(optimizer=tf.keras.optimizers.Lion(lr=lr_schedule),
loss=tf.keras.losses.CategoricalCrossentropy(label_smoothing=args.label_smoothing),
metrics=['accuracy']
)
```
### 3. Failure after conversion
model successfully converted into tflite with the example code flow of quantization aware training,
but the test accuracy for tflite model is so low (~80%) compared to .pb model file. (~97%)
Before adopting label smoothing, quantization aware trained model (tflite) was working as good as original .pb model.
Is there any relationship between label smoothing and quantization aware training process?
Thanks!
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61783/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61783/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61782 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61782/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61782/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61782/events | https://github.com/tensorflow/tensorflow/pull/61782 | 1,879,492,800 | PR_kwDOArmXAs5ZcWiY | 61,782 | Add CPU_kernel with float16 for adjust_contrast_op.cc | {
"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": 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": 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"
},
{
"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 | [
"@cantonios ,\r\n\r\nThanks for the inputs. I got a doubt here. Suppose consider below snippet from identity_op.cc.\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/9d2607201ed37fef0b3d23249a2f757a9047a680/tensorflow/core/kernels/identity_op.cc#L154-L158\r\n\r\nIn the above Op code we are using `;` at both Marco end and at Register_Kernel call as well. I am not sure how its not having problem for this case. Any pointers would be appreciated.",
"@cantonios , Done the changes as suggested. Could you please review!",
"> @cantonios ,\r\n> \r\n> Thanks for the inputs. I got a doubt here. Suppose consider below snippet from identity_op.cc.\r\n> \r\n> https://github.com/tensorflow/tensorflow/blob/9d2607201ed37fef0b3d23249a2f757a9047a680/tensorflow/core/kernels/identity_op.cc#L154-L158\r\n> \r\n> In the above Op code we are using `;` at both Marco end and at Register_Kernel call as well. I am not sure how its not having problem for this case. Any pointers would be appreciated.\r\n\r\nIt does have a problem in that case. We are likely getting build warnings because of it.",
"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.",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"Done the changes.",
"It looks like you still haven't resolved this issue:\r\n```\r\nimplicit instantiation of undefined template 'tensorflow::AdjustContrastOpv2\r\n```",
"Hi @SuryanarayanaY Can you please check @cantonios's comments ? Thank you!",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"Hi @SuryanarayanaY Any update on this PR? Please. Thank you!",
"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.",
"Not stale.Looking into it.",
"Updated the kernel.",
"Can you add a test?",
"Hi @SuryanarayanaY Can you please check @cantonios's [comment](https://github.com/tensorflow/tensorflow/pull/61782#issuecomment-1990693272)? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-09-04T04:39:02 | 2024-05-25T01:49:08 | 2024-05-25T01:48:57 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/61782",
"html_url": "https://github.com/tensorflow/tensorflow/pull/61782",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/61782.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/61782.patch",
"merged_at": null
} | The API `tf.image.adjust_contrast` supports `float16` and `float32` for the argument images . But with `CPU` runtime and `float16` dtype the API raising exception stating there is no kernel available. Refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/6990939226d9d79dfe9225b13919c288/61246_cpu.ipynb) for the exception.
Hence adding a kernel for CPU with float16.
Shall also fixes #61246 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61782/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61782/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/61781 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61781/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61781/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61781/events | https://github.com/tensorflow/tensorflow/issues/61781 | 1,879,181,522 | I_kwDOArmXAs5wAgjS | 61,781 | Can't run bert_vocab_from_dataset without TypeError: Tensor is unhashable | {
"login": "mihalt",
"id": 30621622,
"node_id": "MDQ6VXNlcjMwNjIxNjIy",
"avatar_url": "https://avatars.githubusercontent.com/u/30621622?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mihalt",
"html_url": "https://github.com/mihalt",
"followers_url": "https://api.github.com/users/mihalt/followers",
"following_url": "https://api.github.com/users/mihalt/following{/other_user}",
"gists_url": "https://api.github.com/users/mihalt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mihalt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mihalt/subscriptions",
"organizations_url": "https://api.github.com/users/mihalt/orgs",
"repos_url": "https://api.github.com/users/mihalt/repos",
"events_url": "https://api.github.com/users/mihalt/events{/privacy}",
"received_events_url": "https://api.github.com/users/mihalt/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": 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": 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 | [
"@mihalt I was able to run the manual code successfully, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/e1c98e4302437a8f00749c31861b0db3/subwords_tokenizer.ipynb) here. I tried to replicate the issue reported here and faced a different error. Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/7ac798e100d4ac736c9d6a3262340c9c/61781.ipynb) and share all the dependencies. Thank you!\r\n",
"> I was able to run the manual code successfully, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/e1c98e4302437a8f00749c31861b0db3/subwords_tokenizer.ipynb) here.\r\n\r\nYes, I know, that on server of official documentation it is fine\r\n\r\n> I tried to replicate the issue reported here and faced a different error. Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/7ac798e100d4ac736c9d6a3262340c9c/61781.ipynb) and share all the dependencies. Thank you!\r\n\r\nYou can create any txt files with any text and put its path instead SENTENCES_PATH, TAGS_PATH to prevent an error\r\n`NameError: name 'SENTENCES_PATH' is not defined`\r\n",
"I've just run my code in another pc and it looks fine. So, what a problem can be in my problematic pc? What do you think? \r\n\r\nI have both\r\n```\r\n>>>tf.executing_eagerly()\r\nTrue\r\n```\r\n",
"@sushreebarsa You can congratulate me, I've found an error. Looks like that this code incompatible with `import trax`. But I a bit not fully understand what to do now, if I would like to use them both. ",
"@mihalt ,\r\n\r\nI tried replicating the issue with a simple dataset (without trax) and its working fine.Refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/be9bad98cbb3888ee67ef1c603d4c329/61781.ipynb).\r\n\r\nIt seems `trax` has different dependencies compared to tensorflow/tensorflow_text. I am not sure why trax being used by you. I request you to create different environments for both and then try.",
"> @mihalt ,\r\n> \r\n> I tried replicating the issue with a simple dataset (without trax) and its working fine.Refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/be9bad98cbb3888ee67ef1c603d4c329/61781.ipynb).\r\n> \r\n> It seems `trax` has different dependencies compared to tensorflow/tensorflow_text. I am not sure why trax being used by you. I request you to create different environments for both and then try.\r\n\r\n\r\n\r\n> I tried replicating the issue with a simple dataset (without trax) and its working fine.Refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/be9bad98cbb3888ee67ef1c603d4c329/61781.ipynb).\r\n\r\nyes, it works without trax\r\n\r\nAnd what if I need it in the same notebook? I am not sure that new environment should help in this case. ",
"@mihalt ,\r\n\r\nI think this issue is more specific to Trax and needs to be addressed there. Could you please follow the Trax [example](https://github.com/google/trax/blob/master/README.md#1-run-a-pre-trained-transformer) here on how to create a model using Trax.\r\n",
"The issue needs to be addressed in Trax repo.So please follow up there if still having problems.",
"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/61781\">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/61781\">No</a>\n"
] | 2023-09-03T17:53:40 | 2023-09-27T01:47:42 | 2023-09-27T01:47:40 | NONE | null | null | null | ### Issue type
Support
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.13
### 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?
This is the code from you [manual ](https://www.tensorflow.org/text/guide/subwords_tokenizer#generate_the_vocabulary)and I really don't understans that I get this error. Why is it?
If I add
tf.compat.v1.disable_eager_execution()
tf.compat.v1.disable_v2_behavior()
I get
RuntimeError: input_dataset: Attempting to capture an EagerTensor without building a function.
### Standalone code to reproduce the issue
```shell
data = tf.data.TextLineDataset([SENTENCES_PATH, TAGS_PATH])
from tensorflow_text.tools.wordpiece_vocab import bert_vocab_from_dataset as bert_vocab
tokens = bert_vocab.bert_vocab_from_dataset(
data,
# The target vocabulary size
vocab_size = 50000,
# Reserved tokens that must be included in the vocabulary
reserved_tokens=["[PAD]", "[UNK]", "[START]", "[END]"],
# Arguments for `text.BertTokenizer`
bert_tokenizer_params=dict(lower_case=True),
# Arguments for `wordpiece_vocab.wordpiece_tokenizer_learner_lib.learn`
learn_params={},
)
```
### Relevant log output
```shell
TypeError: Tensor is unhashable. Instead, use tensor.ref() as the key.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61781/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61781/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61780 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61780/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61780/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61780/events | https://github.com/tensorflow/tensorflow/issues/61780 | 1,879,120,035 | I_kwDOArmXAs5wARij | 61,780 | Process aborted when running `tf.gather` and `tf.compat.v1.gather` on GPU with large parameters and indices | {
"login": "oawxkw",
"id": 48113733,
"node_id": "MDQ6VXNlcjQ4MTEzNzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/48113733?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oawxkw",
"html_url": "https://github.com/oawxkw",
"followers_url": "https://api.github.com/users/oawxkw/followers",
"following_url": "https://api.github.com/users/oawxkw/following{/other_user}",
"gists_url": "https://api.github.com/users/oawxkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oawxkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oawxkw/subscriptions",
"organizations_url": "https://api.github.com/users/oawxkw/orgs",
"repos_url": "https://api.github.com/users/oawxkw/repos",
"events_url": "https://api.github.com/users/oawxkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/oawxkw/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 @oawxkw ,\r\n\r\nI have tested the code with both CPU and GPU runtimes. On CPU it is raising exception and on GPU its giving OOM error. I have executed the GPU code multiple runs and its OOM error only due to large input size. \r\n\r\nPlease refer to attached [cpu-gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/b94647d4d7875c851896a82436d2fd4d/61780_cpu.ipynb) and [gpu-gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/f0d6e2aa0c532b01d5e2510bbb587cfd/61780_gpu.ipynb) here.\r\n\r\nI am unable to replicate GPU behaviour reported by you. Could you please cross check and confirm the GPU behaviour. If OOM error occurs then it should fine and API working as expected.\r\n\r\nThanks!",
"\r\nI think this is probably a GPU/memory specific issue, and I'm using a 24GiB RTX 3090 GPU with the latest `tensorflow/tensorflow:2.14.0rc1-gpu` docker image.\r\nI've tried to run the code with different parameters (only the last dimension is changed).\r\nThe Check failed error only occurs when the last dimension of `params` is 10 or 14, while the OOM error occurs when the last dimension is 36.\r\nHere are the outputs of different parameters:\r\n\r\n```python\r\nparams = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 8], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n\r\n# output:\r\n# v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n# [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n# Success!\r\n```\r\n\r\n```python\r\nparams = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 10], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n\r\n# output:\r\n# v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n# [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n# 2023-09-04 08:27:16.315778: F ./tensorflow/core/util/gpu_launch_config.h:160] Check failed: work_element_count >= 0 (0 vs. -1619294296)\r\n# Aborted (core dumped)\r\n```\r\n\r\n```python\r\nparams = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 14], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n\r\n# output:\r\n# v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n# [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n# 2023-09-04 08:18:55.709111: F ./tensorflow/core/util/gpu_launch_config.h:160] Check failed: work_element_count >= 0 (0 vs. -549025096)\r\n# Aborted (core dumped)\r\n```\r\n\r\n```python\r\nparams = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 18], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n\r\n# output:\r\n# v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n# [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n# Success!\r\n```\r\n\r\n```python\r\nparams = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 36], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n\r\n# output:\r\n# v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n# [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n# Error: {{function_node __wrapped__GatherV2_device_/job:localhost/replica:0/task:0/device:GPU:0}} OOM when allocating tensor with shape[11,12,6,15,11,3,15,7,13,36] and type half on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc [Op:GatherV2] name: \r\n# Success!\r\n```\r\n",
"Hello @SuryanarayanaY ,\r\n\r\nI finally observed the same behavior on colab with the following code snippet, and you can reproduce it by running the code on colab with GPU enabled.\r\nThe Check failed error only occurs when the last dimension of `params` is 5 (in T4 GPU), while the OOM error occurs when the last dimension is greater than 6.\r\n\r\n```python\r\nimport tensorflow as tf\r\nprint(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)\r\n\r\ntry:\r\n validate_indices = False # True\r\n params = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 5], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)\r\n indices = tf.saturate_cast(tf.random.uniform([11, 12, 6, 15, 11, 3], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.int64)\r\n res = tf.gather(\r\n validate_indices=validate_indices,\r\n params=params,\r\n indices=indices,\r\n )\r\nexcept Exception as e:\r\n print(\"Error:\", str(e), flush=True)\r\nprint(\"Success!\", flush=True)\r\n```\r\n\r\n",
"@oawxkw ,\r\n\r\nThanks for your time in submitting the check-fail case. I have replicated the reported behaviour now. As you said when the last dimension of params i.e when `params.shape[-1] = 5` then only check fail followed by crash is happening. Attached screenshot below.It needs to be checked. Also security issues has to be reported as mentioned in [SECURITY.md](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) .\r\n\r\n<img width=\"1498\" alt=\"Screenshot 2023-09-07 at 5 40 18 PM\" src=\"https://github.com/tensorflow/tensorflow/assets/116063290/0ac4af2d-c8c4-4178-bff6-bc0d6cf7aff7\">\r\n\r\n\r\nFor other values `params.shape[-1] < 5` or `params.shape[-1] > 5`, the API working as intended. Attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/07e18cedb617437010055b49a33e2d76/61780_gpu_r1.ipynb) for reference."
] | 2023-09-03T14:31:11 | 2023-09-21T02:09:22 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.14.0-rc1
### 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?
Process aborted when running `tf.gather` and `tf.compat.v1.gather` on GPU with certain parameters and indices, while it throws an Exception on CPU.
It always happens on GPU favor when the `params` and `indices` are large, regardless of the `validate_indices` value.
Besides, the Check failed error still occurs when `validate_indices` is set to `True`, and it should be an Exception instead.
I think the root cause of this behavior should be related to the bug in #60276 and #60756, which face a Check failed error in `tf.raw_ops.Gather/V2` op.
### Standalone code to reproduce the issue
```python
import tensorflow as tf
print(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)
try:
validate_indices = False # True
params = tf.saturate_cast(tf.random.uniform([13, 15, 7, 13, 14], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.half)
indices = tf.saturate_cast(tf.random.uniform([11, 12, 6, 15, 11, 3], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.int64)
res = tf.gather(
validate_indices=validate_indices,
params=params,
indices=indices,
)
# res = tf.compat.v1.gather(
# validate_indices=validate_indices,
# params=params,
# indices=indices,
# )
except Exception as e:
print("Error:", str(e), flush=True)
print("Success!", flush=True)
```
### Relevant log output
On GPU, it throws a Check failed and core dumped.
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
2023-09-03 13:08:24.487989: F ./tensorflow/core/util/gpu_launch_config.h:160] Check failed: work_element_count >= 0 (0 vs. -549025096)
Aborted (core dumped)
```
On CPU, it throws a Exception.
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
Error: {{function_node __wrapped__GatherV2_device_/job:localhost/replica:0/task:0/device:CPU:0}} indices[7,11,2,8,5,1] = 424 is not in [0, 13) [Op:GatherV2] name:
Success!
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61780/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61780/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61779 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61779/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61779/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61779/events | https://github.com/tensorflow/tensorflow/issues/61779 | 1,879,119,072 | I_kwDOArmXAs5wARTg | 61,779 | The model does not save and load correctly when containing `tf.keras.layers.experimental.preprocessing.StringLookup` layer | {
"login": "oawxkw",
"id": 48113733,
"node_id": "MDQ6VXNlcjQ4MTEzNzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/48113733?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oawxkw",
"html_url": "https://github.com/oawxkw",
"followers_url": "https://api.github.com/users/oawxkw/followers",
"following_url": "https://api.github.com/users/oawxkw/following{/other_user}",
"gists_url": "https://api.github.com/users/oawxkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oawxkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oawxkw/subscriptions",
"organizations_url": "https://api.github.com/users/oawxkw/orgs",
"repos_url": "https://api.github.com/users/oawxkw/repos",
"events_url": "https://api.github.com/users/oawxkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/oawxkw/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"
}
] | 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 | [
"@oawxkw,\r\nI was able to reproduce the issue on tensorflow [v2.12](https://colab.research.google.com/gist/tilakrayal/58f9ce1b1f256c865ecf4beca79723a5/untitled1353.ipynb), [v2.13](https://colab.research.google.com/gist/tilakrayal/07ab41ec574cb435e1a47f40fe5c8892/untitled1353.ipynb) and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/28dc3a29ada082719722aee96bfc5fe1/untitled1354.ipynb).\r\n\r\nThank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). \r\n\r\nCould you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).\r\nTo know more please refer:\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\nThank you!\r\n\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/61779\">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/61779\">No</a>\n"
] | 2023-09-03T14:28:22 | 2023-09-19T01:47:34 | 2023-09-19T01:47:31 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.14.0-rc1
### 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?
The model does not save and load correctly when containing `tf.keras.layers.experimental.preprocessing.StringLookup` layer.
It seems that the `vocabulary` is not saved or loaded correctly, which is empty when loading the model.
This behavior may relate to #61369, but different API endpoint.
### Standalone code to reproduce the issue
```python
import pickle
import tensorflow as tf
print(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)
model_input = tf.keras.Input(shape=(1,), dtype=tf.int64)
lookup = tf.keras.layers.experimental.preprocessing.StringLookup(vocabulary=['a', 'b'])(model_input)
output = tf.keras.layers.Dense(10)(lookup)
full_model = tf.keras.Model(model_input, output)
# this part works
try:
model_bytes = pickle.dumps(full_model)
model_recovered = pickle.loads(model_bytes)
except Exception as e:
print("Failed! Error:", e, flush=True)
else:
print("Success!", flush=True)
# this part throws an error
try:
full_model.save("/tmp/temp_model")
full_model_loaded = tf.keras.models.load_model("/tmp/temp_model")
model_bytes = pickle.dumps(full_model_loaded)
model_recovered = pickle.loads(model_bytes)
except Exception as e:
print("Failed! Error:", e, flush=True)
else:
print("Success!", flush=True)
```
### Relevant log output
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
Success!
WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. `model.compile_metrics` will be empty until you train or evaluate the model.
WARNING:tensorflow:No training configuration found in save file, so the model was *not* compiled. Compile it manually.
WARNING:tensorflow:No training configuration found in save file, so the model was *not* compiled. Compile it manually.
Failed! Error: Error when deserializing class 'StringLookup' using config={'name': 'string_lookup', 'trainable': True, 'dtype': 'int64', 'invert': False, 'max_tokens': None, 'num_oov_indices': 1, 'oov_token': '[UNK]', 'mask_token': None, 'output_mode': 'int', 'sparse': False, 'pad_to_max_tokens': False, 'idf_weights': None, 'vocabulary': [], 'vocabulary_size': 3, 'encoding': 'utf-8'}.
Exception encountered: Cannot set an empty vocabulary, you passed [].
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61779/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/61779/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/61778 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/61778/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/61778/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/61778/events | https://github.com/tensorflow/tensorflow/issues/61778 | 1,879,118,553 | I_kwDOArmXAs5wARLZ | 61,778 | Process aborted when running `tf.keras.layers.MaxPooling1D` on GPU with large `pool_size` | {
"login": "oawxkw",
"id": 48113733,
"node_id": "MDQ6VXNlcjQ4MTEzNzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/48113733?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/oawxkw",
"html_url": "https://github.com/oawxkw",
"followers_url": "https://api.github.com/users/oawxkw/followers",
"following_url": "https://api.github.com/users/oawxkw/following{/other_user}",
"gists_url": "https://api.github.com/users/oawxkw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/oawxkw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oawxkw/subscriptions",
"organizations_url": "https://api.github.com/users/oawxkw/orgs",
"repos_url": "https://api.github.com/users/oawxkw/repos",
"events_url": "https://api.github.com/users/oawxkw/events{/privacy}",
"received_events_url": "https://api.github.com/users/oawxkw/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": 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 @oawxkw,\r\n\r\nI have replicated the reported behaviour.With CPU runtime the code is raising the intended exception as per attached \r\n[cpu-gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/a355128c42aed48a5f91d7e20bf62110/61778_cpu.ipynb).\r\n\r\n\r\nBut with GPU runtime session getting crashed.\r\n\r\n<img width=\"1508\" alt=\"Screenshot 2023-09-04 at 12 07 01 PM\" src=\"https://github.com/tensorflow/tensorflow/assets/116063290/1153bc27-45ef-4021-a8cf-c83c6b688d16\">\r\n\r\n",
"@oawxkw ,\r\n\r\nThis can be duplicate of #61642 as tf.compat.v1.layers.MaxPooling1D is inheriting from keras.layers.MaxPooling1D only. The other issue already under Dev team review.\r\n\r\nThanks!",
"I also observed some similar \"Check failed\" errors when using the following APIs on GPU.\r\n\r\n- `tf.keras.layers.MaxPooling1D`, `tf.keras.layers.MaxPool1D`, `tf.compat.v1.keras.layers.MaxPooling1D`, `tf.compat.v1.keras.layers.MaxPool1D`\r\n- `tf.keras.layers.MaxPooling2D`, `tf.keras.layers.MaxPool2D`, `tf.compat.v1.keras.layers.MaxPooling2D`, `tf.compat.v1.keras.layers.MaxPool2D`\r\n\r\nI confirmed that these behaviors still exist in tensorflow nightly (2.15.0-dev20230906), and probably share the same root cause.\r\nI think these are unexpected behaviors since they are supposed to throw Exceptions like the CPU does, rather than \"Check failed\" errors.\r\n\r\n<details>\r\n <summary>Code to reproduce the issue in <code>tf.keras.layers.MaxPooling2D</code> APIs</summary>\r\n\r\n```python\r\nimport tensorflow as tf\r\nprint(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)\r\nprint(tf.config.list_physical_devices(), flush=True)\r\n\r\n\r\ntry:\r\n pool_size_0 = 1e+38\r\n pool_size = [pool_size_0, pool_size_0]\r\n strides_0 = 2\r\n strides = [strides_0, strides_0]\r\n padding = \"same\"\r\n data_format = \"channels_last\"\r\n arg_class = tf.keras.layers.MaxPooling2D(pool_size, strides, padding=padding, data_format=data_format)\r\n # arg_class = tf.keras.layers.MaxPool2D(pool_size, strides, padding=padding, data_format=data_format)\r\n # arg_class = tf.compat.v1.keras.layers.MaxPooling2D(pool_size, strides, padding=padding, data_format=data_format)\r\n # arg_class = tf.compat.v1.keras.layers.MaxPool2D(pool_size, strides, padding=padding, data_format=data_format)\r\n arg_input_0_tensor = tf.random.uniform([1, 5, 5, 4], dtype=tf.float32)\r\n arg_input_0 = tf.identity(arg_input_0_tensor)\r\n arg_input = [arg_input_0,]\r\n out = arg_class(*arg_input)\r\nexcept Exception as e:\r\n print(\"Error:\", str(e), flush=True)\r\nprint(\"Success!\", flush=True)\r\n```\r\n\r\nOn GPU, the Check failed error occurs:\r\n\r\n```text\r\nv2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]\r\n2023-09-07 10:51:52.089257: F tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:1019] Check failed: cudnnSetPoolingNdDescriptor( handle_.get(), (pooling_descriptor.mode() == dnn::PoolingMode::kMaximum ? cudnn_max_pooling_mode : CUDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING), propagate_nans ? CUDNN_PROPAGATE_NAN : CUDNN_NOT_PROPAGATE_NAN, nd, shape.data(), padding.data(), strides.data()) == CUDNN_STATUS_SUCCESS (3 vs. 0)\r\nAborted (core dumped)\r\n```\r\n\r\nOn CPU, it throws an Exception:\r\n\r\n```text\r\nv2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1\r\n[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]\r\nError: Exception encountered when calling layer 'max_pooling2d_1' (type MaxPooling2D).\r\n\r\n{{function_node __wrapped__MaxPool_device_/job:localhost/replica:0/task:0/device:CPU:0}} Sliding window ksize for dimension 1 was zero. [Op:MaxPool]\r\n\r\nCall arguments received by layer 'max_pooling2d_1' (type MaxPooling2D):\r\n • inputs=tf.Tensor(shape=(3, 74, 74, 256), dtype=float32)\r\nSuccess!\r\n```\r\n</details>\r\n"
] | 2023-09-03T14:26:52 | 2023-09-21T01:38:18 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
2.14.0-rc1
### Custom code
No
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Process aborted with Check failed error when running `tf.keras.layers.MaxPooling1D` on GPU with large `pool_size`, while it throws an Exception on CPU.
When I reduce the `pool_size_0` to `1e+18`, it throws an Exception on GPU, which is a more reasonable behavior I think.
This behavior is similar to what described in #61642, which also throws a Check failed error by using a large `pool_size` for `tf.compat.v1.layers.MaxPooling1D` on GPU.
### Standalone code to reproduce the issue
```python
import tensorflow as tf
print(tf.version.GIT_VERSION, tf.version.VERSION, flush=True)
try:
pool_size_0 = 1e+19
pool_size = [pool_size_0,]
strides_0 = 2
strides = [strides_0,]
padding = "same"
data_format = "channels_last"
arg_class = tf.keras.layers.MaxPooling1D(pool_size=pool_size,strides=strides,padding=padding,data_format=data_format,)
# arg_class = tf.keras.layers.MaxPool1D(pool_size=pool_size,strides=strides,padding=padding,data_format=data_format,)
# arg_class = tf.compat.v1.keras.layers.MaxPooling1D(pool_size=pool_size,strides=strides,padding=padding,data_format=data_format,)
# arg_class = tf.compat.v1.keras.layers.MaxPool1D(pool_size=pool_size,strides=strides,padding=padding,data_format=data_format,)
arg_input_0_tensor = tf.random.uniform([1, 5, 4], dtype=tf.float32)
arg_input_0 = tf.identity(arg_input_0_tensor)
arg_input = [arg_input_0,]
out = arg_class(*arg_input)
except Exception as e:
print("Error:", str(e), flush=True)
print("Success!", flush=True)
```
### Relevant log output
On GPU, it throws a Check failed and core dumped.
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
2023-09-03 11:34:09.267078: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:442] Loaded cuDNN version 8600
2023-09-03 11:34:09.267132: F tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:1019] Check failed: cudnnSetPoolingNdDescriptor( handle_.get(), (pooling_descriptor.mode() == dnn::PoolingMode::kMaximum ? cudnn_max_pooling_mode : CUDNN_POOLING_AVERAGE_COUNT_EXCLUDE_PADDING), propagate_nans ? CUDNN_PROPAGATE_NAN : CUDNN_NOT_PROPAGATE_NAN, nd, shape.data(), padding.data(), strides.data()) == CUDNN_STATUS_SUCCESS (3 vs. 0)
Aborted (core dumped)
```
On CPU, it throws a Exception.
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
Error: Exception encountered when calling layer 'max_pooling1d' (type MaxPooling1D).
{{function_node __wrapped__MaxPool_device_/job:localhost/replica:0/task:0/device:CPU:0}} Sliding window ksize for dimension 1 was zero. [Op:MaxPool]
Call arguments received by layer 'max_pooling1d' (type MaxPooling1D):
• inputs=tf.Tensor(shape=(1, 5, 4), dtype=float32)
Success!
```
When I change the `pool_size_0` to `1e+18`, it throws a Exception on GPU.
```text
v2.14.0-rc0-34-gdd01672d9a9 2.14.0-rc1
2023-09-03 11:51:28.441325: W tensorflow/core/framework/op_kernel.cc:1816] OP_REQUIRES failed at maxpooling_op.cc:1260 : INVALID_ARGUMENT: Attr ksize has value 1000000000000000000 out of range for an int32
Error: Exception encountered when calling layer 'max_pooling1d' (type MaxPooling1D).
{{function_node __wrapped__MaxPool_device_/job:localhost/replica:0/task:0/device:GPU:0}} Attr ksize has value 1000000000000000000 out of range for an int32 [Op:MaxPool]
Call arguments received by layer 'max_pooling1d' (type MaxPooling1D):
• inputs=tf.Tensor(shape=(1, 5, 4), dtype=float32)
Success!
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/61778/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/61778/timeline | null | null | false |
Subsets and Splits