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/60113
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60113/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60113/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60113/events
https://github.com/tensorflow/tensorflow/issues/60113
1,640,594,606
I_kwDOArmXAs5hyXyu
60,113
categorical_crossentropy's output is non-zero when y_true and y_pred are 1
{ "login": "drewshark", "id": 128925028, "node_id": "U_kgDOB689ZA", "avatar_url": "https://avatars.githubusercontent.com/u/128925028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/drewshark", "html_url": "https://github.com/drewshark", "followers_url": "https://api.github.com/users/drewshark/followers", "following_url": "https://api.github.com/users/drewshark/following{/other_user}", "gists_url": "https://api.github.com/users/drewshark/gists{/gist_id}", "starred_url": "https://api.github.com/users/drewshark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/drewshark/subscriptions", "organizations_url": "https://api.github.com/users/drewshark/orgs", "repos_url": "https://api.github.com/users/drewshark/repos", "events_url": "https://api.github.com/users/drewshark/events{/privacy}", "received_events_url": "https://api.github.com/users/drewshark/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "### Multi class error\r\n\r\nThe issue with this code is that it is using **categorical_crossentropy** loss function for a binary classification problem.**categorical_crossentropy**is meant for multi-class classification problems where each example can belong to one of several classes.\r\n\r\nFor a binary classification problem with only two classes (0 or 1), binary_crossentropy is the appropriate loss function to use.\r\n\r\n```\r\nimport tensorflow as tf\r\n\r\ny_true = tf.constant([[1.]])\r\ny_pred = tf.constant([[1.]])\r\n\r\nloss = tf.keras.losses.binary_crossentropy(y_true, y_pred)\r\nprint(loss) # 0.0\r\n```", "@pat749 i think it because limitations of floating-point arithmetic used by computers.\r\n\r\nObtaining a very small non-zero loss value even when the actual and predicted values are the same is not a bug, it is a normal behavior and expected in most cases.", "@neel-jotaniya That is correct. In many cases, such as in machine learning models, the goal is to minimize the difference between the predicted and actual values, which is usually measured using a loss function. However, it is often impossible to achieve a perfect match between the predicted and actual values, so a very small non-zero loss value is expected and acceptable. This is particularly true for regression problems where the output is a continuous variable.", "This value is due to the epsilon value added here https://github.com/keras-team/keras/blob/bcb0e8bc686df15dbbc905503ec9fc337bbabbb9/keras/backend.py#L7290 \r\nThe small epsilon value is added usually during numerical computation for example when division operation taking place, it's often added to the denominator to prevent a divide by zero error or to avoid overflow/underflow issues.\r\nEpsilon value is very small which is `1e-07 ` and does not create any large impact and can be ignored. 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.", "Closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. 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/60113\">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/60113\">No</a>\n" ]
2023-03-25T17:27:15
2023-05-25T16:54:19
2023-05-25T16:54:16
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell When `y_true` and `y_pred` are `1.`, the categorical crossentropy outputted is a non-zero value. But it should be **zero** following the design of categorical crossentropy. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf y_true = tf.constant([[1.]]) y_pred = tf.constant([[1.]]) loss = tf.keras.metrics.categorical_crossentropy(y_true, y_pred) print(loss) # 1.1920929e-07 but should be 0 ``` ``` ### Relevant log output ```shell 1.1920929e-07 ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60113/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60113/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60112
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60112/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60112/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60112/events
https://github.com/tensorflow/tensorflow/issues/60112
1,640,518,282
I_kwDOArmXAs5hyFKK
60,112
Build from source on Windows failed
{ "login": "MaheshwariAnkit", "id": 118751480, "node_id": "U_kgDOBxQA-A", "avatar_url": "https://avatars.githubusercontent.com/u/118751480?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MaheshwariAnkit", "html_url": "https://github.com/MaheshwariAnkit", "followers_url": "https://api.github.com/users/MaheshwariAnkit/followers", "following_url": "https://api.github.com/users/MaheshwariAnkit/following{/other_user}", "gists_url": "https://api.github.com/users/MaheshwariAnkit/gists{/gist_id}", "starred_url": "https://api.github.com/users/MaheshwariAnkit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MaheshwariAnkit/subscriptions", "organizations_url": "https://api.github.com/users/MaheshwariAnkit/orgs", "repos_url": "https://api.github.com/users/MaheshwariAnkit/repos", "events_url": "https://api.github.com/users/MaheshwariAnkit/events{/privacy}", "received_events_url": "https://api.github.com/users/MaheshwariAnkit/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1188421838, "node_id": "MDU6TGFiZWwxMTg4NDIxODM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows", "name": "subtype:windows", "color": "b619ea", "default": false, "description": "Windows Build/Installation Issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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
[ "@MaheshwariAnkit,\r\nI checked the error log and observed that the **Python** library was not being detected which means the issue is with the path setting. \r\nAnd also please make sure that all the required packages which was mentioned in the [setup.py](https://github.com/tensorflow/tensorflow/blob/r2.11/tensorflow/tools/pip_package/setup.py) were installed before the bazel build.\r\n\r\nAnd while installing the [bazel](https://bazel.build/install/windows), please try to follow the mentioned steps. Could you please confirm whether you have followed the instructions mentioned [here](https://www.tensorflow.org/install/source_windows#setup_for_windows) \r\n\r\nBelow are the options from `.bazelrc` file for **AVX** instructions\r\n```\r\n\r\nbazel build --config=opt --copt=-march=native\r\nbuild:avx_win --copt=/arch=AVX\r\nbuild:avx2_win --copt=/arch=AVX2\r\n\r\nbuild:native_arch_linux --copt=-march=native\r\n```", "Python path configuration -\r\n\r\n![image](https://user-images.githubusercontent.com/92882293/228195012-58c9171a-2807-43f5-8868-00f1b5287af0.png)\r\n\r\n\r\nconfiguration.py \r\n\r\n\r\n![image](https://user-images.githubusercontent.com/92882293/228194659-8f51c224-ed16-496a-9840-57631ee878e0.png)\r\n\r\n\r\n\r\n\r\nError after bazel run- \r\n\r\n\r\nC:\\Users\\Anmaheshwari\\TF_2\\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=172\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Options provided by the client:\r\n 'build' options: --python_path=C:/Users/Anmaheshwari/python/python.exe\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=C:/Users/Anmaheshwari/python/python.exe --action_env PYTHON_LIB_PATH=C:/Users/Anmaheshwari/python/lib/site-packages --python_path=C:/Users/Anmaheshwari/python/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:opt in file c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.tf_configure.bazelrc: --copt=/arch:AVX --host_copt=/arch:AVX\r\nINFO: Found applicable config definition build:windows in file c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file\r\nINFO: Found applicable config definition build:monolithic in file c:\\users\\anmaheshwari\\tf_2\\tensorflow\\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Repository local_execution_config_python instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:962:19: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:96:27: in _tf_toolchains\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/tools/toolchains/remote_config/configs.bzl:6:28: in initialize_rbe_configs\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/tools/toolchains/remote_config/rbe_config.bzl:158:27: in _tensorflow_local_config\r\nRepository rule local_python_configure defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl:279:41: in <toplevel>\r\nINFO: Repository local_config_python instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:962:19: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:106:21: in _tf_toolchains\r\nRepository rule python_configure defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl:298:35: in <toplevel>\r\nERROR: An error occurred during the fetch of repository 'local_execution_config_python':\r\n Traceback (most recent call last):\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 212, column 22, in _create_local_python_repository\r\n _check_python_bin(repository_ctx, python_bin)\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 145, column 25, in _check_python_bin\r\n auto_config_fail(\"--define %s='%s' is not executable. Is it the python binary?\" % (\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/remote_config/common.bzl\", line 12, column 9, in auto_config_fail\r\n fail(\"%sConfiguration Error:%s %s\\n\" % (red, no_color, msg))\r\nError in fail: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nERROR: C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 212, column 22, in _create_local_python_repository\r\n _check_python_bin(repository_ctx, python_bin)\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 145, column 25, in _check_python_bin\r\n auto_config_fail(\"--define %s='%s' is not executable. Is it the python binary?\" % (\r\n File \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/remote_config/common.bzl\", line 12, column 9, in auto_config_fail\r\n fail(\"%sConfiguration Error:%s %s\\n\" % (red, no_color, msg))\r\nError in fail: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nINFO: Repository stablehlo instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:83:14: in _initialize_third_party\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/stablehlo/workspace.bzl:11:20: in repo\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository termcolor_archive instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:388:20: in _tf_repositories\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository eigen_archive instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:65:11: in _initialize_third_party\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/eigen3/workspace.bzl:14:20: in repo\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository cpuinfo instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:166:20: in _tf_repositories\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository sobol_data instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:82:15: in _initialize_third_party\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/sobol_data/workspace.bzl:6:20: in repo\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>\r\nINFO: Repository go_sdk instantiated at:\r\n C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:23:14: in <toplevel>\r\n C:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace0.bzl:135:20: in workspace\r\n C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps\r\n C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:431:28: in go_register_toolchains\r\n C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:130:21: in go_download_sdk\r\nRepository rule _go_download_sdk defined at:\r\n C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:117:35: in <toplevel>\r\nERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nINFO: Elapsed time: 1.792s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (34 packages loaded, 194 targets configured)\r\n currently loading: @llvm-project//llvm ... (11 packages)\r\n Fetching @boringssl; fetching\r\n Fetching @com_google_absl; fetching\r\n Fetching @libjpeg_turbo; fetching\r\n Fetching @png; fetching\r\n Fetching ...ingssl; Extracting C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/boringssl/temp13612522096612888484/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc\\\r\n.tar.gz\r\n\r\nC:\\Users\\Anmaheshwari\\TF_2\\tensorflow>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "Any update?", "Any update?", "any update?\r\n", "Hi @AIML-ankit, the error is due to incorrect Python path set up. Please try following commands, also set Python path in Environmental Variable\r\n\r\nSet your PATH \r\n\r\nset PATH=C:/Tools/bazel\r\nset PATH=path/to/python_virtualenv/Scripts\r\nset PATH=C:/Python310/Scripts\r\nset PATH=C:/Python310\r\n\r\nPython \r\nset PYTHON_BIN_PATH=path/to/python_virtualenv/Scripts/python.exe\r\nset PYTHON_LIB_PATH=path/to/python virtualenv/lib/site-packages\r\nset PYTHON_DIRECTORY=path/to/python_virtualenv/Scripts\r\n", "Hi @MaheshwariAnkit ,\r\n\r\nLooking at the log it seems the error is due to python path. Please refer to the above [comment](https://github.com/tensorflow/tensorflow/issues/60112#issuecomment-1498180351) in setting path and let us know if it helps.\r\n\r\nThank you!\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "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/60112\">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/60112\">No</a>\n" ]
2023-03-25T13:25:22
2023-04-25T01:54:47
2023-04-25T01:54:44
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 - TensorFlow installation (pip package or built from source): Built from cource - TensorFlow library (version, if pip package or github SHA, if built from source): 2.11 and 2.12 both ### 2. Code bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package Link that i am following. https://www.tensorflow.org/install/source_windows Steps i followed- 1- Install Python and add path to enviornment variable , Python version 3.10.10 2- install additional package- pip3 install -U six numpy wheel packaging pip3 install -U keras_preprocessing --no-deps 3- install bazel - version 5.3.0 path added to enviornment variable. 4- Install MSYS2 - version - 20230318 added usr/bin path to enviornment variable. 5- ran below command for aditional package- pacman -S git patch unzip 6- Install Visual C++ Build Tools 2019 7- cloned tf library - git clone https://github.com/tensorflow/tensorflow.git cd tensorflow 8- run python ./configure.py with default setting 9- ran bazel bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package and bazel run failed- Error Message- D:\TFlite\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=211 INFO: Reading rc options for 'build' from d:\tflite\tensorflow\.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Options provided by the client: 'build' options: --python_path=C:/Users/Nupur/AppData/Local/Microsoft/WindowsApps/python.exe INFO: Reading rc options for 'build' from d:\tflite\tensorflow\.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from d:\tflite\tensorflow\.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=D:/TFlite/Software/Python/python.exe --action_env PYTHON_LIB_PATH=D:/TFlite/Software/Python/lib/site-packages --python_path=D:/TFlite/Software/Python/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true INFO: Reading rc options for 'build' from d:\tflite\tensorflow\.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file d:\tflite\tensorflow\.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file d:\tflite\tensorflow\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:opt in file d:\tflite\tensorflow\.tf_configure.bazelrc: --copt=/arch:AVX --host_copt=/arch:AVX INFO: Found applicable config definition build:windows in file d:\tflite\tensorflow\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file INFO: Found applicable config definition build:monolithic in file d:\tflite\tensorflow\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false INFO: Repository llvm-project instantiated at: D:/tflite/tensorflow/WORKSPACE:15:14: in <toplevel> D:/tflite/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace D:/tflite/tensorflow/tensorflow/workspace2.bzl:545:15: in _tf_repositories D:/tflite/tensorflow/third_party/llvm/setup.bzl:22:19: in llvm_setup Repository rule llvm_configure defined at: C:/users/nupur/_bazel_nupur/cuskol4y/external/llvm-raw/utils/bazel/configure.bzl:169:33: in <toplevel> ERROR: An error occurred during the fetch of repository 'llvm-project': Traceback (most recent call last): File "C:/users/nupur/_bazel_nupur/cuskol4y/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/users/nupur/_bazel_nupur/cuskol4y/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary ERROR: D:/tflite/tensorflow/WORKSPACE:15:14: fetching llvm_configure rule //external:llvm-project: Traceback (most recent call last): File "C:/users/nupur/_bazel_nupur/cuskol4y/external/llvm-raw/utils/bazel/configure.bzl", line 146, column 25, in _llvm_configure_impl _overlay_directories(repository_ctx) File "C:/users/nupur/_bazel_nupur/cuskol4y/external/llvm-raw/utils/bazel/configure.bzl", line 49, column 13, in _overlay_directories fail("Failed to find python3 binary") Error in fail: Failed to find python3 binary INFO: Repository build_bazel_rules_android instantiated at: D:/tflite/tensorflow/WORKSPACE:15:14: in <toplevel> D:/tflite/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace D:/tflite/tensorflow/tensorflow/workspace2.bzl:811:20: in _tf_repositories D:/tflite/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive Repository rule _tf_http_archive defined at: D:/tflite/tensorflow/third_party/repo.bzl:89:35: in <toplevel> ERROR: D:/tflite/tensorflow/tensorflow/tools/pip_package/BUILD:280:10: //tensorflow/tools/pip_package:build_pip_package depends on //tensorflow/compiler/mlir/tensorflow:gen_mlir_passthrough_op_py in repository @ which failed to fetch. no such package '@llvm-project//mlir': Failed to find python3 binary ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed INFO: Elapsed time: 4.356s INFO: 0 processes. FAILED: Build did NOT complete successfully (52 packages loaded, 12 targets configured) currently loading: tensorflow/lite/tools ... (4 packages) Fetching @flatbuffers; fetching Fetching https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_android/archive/v0.1.1.zip D:\TFlite\tensorflow>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60112/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60112/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60111
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60111/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60111/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60111/events
https://github.com/tensorflow/tensorflow/issues/60111
1,640,348,101
I_kwDOArmXAs5hxbnF
60,111
If we have any detail information of each CI in tensorflow Github?
{ "login": "sanbuphy", "id": 96160062, "node_id": "U_kgDOBbtJPg", "avatar_url": "https://avatars.githubusercontent.com/u/96160062?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sanbuphy", "html_url": "https://github.com/sanbuphy", "followers_url": "https://api.github.com/users/sanbuphy/followers", "following_url": "https://api.github.com/users/sanbuphy/following{/other_user}", "gists_url": "https://api.github.com/users/sanbuphy/gists{/gist_id}", "starred_url": "https://api.github.com/users/sanbuphy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sanbuphy/subscriptions", "organizations_url": "https://api.github.com/users/sanbuphy/orgs", "repos_url": "https://api.github.com/users/sanbuphy/repos", "events_url": "https://api.github.com/users/sanbuphy/events{/privacy}", "received_events_url": "https://api.github.com/users/sanbuphy/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": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "> In github repository u can find CI(continious integrity). It contains pipelines in workflows directory used for build, run, test and deploy of tensorflow code for projects. For windows you have '**windows-ci.yml**' pipelines which uses visual studio to build and run. For mac you have there is '**macos-ci.yml**' For linu7x it is '**linux-ci.yml**'\r\n> \r\n> Now to build and test pipeline used is '**nightly-pip-package.yml**' For tensorflow doc we use '**docs-presubmit.yml**' To buld, run and release the packages we use '**release.yml**' You can look over many pipelines in workflows directory.\r\n\r\nThank you very much!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60111\">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/60111\">No</a>\n", "> In github repository u can find CI(continious integrity). It contains pipelines in workflows directory used for build, run, test and deploy of tensorflow code for projects. For windows you have '**windows-ci.yml**' pipelines which uses visual studio to build and run. For mac you have there is '**macos-ci.yml**' For linu7x it is '**linux-ci.yml**'\r\n> \r\n> Now to build and test pipeline used is '**nightly-pip-package.yml**' For tensorflow doc we use '**docs-presubmit.yml**' To buld, run and release the packages we use '**release.yml**' You can look over many pipelines in workflows directory.\r\n\r\n\r\nHi! @avinashrajavarapu , Can you tell me the difference between CI that runs on GitHub Actions and CI that runs on Jenkins? Or, when is a full CI run, and when is a partial CI run? What determines this? Thank you very much.\r\n" ]
2023-03-25T03:19:04
2023-04-03T10:19:00
2023-03-25T14:39:54
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.8 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Hello, I have been studying the actions (CI) of various open source projects on Github recently. I noticed that tensorflowhas a well-established CI, so I would like to further understand its composition and structure. Do you have any relevant materials that I can study and refer to? Thank you very much. ``` ### Standalone code to reproduce the issue ```shell none ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60111/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60111/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60110
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60110/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60110/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60110/events
https://github.com/tensorflow/tensorflow/pull/60110
1,640,275,515
PR_kwDOArmXAs5M4WBt
60,110
16 Byte Alignment for FP8 GEMMs in XLA
{ "login": "philipphack", "id": 80296164, "node_id": "MDQ6VXNlcjgwMjk2MTY0", "avatar_url": "https://avatars.githubusercontent.com/u/80296164?v=4", "gravatar_id": "", "url": "https://api.github.com/users/philipphack", "html_url": "https://github.com/philipphack", "followers_url": "https://api.github.com/users/philipphack/followers", "following_url": "https://api.github.com/users/philipphack/following{/other_user}", "gists_url": "https://api.github.com/users/philipphack/gists{/gist_id}", "starred_url": "https://api.github.com/users/philipphack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/philipphack/subscriptions", "organizations_url": "https://api.github.com/users/philipphack/orgs", "repos_url": "https://api.github.com/users/philipphack/repos", "events_url": "https://api.github.com/users/philipphack/events{/privacy}", "received_events_url": "https://api.github.com/users/philipphack/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 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
[ "CC @reedwm." ]
2023-03-25T00:58:48
2023-03-30T00:16:09
2023-03-30T00:16:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60110", "html_url": "https://github.com/tensorflow/tensorflow/pull/60110", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60110.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60110.patch", "merged_at": "2023-03-30T00:16:08" }
Pads the operands of FP8 GEMMs so that the sizes of non-batch dimensions are multiples of 16 and slices the results to the expected shape before padding.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60110/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60110/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60109
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60109/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60109/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60109/events
https://github.com/tensorflow/tensorflow/issues/60109
1,640,208,119
I_kwDOArmXAs5hw5b3
60,109
Importing TF 2.12, then torch, hangs, but not the other way around
{ "login": "TortoiseHam", "id": 8201565, "node_id": "MDQ6VXNlcjgyMDE1NjU=", "avatar_url": "https://avatars.githubusercontent.com/u/8201565?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TortoiseHam", "html_url": "https://github.com/TortoiseHam", "followers_url": "https://api.github.com/users/TortoiseHam/followers", "following_url": "https://api.github.com/users/TortoiseHam/following{/other_user}", "gists_url": "https://api.github.com/users/TortoiseHam/gists{/gist_id}", "starred_url": "https://api.github.com/users/TortoiseHam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TortoiseHam/subscriptions", "organizations_url": "https://api.github.com/users/TortoiseHam/orgs", "repos_url": "https://api.github.com/users/TortoiseHam/repos", "events_url": "https://api.github.com/users/TortoiseHam/events{/privacy}", "received_events_url": "https://api.github.com/users/TortoiseHam/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 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": "angerson", "id": 32465472, "node_id": "MDQ6VXNlcjMyNDY1NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/32465472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/angerson", "html_url": "https://github.com/angerson", "followers_url": "https://api.github.com/users/angerson/followers", "following_url": "https://api.github.com/users/angerson/following{/other_user}", "gists_url": "https://api.github.com/users/angerson/gists{/gist_id}", "starred_url": "https://api.github.com/users/angerson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/angerson/subscriptions", "organizations_url": "https://api.github.com/users/angerson/orgs", "repos_url": "https://api.github.com/users/angerson/repos", "events_url": "https://api.github.com/users/angerson/events{/privacy}", "received_events_url": "https://api.github.com/users/angerson/received_events", "type": "User", "site_admin": false }
[ { "login": "angerson", "id": 32465472, "node_id": "MDQ6VXNlcjMyNDY1NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/32465472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/angerson", "html_url": "https://github.com/angerson", "followers_url": "https://api.github.com/users/angerson/followers", "following_url": "https://api.github.com/users/angerson/following{/other_user}", "gists_url": "https://api.github.com/users/angerson/gists{/gist_id}", "starred_url": "https://api.github.com/users/angerson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/angerson/subscriptions", "organizations_url": "https://api.github.com/users/angerson/orgs", "repos_url": "https://api.github.com/users/angerson/repos", "events_url": "https://api.github.com/users/angerson/events{/privacy}", "received_events_url": "https://api.github.com/users/angerson/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
[ "The error in the given code is that the PyTorch version specified in the pip install command does not exist. The correct version for CUDA 11.1 (cu111) is **torch==1.9.1+cu111** , not **torch==2.0.0+cu118**. The correct pip install command should be:\r\n```\r\npip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html\r\n```\r\nAdditionally, if running TensorFlow in a Docker container, you will need to ensure that both TensorFlow and PyTorch are installed inside the container. You can do this by creating a Dockerfile with the following contents:\r\n\r\n```\r\nFROM tensorflow/tensorflow:2.12.0-gpu\r\nRUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html\r\n```\r\nThen, build the Docker image using the command **docker build -t my_image .** and run it with **docker run -it my_image**.", "Hi @pat749, when I run nvidia-smi from within the tensorflow/tensorflow:2.12.0-gpu docker image, the docker image is using CUDA version 11.8, not 11.1. Therefore I think torch 2.0+cu118 is correct. That package does indeed exist as it raises no complaints when pip installing, nor when importing torch if TF is not already imported.", "Hi @TortoiseHam, Thanks for reporting the issue!\r\nI was able to replicate the issue in Ubuntu 20.04. Kindly find the screenshot below.\r\n![image](https://user-images.githubusercontent.com/98147397/227942509-e958135d-31ec-4ede-8e7e-acdb6724d573.png)\r\n\r\nThank you!", "@SuryanarayanaY Could you please look into this issue? ", "@TortoiseHam , Tested build configuration for Tensorflow 2.12 is cuDNN 8.6 and CUDA 11.8. Make sure while installing torch also this should not conflict.\r\nAlso. could you please do one more check by creating two different environments and installing `torch` and `Tensorflow` separately and check the internal package dependency versions using `pip list`.\r\nMy hunch is that it might be because of version conflicts on package dependencies.", "Sure @sachinprasadhs, so starting with the tensorflow docker image to get Cuda 11.8, I then run `pip freeze | xargs pip uninstall -y` to clear all the existing dependencies, then `pip install tensorflow`. This gives the following dependency list:\r\n\r\n```\r\nPackage Version\r\n---------------------------- ---------\r\nabsl-py 1.4.0\r\nastunparse 1.6.3\r\ncachetools 5.3.0\r\ncertifi 2022.12.7\r\ncharset-normalizer 3.1.0\r\nflatbuffers 23.3.3\r\ngast 0.4.0\r\ngoogle-auth 2.17.1\r\ngoogle-auth-oauthlib 1.0.0\r\ngoogle-pasta 0.2.0\r\ngrpcio 1.53.0\r\nh5py 3.8.0\r\nidna 3.4\r\nimportlib-metadata 6.1.0\r\njax 0.4.8\r\nkeras 2.12.0\r\nlibclang 16.0.0\r\nMarkdown 3.4.3\r\nMarkupSafe 2.1.2\r\nml-dtypes 0.0.4\r\nnumpy 1.23.5\r\noauthlib 3.2.2\r\nopt-einsum 3.3.0\r\npackaging 23.0\r\npip 23.0.1\r\nprotobuf 4.22.1\r\npyasn1 0.4.8\r\npyasn1-modules 0.2.8\r\nrequests 2.28.2\r\nrequests-oauthlib 1.3.1\r\nrsa 4.9\r\nscipy 1.10.1\r\nsetuptools 67.6.0\r\nsix 1.16.0\r\ntensorboard 2.12.1\r\ntensorboard-data-server 0.7.0\r\ntensorboard-plugin-wit 1.8.1\r\ntensorflow 2.12.0\r\ntensorflow-estimator 2.12.0\r\ntensorflow-io-gcs-filesystem 0.32.0\r\ntermcolor 2.2.0\r\ntyping_extensions 4.5.0\r\nurllib3 1.26.15\r\nWerkzeug 2.2.3\r\nwheel 0.40.0\r\nwrapt 1.14.1\r\nzipp 3.15.0\r\n```\r\n\r\nIf I then delete everything and install torch I get:\r\n```\r\nPackage Version\r\n------------------ ------------\r\ncertifi 2022.12.7\r\ncharset-normalizer 3.1.0\r\ncmake 3.26.1\r\nfilelock 3.10.7\r\nidna 3.4\r\nJinja2 3.1.2\r\nlit 16.0.0\r\nMarkupSafe 2.1.2\r\nmpmath 1.3.0\r\nnetworkx 3.0\r\nnumpy 1.24.2\r\nPillow 9.4.0\r\npip 23.0.1\r\nrequests 2.28.2\r\nsetuptools 67.6.0\r\nsympy 1.11.1\r\ntorch 2.0.0+cu118\r\ntorchaudio 2.0.1+cu118\r\ntorchvision 0.15.1+cu118\r\ntriton 2.0.0\r\ntyping_extensions 4.5.0\r\nurllib3 1.26.15\r\nwheel 0.40.0\r\n```\r\n\r\nIf I delete everything, then install TF followed by Torch I get:\r\n```\r\nPackage Version\r\n---------------------------- ------------\r\nabsl-py 1.4.0\r\nastunparse 1.6.3\r\ncachetools 5.3.0\r\ncertifi 2022.12.7\r\ncharset-normalizer 3.1.0\r\ncmake 3.26.1\r\nfilelock 3.10.7\r\nflatbuffers 23.3.3\r\ngast 0.4.0\r\ngoogle-auth 2.17.1\r\ngoogle-auth-oauthlib 1.0.0\r\ngoogle-pasta 0.2.0\r\ngrpcio 1.53.0\r\nh5py 3.8.0\r\nidna 3.4\r\nimportlib-metadata 6.1.0\r\njax 0.4.8\r\nJinja2 3.1.2\r\nkeras 2.12.0\r\nlibclang 16.0.0\r\nlit 16.0.0\r\nMarkdown 3.4.3\r\nMarkupSafe 2.1.2\r\nml-dtypes 0.0.4\r\nmpmath 1.3.0\r\nnetworkx 3.0\r\nnumpy 1.23.5\r\noauthlib 3.2.2\r\nopt-einsum 3.3.0\r\npackaging 23.0\r\nPillow 9.4.0\r\npip 23.0.1\r\nprotobuf 4.22.1\r\npyasn1 0.4.8\r\npyasn1-modules 0.2.8\r\nrequests 2.28.2\r\nrequests-oauthlib 1.3.1\r\nrsa 4.9\r\nscipy 1.10.1\r\nsetuptools 67.6.0\r\nsix 1.16.0\r\nsympy 1.11.1\r\ntensorboard 2.12.1\r\ntensorboard-data-server 0.7.0\r\ntensorboard-plugin-wit 1.8.1\r\ntensorflow 2.12.0\r\ntensorflow-estimator 2.12.0\r\ntensorflow-io-gcs-filesystem 0.32.0\r\ntermcolor 2.2.0\r\ntorch 2.0.0+cu118\r\ntorchaudio 2.0.1+cu118\r\ntorchvision 0.15.1+cu118\r\ntriton 2.0.0\r\ntyping_extensions 4.5.0\r\nurllib3 1.26.15\r\nWerkzeug 2.2.3\r\nwheel 0.40.0\r\nwrapt 1.14.1\r\nzipp 3.15.0\r\n```\r\n\r\nComparing this list to the first one, the process of installing torch did not change any of the existing tensorflow installed dependencies, but did add cmake, filelock, Jinja2, lit, mpmath, networkx, Pillow, sympy, triton, and torch/torchvision/torchaudio. Given that there doesn't seem to be any dependency version conflict, and that the two frameworks do both work simultaneously if torch is imported before tensorflow, I think this is more likely related to something TF 2.12 is doing the python or cuda environment on import.", "Thanks for your time and effort on detailed investigation. \r\n@angerson, Could you please take a look into this. Thanks!", "PyTorch 1.9 is quite old and may not work along with TF 2.12 that uses Cuda 11.8. When I imported TF 1.12 and then Torch 2.0, which are both compatible with Cuda 11.8 on Colab, I don't see any issue.\r\nhttps://colab.research.google.com/drive/1nsnraqpXqZuM5coBm_Gj8zrn96f9Os4D?usp=sharing\r\n\r\nIf you want to use Pytorch 1.9 with TF, please use TF 2.11 which is compatible with Cuda 11.2 similar to PyTorch 1.9", "Hi @sampathweb, this issue is not related to torch 1.9 - that was an extraneous comment. The issue is related to TF 1.12 + Torch 2.0. It's very interesting that it seems to work inside your colab notebook since it doesn't work within the TF docker container. Any idea what the notebook might be doing that running raw within docker doesn't?", "Thanks for confirming. I am able to see the issue in Docker Container and reproduced the hanging issue with TF 2.12 and Torch 2.0. \r\n\r\n```\r\n# docker pull tensorflow/tensorflow:2.12.0 also has same issue\r\ndocker pull tensorflow/tensorflow:2.12.0-gpu\r\ndocker run -it tensorflow/tensorflow:2.12.0-gpu\r\n\r\n# Install Torch 2.0\r\n# GPU wheel URL also has same issue - https://download.pytorch.org/whl/cu118\r\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu\r\n\r\n# As stated by the user, importing torch before TF works fine.\r\npython\r\nimport torch # works\r\nimport tensorflow # works\r\n\r\npython\r\nimport tensorflow # Works\r\nimport torch # hangs\r\n\r\n# Hangs here -\r\n File \"/usr/local/lib/python3.8/dist-packages/torch/__init__.py\", line 229, in <module>\r\n from torch._C import * # noqa: F403\r\n```\r\nThis problem is not there in Colab which has both TF 2.12 and Torch 2.0\r\n@angerson - FYI", "The hang comes from ABI incompatibility between TF and Torch. Pytorch has compiled their wheels with `_GLIBCXX_USE_CXX11_ABI=0` (which is out-of-date). TensorFlow upgraded to `_GLIBCXX_USE_CXX11_ABI=1` with the release of [TensorFlow 2.9](https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0). TF 2.12 + Torch 2.0 is the first pairing where this happens---I am not sure why. TF 2.11 + Torch 2.0, and TF 2.12 + Torch 1.13, are both fine.\r\n\r\nAccording to `auditwheel inspect`, torch 1.13 -> 2.0 adds a dependency on libgomp.so.1, which seems innocuous. TF 2.11 -> 2.12 added a new shared object dependency on libtensorflow_cc.so.2 with a version called \"tensorflow.\" It is possible that this was unintended and ultimately exposed this particular breakage; I am not sure. @vam-google and @learning-to-play may be interested in this.\r\n\r\nYou can verify that CXX11 ABI compatibility is (a) problem by checking a wheel compiled explicitly with the CXX11 ABI enabled. I'm exceedingly grateful for https://github.com/pytorch/builder/pull/990, which added CXX11-compatible wheels to Pytorch's CI system, and you can install them both and compare:\r\n\r\n```\r\ndocker run -it --rm python:3.10 bash\r\nwget https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp310-cp310-linux_x86_64.whl\r\nwget https://download.pytorch.org/whl/cpu-cxx11-abi/torch-2.0.0%2Bcpu.cxx11.abi-cp310-cp310-linux_x86_64.whl\r\npip install tensorflow-cpu\r\npip install torch-2.0.0+cpu.cxx11.abi-cp310-cp310-linux_x86_64.whl\r\npython -c \"import tensorflow; import torch\"\r\npip uninstall torch\r\npip install torch-2.0.0+cpu-cp310-cp310-linux_x86_64.whl\r\npython -c \"import tensorflow; import torch\"\r\n```\r\n\r\nThe final command hangs, as expected (you can kill it with Ctrl-D).\r\n\r\n@MichaelHudgins FYI\r\n\r\nJust to be clear, the TF team's stance on this is that it's an issue that needs to be resolved in PyTorch's builds.", "Also FYI @perfinion ", "> The hang comes from ABI incompatibility between TF and Torch. Pytorch has compiled their wheels with `_GLIBCXX_USE_CXX11_ABI=0` (which is out-of-date). TensorFlow upgraded to `_GLIBCXX_USE_CXX11_ABI=1` with the release of [TensorFlow 2.9](https://github.com/tensorflow/tensorflow/releases/tag/v2.9.0). TF 2.12 + Torch 2.0 is the first pairing where this happens---I am not sure why. TF 2.11 + Torch 2.0, and TF 2.12 + Torch 1.13, are both fine.\r\n\r\nAlso, do you have any idea why it works well on colab?\r\n", "> Also, do you have any idea why it works well on colab?\r\n\r\nNo, I don't know.", "Colab used to build their own version of the wheels. Unsure if that still happens or not" ]
2023-03-24T23:56:20
2023-05-18T21:44:01
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04.5 ### Mobile device _No response_ ### Python version 3.8.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8 ### GPU model and memory _No response_ ### Current Behaviour? ```shell If I import tensorflow and then import torch, the torch import line hangs forever without completing. On the other hand, if I import torch first and then import tensorflow there is no problem. The hang is so severe that no amount of ctr-c can kill it. You have to kill the python process from a separate terminal to free the hung terminal. This issue does not exist in tensorflow 2.11.1 or earlier. It also doesn't happen when using older versions of torch like 1.13.1. Since torch followed by tf works but tf followed by torch doesn't, this seems like an issue tf is causing. ``` ### Standalone code to reproduce the issue ```shell docker pull tensorflow/tensorflow:2.12.0-gpu docker run -it tensorflow/tensorflow:2.12.0-gpu pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 -f https://download.pytorch.org/whl/cu118/torch_stable.html python import tensorflow as tf import torch ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60109/reactions", "total_count": 6, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60109/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60108
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60108/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60108/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60108/events
https://github.com/tensorflow/tensorflow/pull/60108
1,640,192,096
PR_kwDOArmXAs5M4Dgm
60,108
[NVIDIA TF] Register BF16 CudnnRnn kernel
{ "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: Large" } ]
closed
false
{ "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }
[ { "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@reedwm @kaixih Could you please review? Thanks!\r\n\r\n@kaixih Do you know if CudnnRnn has unit tests?", "Yes, the `cudnn_rnn_ops_test.cc` is one C++ test which needs bazel build. And `cudnn_rnn_grad.py` is one python test." ]
2023-03-24T23:34:51
2023-04-03T22:51:35
2023-04-03T22:51:35
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60108", "html_url": "https://github.com/tensorflow/tensorflow/pull/60108", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60108.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60108.patch", "merged_at": "2023-04-03T22:51:35" }
bfloat16 datatype is not yet supported by CudnnRnn, so for now these kernels will just cast to float. Fixes https://github.com/tensorflow/tensorflow/issues/59728
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60108/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60108/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60107
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60107/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60107/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60107/events
https://github.com/tensorflow/tensorflow/pull/60107
1,640,029,898
PR_kwDOArmXAs5M3fTs
60,107
[NVIDIA TF] Enable GPU bfloat16 casts
{ "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }, { "login": "reedwm", "id": 6510203, "node_id": "MDQ6VXNlcjY1MTAyMDM=", "avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reedwm", "html_url": "https://github.com/reedwm", "followers_url": "https://api.github.com/users/reedwm/followers", "following_url": "https://api.github.com/users/reedwm/following{/other_user}", "gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}", "starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reedwm/subscriptions", "organizations_url": "https://api.github.com/users/reedwm/orgs", "repos_url": "https://api.github.com/users/reedwm/repos", "events_url": "https://api.github.com/users/reedwm/events{/privacy}", "received_events_url": "https://api.github.com/users/reedwm/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/received_events", "type": "User", "site_admin": false }, { "login": "chsigg", "id": 7523982, "node_id": "MDQ6VXNlcjc1MjM5ODI=", "avatar_url": "https://avatars.githubusercontent.com/u/7523982?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chsigg", "html_url": "https://github.com/chsigg", "followers_url": "https://api.github.com/users/chsigg/followers", "following_url": "https://api.github.com/users/chsigg/following{/other_user}", "gists_url": "https://api.github.com/users/chsigg/gists{/gist_id}", "starred_url": "https://api.github.com/users/chsigg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chsigg/subscriptions", "organizations_url": "https://api.github.com/users/chsigg/orgs", "repos_url": "https://api.github.com/users/chsigg/repos", "events_url": "https://api.github.com/users/chsigg/events{/privacy}", "received_events_url": "https://api.github.com/users/chsigg/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }, { "login": "gcforster", "id": 108087815, "node_id": "U_kgDOBnFKBw", "avatar_url": "https://avatars.githubusercontent.com/u/108087815?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gcforster", "html_url": "https://github.com/gcforster", "followers_url": "https://api.github.com/users/gcforster/followers", "following_url": "https://api.github.com/users/gcforster/following{/other_user}", "gists_url": "https://api.github.com/users/gcforster/gists{/gist_id}", "starred_url": "https://api.github.com/users/gcforster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gcforster/subscriptions", "organizations_url": "https://api.github.com/users/gcforster/orgs", "repos_url": "https://api.github.com/users/gcforster/repos", "events_url": "https://api.github.com/users/gcforster/events{/privacy}", "received_events_url": "https://api.github.com/users/gcforster/received_events", "type": "User", "site_admin": false }, { "login": "xla-rotation", "id": 116104012, "node_id": "U_kgDOBuubTA", "avatar_url": "https://avatars.githubusercontent.com/u/116104012?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xla-rotation", "html_url": "https://github.com/xla-rotation", "followers_url": "https://api.github.com/users/xla-rotation/followers", "following_url": "https://api.github.com/users/xla-rotation/following{/other_user}", "gists_url": "https://api.github.com/users/xla-rotation/gists{/gist_id}", "starred_url": "https://api.github.com/users/xla-rotation/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xla-rotation/subscriptions", "organizations_url": "https://api.github.com/users/xla-rotation/orgs", "repos_url": "https://api.github.com/users/xla-rotation/repos", "events_url": "https://api.github.com/users/xla-rotation/events{/privacy}", "received_events_url": "https://api.github.com/users/xla-rotation/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-24T20:58:24
2023-03-27T18:52:59
2023-03-27T18:52:58
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60107", "html_url": "https://github.com/tensorflow/tensorflow/pull/60107", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60107.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60107.patch", "merged_at": "2023-03-27T18:52:58" }
Register and define GPU Cast kernels for all types <-> bfloat16. Previously, we only had float and fp8 casts. Fixes https://github.com/tensorflow/tensorflow/issues/59728 @reedwm
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60107/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60107/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60106
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60106/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60106/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60106/events
https://github.com/tensorflow/tensorflow/issues/60106
1,639,937,449
I_kwDOArmXAs5hv3Wp
60,106
Problem installing in Colab
{ "login": "18mdemark", "id": 128847315, "node_id": "U_kgDOB64N0w", "avatar_url": "https://avatars.githubusercontent.com/u/128847315?v=4", "gravatar_id": "", "url": "https://api.github.com/users/18mdemark", "html_url": "https://github.com/18mdemark", "followers_url": "https://api.github.com/users/18mdemark/followers", "following_url": "https://api.github.com/users/18mdemark/following{/other_user}", "gists_url": "https://api.github.com/users/18mdemark/gists{/gist_id}", "starred_url": "https://api.github.com/users/18mdemark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/18mdemark/subscriptions", "organizations_url": "https://api.github.com/users/18mdemark/orgs", "repos_url": "https://api.github.com/users/18mdemark/repos", "events_url": "https://api.github.com/users/18mdemark/events{/privacy}", "received_events_url": "https://api.github.com/users/18mdemark/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" } ]
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
[ "Hey! I wish to confirm if it occurred to you multiple times. I have faced that error, but it resolved when I restarted the colab instance. Please check whether your resources were caped when running this. In case of low disk space, colab does not allow further imports sometimes. Just reopening the instance solves the issue most of the times.", "In case it is still persistent, please instruct me on how to reproduce the error.", "\r\nMore technical log. Note: SetupTools has been updated.\r\n\r\n```\r\n**UserWarning**: The version specified ('729681c50ce87d0dea774ea8b1f893eacdfccc52\\n') is an invalid version, \r\nthis may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.\r\n\r\n python setup.py egg_info did not run successfully.\r\n exit code: 1\r\n\r\n\r\n###################\r\n# Invalid version #\r\n###################\r\n'729681c50ce87d0dea774ea8b1f893eacdfccc52\\n' is not valid according to PEP 440.\r\n\r\nPlease make sure specify a valid version for your package.\r\nAlso note that future releases of setuptools may halt the build process\r\nif an invalid version is given.\r\n\r\n```", "@18mdemark Could you please confirm if the issue has been resolved after restarting the colab?\r\nThank you!", "Hi, i'm having the same issue, i've already restarted colab, also i tried to install it in a local environment and the same happened", "Oh, if it is a general issue then I can work on it and try to see what's causing the problem.", "@sushreebarsa if you are not working on it then can you please assign the issue to me?", "Good evening,\r\n\r\nSince yesterday I am having the same issue when executing the first cell of the TensorFlow Segmentation tutorial: https://www.tensorflow.org/tutorials/images/segmentation. No issues before yesterday. \r\n\r\nRestarting Colab does not solve the issue for me.\r\n\r\nRegards,\r\nFederico", "Hey, @fedezocco @alecamacho @18mdemark, I guess it is a problem with pip installing git.\r\n\r\nPlease try these commands in order once:\r\n1. `!apt remove git -y` - remove any degraded git module\r\n2. `!apt-get install git -y && git clone https://github.com/tensorflow/examples.git` - Install git first, then clone.\r\n\r\nMeanwhile, I will look at possible problems and create a PR if I am able to solve it.", "@Shreyas-SAS, thanks for the prompt reply. Should I execute 1 and 2 **before**\r\n\r\n!pip install git+https://github.com/tensorflow/examples.git ?\r\n\r\nIf that is what you meant, then I tried and it does not solve the problem. I get the same error message.\r\n\r\nFederico", "> @Shreyas-SAS, thanks for the prompt reply. Should I execute 1 and 2 **before**\n> \n> !pip install git+https://github.com/tensorflow/examples.git ?\n> \n> If that is what you meant, then I tried and it does not solve the problem. I get the same error message.\n> \n> Federico\n\nNo actually there seems to be a problem with installing git using pip. \n\nThe 1st code line is to remove any instance of git if it was not completely installed. \n\n2nd is to first install git using apt and then clone the repo. ", "The second is an alternative to the pip command that you mentioned. ", "I see. So I am executing 1 and 2 instead of the pip command I mentioned. Then, I proceed with the Segmentation tutorial as usual. Now I get the error below\r\n![Capture](https://user-images.githubusercontent.com/62107909/228492552-77b969f4-754c-41ba-abcc-5d1dc5616122.PNG)\r\n", "> I see. So I am executing 1 and 2 instead of the pip command I mentioned. Then, I proceed with the Segmentation tutorial as usual. Now I get the error below\n> ![Capture](https://user-images.githubusercontent.com/62107909/228492552-77b969f4-754c-41ba-abcc-5d1dc5616122.PNG)\n> \n\nOh. It actually worked fine for me yesterday. Please give me some time, I will have to check again if there wasn't any error due to pre-imported tensorflow module in my system, I will revert back as soon as possible after finishing my classes. ", "Hi, if you're cloning https://github.com/tensorflow/examples.git in colab and want to import pix2pix model from the tensorflow_examples' model package, then make sure that you're using the import command from the right path.\r\n\r\nIt seems that the command `from examples.tensorflow_examples.models.pix2pix import pix2pix` doesn't work because the module tensorflow_examples is not in your working directory. You can either change the working directory or can change the import statement.\r\n\r\nFor example, if the examples repository folder is in your working directory, use `from examples.tensorflow_examples.models.pix2pix import pix2pix`. \r\n\r\nI hope this helps!\r\n\r\n<img width=\"1344\" alt=\"image\" src=\"https://user-images.githubusercontent.com/72040194/228700520-956952a9-a976-43b4-95c8-88d74580fc69.png\">\r\n", "> Hi, if you're cloning https://github.com/tensorflow/examples.git in colab and want to import pix2pix model from the tensorflow_examples' model package, then make sure that you're using the import command from the right path.\r\n> \r\n> It seems that the command `from examples.tensorflow_examples.models.pix2pix import pix2pix` doesn't work because the module tensorflow_examples is not in your working directory. You can either change the working directory or can change the import statement.\r\n> \r\n> For example, if the examples repository folder is in your working directory, use `from examples.tensorflow_examples.models.pix2pix import pix2pix`.\r\n> \r\n> I hope this helps!\r\n> \r\n> <img alt=\"image\" width=\"1344\" src=\"https://user-images.githubusercontent.com/72040194/228700520-956952a9-a976-43b4-95c8-88d74580fc69.png\">\r\n\r\nThank you @yuktathapliyal and @Shreyas-SAS, you solved my issues.", "Glad that I could help. Still, I am trying to understand why the pip command isn't working. Is there an OpenSource repo for pip? Someone can tell them about this problem. If it's working fine with other package managers, then there is no problem on TensorFlows side I guess.", "Sorry for responding to the thread late, I've been running into identical issues as Feezocco. That workaround from yuktathapliyal after cloning the repository into my colab instance is working.\r\n\r\nTried to use pip and still nothing, but this will work for my project.\r\n\r\nThanks!", "@18mdemark Thank you for your response!\r\nCould you please confirm if the issue has been fixed and close the ticket?\r\nThank you!", "> \r\n\r\nI'm facing the same problem, after running:\r\n\r\n!apt remove git -y\r\n!apt-get install git -y && git clone https://github.com/tensorflow/examples.git\r\n\r\n**I still get error:**\r\n\r\n```\r\n1 from tensorflow_examples.models.pix2pix import pix2pix\r\n 2 from tensorflow.keras.layers import Input, Conv2DTranspose, Concatenate\r\n 3 \r\n 4 up_stack = [\r\n 5 pix2pix.upsample(512, 3), # 4x4 -> 8x8\r\n\r\nModuleNotFoundError: No module named 'tensorflow_examples'\r\n```\r\n\r\nWhat are we missing?", "> from examples.tensorflow_examples.models.pix2pix import pix2pix\r\n\r\ncan you try once using `from examples.tensorflow_examples.models.pix2pix import pix2pix` and check. \r\nReally sorry for the late reply though.", "`!git clone https://github.com/tensorflow/examples.git`\r\n`import sys\r\nsys.path.append('/content/examples')\r\n`\r\n`import tensorflow_examples as tf_ex\r\n`\r\ni hope it could work!", "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.", "> when running\r\n> \r\n> > _!pip install -q git+https://github.com/tensorflow/examples.git_\r\n> \r\n> I get kicked this error\r\n> \r\n> > error: subprocess-exited-with-error\r\n> \r\n> × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.\r\n> \r\n> note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed\r\n> \r\n> × Encountered error while generating package metadata. ╰─> See above for output.\r\n> \r\n> note: This is an issue with the package mentioned above, not pip. hint: See above for details.\r\n> \r\n> Anyone know any fixes for this problem?\r\n\r\n\r\n\r\n\r\nhi . How did you fix it\r\n", "> Hey, @fedezocco @alecamacho @18mdemark, I guess it is a problem with pip installing git.\r\n> \r\n> Please try these commands in order once:\r\n> \r\n> 1. `!apt remove git -y` - remove any degraded git module\r\n> 2. `!apt-get install git -y && git clone https://github.com/tensorflow/examples.git` - Install git first, then clone.\r\n> \r\n> Meanwhile, I will look at possible problems and create a PR if I am able to solve it.\r\n\r\nI solved this problem by adding this before installing.", "Same problem here, I can install other packages using pip, the problem is with this package. Could be something about upgrading the python version from 3.7 to 3.10 in colab?", "Hello, @18mdemark! Could you please let us know if this is still an issue for you ? I am able to run the code successfully on colab using TF v2.12. Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/7477799a916fe51c36cc874744f152c7/60106.ipynb) and confirm the same?\r\n\r\nThank you!\r\n", "> Hello, @18mdemark! Could you please let us know if this is still an issue for you ? I am able to run the code successfully on colab using TF v2.12. Please find the gist [here](https://colab.research.google.com/gist/sushreebarsa/7477799a916fe51c36cc874744f152c7/60106.ipynb) and confirm the same?\r\n> \r\n> Thank you!\r\n\r\nIt works! at least for me.\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." ]
2023-03-24T19:36:58
2023-07-19T05:40:18
2023-06-26T02:10:32
NONE
null
null
null
when running > _!pip install -q git+https://github.com/tensorflow/examples.git_ I get kicked this error > error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Anyone know any fixes for this problem?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60106/reactions", "total_count": 6, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60106/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60105
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60105/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60105/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60105/events
https://github.com/tensorflow/tensorflow/pull/60105
1,639,838,086
PR_kwDOArmXAs5M22Di
60,105
Normalize values during softmax legalization to prevent floating poin…
{ "login": "jamwar01", "id": 70524219, "node_id": "MDQ6VXNlcjcwNTI0MjE5", "avatar_url": "https://avatars.githubusercontent.com/u/70524219?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamwar01", "html_url": "https://github.com/jamwar01", "followers_url": "https://api.github.com/users/jamwar01/followers", "following_url": "https://api.github.com/users/jamwar01/following{/other_user}", "gists_url": "https://api.github.com/users/jamwar01/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamwar01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamwar01/subscriptions", "organizations_url": "https://api.github.com/users/jamwar01/orgs", "repos_url": "https://api.github.com/users/jamwar01/repos", "events_url": "https://api.github.com/users/jamwar01/events{/privacy}", "received_events_url": "https://api.github.com/users/jamwar01/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
[ "> Any numerical differences or conformance tests enabled by this?\r\n\r\nBefore/After patch have numerically identical output for small inputs. The patch fixes a bug where the intermediate values in the softmax calculation exceed std::numeric_limits<float>::max();.\r\nIn short, the patch improves numerical stability in cases of larger input values." ]
2023-03-24T18:12:25
2023-03-30T15:53:27
2023-03-30T15:53:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60105", "html_url": "https://github.com/tensorflow/tensorflow/pull/60105", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60105.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60105.patch", "merged_at": "2023-03-30T15:53:27" }
…t overflow Exponential terms added to numerator and denominator in softmax equation to normalize any input values Change-Id: If0704e95875d4600b5efd6aae0517492bb5240fe
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60105/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60105/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60104
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60104/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60104/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60104/events
https://github.com/tensorflow/tensorflow/pull/60104
1,639,830,904
PR_kwDOArmXAs5M20gD
60,104
Corrected Bug involving M_PI Variable
{ "login": "MattBelanger321", "id": 39938415, "node_id": "MDQ6VXNlcjM5OTM4NDE1", "avatar_url": "https://avatars.githubusercontent.com/u/39938415?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MattBelanger321", "html_url": "https://github.com/MattBelanger321", "followers_url": "https://api.github.com/users/MattBelanger321/followers", "following_url": "https://api.github.com/users/MattBelanger321/following{/other_user}", "gists_url": "https://api.github.com/users/MattBelanger321/gists{/gist_id}", "starred_url": "https://api.github.com/users/MattBelanger321/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MattBelanger321/subscriptions", "organizations_url": "https://api.github.com/users/MattBelanger321/orgs", "repos_url": "https://api.github.com/users/MattBelanger321/repos", "events_url": "https://api.github.com/users/MattBelanger321/events{/privacy}", "received_events_url": "https://api.github.com/users/MattBelanger321/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60104/checks?check_run_id=12260883987) 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.", "Please always makes PRs from master branch against master branch.\r\n\r\nThe release branches are only updated when we do patch releases and those are limited. Currently, only the latest release is considered for patch release. This means that r2.8 won't be updated anymore." ]
2023-03-24T18:06:19
2023-03-25T14:53:43
2023-03-25T14:53:43
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60104", "html_url": "https://github.com/tensorflow/tensorflow/pull/60104", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60104.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60104.patch", "merged_at": null }
I corrected a bug involving the M_PI variable that stops Tensorflow-lite from compiling
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60104/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60104/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60103
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60103/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60103/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60103/events
https://github.com/tensorflow/tensorflow/pull/60103
1,639,825,274
PR_kwDOArmXAs5M2zVt
60,103
R2.8
{ "login": "MattBelanger321", "id": 39938415, "node_id": "MDQ6VXNlcjM5OTM4NDE1", "avatar_url": "https://avatars.githubusercontent.com/u/39938415?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MattBelanger321", "html_url": "https://github.com/MattBelanger321", "followers_url": "https://api.github.com/users/MattBelanger321/followers", "following_url": "https://api.github.com/users/MattBelanger321/following{/other_user}", "gists_url": "https://api.github.com/users/MattBelanger321/gists{/gist_id}", "starred_url": "https://api.github.com/users/MattBelanger321/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MattBelanger321/subscriptions", "organizations_url": "https://api.github.com/users/MattBelanger321/orgs", "repos_url": "https://api.github.com/users/MattBelanger321/repos", "events_url": "https://api.github.com/users/MattBelanger321/events{/privacy}", "received_events_url": "https://api.github.com/users/MattBelanger321/received_events", "type": "User", "site_admin": false }
[ { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-24T18:02:27
2023-03-25T14:52:17
2023-03-24T18:03:02
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60103", "html_url": "https://github.com/tensorflow/tensorflow/pull/60103", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60103.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60103.patch", "merged_at": null }
I corrected a bug involving the M_PI variable that stops Tensorflow lite from compiling
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60103/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60103/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60102
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60102/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60102/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60102/events
https://github.com/tensorflow/tensorflow/issues/60102
1,639,747,202
I_kwDOArmXAs5hvI6C
60,102
Error converting `None` to a tensor in tensorflow 2.12.0
{ "login": "dstansby", "id": 6197628, "node_id": "MDQ6VXNlcjYxOTc2Mjg=", "avatar_url": "https://avatars.githubusercontent.com/u/6197628?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dstansby", "html_url": "https://github.com/dstansby", "followers_url": "https://api.github.com/users/dstansby/followers", "following_url": "https://api.github.com/users/dstansby/following{/other_user}", "gists_url": "https://api.github.com/users/dstansby/gists{/gist_id}", "starred_url": "https://api.github.com/users/dstansby/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dstansby/subscriptions", "organizations_url": "https://api.github.com/users/dstansby/orgs", "repos_url": "https://api.github.com/users/dstansby/repos", "events_url": "https://api.github.com/users/dstansby/events{/privacy}", "received_events_url": "https://api.github.com/users/dstansby/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": "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
[ "The error message suggests that there is an issue with converting **None** values to a tensor. Specifically, the error occurs when trying to convert elements of **[1, 1, 1, None, 1]** to a **tensor**. The error message also points to a layer called **conv1_bn** of type **BatchNormalization** that encountered the error.", "@dstansby,\r\n In order to expedite the trouble-shooting process, could you please provide a complete code snippet you are using which helps us to analyse the issue in an effective way. Thank you!\r\n", "The error message suggests that there is an issue with converting elements of [1, 1, 1, None, 1] to a tensor. The presence of None in the list might be causing the problem.\r\n\r\nWithout a complete code example, it's difficult to provide a specific solution. However, based on the information provided, you can try the following general suggestions:\r\n\r\nEnsure that the dimensions of your input data are correctly specified. It seems that there is a None value in the dimensions of the input tensor, which might be causing the issue. If you're using a custom input shape, double check that it's specified correctly.\r\n\r\nIf the None value is expected (for instance, to represent a dynamic batch size), you can try specifying the input shape of your model explicitly to include the None value. For example:\r\n\r\ninput_shape = (None, height, width, channels)\r\ninput_layer = keras.Input(shape=input_shape)\r\n\r\n\r\nIf you're using a custom layer or modifying the behavior of an existing layer, ensure that it properly handles None values in the input shape. You may need to add conditional logic to handle cases when the shape contains None.\r\n\r\nCheck your data preprocessing pipeline to ensure it generates data with the correct shape and type. Ensure that the pipeline doesn't introduce any unexpected None values in the data.\r\n\r\nIf these suggestions don't help, please provide a minimal reproducible example that showcases the issue. This will make it easier to diagnose the problem and offer a specific solution.", "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/60102\">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/60102\">No</a>\n" ]
2023-03-24T17:01:28
2023-04-15T01:53:59
2023-04-15T01:53:56
NONE
null
null
null
### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.12.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? As of tensorflow 2.12.0, I'm seeing a new error related to converting `None` values to a tensor. I haven't managed to produce a reproducible example (sorry!), but thought I'd post here anyway to see if anyone has any insight? Traceback is: ```python iterator = <tensorflow.python.data.ops.iterator_ops.OwnedIterator object at 0x7f536c61c550> def tf__predict_function(iterator): """Runs an evaluation execution with a single step.""" with ag__.FunctionScope('predict_function', 'fscope', ag__.ConversionOptions(recursive=True, user_requested=True, optional_features=(), internal_convert_user_code=True)) as fscope: do_return = False retval_ = ag__.UndefinedReturnValue() try: do_return = True > retval_ = ag__.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope) E TypeError: in user code: E E File "/home/runner/work/cellfinder-core/cellfinder-core/.tox/py310/lib/python3.10/site-packages/keras/engine/training.py", line 2169, in predict_function * E return step_function(self, iterator) E File "/home/runner/work/cellfinder-core/cellfinder-core/.tox/py310/lib/python3.10/site-packages/keras/engine/training.py", line 2155, in step_function ** E outputs = model.distribute_strategy.run(run_step, args=(data,)) E File "/home/runner/work/cellfinder-core/cellfinder-core/.tox/py310/lib/python3.10/site-packages/keras/engine/training.py", line 2143, in run_step ** E outputs = model.predict_step(data) E File "/home/runner/work/cellfinder-core/cellfinder-core/.tox/py310/lib/python3.10/site-packages/keras/engine/training.py", line 2111, in predict_step E return self(x, training=False) E File "/home/runner/work/cellfinder-core/cellfinder-core/.tox/py310/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler E raise e.with_traceback(filtered_tb) from None E E TypeError: Exception encountered when calling layer 'conv1_bn' (type BatchNormalization). E E Failed to convert elements of [1, 1, 1, None, 1] to Tensor. Consider casting elements to a supported type. See https://www.tensorflow.org/api_docs/python/tf/dtypes for supported TF dtypes. E E Call arguments received by layer 'conv1_bn' (type BatchNormalization): E • inputs=tf.Tensor(shape=(None, None, None, None, 64), dtype=float32) E • training=False E • mask=None /tmp/__autograph_generated_filerbzi9zef.py:15: TypeError ``` ### Standalone code to reproduce the issue ```shell ~ ``` ### Relevant log output _No response_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60102/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60102/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60101
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60101/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60101/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60101/events
https://github.com/tensorflow/tensorflow/issues/60101
1,639,745,531
I_kwDOArmXAs5hvIf7
60,101
TensorFlow 2.12.0 WSL2 GPU support
{ "login": "tg2k", "id": 3411064, "node_id": "MDQ6VXNlcjM0MTEwNjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3411064?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tg2k", "html_url": "https://github.com/tg2k", "followers_url": "https://api.github.com/users/tg2k/followers", "following_url": "https://api.github.com/users/tg2k/following{/other_user}", "gists_url": "https://api.github.com/users/tg2k/gists{/gist_id}", "starred_url": "https://api.github.com/users/tg2k/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tg2k/subscriptions", "organizations_url": "https://api.github.com/users/tg2k/orgs", "repos_url": "https://api.github.com/users/tg2k/repos", "events_url": "https://api.github.com/users/tg2k/events{/privacy}", "received_events_url": "https://api.github.com/users/tg2k/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 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" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@tg2k \r\nSorry for the late reply, As per the documentation, TF v2.12.0 requires 8.6 cuDNN and 11.8 CUDA version.Could you please make sure to follow the instructions mentioned [here](https://www.tensorflow.org/install/pip#windows-wsl2) and check the [tested build configuration](https://www.tensorflow.org/install/source#gpu) as well. Please let us know if it helps?\r\nThank you!", "@tiruk007 Having the same issue. CUDA 11.8 and cuDNN 8.6 ", "The issue you are experiencing could be due to TensorFlow 2.12 not being properly configured for GPU support in your new environment. When you install TensorFlow with pip, it doesn't automatically install the GPU version, which is tensorflow-gpu. Here's how to set up your environment to use TensorFlow with GPU support:\r\npip uninstall tensorflow\r\npip install tensorflow-gpu\r\nbut note that the latest version of tensorflow comes with the gpu installed already in the installation command pip install tensorflow and not pip install tensorflow-gpu. pip install tensorflow-gpu==2.10 and below could be installed like this\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.", "The issue is still unresolved; when doing `pip install tensorFlow` => it installs tensorflow_intel instead of the GPU, and `tf.config.list_physical_devices('GPU')` returns empty.", "@Monah84 i disagree with that, i have the lastest tensorflow with gpu by installing using pip install tensorflow as seen [here](https://pypi.org/project/tensorflow/) . \r\n\r\nProject description [here](https://pypi.org/project/tensorflow-gpu/)\r\ntensorflow-gpu has been removed. Please install tensorflow instead. The tensorflow package supports GPU accelerated operations via Nvidia CUDA. furthermore, i made this link to show you how to install [cuda](https://medium.com/@soji4u2c/how-to-install-the-nvidia-cuda-driver-12-0-toolkit-cudnn-8-8-1-3-on-wsl2-in-year-2023-23165024dc16) on WSL . what OS are you on? ", "@Adesoji1 \r\n\r\nSo I have to use` WSL`? I am using `Windows 11 + Nvidia RTX 5000`. I installed `cuda 11.8 `+ `cudnn 8.6` + `tensorflow 2.12` as stated on the TensorFlow website. But it is not working. \r\n\r\nNote: it was working before using `cuda 11.2` and ` cudnn 8.1` and `tensorflow_gpu 2.10` normally. When I upgraded the version. tensorflow not seeing the GPU device. ", "@tiruk007 The short answer is this worked.\r\n\r\nLong answer:\r\n\r\nI had been running unintentionally with cudatoolkit>=11.2 and cudnn>=8.1.0. I've swapped to the cudatoolkit>=11.8.0 conda-forge package and the nvidia-cudnn-cu11>=8.6.0.163 pip package.\r\n\r\nI noted that after running this, my /usr/lib/wsl/lib/libcuda* files got overwritten, which is a warning mentioned at [NVidia's WSL User Guide](https://docs.nvidia.com/cuda/wsl-user-guide/index.html) . I re-ran their install instructions, to no apparent effect (same files present afterward). I also applied a Windows-side post-fix that is documented [here](https://github.com/microsoft/WSL/issues/5663#issuecomment-1068499676).\r\n\r\nAt this point I restarted the WSL instance and went back into Jupyter notebooks and swapped between my TF 2.11 and TF 2.12 environments, and the behavior remained the same: TF 2.11 saw the GPUS, while TF 2.12 did not.\r\n\r\nIt turned out I missed the part in the [TF WSL install guide](https://www.tensorflow.org/install/pip#windows-wsl2) where CUDNN_PATH and LD_LIBRARY_PATH get set. I had something alternative to this, which worked for TF 2.11, but does not work for TF 2.12. Once I got those lines into my env_vars.sh, it worked.", "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/60101\">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/60101\">No</a>\n", "@cfields5 @Monah84 \r\nSince the issue was closed, Could you please raise another request from [here](https://github.com/tensorflow/tensorflow/issues/new/choose). It helps us to track and debug the issue in an effective way.\r\n\r\nThank you !", "@Adesoji1 there is no longer a separate tensorflow-gpu package. It's all packaged in tensorflow.\r\n\r\n@Monah84 I just ended up using WSL and it worked like a charm. TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Since I have windows 11, I couldn't use archived versions of NVIDIA's software. Had to go with WSL. Honestly much easier than dealing with windows anyways.", "@cfields5 but note that the latest version of tensorflow comes with the gpu installed already in the installation command pip install tensorflow and not pip install tensorflow-gpu. did you see this earlier?", "> @Adesoji1 there is no longer a separate tensorflow-gpu package. It's all packaged in tensorflow.\n> \n> \n> \n> @Monah84 I just ended up using WSL and it worked like a charm. TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Since I have windows 11, I couldn't use archived versions of NVIDIA's software. Had to go with WSL. Honestly much easier than dealing with windows anyways.\n\nI do agree with you. Actually, I am using now the WSL and it is working perfectly as well, as you said. Even I got more benefits in this way. Some libraries are not available for windows and work with Linux systems now are available for me to use them.\n\nThank you for sharing your feedback", "Is the support upward compatible. I installed tensorflow 2.13.0 on wsl2-ubuntu but gpu was not found. Do i have to downgrade to 2.10", "@ogahozy senior man, I am not sure yet about 2.13 but you can downgrade. Follow this tutorial to help you with the installation https://medium.com/@soji4u2c/how-to-install-the-nvidia-cuda-driver-12-0-toolkit-cudnn-8-8-1-3-on-wsl2-in-year-2023-23165024dc16 ", "Thanks sir\r\n\r\nOn Tue, 8 Aug 2023, 5:50 pm Adesoji Alu, ***@***.***> wrote:\r\n\r\n> @ogahozy <https://github.com/ogahozy> senior man, I am not sure yet about\r\n> 2.13 but you can downgrade. Follow this tutorial to help you with the\r\n> installation\r\n> ***@***.***/how-to-install-the-nvidia-cuda-driver-12-0-toolkit-cudnn-8-8-1-3-on-wsl2-in-year-2023-23165024dc16\r\n>\r\n> —\r\n> Reply to this email directly, view it on GitHub\r\n> <https://github.com/tensorflow/tensorflow/issues/60101#issuecomment-1669973418>,\r\n> or unsubscribe\r\n> <https://github.com/notifications/unsubscribe-auth/AFJ7EKUPJPVBNG7VMRLZDOTXUJU5VANCNFSM6AAAAAAWGZ365Y>\r\n> .\r\n> You are receiving this because you were mentioned.Message ID:\r\n> ***@***.***>\r\n>\r\n" ]
2023-03-24T17:00:30
2023-08-08T19:07:31
2023-04-19T14:49:49
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code No ### OS Platform and Distribution Windows 11 + WSL2 ### Mobile device _No response_ ### Python version 3.11 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.8/8.4.1.50 ### GPU model and memory _No response_ ### Current Behaviour? ```shell I had a TensorFlow 2.11 environment in WSL that works fine. It is installed using the conda-forge packages. For TensorFlow 2.12 I swapped to using the pip packages for tensorflow, keras, keras-tuner, tensorflow-hub, tensorflow-datasets, and tensorboard. After installation the conda environment for 2.12 can't find the GPU anymore. Swapping back over to my 2.11 environment, it still finds it fine. Are there new instructions for GPU support in WSL2 as of TensorFlow 2.12.0? ``` ### Standalone code to reproduce the issue ```shell gpus = tf.config.experimental.list_physical_devices('GPU') print("GPUS: ", gpus) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60101/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/60101/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60100
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60100/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60100/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60100/events
https://github.com/tensorflow/tensorflow/pull/60100
1,639,617,726
PR_kwDOArmXAs5M2HXS
60,100
Install suitable version of protobuf in order to build
{ "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
[ "Closing since there won't be any more patches to r2.11 branch" ]
2023-03-24T15:37:57
2023-08-22T14:14:26
2023-07-11T20:35:51
CONTRIBUTOR
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60100", "html_url": "https://github.com/tensorflow/tensorflow/pull/60100", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60100.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60100.patch", "merged_at": null }
Allowing unrestrained versions of protobuf to be installed during build leads to test failures later. So ensure that only a supported version is installed during build. Also for tensorboard although this may not be necessary but is at least correct.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60100/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60100/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60099
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60099/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60099/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60099/events
https://github.com/tensorflow/tensorflow/issues/60099
1,639,473,077
I_kwDOArmXAs5huF-1
60,099
Build 2.11.1 from source in arm , Error in repository_rule: in call to repository_rule(), parameter 'remotable' is experimental and thus unavailable with the current flags
{ "login": "nickkchenn", "id": 9913793, "node_id": "MDQ6VXNlcjk5MTM3OTM=", "avatar_url": "https://avatars.githubusercontent.com/u/9913793?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nickkchenn", "html_url": "https://github.com/nickkchenn", "followers_url": "https://api.github.com/users/nickkchenn/followers", "following_url": "https://api.github.com/users/nickkchenn/following{/other_user}", "gists_url": "https://api.github.com/users/nickkchenn/gists{/gist_id}", "starred_url": "https://api.github.com/users/nickkchenn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickkchenn/subscriptions", "organizations_url": "https://api.github.com/users/nickkchenn/orgs", "repos_url": "https://api.github.com/users/nickkchenn/repos", "events_url": "https://api.github.com/users/nickkchenn/events{/privacy}", "received_events_url": "https://api.github.com/users/nickkchenn/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @nickkchenn ,\r\n\r\nCould you please confirm the command used for build. I am getting the error below because of the {{ extra_options }}. Is it related to the the java environment? If I exclude {{ extra_options }} this then build starts compiling.\r\n\r\nFor me the command `bazel --host_jvm_args=-Djavax.net.ssl.trustStore='/usr/local/java/jre/lib/security/cacerts' --host_jvm_args=-Djavax.net.ssl.trustStorePassword='changeit' build --jobs=16 --copt=\"-mtune=generic\" --copt=\"-march=armv8-a\" --copt=\"-O3\" //tensorflow/tools/pip_package:build_pip_package --verbose_failures` seems working. \r\n\r\nI see from your log the build failed within 76.7 seconds. For me the compiling happened more than 1 hour and then my VM got disconnected and hence can't share the logs.Will try again and share the complete logs.\r\n\r\nIf you can confirm the argument `{{ extra_options }} ` seems stopping me from build and getting build fail error immediately as below.\r\n\r\n```\r\n(tf-bazel) suryanarayanay@ubuntu22-arm:~/tensorflow$ bazel --host_jvm_args=-Djavax.net.ssl.trustStore='/usr/local/java/jre/lib/security/cacerts' --host_jvm_args=-Djavax.net.ssl.trustStorePassword='changeit' build --jobs=16 {{ extra_options }} --copt=\"-mtune=generic\" --copt=\"-march=armv8-a\" --copt=\"-O3\" //tensorflow/tools/pip_package:build_pip_package --verbose_failures\r\nAnother command (pid=1450) is running. Waiting for it to complete on the server (server_pid=1454)...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=91\r\nINFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-unknown-warning --copt=-Wno-array-parameter --copt=-Wno-stringop-overflow --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes\r\nINFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/4ce3e4da2e21ae4dfcee9366415e55f408c884ec.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nERROR: Skipping '}}': no such target '//:}}': target '}}' not declared in package '' defined by /home/suryanarayanay/tensorflow/BUILD\r\nERROR: no such target '//:}}': target '}}' not declared in package '' defined by /home/suryanarayanay/tensorflow/BUILD\r\nINFO: Elapsed time: 1009.651s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (0 packages loaded)\r\n```\r\n\r\n\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60099\">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/60099\">No</a>\n", "Attaching the logs below which overrides the error reported and starts compiling.\r\n\r\n```\r\n(tf-bazel) suryanarayanay@ubuntu22-arm:~/tensorflow$ bazel --host_jvm_args=-Djavax.net.ssl.trustStore='/usr/local/java/jre/lib/security/cacerts' --host_jvm_args=-Djavax.net.ssl.trustStorePassword='changeit' build --jobs=16 --copt=\"-mtune=generic\" --copt=\"-march=armv8-a\" --copt=\"-O3\" //tensorflow/tools/pip_package:build_pip_package --verbose_failures\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=100\r\nINFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-unknown-warning --copt=-Wno-array-parameter --copt=-Wno-stringop-overflow --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes\r\nINFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\nINFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (542 packages loaded, 30547 targets configured).\r\nINFO: Found 1 target...\r\nINFO: Deleting stale sandbox base /home/suryanarayanay/.cache/bazel/_bazel_suryanarayanay/e93ef42332b258ebf8397106d59e39e3/sandbox\r\n[11,362 / 11,465] 16 actions, 4 running\r\n Compiling tensorflow/compiler/xla/service/hlo_instruction.cc; 13s local\r\n Compiling tensorflow/compiler/xla/literal.cc; 12s local\r\n Compiling tensorflow/core/protobuf/tpu/optimization_parameters.pb.cc; 3s local\r\n Compiling tensorflow/compiler/xla/comparison_util.cc; 1s local\r\n [Sched] Compiling tensorflow/compiler/xla/service/hlo_module.cc; 18s\r\n [Sched] Compiling tensorflow/core/ops/tpu_cross_replica_ops.cc; 16s\r\n```\r\n" ]
2023-03-24T14:11:53
2023-04-22T06:43:21
2023-04-14T01:52:08
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.11.1 ### Custom Code No ### OS Platform and Distribution Linux EulerOS(CentOS) ### Mobile device _No response_ ### Python version 3.9 ### Bazel version 5.3.0 ### GCC/Compiler version 10.2.1 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I try to build tensorflow 2.11.1 from source in arm machine My build cmd is like below : bazel --host_jvm_args=-Djavax.net.ssl.trustStore='/usr/local/java/jre/lib/security/cacerts' \ --host_jvm_args=-Djavax.net.ssl.trustStorePassword='changeit' build --jobs=16 {{ extra_options }} \ --copt="-mtune=generic" --copt="-march=armv8-a" --copt="-O3" \ //tensorflow/tools/pip_package:build_pip_package --verbose_failures >> /tmp/workspace/build_tensorflow.log except the cacerts part,I set 4 build params . I meet the error "Error in repository_rule: in call to repository_rule(), parameter 'remotable' is experimental and thus unavailable with the current flags. It may be enabled by setting --experimental_repo_remote_exec" I tried: 1. change remotable to False ,result in another error in building 2. add --experimental_repo_remote_exec to build param ,meet new error like : Error in check_experimental_cc_shared_library: Pass --experimental_cc_shared_library to use cc_shared_library ``` ### Standalone code to reproduce the issue ```shell I use the build config from the linaro community build pipeline (https://git.linaro.org/ci/job/configs.git) I pull the configs repo to local machine and adjust a little for network issues my build cmd: bazel --host_jvm_args=-Djavax.net.ssl.trustStore='/usr/local/java/jre/lib/security/cacerts' \ --host_jvm_args=-Djavax.net.ssl.trustStorePassword='changeit' build --jobs=16 {{ extra_options }} \ --copt="-mtune=generic" --copt="-march=armv8-a" --copt="-O3" \ //tensorflow/tools/pip_package:build_pip_package --verbose_failures >> /tmp/workspace/build_tensorflow.log; ``` ### Relevant log output ```shell stderr: |- + source /tmp/workspace/venv-cp39-cp39/bin/activate ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/tmp/workspace/venv-cp39-cp39 ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ PATH=/tmp/workspace/venv-cp39-cp39/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ PS1='(venv-cp39-cp39) ' ++ export PS1 ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r + source ./linklibs.sh ++ export BAZEL_LINKLIBS=-lstdc++ ++ BAZEL_LINKLIBS=-lstdc++ ++ export BAZEL_LINKOPTS= ++ BAZEL_LINKOPTS= + bazel --host_jvm_args=-Djavax.net.ssl.trustStore=/usr/local/java/jre/lib/security/cacerts --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit clean --expunge INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes. + bazel --host_jvm_args=-Djavax.net.ssl.trustStore=/usr/local/java/jre/lib/security/cacerts --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit build --jobs=16 --copt=-mtune=generic --copt=-march=armv8-a --copt=-O3 --cxxopt=-std=c++17 //tensorflow/tools/pip_package:build_pip_package --verbose_failures Starting local Bazel server and connecting to it... Loading: Loading: 0 packages loaded ERROR: Traceback (most recent call last): File "/tmp/workspace/tensorflow-2.11.1/third_party/py/python_configure.bzl", line 288, column 42, in <toplevel> remote_python_configure = repository_rule( Error in repository_rule: in call to repository_rule(), parameter 'remotable' is experimental and thus unavailable with the current flags. It may be enabled by setting --experimental_repo_remote_exec INFO: Repository tf_runtime instantiated at: /tmp/workspace/tensorflow-2.11.1/WORKSPACE:11:14: in <toplevel> /tmp/workspace/tensorflow-2.11.1/tensorflow/workspace3.bzl:18:15: in workspace /tmp/workspace/tensorflow-2.11.1/third_party/tf_runtime/workspace.bzl:12:20: in repo /tmp/workspace/tensorflow-2.11.1/third_party/repo.bzl:136:21: in tf_http_archive Repository rule _tf_http_archive defined at: /tmp/workspace/tensorflow-2.11.1/third_party/repo.bzl:89:35: in <toplevel> INFO: Repository io_bazel_rules_closure instantiated at: /tmp/workspace/tensorflow-2.11.1/WORKSPACE:11:14: in <toplevel> /tmp/workspace/tensorflow-2.11.1/tensorflow/workspace3.bzl:8:17: in workspace Repository rule http_archive defined at: /root/.cache/bazel/_bazel_root/6b72de8f0642eb03fd5c3f4db1efede0/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel> INFO: Repository rules_jvm_external instantiated at: /tmp/workspace/tensorflow-2.11.1/WORKSPACE:11:14: in <toplevel> /tmp/workspace/tensorflow-2.11.1/tensorflow/workspace3.bzl:41:17: in workspace Repository rule http_archive defined at: /root/.cache/bazel/_bazel_root/6b72de8f0642eb03fd5c3f4db1efede0/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel> ERROR: error loading package '': at /tmp/workspace/tensorflow-2.11.1/tensorflow/workspace2.bzl:10:6: initialization of module 'third_party/py/python_configure.bzl' failed INFO: Elapsed time: 4.759s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) FAILED: Build did NOT complete successfully (0 packages loaded) stderr_lines: <omitted> stdout: '' stdout_lines: <omitted> ===============================error after add --experimental_repo_remote_exec================= stderr: |- + source /tmp/workspace/venv-cp39-cp39/bin/activate ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/tmp/workspace/venv-cp39-cp39 ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ PATH=/tmp/workspace/venv-cp39-cp39/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ PS1='(venv-cp39-cp39) ' ++ export PS1 ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r + source ./linklibs.sh ++ export BAZEL_LINKLIBS=-lstdc++ ++ BAZEL_LINKLIBS=-lstdc++ ++ export BAZEL_LINKOPTS= ++ BAZEL_LINKOPTS= + bazel --host_jvm_args=-Djavax.net.ssl.trustStore=/usr/local/java/jre/lib/security/cacerts --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit clean --expunge INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes. + bazel --host_jvm_args=-Djavax.net.ssl.trustStore=/usr/local/java/jre/lib/security/cacerts --host_jvm_args=-Djavax.net.ssl.trustStorePassword=changeit build --jobs=16 --copt=-mtune=generic --copt=-march=armv8-a --copt=-O3 --experimental_repo_remote_exec //tensorflow/tools/pip_package:build_pip_package --verbose_failures Starting local Bazel server and connecting to it... Loading: Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (239 packages loaded, 3979 targets configured) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (282 packages loaded, 4077 targets configured) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (355 packages loaded, 4790 targets configured) WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/tsl/lib/gtl/BUILD:97:11: in linkstatic attribute of cc_library rule //tensorflow/tsl/lib/gtl:map_util: setting 'linkstatic=1' is recommended if there are no object files WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:1275:11: in linkstatic attribute of cc_library rule //tensorflow/core:lib_headers_for_pybind: setting 'linkstatic=1' is recommended if there are no object files WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/lib/gtl/BUILD:139:11: in linkstatic attribute of cc_library rule //tensorflow/core/lib/gtl:map_util: setting 'linkstatic=1' is recommended if there are no object files WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/bfloat16.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/byte_order.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/cpu_info.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/dynamic_annotations.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/macros.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/platform.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/prefetch.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/protobuf.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:472:11: in hdrs attribute of cc_library rule //tensorflow/core:framework_lite: Artifact 'tensorflow/tsl/platform/thread_annotations.h' is duplicated (through '//tensorflow/core/platform:framework_lite_hdrs' and '//tensorflow/tsl/platform:framework_lite_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:1249:11: in linkstatic attribute of cc_library rule //tensorflow/core:lib_internal: setting 'linkstatic=1' is recommended if there are no object files WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/abi.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/bfloat16.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/casts.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/coding.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/context.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/cpu_info.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/crash_analysis.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/dynamic_annotations.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/env.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/errors.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/file_statistics.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/file_system.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/file_system_helper.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/fingerprint.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/init_main.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/logger.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/mem.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/net.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/notification.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/null_file_system.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/numa.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/path.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/prefetch.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/protobuf.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/ram_file_system.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/random.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/resource.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/stack_frame.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/stacktrace.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/stacktrace_handler.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/statusor.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/str_util.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/stringpiece.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/stringprintf.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/subprocess.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/thread_annotations.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/profile_utils/android_armv7a_cpu_utils_helper.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/profile_utils/clock_cycle_profiler.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/profile_utils/cpu_utils.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:258:11: in hdrs attribute of cc_library rule //tensorflow/core:lib: Artifact 'tensorflow/tsl/platform/profile_utils/i_cpu_utils_helper.h' is duplicated (through '//tensorflow/core/platform:lib_hdrs' and '//tensorflow/tsl/platform:lib_hdrs') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/BUILD:1576:16: in linkstatic attribute of cc_library rule //tensorflow/core:framework_internal: setting 'linkstatic=1' is recommended if there are no object files. Since this rule was created by the macro 'tf_cuda_library', the error might have been caused by the macro implementation WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/common_runtime/BUILD:890:11: in hdrs attribute of cc_library rule //tensorflow/core/common_runtime:graph_constructor: Artifact 'tensorflow/core/common_runtime/eval_const_tensor.h' is duplicated (through '//tensorflow/core/common_runtime:core_cpu_lib_headers' and '//tensorflow/core/common_runtime:eval_const_tensor.h') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/common_runtime/BUILD:890:11: in hdrs attribute of cc_library rule //tensorflow/core/common_runtime:graph_constructor: Artifact 'tensorflow/core/common_runtime/graph_constructor.h' is duplicated (through '//tensorflow/core/common_runtime:core_cpu_lib_headers' and '//tensorflow/core/common_runtime:graph_constructor.h') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/common_runtime/BUILD:890:11: in hdrs attribute of cc_library rule //tensorflow/core/common_runtime:graph_constructor: Artifact 'tensorflow/core/common_runtime/graph_runner.h' is duplicated (through '//tensorflow/core/common_runtime:core_cpu_lib_headers' and '//tensorflow/core/common_runtime:graph_runner.h') WARNING: /tmp/workspace/tensorflow-2.11.1/tensorflow/core/common_runtime/BUILD:890:11: in hdrs attribute of cc_library rule //tensorflow/core/common_runtime:graph_constructor: Artifact 'tensorflow/core/common_runtime/shape_refiner.h' is duplicated (through '//tensorflow/core/common_runtime:core_cpu_lib_headers' and '//tensorflow/core/common_runtime:shape_refiner.h') Analyzing: target //tensorflow/tools/pip_package:build_pip_package (531 packages loaded, 34453 targets configured) ERROR: /tmp/workspace/tensorflow-2.11.1/tensorflow/BUILD:1059:21: in cc_shared_library rule //tensorflow:libtensorflow_framework.so.2.11.1: Traceback (most recent call last): File "/virtual_builtins_bzl/common/cc/experimental_cc_shared_library.bzl", line 404, column 51, in _cc_shared_library_impl Error in check_experimental_cc_shared_library: Pass --experimental_cc_shared_library to use cc_shared_library ERROR: /tmp/workspace/tensorflow-2.11.1/tensorflow/BUILD:1059:21: Analysis of target '//tensorflow:libtensorflow_framework.so.2.11.1' failed ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: INFO: Elapsed time: 76.772s INFO: 0 processes. FAILED: Build did NOT complete successfully (531 packages loaded, 34537 targets configured) FAILED: Build did NOT complete successfully (531 packages loaded, 34537 targets configured) stderr_lines: <omitted> stdout: '' stdout_lines: <omitted> ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60099/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60099/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60098
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60098/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60098/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60098/events
https://github.com/tensorflow/tensorflow/pull/60098
1,639,250,550
PR_kwDOArmXAs5M036F
60,098
Add fuzzer for arbitrary graph execution
{ "login": "DavidKorczynski", "id": 657617, "node_id": "MDQ6VXNlcjY1NzYxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/657617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidKorczynski", "html_url": "https://github.com/DavidKorczynski", "followers_url": "https://api.github.com/users/DavidKorczynski/followers", "following_url": "https://api.github.com/users/DavidKorczynski/following{/other_user}", "gists_url": "https://api.github.com/users/DavidKorczynski/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidKorczynski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidKorczynski/subscriptions", "organizations_url": "https://api.github.com/users/DavidKorczynski/orgs", "repos_url": "https://api.github.com/users/DavidKorczynski/repos", "events_url": "https://api.github.com/users/DavidKorczynski/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidKorczynski/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "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
[ "Is there any more for me to do here?" ]
2023-03-24T11:50:28
2023-03-30T15:48:33
2023-03-30T15:48:33
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60098", "html_url": "https://github.com/tensorflow/tensorflow/pull/60098", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60098.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60098.patch", "merged_at": "2023-03-30T15:48:33" }
CC @fcoUnda @learning-to-play
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60098/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60098/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60097
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60097/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60097/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60097/events
https://github.com/tensorflow/tensorflow/pull/60097
1,638,766,266
PR_kwDOArmXAs5MzO5X
60,097
Updated python_object_to_proto_visitor.py
{ "login": "amangupta201", "id": 113130485, "node_id": "U_kgDOBr479Q", "avatar_url": "https://avatars.githubusercontent.com/u/113130485?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amangupta201", "html_url": "https://github.com/amangupta201", "followers_url": "https://api.github.com/users/amangupta201/followers", "following_url": "https://api.github.com/users/amangupta201/following{/other_user}", "gists_url": "https://api.github.com/users/amangupta201/gists{/gist_id}", "starred_url": "https://api.github.com/users/amangupta201/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amangupta201/subscriptions", "organizations_url": "https://api.github.com/users/amangupta201/orgs", "repos_url": "https://api.github.com/users/amangupta201/repos", "events_url": "https://api.github.com/users/amangupta201/events{/privacy}", "received_events_url": "https://api.github.com/users/amangupta201/received_events", "type": "User", "site_admin": false }
[ { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-24T05:52:53
2023-05-09T01:47:07
2023-03-27T19:41:32
NONE
off-topic
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60097", "html_url": "https://github.com/tensorflow/tensorflow/pull/60097", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60097.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60097.patch", "merged_at": null }
Updated python_object_to_proto_visitor.py Imported OS Module for paths
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60097/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60097/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60096
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60096/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60096/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60096/events
https://github.com/tensorflow/tensorflow/pull/60096
1,638,703,885
PR_kwDOArmXAs5MzBzb
60,096
csr
{ "login": "Thekiddrd22", "id": 126825723, "node_id": "U_kgDOB480-w", "avatar_url": "https://avatars.githubusercontent.com/u/126825723?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Thekiddrd22", "html_url": "https://github.com/Thekiddrd22", "followers_url": "https://api.github.com/users/Thekiddrd22/followers", "following_url": "https://api.github.com/users/Thekiddrd22/following{/other_user}", "gists_url": "https://api.github.com/users/Thekiddrd22/gists{/gist_id}", "starred_url": "https://api.github.com/users/Thekiddrd22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Thekiddrd22/subscriptions", "organizations_url": "https://api.github.com/users/Thekiddrd22/orgs", "repos_url": "https://api.github.com/users/Thekiddrd22/repos", "events_url": "https://api.github.com/users/Thekiddrd22/events{/privacy}", "received_events_url": "https://api.github.com/users/Thekiddrd22/received_events", "type": "User", "site_admin": false }
[ { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
null
[]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60096/checks?check_run_id=12243040322) 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.", "You have successfully added a new Scorecard configuration `supply-chain/branch-protection`. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository [Security tab](/tensorflow/tensorflow/security/code-scanning?query=pr%3A60096+tool%3AScorecard+is%3Aopen).", "You have successfully added a new Scorecard configuration `supply-chain/local`. As part of the setup process, we have scanned this repository and found 92 existing alerts. Please check the repository [Security tab](/tensorflow/tensorflow/security/code-scanning?query=pr%3A60096+tool%3AScorecard+is%3Aopen) to see all alerts.", "You have successfully added a new Scorecard configuration `supply-chain/online-scm`. As part of the setup process, we have scanned this repository and found 2 existing alerts. Please check the repository [Security tab](/tensorflow/tensorflow/security/code-scanning?query=pr%3A60096+tool%3AScorecard+is%3Aopen) to see all alerts.", "It is also plagiarizing https://github.com/tensorflow/tensorflow/pull/57019" ]
2023-03-24T04:34:53
2023-03-24T14:34:58
2023-03-24T14:33:23
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60096", "html_url": "https://github.com/tensorflow/tensorflow/pull/60096", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60096.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60096.patch", "merged_at": null }
thanks
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60096/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60096/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60095
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60095/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60095/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60095/events
https://github.com/tensorflow/tensorflow/pull/60095
1,638,677,038
PR_kwDOArmXAs5My7_R
60,095
[tosa][fix] correct scales of resize to generate right output shape.
{ "login": "tatwaichong", "id": 78814694, "node_id": "MDQ6VXNlcjc4ODE0Njk0", "avatar_url": "https://avatars.githubusercontent.com/u/78814694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tatwaichong", "html_url": "https://github.com/tatwaichong", "followers_url": "https://api.github.com/users/tatwaichong/followers", "following_url": "https://api.github.com/users/tatwaichong/following{/other_user}", "gists_url": "https://api.github.com/users/tatwaichong/gists{/gist_id}", "starred_url": "https://api.github.com/users/tatwaichong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tatwaichong/subscriptions", "organizations_url": "https://api.github.com/users/tatwaichong/orgs", "repos_url": "https://api.github.com/users/tatwaichong/repos", "events_url": "https://api.github.com/users/tatwaichong/events{/privacy}", "received_events_url": "https://api.github.com/users/tatwaichong/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-24T03:58:00
2023-04-10T21:03:09
2023-03-26T14:35:46
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60095", "html_url": "https://github.com/tensorflow/tensorflow/pull/60095", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60095.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60095.patch", "merged_at": "2023-03-26T14:35:46" }
The fix of commit df77e9a6a8a63f77f82b05965cb02031256dc48a intended to set the value of output shape to scale_n, but wrongly set to scale_d. As a result, wrong output shape will be generated.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60095/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60095/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60094
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60094/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60094/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60094/events
https://github.com/tensorflow/tensorflow/pull/60094
1,638,664,961
PR_kwDOArmXAs5My5bz
60,094
Test commit
{ "login": "ChaseVanacora", "id": 99766737, "node_id": "U_kgDOBfJR0Q", "avatar_url": "https://avatars.githubusercontent.com/u/99766737?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ChaseVanacora", "html_url": "https://github.com/ChaseVanacora", "followers_url": "https://api.github.com/users/ChaseVanacora/followers", "following_url": "https://api.github.com/users/ChaseVanacora/following{/other_user}", "gists_url": "https://api.github.com/users/ChaseVanacora/gists{/gist_id}", "starred_url": "https://api.github.com/users/ChaseVanacora/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ChaseVanacora/subscriptions", "organizations_url": "https://api.github.com/users/ChaseVanacora/orgs", "repos_url": "https://api.github.com/users/ChaseVanacora/repos", "events_url": "https://api.github.com/users/ChaseVanacora/events{/privacy}", "received_events_url": "https://api.github.com/users/ChaseVanacora/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/60094/checks?check_run_id=12242346983) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-03-24T03:39:52
2023-03-24T03:40:28
2023-03-24T03:40:27
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60094", "html_url": "https://github.com/tensorflow/tensorflow/pull/60094", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60094.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60094.patch", "merged_at": null }
I have no idea where this commit is going
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60094/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60094/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60093
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60093/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60093/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60093/events
https://github.com/tensorflow/tensorflow/issues/60093
1,638,455,961
I_kwDOArmXAs5hqNqZ
60,093
tf.raw_ops.Round doesn't have a gradient
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 284443156, "node_id": "MDU6TGFiZWwyODQ0NDMxNTY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug", "name": "type:docs-bug", "color": "159b2e", "default": false, "description": "Document issues" }, { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 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" } ]
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
[ "Hey @trickiwoo , \r\n\r\nYes, rounding functions have a finite range and hence gradient zero. Although there are approximations available (refer [here](https://stackoverflow.com/questions/46596636/differentiable-round-function-in-tensorflow)), I don't think that's what documentation would be referring to. \r\n\r\n@sushreebarsa If you think this analysis is correct, please let me know. I will raise a PR correcting it", "@sushreebarsa the problem is we are registering gradient for round function in registry https://github.com/tensorflow/tensorflow/blob/f46ff5e9cfff71a4de98a8aac79d44df27df48f4/tensorflow/python/ops/math_grad.py#L1812 \r\nAnd the logic to add documentation is whether a op is present in registry or not\r\nhttps://github.com/tensorflow/tensorflow/blob/f46ff5e9cfff71a4de98a8aac79d44df27df48f4/tensorflow/tools/docs/generate2.py#L143 \r\n\r\nJust need to be sure this is the only use case of registering gradients", "@trickiwoo Thank you for raising an issue!\r\nCould you please refer to the comments above and let us know if you want these changes in the documentation?\r\n@mayankagarwals Thank you for your response here. \r\n\r\nAs per my understanding, some tf.Operations are registered as being non-differentiable and will return None. Others have no gradient registered.\r\n\r\nThe tf.raw_ops page shows which low-level ops have gradients registered.\r\n\r\nIf you attempt to take a gradient through a float op that has no gradient registered the tape will throw an error instead of silently returning None. This way you know something has gone wrong.\r\n\r\nFor example, the tf.image.adjust_contrast function wraps raw_ops.AdjustContrastv2, which could have a gradient but the gradient is not implemented.\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.", "@sushreebarsa @mayankagarwals Thank you for the comments! I didn't know that \"has gradient\" means \"has gradient registered\" but it can still be non-differentiable. I think it would be helpful to make it clear in the document, or even better, only mark the differentiable ops as \"has gradient\" (not sure if that can be done easily though).\r\n\r\nFurther, I wonder why register a `None` gradient (say for `round`) instead of don't register at all? In my understanding, it is better to throw an error for the non-differentiable operator, instead of silently returning None for the whole computation.", "Hi registering gradient to return None for `Round` to silently return None instead of throwing error when doing gradient computation.\r\n```\r\n@ops.RegisterGradient(\"Round\") \r\ndef _RoundGrad(_, unused_grad): \r\n return [None]\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/60093\">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/60093\">No</a>\n" ]
2023-03-23T22:59:20
2023-05-11T01:54:35
2023-05-11T01:54:15
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell The function tf.raw_ops.Round does not have a gradient, however, it is mentioned in the documentation (https://www.tensorflow.org/api_docs/python/tf/raw_ops) that it does. Despite this inconsistency, the code operates correctly as intended. ``` ### Standalone code to reproduce the issue ```shell import os import tensorflow as tf import numpy as np x = tf.Variable([1.5, -1.5], dtype=tf.dtypes.float64) def rounding(x): round_op = tf.raw_ops.Round(x=x) return round_op t1 = rounding(x) with tf.GradientTape() as tape: tape.watch(x) t = rounding(x) gradient = tape.gradient(t, x) print(gradient) ``` ### Relevant log output ```shell None ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60093/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60093/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60092
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60092/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60092/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60092/events
https://github.com/tensorflow/tensorflow/issues/60092
1,638,365,627
I_kwDOArmXAs5hp3m7
60,092
InvalidArgumentError: Unsupported data type for TPU: string
{ "login": "innat", "id": 17668390, "node_id": "MDQ6VXNlcjE3NjY4Mzkw", "avatar_url": "https://avatars.githubusercontent.com/u/17668390?v=4", "gravatar_id": "", "url": "https://api.github.com/users/innat", "html_url": "https://github.com/innat", "followers_url": "https://api.github.com/users/innat/followers", "following_url": "https://api.github.com/users/innat/following{/other_user}", "gists_url": "https://api.github.com/users/innat/gists{/gist_id}", "starred_url": "https://api.github.com/users/innat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/innat/subscriptions", "organizations_url": "https://api.github.com/users/innat/orgs", "repos_url": "https://api.github.com/users/innat/repos", "events_url": "https://api.github.com/users/innat/events{/privacy}", "received_events_url": "https://api.github.com/users/innat/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": 1097541661, "node_id": "MDU6TGFiZWwxMDk3NTQxNjYx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:tpus", "name": "comp:tpus", "color": "0052cc", "default": false, "description": "tpu, tpuestimator" }, { "id": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@sachinprasadhs,\r\nI tried to execute the mentioned code on tensoflow v2.9 and nightly & it was failing due to `No OpKernel was registered` error. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/22ac50ef65e150184ddce505c2bccaba/invalidargumenterror_unsupported_data_type_for_tpu_string.ipynb).", "@tilakrayal \r\nThat is because, you're trying to initiate tpu-vm from colab. Colab only provides tpu-node, which initialization process is bit different. And as it's mentioned, I've used tpu-vm (on kaggle) and not tpu-node. Node requires to have data on GCP bucket or something and doesn't work on local file system but tpu-vm does. \r\n\r\nHowever, the actual issue can be reproduced in any system.", "cc @mattdangerw any thoughts?", "From TPU [doc](https://cloud.google.com/tpu/docs/troubleshooting/trouble-tf)\r\n\r\n> Currently, only the tf.float32, tf.int32, tf.bfloat16, and tf.bool data types are supported on the TPU. Other common data types, such as tf.uint8, tf.string, and tf.int64, must be converted to one of the supported data types during data pre-processing (that is, in the tf.data.Dataset pipeline).\r\n\r\nMaybe excluding tokenizer from model (`tfst_model`) and add that to data loader with uniform padding, so that TPU can digest! \r\n\r\n---\r\n\r\n**update**\r\n\r\nSolved with above approach.", "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/60092\">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/60092\">No</a>\n" ]
2023-03-23T21:33:19
2023-03-24T23:15:49
2023-03-24T23:15:46
NONE
null
null
null
**Environment** ``` OS: Kaggle/Colab TensorFlow: 2.9.1 ``` **Background** I've a training dataset (`x`: image, `y`: caption). For training, I need to transform this caption to text embedding. And I want to do that inside the model, at training time. And not from data-loader (e.x `tf.data` API). Now, including the text-encoder for text embedding inside the actual model (image-captioning model), the whole model can be super heavy. To remedy this, I've followed the following approach. I've tried to transform **text to text embedding** inside the model by overriding the `train_step` method. The process works on GPUs. But for TPU devices, no. ```python class TextToEmbedding(keras.Model): def call(self, inputs): return self.model(inputs) def train_step(self, data): x, y = data y = tfst_model(y) return super().train_step((x, y)) def test_step(self, data): x, y = data y = tfst_model(y) return super().test_step((x, y)) ``` On TPUs, the error is showed up. It gives: > InvalidArgumentError: Unsupported data type for TPU: string, caused by output Pad_1:0 [Op:__inference_train_function_67882] Though it's stated that it is unsupported for TPU, but I've failed to understand how that can be unspported on such usual cases. Does string input not support on TPU? **Reproducible Code** [Gist.](https://colab.research.google.com/drive/1C0ejXFVav0yCCDmAATisIhiTFPjGxHKM?usp=sharing) (Also note, I'm running the code on TPU-vm and not on node). **Similar issues** - https://github.com/google/uncertainty-baselines/issues/579 - https://github.com/tensorflow/quantum/issues/707
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60092/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60092/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60091
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60091/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60091/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60091/events
https://github.com/tensorflow/tensorflow/pull/60091
1,638,312,442
PR_kwDOArmXAs5Mxtt1
60,091
[TF:TRT] Sample change
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-23T20:57:40
2023-04-04T17:30:55
2023-03-23T20:57:50
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60091", "html_url": "https://github.com/tensorflow/tensorflow/pull/60091", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60091.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60091.patch", "merged_at": null }
[TF:TRT] Sample change DO NOT MERGE This is test PR to check the auto assignment of reviewers based on the title [TF:TRT] or [TF-TRT] or [TF TRT] all case insensitive.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60091/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60091/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60090
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60090/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60090/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60090/events
https://github.com/tensorflow/tensorflow/issues/60090
1,638,270,532
I_kwDOArmXAs5hpgZE
60,090
[JAX] The use of jax.Array.at fails experimental_from_jax
{ "login": "krzysztofrusek", "id": 8122786, "node_id": "MDQ6VXNlcjgxMjI3ODY=", "avatar_url": "https://avatars.githubusercontent.com/u/8122786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/krzysztofrusek", "html_url": "https://github.com/krzysztofrusek", "followers_url": "https://api.github.com/users/krzysztofrusek/followers", "following_url": "https://api.github.com/users/krzysztofrusek/following{/other_user}", "gists_url": "https://api.github.com/users/krzysztofrusek/gists{/gist_id}", "starred_url": "https://api.github.com/users/krzysztofrusek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krzysztofrusek/subscriptions", "organizations_url": "https://api.github.com/users/krzysztofrusek/orgs", "repos_url": "https://api.github.com/users/krzysztofrusek/repos", "events_url": "https://api.github.com/users/krzysztofrusek/events{/privacy}", "received_events_url": "https://api.github.com/users/krzysztofrusek/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": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "Ferev", "id": 16599488, "node_id": "MDQ6VXNlcjE2NTk5NDg4", "avatar_url": "https://avatars.githubusercontent.com/u/16599488?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ferev", "html_url": "https://github.com/Ferev", "followers_url": "https://api.github.com/users/Ferev/followers", "following_url": "https://api.github.com/users/Ferev/following{/other_user}", "gists_url": "https://api.github.com/users/Ferev/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ferev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ferev/subscriptions", "organizations_url": "https://api.github.com/users/Ferev/orgs", "repos_url": "https://api.github.com/users/Ferev/repos", "events_url": "https://api.github.com/users/Ferev/events{/privacy}", "received_events_url": "https://api.github.com/users/Ferev/received_events", "type": "User", "site_admin": false }
[ { "login": "Ferev", "id": 16599488, "node_id": "MDQ6VXNlcjE2NTk5NDg4", "avatar_url": "https://avatars.githubusercontent.com/u/16599488?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ferev", "html_url": "https://github.com/Ferev", "followers_url": "https://api.github.com/users/Ferev/followers", "following_url": "https://api.github.com/users/Ferev/following{/other_user}", "gists_url": "https://api.github.com/users/Ferev/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ferev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ferev/subscriptions", "organizations_url": "https://api.github.com/users/Ferev/orgs", "repos_url": "https://api.github.com/users/Ferev/repos", "events_url": "https://api.github.com/users/Ferev/events{/privacy}", "received_events_url": "https://api.github.com/users/Ferev/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }, { "login": "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
[ "To fix this, the expected output of the **_update** function should be printed before and after the interpreter is invoked, and the output of the interpreter should be captured and printed. This can be done using the following code:\r\n\r\n```\r\nargs = jnp.ones(2)\r\n\r\nexpected = _update(args)\r\nprint(\"Expected output:\", expected)\r\n\r\ninterpreter.set_tensor(input_details[0]['index'], args)\r\ninterpreter.invoke()\r\n\r\noutput = interpreter.get_tensor(output_details[0]['index'])\r\nprint(\"Output:\", output)\r\n```", "> To fix this, the expected output of the **_update** function should be printed before and after the interpreter is invoked, and the output of the interpreter should be captured and printed. This can be done using the following code:\r\n> \r\n> ```\r\n> args = jnp.ones(2)\r\n> \r\n> expected = _update(args)\r\n> print(\"Expected output:\", expected)\r\n> \r\n> interpreter.set_tensor(input_details[0]['index'], args)\r\n> interpreter.invoke()\r\n> \r\n> output = interpreter.get_tensor(output_details[0]['index'])\r\n> print(\"Output:\", output)\r\n> ```\r\n\r\nNope, still got the same error (the same happens for tf 2.12)\r\n\r\nhttps://colab.research.google.com/drive/1VGVrdBBqN_0qrvZC_w99ZxVTJqp6_9Nt?usp=sharing\r\n", "PS\r\n\r\nThe same functionality can one implemented with `jax.nn.one_hot` and this works. So clearly the issue is with at.\r\n\r\n@tiruk007 does it make sense to try the path Jax->jax2tf->tf.lite or is this under the hood of `tf.lite.TFLiteConverter.experimental_from_jax` ?\r\n", "@krzysztofrusek \r\nSorry for the late reply.\r\n@pjpratik \r\nCould you please look into this? I was able to reproduce the issue on Colab using TFv2.12. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/09d4f2106e8658d7ad5cc23314706a7c/untitled169.ipynb) for reference.\r\n\r\nThank you !", "Hi @krzysztofrusek\r\n\r\nThe error occurs while we are updating a scalar value and as the error suggests when we use `jp.ones((1,2))` and try to update `x.at[0].set[4]`, it runs without any error. Please find the [gist](https://colab.research.google.com/gist/pjpratik/0ef750b5a7b394c700ad42770ebac4a3/60090.ipynb) here. \r\n\r\n@sachinprasadhs Could you please check if this is intended behaviour? \r\n\r\nThanks.", "Hi @pjpratik thanks for the hint. This is some workaround.", "Hi @krzysztofrusek \r\n\r\nThe latest nightly TF 2.14.0-dev20230716 says\r\n```\r\nTFLiteConverterV2.experimental_from_jax (from tensorflow.lite.python.lite) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `jax2tf.convert` and (`lite.TFLiteConverter.from_saved_model` or `lite.TFLiteConverter.from_concrete_functions`) instead.\r\n```\r\nSo the right way is to jax->jax2tf->lite moving forward.\r\n\r\nPlease find the resolved [gist](https://colab.research.google.com/gist/pjpratik/b9c36fbf4630d220768454e6262cc249/60090.ipynb) for the same.\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/60090\">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/60090\">No</a>\n" ]
2023-03-23T20:34:46
2023-08-02T01:50:01
2023-08-02T01:49:58
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Darwin Kernel Version 22.3.0 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version, if pip package or github SHA, if built from source): 2.11.0 ### 2. Code #### 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 ``` import tensorflow as tf import jax import jax.numpy as jnp import jax.tree_util as tree def main3(): print(f'JAX {jax.__version__}') print(f'tf {tf.__version__}') @jax.jit def _update(x): return x.at[0].set(4) converter = tf.lite.TFLiteConverter.experimental_from_jax([_update], [[('x', jnp.ones(2))]]) converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops. tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops. ] tflite_update = converter.convert() with open('update.tflite', 'wb') as f: f.write(tflite_update) interpreter = tf.lite.Interpreter(model_content=tflite_update) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() args = jnp.ones(2) expected = _update(args) # for a, d in zip(args, input_details): interpreter.set_tensor(input_details[0]['index'], args) interpreter.invoke() return ``` full [example](https://github.com/krzysztofrusek/reinforced-lib/blob/lite/examples/lite/lite.py) ### 3. Failure after conversion If the conversion is successful, but the generated model is wrong, then state what is wrong: - Conversion works - Interpreter fails at invoke ### 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. ```Traceback (most recent call last): File "/Users/krzysiek/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/223.8836.34/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/Users/krzysiek/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/223.8836.34/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/Users/krzysiek/Documents/ml4wifi/reinforced-lib/examples/lite/lite.py", line 168, in <module> main3() File "/Users/krzysiek/Documents/ml4wifi/reinforced-lib/examples/lite/lite.py", line 163, in main3 interpreter.invoke() File "/Users/krzysiek/Documents/ml4wifi/ftmrate_internal/venv/lib/python3.10/site-packages/tensorflow/lite/python/interpreter.py", line 917, in invoke self._interpreter.Invoke() RuntimeError: Updates shape must have rank at least one. Found:[]Node number 1 (TfLiteFlexDelegate) failed to invoke. ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60090/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60090/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60089
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60089/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60089/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60089/events
https://github.com/tensorflow/tensorflow/issues/60089
1,638,129,943
I_kwDOArmXAs5ho-EX
60,089
InputCellState is incorrectly populated for TFLite model to MLIR conversion using flatbuffer_translate
{ "login": "sahas3", "id": 5185083, "node_id": "MDQ6VXNlcjUxODUwODM=", "avatar_url": "https://avatars.githubusercontent.com/u/5185083?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sahas3", "html_url": "https://github.com/sahas3", "followers_url": "https://api.github.com/users/sahas3/followers", "following_url": "https://api.github.com/users/sahas3/following{/other_user}", "gists_url": "https://api.github.com/users/sahas3/gists{/gist_id}", "starred_url": "https://api.github.com/users/sahas3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sahas3/subscriptions", "organizations_url": "https://api.github.com/users/sahas3/orgs", "repos_url": "https://api.github.com/users/sahas3/repos", "events_url": "https://api.github.com/users/sahas3/events{/privacy}", "received_events_url": "https://api.github.com/users/sahas3/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": 2691740411, "node_id": "MDU6TGFiZWwyNjkxNzQwNDEx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-kernels", "name": "comp:lite-kernels", "color": "D97FB4", "default": false, "description": "TensorFlow Lite kernel issues" } ]
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": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "I debugged this and the issue seems to be here:\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/10b6eaaf2c97ed0824002866d3af672679760e14/tensorflow/compiler/mlir/lite/flatbuffer_import.cc#L557-L567\r\n\r\nNotice that the static variable `stateful_variable_idx` gets incremented for every call to `GetSplat`. This is causing the `InputCellState` for the `tfl.unidirectional_sequence_lstm` op to be a tensor of ones instead of zeros. Removing the `++` resolves the issue without failing any tests. However, I'm not sure why this was being done. Does anyone know?\r\n\r\nIt looks like the relevant code was added via https://github.com/tensorflow/tensorflow/commit/b6a59d53d359c027844fd27f7e4494a1667c0994.\r\n" ]
2023-03-23T19:00:22
2023-07-20T14:34:41
null
NONE
null
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Debian 11 - TensorFlow installed from (source or binary): Compiled from source - TensorFlow version (or github SHA if from source): 744dad26ef526690319042030f776e6f7e62dbc8 **Standalone code to reproduce the issue** Provide a reproducible test case that is the bare minimum necessary to generate the problem. If possible, please share a link to Colab/Jupyter/any notebook. ```import tensorflow as tf import numpy as np # Define and create the model model = tf.keras.models.Sequential([ tf.keras.layers.Input(shape=(3, 5), name='input'), tf.keras.layers.LSTM(10, time_major=False, return_sequences=True) ]) model.compile(optimizer='adam', loss='mean_squared_error', metrics=['accuracy']) run_model = tf.function(lambda x: model(x)) concrete_func = run_model.get_concrete_function( tf.TensorSpec([batchSize, sequenceLength, numFeatures], model.inputs[0].dtype)) print("hidden_states: ", model.layers[0].states[0]) print("cell_states: ", model.layers[0].states[1]) # model directory. MODEL_DIR = "/tmp/lstmNet" model.save(MODEL_DIR, save_format="tf", signatures=concrete_func) converter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR) tflite_model = converter.convert() # Save the TF Lite model. with tf.io.gfile.GFile('/tmp/lstmNet.tflite', 'wb') as f: f.write(tflite_model) ``` **Any other info / logs** Using `flatbuffer_translate` to convert the generated `TFLite` model to `MLIR` produces: ``` $ > flatbuffer_translate --tflite-flatbuffer-to-mlir /tmp/lstmNet.tflite module attributes {tf_saved_model.semantics, tfl.description = "MLIR Converted.", tfl.schema_version = 3 : i32} { func.func @predict(%arg0: tensor<1x5x3xf32> {tf_saved_model.index_path = ["x"]}) -> (tensor<1x5x10xf32> {tf_saved_model.index_path = ["output_0"]}) attributes {tf.entry_function = {inputs = "serving_default_x:0", outputs = "StatefulPartitionedCall:0"}, tf_saved_model.exported_names = ["serving_default"]} { %0 = "tfl.pseudo_const"() {value = dense<[[-0.130185053, -0.0151278675, 0.0130760074], [-0.258772284, 0.299689293, -0.195314541], [0.252850413, -0.259092718, -0.0803229808], [-0.220947981, 0.155216038, 0.108377606], [0.00254765153, 0.111942321, -0.219952658], [0.206842721, -0.193888605, 0.1106188], [0.0955285131, 0.157347143, 0.221373796], [-0.276973069, -0.0735740363, -2.882380e-01], [0.012721926, 0.0903562903, -0.161965311], [-0.119528085, -0.037569046, -0.362928301]]> : tensor<10x3xf32>} : () -> tensor<10x3xf32> %1 = "tfl.pseudo_const"() {value = dense<[[-0.0352886915, 0.21145165, -0.165998831], [0.155003309, 0.144935846, 0.217351139], [-0.351629466, 0.341497242, -0.217549637], [0.0939139425, -0.0606328547, 0.197987914], [0.339334488, -0.0430043638, -0.193897158], [0.188981593, -0.00256928802, 0.357774317], [-0.053791374, -0.159659907, -0.334026635], [-0.313022763, 0.120892107, 0.365564883], [-0.0173099339, 0.0726312696, -0.256803274], [-0.0634435713, 0.320655167, -0.342872471]]> : tensor<10x3xf32>} : () -> tensor<10x3xf32> %2 = "tfl.pseudo_const"() {value = dense<[[-0.0151669681, 0.246311307, -0.0844985544], [0.00762689113, 0.150569379, -0.275011361], [0.0549676716, 0.0834532678, 0.159000754], [0.0447338223, -0.339231104, 0.134988308], [0.160350919, -0.0878992974, 0.0488999486], [0.323455155, 0.345792234, 0.061250925], [0.0837553441, -0.272862256, 0.0991969704], [0.0828025043, -0.364639938, -0.144624218], [0.343984544, -0.183882296, -0.358834654], [-0.133859664, -0.0814070403, 0.36716789]]> : tensor<10x3xf32>} : () -> tensor<10x3xf32> %3 = "tfl.pseudo_const"() {value = dense<[[0.284724414, 0.148204803, -0.349271417], [-0.302493066, 0.158759058, -0.236835971], [0.334069431, -0.00801679491, 0.00450757146], [0.0284658968, 0.0569611788, -0.167743862], [-0.12706618, 7.704550e-02, -0.0319027305], [0.0807663202, -0.0853067636, -0.171359152], [-0.143240675, 0.320195258, -0.107624263], [0.134614825, 0.137890339, 0.220042884], [-0.0685030818, 0.0266759694, -0.279772133], [-0.123277575, -0.130606934, 0.155195773]]> : tensor<10x3xf32>} : () -> tensor<10x3xf32> %4 = "tfl.pseudo_const"() {value = dense<[[0.17501545, 0.386878431, -0.0484701507, -0.0765462443, -0.181067079, -0.0750025958, -0.185812324, 0.0773477107, -0.00309249177, -0.0284322314], [0.134114936, 0.176706672, 0.189387321, 0.149077475, 0.142265841, 0.263391763, 0.0858101398, -0.334216356, -0.186852977, 0.164630443], [-0.00760664651, -0.217253342, 0.201065645, 0.248932779, -0.109697223, 0.0161245521, 0.059841346, -0.260818273, -0.0882004871, -0.274861604], [0.348256409, 5.338460e-02, 0.0468219183, -0.0478721932, -0.165056169, -0.0841045827, 0.321953684, -0.164883882, -0.110893697, 0.123676449], [0.128447369, 0.0639217123, 0.224082395, -0.0548633076, 0.0286352951, 0.224867627, -0.0468161702, 0.208391294, -0.0053243367, -0.0550255962], [-8.189090e-02, 0.0486251637, 0.0460817255, 0.107632667, 0.118330166, -0.0682023465, -0.109725371, 0.125324547, -0.0441931672, 0.148130983], [0.0746245757, 0.124206074, 0.176272869, 0.0834054648, 0.173528254, -0.187932938, -0.215293854, -0.103552267, -0.141145512, 0.0601227432], [0.0378115289, 0.0337749943, 0.0378107131, 0.160787702, -0.216121212, 0.229908451, -0.0723084137, 0.226159409, 0.0131477024, 0.0372102521], [0.0926874801, -0.06026401, -0.0561813228, -0.148479104, 0.287242681, 0.0332023241, -0.220059201, 0.0408726893, 0.191863343, 0.0540938973], [0.133774817, -0.278124928, -0.113644354, -0.0739784315, -0.316670179, -0.11459551, -0.264918804, -0.00448995735, -0.0878850519, -0.133028492]]> : tensor<10x10xf32>} : () -> tensor<10x10xf32> %5 = "tfl.pseudo_const"() {value = dense<[[0.264959276, -0.259054482, -0.110992216, -0.0414756909, 0.0988652482, 0.33331418, -0.348624617, -0.13201724, 0.00749636581, 0.0932318419], [0.210364223, -0.0775818601, -0.0835916772, 0.21802707, 0.0432840511, -0.0722324625, -0.140951559, 0.150197655, 0.0137763629, 0.139982209], [0.0820472389, 0.230024397, -0.156220302, 0.391181529, -0.0579637811, 0.0591350347, 0.0986427441, 0.237236544, 0.187094688, 0.0165050365], [-0.25562951, 0.0437992811, -0.146220565, 0.107471354, 0.00600573421, 0.0497420132, -0.134210557, 0.0306625273, -0.00543002971, -0.0933061838], [-0.0681353137, 0.187344134, -0.0387082808, -0.0682450234, -0.184748515, 0.295936018, 0.0660243928, -0.00609975681, -0.0220854413, -0.0215770602], [0.123715289, -0.149823353, 0.200297117, -0.138535887, 0.0972650945, -0.100543253, 0.0232232288, -0.0455124453, 0.188970223, 0.0623518042], [0.051465977, -0.16720742, -0.192865178, -0.255042017, -0.216406658, 0.00651523052, 0.182573959, -0.127715543, 0.197372794, -0.222561017], [0.126112625, 0.23686114, -0.0976715758, -0.0628687739, 0.00957589969, -0.211140588, -0.284029543, -0.145181119, -0.167763934, -0.224568278], [-0.0698507354, 0.0349835455, 0.0666678548, 0.0400003493, 0.246126533, -0.107588813, 0.103801601, -0.0709155499, -0.131777883, -0.106253646], [-0.207862586, 0.016677089, -0.237795576, -0.033603251, 0.227860093, -0.00418378413, 0.0745725333, -0.1573136, 0.183234155, 0.0573116578]]> : tensor<10x10xf32>} : () -> tensor<10x10xf32> %6 = "tfl.pseudo_const"() {value = dense<[[0.120267294, -0.0315921716, -0.207551152, -0.0469613187, -0.0472462848, 0.136440426, 0.0656398907, 0.0643941164, -0.214579433, 0.25941658], [-0.132091984, 0.142318785, 0.158400849, 0.0916790738, -0.222117975, -0.10034211, -0.134736136, 0.0465843715, 0.0484883301, 0.262922645], [0.0632713437, -0.15643549, -0.410313338, -0.0796892642, 0.0193372741, -0.192711219, 0.084401071, -0.0132020218, 0.0214749519, 0.217391357], [-0.023331102, -0.234836608, 0.283015937, -0.27972725, -0.0461517051, -0.202469319, -0.140018716, 0.266479582, -0.199459061, 0.0869432539], [-0.173759624, -0.146702722, 0.00280229794, 0.128232807, -0.13735646, -0.156450719, -0.197670206, -0.402188092, 0.182303295, 0.127702326], [0.1447341, -0.234402686, 0.017554732, 0.1726809, 0.14695932, 0.111371085, 0.109428726, 0.268820375, -0.0866426378, -0.0679584667], [-0.0736832693, -0.108465984, 0.223148763, 0.00207955297, 0.115413204, -0.0324923247, 0.151184335, -0.0644928366, 0.0295013655, -0.0610723197], [0.104881756, 0.166022196, -0.142411351, 0.142822742, 0.12192411, -1.49629079E-4, -0.335838586, -0.156993166, -0.134479508, -0.183696106], [0.131517142, 0.164839372, 0.0969391465, -0.153943628, 0.251961887, 0.0231811684, -0.0071518924, -0.0611652061, 0.0723072588, -0.00650136918], [0.184471652, 0.0503823385, -0.0937841534, 0.118845418, 0.154655725, -0.47709918, 0.186724663, 0.162837937, -0.161638841, -0.274689823]]> : tensor<10x10xf32>} : () -> tensor<10x10xf32> %7 = "tfl.pseudo_const"() {value = dense<[[0.0217915159, 0.206113726, -0.190372929, -0.422592759, 0.0248149242, -0.0202117879, 7.80003611E-5, 0.0636207908, -0.129249915, 0.195001438], [-0.0265121292, 0.157053322, -0.116082504, -0.0937363803, 0.155826345, 0.10708677, 0.110328041, -0.136170894, 0.143848643, -0.217342377], [-0.182416916, 0.0980726927, 6.768720e-02, -0.134475529, 0.00583284162, -0.0480525941, 0.0232472904, -0.146422684, -0.125577226, 0.231070623], [-0.404781759, -0.0607755706, 0.0381766148, 0.060485743, 0.0692789554, -0.0851613953, -0.151829481, 0.0906099975, -0.0977554768, 0.120315634], [0.147763401, 0.0345406979, 0.121470168, -0.0796541571, -0.0689968764, 0.0199192017, -0.187039837, -0.0605593659, 0.307765067, -0.132991672], [0.128111526, 0.0928409397, 0.315211028, -0.200447187, -0.0918775648, -0.0101282364, 0.0570981055, -0.0672892854, -0.0190094449, 0.0233988091], [-0.00752805918, -0.0974235087, 0.0578115322, -0.154167339, 0.30695793, 0.159499139, -0.102361277, 0.186416253, 0.11203637, -0.187620446], [0.168520495, -0.0998088344, -0.0158915576, 0.101420805, -0.122099787, 0.0111542856, -0.049965702, -0.115302391, -0.121384457, -0.00166527322], [-0.169698805, -0.10477908, -0.141094357, -0.10161002, 0.02446693, 0.249826044, 0.0071637705, -0.052272439, -0.567903876, -0.189442679], [0.225991249, -0.16400744, -0.0723658279, 0.153675273, 0.228954688, -0.0319412872, 0.0650407076, -0.126990899, -0.0396433137, 0.326944739]]> : tensor<10x10xf32>} : () -> tensor<10x10xf32> %8 = "tfl.no_value"() {value} : () -> none %9 = "tfl.pseudo_const"() {value = dense<0.000000e+00> : tensor<10xf32>} : () -> tensor<10xf32> %10 = "tfl.pseudo_const"() {value = dense<1.000000e+00> : tensor<10xf32>} : () -> tensor<10xf32> %11 = "tfl.pseudo_const"() {value = dense<0.000000e+00> : tensor<1x10xf32>} : () -> tensor<1x10xf32> %12 = "tfl.pseudo_const"() {value = dense<1.000000e+00> : tensor<1x10xf32>} : () -> tensor<1x10xf32> %13 = "tfl.unidirectional_sequence_lstm"(%arg0, %0, %1, %2, %3, %4, %5, %6, %7, %8, %8, %8, %9, %10, %9, %9, %8, %8, %11, %12, %8, %8, %8, %8) {asymmetric_quantize_inputs = false, cell_clip = 1.000000e+01 : f32, fused_activation_function = "TANH", proj_clip = 0.000000e+00 : f32, time_major = false} : (tensor<1x5x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x10xf32>, tensor<10x10xf32>, tensor<10x10xf32>, tensor<10x10xf32>, none, none, none, tensor<10xf32>, tensor<10xf32>, tensor<10xf32>, tensor<10xf32>, none, none, tensor<1x10xf32>, tensor<1x10xf32>, none, none, none, none) -> tensor<1x5x10xf32> return %13 : tensor<1x5x10xf32> } } ``` Given that the `model.layers[0].states[1]` is `none` the `InputCellState` value for the `tfl.unidirectional_sequence_lstm` op which is `%12` should have been all zeros, but it is all ones. Note that this value is interpreted as all zeros when using the `tf_tfl_translate` command : ``` $> tf_tfl_translate --savedmodel-signaturedefs-to-mlir /tmp/lstmNet/ --output-mlir module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 1286 : i32}, tf_saved_model.semantics, tfl._legalize_tfl_variables = true} { func.func @serving_default(%arg0: tensor<1x5x3xf32> {tf_saved_model.index_path = ["x"]}) -> (tensor<1x5x10xf32> {tf_saved_model.index_path = ["output_0"]}) attributes {tf.entry_function = {control_outputs = "", inputs = "serving_default_x:0", outputs = "StatefulPartitionedCall:0"}, tf_saved_model.exported_names = ["serving_default"]} { %cst = arith.constant dense<0.000000e+00> : tensor<1x10xf32> %cst_0 = arith.constant dense<[[0.17501545, 0.386878431, -0.0484701507, -0.0765462443, -0.181067079, -0.0750025958, -0.185812324, 0.0773477107, -0.00309249177, -0.0284322314], [0.134114936, 0.176706672, 0.189387321, 0.149077475, 0.142265841, 0.263391763, 0.0858101398, -0.334216356, -0.186852977, 0.164630443], [-0.00760664651, -0.217253342, 0.201065645, 0.248932779, -0.109697223, 0.0161245521, 0.059841346, -0.260818273, -0.0882004871, -0.274861604], [0.348256409, 5.338460e-02, 0.0468219183, -0.0478721932, -0.165056169, -0.0841045827, 0.321953684, -0.164883882, -0.110893697, 0.123676449], [0.128447369, 0.0639217123, 0.224082395, -0.0548633076, 0.0286352951, 0.224867627, -0.0468161702, 0.208391294, -0.0053243367, -0.0550255962], [-8.189090e-02, 0.0486251637, 0.0460817255, 0.107632667, 0.118330166, -0.0682023465, -0.109725371, 0.125324547, -0.0441931672, 0.148130983], [0.0746245757, 0.124206074, 0.176272869, 0.0834054648, 0.173528254, -0.187932938, -0.215293854, -0.103552267, -0.141145512, 0.0601227432], [0.0378115289, 0.0337749943, 0.0378107131, 0.160787702, -0.216121212, 0.229908451, -0.0723084137, 0.226159409, 0.0131477024, 0.0372102521], [0.0926874801, -0.06026401, -0.0561813228, -0.148479104, 0.287242681, 0.0332023241, -0.220059201, 0.0408726893, 0.191863343, 0.0540938973], [0.133774817, -0.278124928, -0.113644354, -0.0739784315, -0.316670179, -0.11459551, -0.264918804, -0.00448995735, -0.0878850519, -0.133028492]]> : tensor<10x10xf32> %cst_1 = arith.constant dense<[[0.264959276, -0.259054482, -0.110992216, -0.0414756909, 0.0988652482, 0.33331418, -0.348624617, -0.13201724, 0.00749636581, 0.0932318419], [0.210364223, -0.0775818601, -0.0835916772, 0.21802707, 0.0432840511, -0.0722324625, -0.140951559, 0.150197655, 0.0137763629, 0.139982209], [0.0820472389, 0.230024397, -0.156220302, 0.391181529, -0.0579637811, 0.0591350347, 0.0986427441, 0.237236544, 0.187094688, 0.0165050365], [-0.25562951, 0.0437992811, -0.146220565, 0.107471354, 0.00600573421, 0.0497420132, -0.134210557, 0.0306625273, -0.00543002971, -0.0933061838], [-0.0681353137, 0.187344134, -0.0387082808, -0.0682450234, -0.184748515, 0.295936018, 0.0660243928, -0.00609975681, -0.0220854413, -0.0215770602], [0.123715289, -0.149823353, 0.200297117, -0.138535887, 0.0972650945, -0.100543253, 0.0232232288, -0.0455124453, 0.188970223, 0.0623518042], [0.051465977, -0.16720742, -0.192865178, -0.255042017, -0.216406658, 0.00651523052, 0.182573959, -0.127715543, 0.197372794, -0.222561017], [0.126112625, 0.23686114, -0.0976715758, -0.0628687739, 0.00957589969, -0.211140588, -0.284029543, -0.145181119, -0.167763934, -0.224568278], [-0.0698507354, 0.0349835455, 0.0666678548, 0.0400003493, 0.246126533, -0.107588813, 0.103801601, -0.0709155499, -0.131777883, -0.106253646], [-0.207862586, 0.016677089, -0.237795576, -0.033603251, 0.227860093, -0.00418378413, 0.0745725333, -0.1573136, 0.183234155, 0.0573116578]]> : tensor<10x10xf32> %cst_2 = arith.constant dense<[[0.120267294, -0.0315921716, -0.207551152, -0.0469613187, -0.0472462848, 0.136440426, 0.0656398907, 0.0643941164, -0.214579433, 0.25941658], [-0.132091984, 0.142318785, 0.158400849, 0.0916790738, -0.222117975, -0.10034211, -0.134736136, 0.0465843715, 0.0484883301, 0.262922645], [0.0632713437, -0.15643549, -0.410313338, -0.0796892642, 0.0193372741, -0.192711219, 0.084401071, -0.0132020218, 0.0214749519, 0.217391357], [-0.023331102, -0.234836608, 0.283015937, -0.27972725, -0.0461517051, -0.202469319, -0.140018716, 0.266479582, -0.199459061, 0.0869432539], [-0.173759624, -0.146702722, 0.00280229794, 0.128232807, -0.13735646, -0.156450719, -0.197670206, -0.402188092, 0.182303295, 0.127702326], [0.1447341, -0.234402686, 0.017554732, 0.1726809, 0.14695932, 0.111371085, 0.109428726, 0.268820375, -0.0866426378, -0.0679584667], [-0.0736832693, -0.108465984, 0.223148763, 0.00207955297, 0.115413204, -0.0324923247, 0.151184335, -0.0644928366, 0.0295013655, -0.0610723197], [0.104881756, 0.166022196, -0.142411351, 0.142822742, 0.12192411, -1.49629079E-4, -0.335838586, -0.156993166, -0.134479508, -0.183696106], [0.131517142, 0.164839372, 0.0969391465, -0.153943628, 0.251961887, 0.0231811684, -0.0071518924, -0.0611652061, 0.0723072588, -0.00650136918], [0.184471652, 0.0503823385, -0.0937841534, 0.118845418, 0.154655725, -0.47709918, 0.186724663, 0.162837937, -0.161638841, -0.274689823]]> : tensor<10x10xf32> %cst_3 = arith.constant dense<[[0.0217915159, 0.206113726, -0.190372929, -0.422592759, 0.0248149242, -0.0202117879, 7.80003611E-5, 0.0636207908, -0.129249915, 0.195001438], [-0.0265121292, 0.157053322, -0.116082504, -0.0937363803, 0.155826345, 0.10708677, 0.110328041, -0.136170894, 0.143848643, -0.217342377], [-0.182416916, 0.0980726927, 6.768720e-02, -0.134475529, 0.00583284162, -0.0480525941, 0.0232472904, -0.146422684, -0.125577226, 0.231070623], [-0.404781759, -0.0607755706, 0.0381766148, 0.060485743, 0.0692789554, -0.0851613953, -0.151829481, 0.0906099975, -0.0977554768, 0.120315634], [0.147763401, 0.0345406979, 0.121470168, -0.0796541571, -0.0689968764, 0.0199192017, -0.187039837, -0.0605593659, 0.307765067, -0.132991672], [0.128111526, 0.0928409397, 0.315211028, -0.200447187, -0.0918775648, -0.0101282364, 0.0570981055, -0.0672892854, -0.0190094449, 0.0233988091], [-0.00752805918, -0.0974235087, 0.0578115322, -0.154167339, 0.30695793, 0.159499139, -0.102361277, 0.186416253, 0.11203637, -0.187620446], [0.168520495, -0.0998088344, -0.0158915576, 0.101420805, -0.122099787, 0.0111542856, -0.049965702, -0.115302391, -0.121384457, -0.00166527322], [-0.169698805, -0.10477908, -0.141094357, -0.10161002, 0.02446693, 0.249826044, 0.0071637705, -0.052272439, -0.567903876, -0.189442679], [0.225991249, -0.16400744, -0.0723658279, 0.153675273, 0.228954688, -0.0319412872, 0.0650407076, -0.126990899, -0.0396433137, 0.326944739]]> : tensor<10x10xf32> %cst_4 = arith.constant dense<0.000000e+00> : tensor<10xf32> %cst_5 = arith.constant dense<1.000000e+00> : tensor<10xf32> %cst_6 = arith.constant dense<[[-0.130185053, -0.0151278675, 0.0130760074], [-0.258772284, 0.299689293, -0.195314541], [0.252850413, -0.259092718, -0.0803229808], [-0.220947981, 0.155216038, 0.108377606], [0.00254765153, 0.111942321, -0.219952658], [0.206842721, -0.193888605, 0.1106188], [0.0955285131, 0.157347143, 0.221373796], [-0.276973069, -0.0735740363, -2.882380e-01], [0.012721926, 0.0903562903, -0.161965311], [-0.119528085, -0.037569046, -0.362928301]]> : tensor<10x3xf32> %cst_7 = arith.constant dense<[[-0.0352886915, 0.21145165, -0.165998831], [0.155003309, 0.144935846, 0.217351139], [-0.351629466, 0.341497242, -0.217549637], [0.0939139425, -0.0606328547, 0.197987914], [0.339334488, -0.0430043638, -0.193897158], [0.188981593, -0.00256928802, 0.357774317], [-0.053791374, -0.159659907, -0.334026635], [-0.313022763, 0.120892107, 0.365564883], [-0.0173099339, 0.0726312696, -0.256803274], [-0.0634435713, 0.320655167, -0.342872471]]> : tensor<10x3xf32> %cst_8 = arith.constant dense<[[-0.0151669681, 0.246311307, -0.0844985544], [0.00762689113, 0.150569379, -0.275011361], [0.0549676716, 0.0834532678, 0.159000754], [0.0447338223, -0.339231104, 0.134988308], [0.160350919, -0.0878992974, 0.0488999486], [0.323455155, 0.345792234, 0.061250925], [0.0837553441, -0.272862256, 0.0991969704], [0.0828025043, -0.364639938, -0.144624218], [0.343984544, -0.183882296, -0.358834654], [-0.133859664, -0.0814070403, 0.36716789]]> : tensor<10x3xf32> %cst_9 = arith.constant dense<[[0.284724414, 0.148204803, -0.349271417], [-0.302493066, 0.158759058, -0.236835971], [0.334069431, -0.00801679491, 0.00450757146], [0.0284658968, 0.0569611788, -0.167743862], [-0.12706618, 7.704550e-02, -0.0319027305], [0.0807663202, -0.0853067636, -0.171359152], [-0.143240675, 0.320195258, -0.107624263], [0.134614825, 0.137890339, 0.220042884], [-0.0685030818, 0.0266759694, -0.279772133], [-0.123277575, -0.130606934, 0.155195773]]> : tensor<10x3xf32> %0 = "tfl.no_value"() {value} : () -> none %cst_10 = arith.constant dense<0.000000e+00> : tensor<1x10xf32> %1 = "tfl.unidirectional_sequence_lstm"(%arg0, %cst_6, %cst_7, %cst_8, %cst_9, %cst_0, %cst_1, %cst_2, %cst_3, %0, %0, %0, %cst_4, %cst_5, %cst_4, %cst_4, %0, %0, %cst, %cst_10, %0, %0, %0, %0) {cell_clip = 1.000000e+01 : f32, diagonal_recurrent_tensors = false, fused_activation_function = "TANH", proj_clip = 0.000000e+00 : f32, time_major = false} : (tensor<1x5x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x3xf32>, tensor<10x10xf32>, tensor<10x10xf32>, tensor<10x10xf32>, tensor<10x10xf32>, none, none, none, tensor<10xf32>, tensor<10xf32>, tensor<10xf32>, tensor<10xf32>, none, none, tensor<1x10xf32>, tensor<1x10xf32>, none, none, none, none) -> tensor<1x5x10xf32> return %1 : tensor<1x5x10xf32> } } ``` Here `%cst_10` which is the `InputCellState` value is all zeros. So the error is coming from the TFLite file to MLIR conversion when invoked via `flatbuffer_translate` command. 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/60089/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60089/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60088
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60088/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60088/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60088/events
https://github.com/tensorflow/tensorflow/issues/60088
1,638,094,403
I_kwDOArmXAs5ho1ZD
60,088
Selectively build TFLite for iOS failure
{ "login": "heguanyu", "id": 5394318, "node_id": "MDQ6VXNlcjUzOTQzMTg=", "avatar_url": "https://avatars.githubusercontent.com/u/5394318?v=4", "gravatar_id": "", "url": "https://api.github.com/users/heguanyu", "html_url": "https://github.com/heguanyu", "followers_url": "https://api.github.com/users/heguanyu/followers", "following_url": "https://api.github.com/users/heguanyu/following{/other_user}", "gists_url": "https://api.github.com/users/heguanyu/gists{/gist_id}", "starred_url": "https://api.github.com/users/heguanyu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/heguanyu/subscriptions", "organizations_url": "https://api.github.com/users/heguanyu/orgs", "repos_url": "https://api.github.com/users/heguanyu/repos", "events_url": "https://api.github.com/users/heguanyu/events{/privacy}", "received_events_url": "https://api.github.com/users/heguanyu/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": 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": "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": "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
[ "Attached the toy model that you can use to reproduce this issue.\r\n\r\n[toy_tflite_model_20230308.tflite.zip](https://github.com/tensorflow/tensorflow/files/11054748/toy_tflite_model_20230308.tflite.zip)\r\n", "\r\nHi @heguanyu I was successfully able to build the TFLite framework. Please refer the screenshot here. \r\n\r\n<img width=\"744\" alt=\"Screenshot 2023-03-24 at 9 48 04 PM\" src=\"https://user-images.githubusercontent.com/118897289/227583969-4a39c87e-58c8-424e-b88a-5980cdde7e33.png\">\r\n\r\nI have used `toy_tflite_model_20230308.tflite` which is provided as a toy model rather than `tflite_model_vocab_changes_run_18026681_full_dataset.tflite` which is mentioned in the command which I don't think is an issue.\r\n\r\nCan you try at your end again freshly and let us know if the issue still persists?\r\n\r\nThanks.", "Yes it still persist with a brand new git cloned repo\r\n\r\n![image](https://user-images.githubusercontent.com/5394318/227593663-78a4265d-a3ec-42e5-89bc-ac44ad83682e.png)\r\n", "@heguanyu Thanks for the information.\r\n\r\n@sachinprasadhs Could you please look into this issue. Thanks.\r\n", "Hi @sachinprasadhs after updating to the latest tensorflow code base, I'm now seeing another different error.. can you please take a look? Thanks\r\n\r\n```\r\nERROR: /private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/external/llvm-project/mlir/BUILD.bazel:5691:11: Compiling mlir/lib/Transforms/Utils/OneToNTypeConversion.cpp [for host] failed: (Aborted): wrapped_clang_pp failed: error executing command external/local_config_cc/wrapped_clang_pp '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG ... (remaining 122 arguments skipped)\r\nexternal/llvm-project/mlir/lib/Transforms/Utils/OneToNTypeConversion.cpp:98:21: error: no template named 'unordered_map' in namespace 'std'\r\n static const std::unordered_map<CastKind, StringRef> castKindNames = {\r\n ~~~~~^\r\n1 error generated.\r\nError in child process '/usr/bin/xcrun'. 1\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 275.224s, Critical Path: 36.37s\r\nINFO: 1413 processes: 12 internal, 1401 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "@yishuangP , As per your comment here https://github.com/tensorflow/tensorflow/issues/59853#issuecomment-1481642687, Could you pleas let me know what part of Tensorflow has to be looked into, so that I can assign it to the specific team. Thanks!", "I did a git pull again this morning and the error is back to the `declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule.`\r\n\r\nI'd updated the python to python3.10 but error persist.\r\n\r\ncan someone help? Thanks\r\n\r\n```\r\n$ bash tensorflow/lite/ios/build_frameworks.sh --input_models=toy_tflite_model_20230308.tflite --target_archs=x86_64,armv7,arm64\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=316\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --action_env PYTHON_LIB_PATH=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages --python_path=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/c6a132a8023db649a658aeceb2edaf046097dbff.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework (144 packages loaded, 7613 targets configured).\r\nINFO: Found 1 target...\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework up-to-date:\r\n bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip\r\nINFO: Elapsed time: 94.481s, Critical Path: 13.92s\r\nINFO: 389 processes: 2 internal, 387 local.\r\nINFO: Build completed successfully, 389 total actions\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=316\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --action_env PYTHON_LIB_PATH=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages --python_path=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:monolithic in file /Users/ghe/projects/tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Found applicable config definition build:macos in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=macos --copt=-DGRPC_BAZEL_BUILD --copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/c6a132a8023db649a658aeceb2edaf046097dbff.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 1 more have changed, discarding analysis cache.\r\nINFO: Analyzed target //tensorflow/lite/tools:list_flex_ops_no_kernel_main (7 packages loaded, 1243 targets configured).\r\nINFO: Found 1 target...\r\nTarget //tensorflow/lite/tools:list_flex_ops_no_kernel_main up-to-date:\r\n bazel-bin/tensorflow/lite/tools/list_flex_ops_no_kernel_main\r\nINFO: Elapsed time: 3.091s, Critical Path: 1.62s\r\nINFO: 37 processes: 1 internal, 36 local.\r\nINFO: Build completed successfully, 37 total actions\r\n~/projects/tensorflow/tensorflow/lite/ios/tmp ~/projects/tensorflow\r\n~/projects/tensorflow\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=316\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --action_env PYTHON_LIB_PATH=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages --python_path=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/c6a132a8023db649a658aeceb2edaf046097dbff.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 2 more have changed, discarding analysis cache.\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework (436 packages loaded, 36598 targets configured).\r\nINFO: Found 1 target...\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 845.682s, Critical Path: 65.05s\r\nINFO: 7414 processes: 158 internal, 7256 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "Hey @sachinprasadhs, the error we are getting are from tensorflow/BUILD file. looks like the error occurred when we generate the tensorflow shared library `tensorflow/libtensorflow_framework.2.dylib`. Could you help triage to someone from the tensorflow side? I don't know if this is a build config issue or something changed. Thanks\r\n```\r\ntensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\n```\r\nAlso @heguanyu, can you try if tesorflow 2.11.0 has this issue? Thanks!", "@nitins17 , Could you please look into this.\r\ncc: @learning-to-play \r\n\r\n> Hey @sachinprasadhs, the error we are getting are from tensorflow/BUILD file. looks like the error occurred when we generate the tensorflow shared library `tensorflow/libtensorflow_framework.2.dylib`. Could you help triage to someone from the tensorflow side? I don't know if this is a build config issue or something changed. Thanks\r\n> \r\n> ```\r\n> tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\n> ```\r\n> \r\n> Also @heguanyu, can you try if tesorflow 2.11.0 has this issue? Thanks!\r\n\r\n", "From the logs, it might possibly be a realpath issue I have seen in one of our other builds. \r\n```\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\n```\r\n\r\nAre you using the GNU version of realpath? If not, could you [install it](https://formulae.brew.sh/formula/coreutils) and try building again?", "Hi @nitins17 I tried installing coreutils as your suggestion, but not getting luck. Is version 9.2 correct? \r\n\r\n```\r\nINFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 2 more have changed, discarding analysis cache.\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework (437 packages loaded, 36613 targets configured).\r\nINFO: Found 1 target...\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 1345.515s, Critical Path: 91.51s\r\nINFO: 9646 processes: 191 internal, 9455 local.\r\nFAILED: Build did NOT complete successfully\r\nghe-mn2:tensorflow ghe:master]$ brew install coreutils\r\n==> Downloading https://formulae.brew.sh/api/formula.jws.json\r\n##O#-# \r\n==> Downloading https://formulae.brew.sh/api/cask.jws.json\r\n#=#=# \r\nWarning: coreutils 9.2 is already installed and up-to-date.\r\nTo reinstall 9.2, run:\r\n brew reinstall coreutils\r\nghe-mn2:tensorflow ghe:master]$ \r\n```", "Yeah, I believe the latest version should work. Note that the GNU utilities are installed with a 'g' prefix. That is, the gnu version is `grealpath` where as Bazel runs using just `realpath` so it is possible that the macOS version is still getting picked up. Can you try [replacing the macOS utilities with the GNU utilities](https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilities)?\r\n\r\nOnce you have replaced the defaults with GNU utilities, run `realpath --help`. If it points to the GNU version, it should print out its usage and other info. The default macOS version just throws an error like the one above in https://github.com/tensorflow/tensorflow/issues/60088#issuecomment-1499766349. ", "> Hey @sachinprasadhs, the error we are getting are from tensorflow/BUILD file. looks like the error occurred when we generate the tensorflow shared library `tensorflow/libtensorflow_framework.2.dylib`. Could you help triage to someone from the tensorflow side? I don't know if this is a build config issue or something changed. Thanks\r\n> \r\n> ```\r\n> tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\n> ```\r\n> \r\n> Also @heguanyu, can you try if tesorflow 2.11.0 has this issue? Thanks!\r\n\r\nSorry but no luck when I tried the same command after `git checkout v2.11.0` ", "@nitins17 Thanks for the guide. After installing realpath according to your instruction, previous error was gone, however it now shows another error.. `ModuleNotFoundError: No module named 'packaging'\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build`\r\n\r\n@yishuangP is this specific to SelectTfOps? I'm using v2.11.0. \r\n\r\n```\r\nINFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 2 more have changed, discarding analysis cache.\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework (395 packages loaded, 34048 targets configured).\r\nINFO: Found 1 target...\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1426:19: Executing genrule //tensorflow:tf_python_api_gen_v2 [for host] failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\nTraceback (most recent call last):\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py\", line 22, in <module>\r\n from tensorflow.python.tools.api.generator import doc_srcs\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/__init__.py\", line 42, in <module>\r\n from tensorflow.python import data\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/__init__.py\", line 21, in <module>\r\n from tensorflow.python.data import experimental\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/experimental/__init__.py\", line 96, in <module>\r\n from tensorflow.python.data.experimental import service\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/experimental/service/__init__.py\", line 419, in <module>\r\n from tensorflow.python.data.experimental.ops.data_service_ops import distribute\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/experimental/ops/data_service_ops.py\", line 22, in <module>\r\n from tensorflow.python.data.experimental.ops import compression_ops\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/experimental/ops/compression_ops.py\", line 16, in <module>\r\n from tensorflow.python.data.util import structure\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/data/util/structure.py\", line 29, in <module>\r\n from tensorflow.python.ops import resource_variable_ops\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/ops/resource_variable_ops.py\", line 38, in <module>\r\n from tensorflow.python.framework import meta_graph\r\n File \"/private/var/tmp/_bazel_ghe/a40be6b67c18b5da908566b099777def/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/framework/meta_graph.py\", line 18, in <module>\r\n from packaging import version as packaging_version # pylint: disable=g-bad-import-order\r\nModuleNotFoundError: No module named 'packaging'\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/python/tools/BUILD:281:10 Middleman _middlemen/tensorflow_Spython_Stools_Sprint_Uselective_Uregistration_Uheader-runfiles failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\nINFO: Elapsed time: 1781.743s, Critical Path: 157.11s\r\nINFO: 10487 processes: 243 internal, 10244 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "Yeah this new error is specific to SelectTfOps. This seems like a python issue? The error is in `tensorflow/python/tools/BUILD`. @nitins17 do you have any idea what might be the issue here?", "```\r\nModuleNotFoundError: No module named 'packaging'\r\n```\r\n\r\nIs the [packaging](https://pypi.org/project/packaging/) module installed? ", "@nitins17 \r\n\r\nI haven't installed `packaging`. As an iOS engineer, python is not often used, so the python is pretty much in vanilla state. \r\n\r\nAfter installing it and rerunning the script, now it asks me to install `requests` module...\r\n```\r\nModuleNotFoundError: No module named 'requests'\r\n```\r\nWith both modules pip installed, I'm finally build successfully! However still seeing another issue\r\n\r\n```\r\nINFO: Elapsed time: 711.042s, Critical Path: 174.60s\r\nINFO: 2046 processes: 3 internal, 2043 local.\r\nINFO: Build completed successfully, 2046 total actions\r\nOutput can be found here:\r\nls: cannot access '/Users/ghe/projects/tensorflow/bazel-out/applebin_ios-ios_sim_arm64-opt-ST-f882807c96e5/bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip': No such file or directory\r\n```\r\n\r\nI tried looking for the file, according to the instruction, at `bazel-bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip` and it was also missing..(there is no tmp directory). Any idea what's the reason and where should look for this file? \r\n\r\n```\r\nghe-mn2:ios ghe]$ pwd\r\n/Users/ghe/projects/tensorflow/bazel-bin/tensorflow/lite/ios\r\nghe-mn2:ios ghe]$ ls -al\r\ntotal 0\r\ndrwxrwxrwx 2 ghe wheel 64 Apr 7 13:36 .\r\ndrwxrwxrwx 45 ghe wheel 1440 Apr 6 18:43 ..\r\n```\r\n\r\n\r\n\r\n\r\nAlso, can your team please add these dependencies, along with the above gnu utility tricks, to either Pre-requisites in the [official instruction](https://www.tensorflow.org/lite/guide/build_ios#selectively_build_tflite_frameworks), or just put them into the build scripts? I asked my colleagues and they are seeing same errors as myself. I believe this would be beneficial to a lot more people in ios-TF community. ", "> With both modules pip installed, I'm finally build successfully! However still seeing another issue\r\n> \r\n> ```\r\n> INFO: Elapsed time: 711.042s, Critical Path: 174.60s\r\n> INFO: 2046 processes: 3 internal, 2043 local.\r\n> INFO: Build completed successfully, 2046 total actions\r\n> Output can be found here:\r\n> ls: cannot access '/Users/ghe/projects/tensorflow/bazel-out/applebin_ios-ios_sim_arm64-opt-ST-f882807c96e5/bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip': No such file or directory\r\n> ```\r\n> \r\n> I tried looking for the file, according to the instruction, at `bazel-bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip` and it was also missing..(there is no tmp directory). Any idea what's the reason and where should look for this file?\r\n> \r\n\r\nSorry but I don't know whats happening here. @yishuangP do you know?\r\n\r\n> Also, can your team please add these dependencies, along with the above gnu utility tricks, to either Pre-requisites in the [official instruction](https://www.tensorflow.org/lite/guide/build_ios#selectively_build_tflite_frameworks), or just put them into the build scripts? I asked my colleagues and they are seeing same errors as myself. I believe this would be beneficial to a lot more people in ios-TF community.\r\n\r\nThanks for letting us know! Maybe it would be useful to put these in a FAQs or as comments in the build scripts but I'll leave the decision up to @yishuangP and the TF Lite team.", "Thanks [nitins17](https://github.com/nitins17) for the help!\r\n\r\nHi [heguanyu](https://github.com/heguanyu), sorry for the inconvenience. Glad to hear that it finally build successfully! Since you already have the build file under `tensorflow/lite/ios/tmp/`, can you just try running this command `bazel build -c opt --config=ios --ios_multi_cpus=arm64 --use_top_level_targets_for_symlinks --define=tflite_with_xnnpack=false //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework`?\r\n\r\n\r\nI think all these problems might come from different MacOs versions. The build command works fine for an older OS version.\r\n\r\n> Also, can your team please add these dependencies, along with the above gnu utility tricks, to either Pre-requisites in the [official instruction](https://www.tensorflow.org/lite/guide/build_ios#selectively_build_tflite_frameworks), or just put them into the build scripts? I asked my colleagues and they are seeing same errors as myself. I believe this would be beneficial to a lot more people in ios-TF community.\r\n\r\nThanks for the suggestion! We'll update our public website.", "@yishuangP I think the BUILD file in tmp was deleted after the build is successful, seeing\r\n\r\n```\r\nghe-mn2:tensorflow ghe:(v2.11.0)]$ bazel build -c opt --config=ios --ios_multi_cpus=arm64 --use_top_level_targets_for_symlinks --define=tflite_with_xnnpack=false //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=312\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --action_env PYTHON_LIB_PATH=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages --python_path=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework': no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp\r\nWARNING: Target pattern parsing failed.\r\nERROR: no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp\r\nINFO: Elapsed time: 2.316s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (0 packages loaded)\r\n```", "Just pulled from master branch and still seeing the file not found error. \r\n\r\n```\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/e2b15ec235fed7e4ff1f99193c7bbffe830d4934.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 2 more have changed, discarding analysis cache.\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/1d6a8587ea959db3574c1311905a8bf1ef509db0.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework (437 packages loaded, 36804 targets configured).\r\nINFO: Found 1 target...\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework up-to-date:\r\n bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteSelectTfOps_framework.zip\r\nINFO: Elapsed time: 2668.454s, Critical Path: 299.53s\r\nINFO: 13599 processes: 944 internal, 12655 local.\r\nINFO: Build completed successfully, 13599 total actions\r\nOutput can be found here:\r\nls: cannot access '/Users/ghe/projects/tensorflow/bazel-out/applebin_ios-ios_sim_arm64-opt-ST-f882807c96e5/bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip': No such file or directory\r\n\r\nghe-mn2:tensorflow ghe:master]$ bazel build -c opt --config=ios --ios_multi_cpus=arm64 --use_top_level_targets_for_symlinks --define=tflite_with_xnnpack=false //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=312\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --action_env PYTHON_LIB_PATH=/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages --python_path=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/e2b15ec235fed7e4ff1f99193c7bbffe830d4934.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework': no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp\r\nWARNING: Target pattern parsing failed.\r\nERROR: no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp\r\nINFO: Elapsed time: 0.135s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (0 packages loaded)\r\n```", "Hi @nitins17 @yishuangP Bumping up this thread again - can you help checking what might be the issue that file get missing?\r\n\r\nThank you!", "I am able to replicate on r2.13 branch:\r\n\r\n```\r\nbazel build -c opt --config=ios --ios_multi_cpus=arm64 --use_top_level_targets_for_symlinks --define=tflite_with_xnnpack=false //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework\r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=178\r\nINFO: Reading rc options for 'build' from /Users/pisethk/git/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/pisethk/git/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/pisethk/git/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Users/pisethk/miniforge3/bin/python3 --action_env PYTHON_LIB_PATH=/Users/pisethk/miniforge3/lib/python3.10/site-packages --python_path=/Users/pisethk/miniforge3/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/pisethk/git/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug\r\nINFO: Found applicable config definition build:short_logs in file /Users/pisethk/git/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/pisethk/git/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/pisethk/git/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework': no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/pisethk/git/tensorflow/tensorflow/lite/ios/tmp\r\nWARNING: Target pattern parsing failed.\r\nERROR: no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n - /Users/pisethk/git/tensorflow/tensorflow/lite/ios/tmp\r\nINFO: Elapsed time: 2.798s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (0 packages loaded)\r\n```", "Hi, just to clarify, how are you running the script? The following command works for me. Are you running the command under `/Users/pisethk/git/tensorflow`? \r\n```\r\nbash tensorflow/lite/ios/build_frameworks.sh --input_models=\"${PWD}/tensorflow/lite/testdata/softplus_flex.bin\" --target_archs=x86_64,arm64\r\n```\r\n\r\nLooking at the error you got, it seems that the tmp directly is not successfully created.\r\n```\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework': no such package 'tensorflow/lite/ios/tmp': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.\r\n```", "> Target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework up-to-date:\r\n> bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteSelectTfOps_framework.zip\r\n\r\nHi really sorry for the late reply. If you look at the log, the framework is already successfully built and the artifact can be found at `bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteSelectTfOps_framework.zip`. The script tensorflow/lite/ios/build_frameworks.sh will always delete the temporary directory `tensorflow/lite/ios/tmp/` at the end of the script, so your next command failed.\r\n```\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework up-to-date:\r\n bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteSelectTfOps_framework.zip\r\n```", "Hi @yishuangP Thanks! I do find it in that folder! 2 more question tho:\r\n\r\n1. I noticed the size is huge(180+MB for zip file, and 738MB after decompress), is this expected at all? The original framework size is only around 4MB... \r\n\r\n```\r\n➜ tmp ls -al\r\ntotal 200872\r\ndrwxrwxrwx 9 ghe 288 Jun 12 10:26 .\r\ndrwxrwxrwx 6 ghe 192 Jun 6 16:25 ..\r\ndrwxrwxrwx 7 ghe 224 Jun 6 16:25 TensorFlowLiteC_framework-intermediates\r\ndrwxr-xr-x 3 ghe 96 Jun 6 16:22 TensorFlowLiteC_framework.modulemaps-intermediates\r\n-r-xr-xr-x 1 ghe 20355185 Jun 6 16:25 TensorFlowLiteC_framework.zip\r\ndrwxr-xr-x 3 ghe 96 Jun 6 16:25 TensorFlowLiteC_framework_archive-root\r\ndrwxrwxrwx 6 ghe 192 Jun 12 10:26 TensorFlowLiteSelectTfOps_framework-intermediates\r\n-r-xr-xr-x 1 ghe 182243080 Jun 12 10:26 TensorFlowLiteSelectTfOps_framework.zip\r\ndrwxr-xr-x 3 ghe 96 Jun 12 10:26 TensorFlowLiteSelectTfOps_framework_archive-root\r\n```\r\n\r\n3. Is it possible to fix the script so that the zip file will be copied to some fixed location, instead of a temporary path that I have to look up from the stdout everytime? That will help automating some processes in the CD pipeline. \r\n\r\n\r\nThank you!", "> I noticed the size is huge(180+MB for zip file, and 738MB after decompress), is this expected at all? The original framework size is only around 4MB...\r\n\r\nHi @heguanyu, yes unfortunately the binary size with selected ops will be larger because it links in TF kernels. What are the targeted archs you built for? You probably only need `arm64`?\r\n", "@yishuangP We noticed that the bazel script logic is that - if it detects any select operators in the model, it will add ALL select operators into the binary, whether or not it is being used in the model. Is there any way to ONLY include the operators that being used by the tflite model?\r\n\r\nAs per your 2nd suggestion, limiting the architect to only arm64 will just cut the size in half - down to 364MB - but it is still too huge for a iOS device...", "Hi @heguanyu this is what the script is supposed to do. Here we only generate targets for your models https://github.com/tensorflow/tensorflow/blob/54751245dfb6c551e5118c6bd279baf806f784cb/tensorflow/lite/ios/build_frameworks.sh#L92 . Could you run the following command and check if the ops_list.txt contains exactly the ops you need?\r\n```\r\nFLAG_MODELS= <your model>\r\nTMP_DIR=<your temporary directory>\r\nbazel build -c opt --config=monolithic //tensorflow/lite/tools:list_flex_ops_no_kernel_main\r\nbazel-bin/tensorflow/lite/tools/list_flex_ops_no_kernel_main --graphs=${FLAG_MODELS} > ${TMP_DIR}/ops_list.txt\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." ]
2023-03-23T18:37:09
2023-12-06T00:45:49
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.12.0 ### Custom Code No ### OS Platform and Distribution MacOS Ventura 13.1 ### Mobile device N/A ### Python version 3.9.16 ### Bazel version 5.3 ### GCC/Compiler version 14.0.0 ### CUDA/cuDNN version N/A ### GPU model and memory N/A ### Current Behaviour? ```shell This was a subsequence bug from another issue(https://github.com/tensorflow/tensorflow/issues/59853#issuecomment-1481642687) and @yishuangP asked me to file a separate issue for Tensorflow Tools. I'm trying to build a tf framework from certain tflite model to reduce framework size. However I keep seeing below error. The command I'm using is `bash tensorflow/lite/ios/build_frameworks.sh --input_models=tflite_model_vocab_changes_run_18026681_full_dataset.tflite --target_archs=x86_64,armv7,arm64` ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely) ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid realpath: illegal option -- - usage: realpath [-q] [path ...] Target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1046.736s, Critical Path: 138.53s INFO: 3339 processes: 25 internal, 3314 local. FAILED: Build did NOT complete successfully ``` ``` ### Standalone code to reproduce the issue ```shell There is no code involved. To reproduce: 1. git fetch a new project 2. Copy the toy model I provided into its root directory 3. Run `bash tensorflow/lite/ios/build_frameworks.sh --input_models=tflite_model_vocab_changes_run_18026681_full_dataset.tflite --target_archs=x86_64,armv7,arm64` command It will compile for a couple minutes, and fail finally. ``` ### Relevant log output ```shell $ bash tensorflow/lite/ios/build_frameworks.sh --input_models=tflite_model_vocab_changes_run_18026681_full_dataset.tflite --target_archs=x86_64,armv7,arm64 INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=314 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 --action_env PYTHON_LIB_PATH= /Library/Python/3.9/site-packages --python_path=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/55dd04f6bcf797b4ff20e74158377bcc912b9870.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework (144 packages loaded, 7602 targets configured). INFO: Found 1 target... Target //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework up-to-date: bazel-out/applebin_ios-ios_x86_64-opt-ST-74bbdaf492e7/bin/tensorflow/lite/ios/tmp/TensorFlowLiteC_framework.zip INFO: Elapsed time: 38.614s, Critical Path: 5.29s INFO: 13 processes: 2 internal, 11 local. INFO: Build completed successfully, 13 total actions INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=314 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 --action_env PYTHON_LIB_PATH= /Library/Python/3.9/site-packages --python_path=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:monolithic in file /Users/ghe/projects/tensorflow/.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false INFO: Found applicable config definition build:macos in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=macos --copt=-DGRPC_BAZEL_BUILD --copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/55dd04f6bcf797b4ff20e74158377bcc912b9870.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 1 more have changed, discarding analysis cache. INFO: Analyzed target //tensorflow/lite/tools:list_flex_ops_no_kernel_main (7 packages loaded, 1231 targets configured). INFO: Found 1 target... Target //tensorflow/lite/tools:list_flex_ops_no_kernel_main up-to-date: bazel-bin/tensorflow/lite/tools/list_flex_ops_no_kernel_main INFO: Elapsed time: 0.292s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action ~/projects/tensorflow/tensorflow/lite/ios/tmp ~/projects/tensorflow ~/projects/tensorflow INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=314 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 --action_env PYTHON_LIB_PATH= /Library/Python/3.9/site-packages --python_path=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 INFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc: 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils INFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/55dd04f6bcf797b4ff20e74158377bcc912b9870.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Build options --apple_bitcode, --apple_platform_type, --copt, and 2 more have changed, discarding analysis cache. INFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework (435 packages loaded, 36544 targets configured). INFO: Found 1 target... ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely) ERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid realpath: illegal option -- - usage: realpath [-q] [path ...] Target //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1046.736s, Critical Path: 138.53s INFO: 3339 processes: 25 internal, 3314 local. FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60088/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60088/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60087
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60087/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60087/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60087/events
https://github.com/tensorflow/tensorflow/issues/60087
1,637,869,413
I_kwDOArmXAs5hn-dl
60,087
Plot training and validation losses of object detection model
{ "login": "HripsimeS", "id": 42246765, "node_id": "MDQ6VXNlcjQyMjQ2NzY1", "avatar_url": "https://avatars.githubusercontent.com/u/42246765?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HripsimeS", "html_url": "https://github.com/HripsimeS", "followers_url": "https://api.github.com/users/HripsimeS/followers", "following_url": "https://api.github.com/users/HripsimeS/following{/other_user}", "gists_url": "https://api.github.com/users/HripsimeS/gists{/gist_id}", "starred_url": "https://api.github.com/users/HripsimeS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HripsimeS/subscriptions", "organizations_url": "https://api.github.com/users/HripsimeS/orgs", "repos_url": "https://api.github.com/users/HripsimeS/repos", "events_url": "https://api.github.com/users/HripsimeS/events{/privacy}", "received_events_url": "https://api.github.com/users/HripsimeS/received_events", "type": "User", "site_admin": false }
[ { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "@HripsimeS,\r\nCould you please try to check the below sample workaround where we can plot training and the validation loss. Also Kindly find the [gist](https://colab.research.google.com/gist/tilakrayal/fd6ccd5a44fa5142b5e2854780fc2272/tflite-training-sinewave.ipynb) for the reference.\r\n```\r\n# Draw a graph of the loss, which is the distance between\r\n# the predicted and actual values during training and validation.\r\nloss = training_info.history['loss']\r\nvalidation_loss = training_info.history['val_loss']\r\n\r\nepochs = range(1, len(loss) + 1)\r\n\r\nplt.plot(epochs, loss, 'g.', label='Training loss')\r\nplt.plot(epochs, validation_loss, 'b', label='Validation loss')\r\nplt.title('Training and validation loss')\r\nplt.xlabel('Epochs')\r\nplt.ylabel('Loss')\r\nplt.legend()\r\nplt.show()\r\n```\r\nThank you!", "@tilakrayal thank you very much for your reply. The notebook you shared they created the model **model = model.fit(...)**\r\n\r\nIn my case I use the following notebook https://www.tensorflow.org/lite/models/modify/model_maker/object_detection\r\nAnd they create the model with **model = object_detector.create(....)**\r\n\r\nThat's why when I use the history to get the information about losses, it gives me this error \r\n**AttributeError: 'ObjectDetector' object has no attribute 'history'**\r\n\r\nMy question is how to get information about losses if you using **object_detector.create** to train the mobile models?", "Hi @HripsimeS \r\n\r\nThe object detector class returns Keras model which has callbacks history enabled. You can obtain the information about losses by calling the history function on the model returned by the object detector's Keras model. Please try the following snippet to get the train loss vs val loss trained using object detector.\r\n\r\n```\r\nhistory = model.model.history\r\nloss = history.history['loss']\r\nval_loss = history.history['val_loss']\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.title('Training and Validation Loss')\r\nplt.xlabel('epoch')\r\nplt.show() \r\n```\r\n Please find the gist [here](https://colab.research.google.com/gist/pjpratik/297650bb92325965a45431bf01827fec/model-maker-object-detection-tutorial.ipynb#scrollTo=6JfXtC4UTiTP) in which the train loss and val loss are plotted using object detection example.\r\n\r\nThanks.", "@pjpratik thank you very much, it was very useful 🥇 So the only part was missing was **model.model.history** :) ", "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/60087\">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/60087\">No</a>\n" ]
2023-03-23T16:27:26
2023-03-27T09:33:03
2023-03-27T09:33:00
NONE
null
null
null
Hello. I am using the following notebook to train my dataset with **efficientdet-lite0** model. https://www.tensorflow.org/lite/models/modify/model_maker/object_detection I can see for each epoch we get the information of training loss "loss" and validation loss "val_loss". I would like to plot them like: loss = model.history['loss'] val_loss = model.history['val_loss'] plt.plot(loss, label='Training Loss') plt.plot(val_loss, label='Validation Loss') plt.legend(loc='upper right') plt.ylabel('Cross Entropy') plt.ylim([0,1.0]) plt.title('Training and Validation Loss') plt.xlabel('epoch') plt.show() And unfortunately getting the following error **AttributeError: 'ObjectDetector' object has no attribute 'history'** Can you help me to figure out how to plot training and validation losses on the same graph. Thanks in advance!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60087/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60087/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60086
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60086/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60086/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60086/events
https://github.com/tensorflow/tensorflow/pull/60086
1,637,849,878
PR_kwDOArmXAs5MwJKA
60,086
Updated dataset_creator.py
{ "login": "amangupta201", "id": 113130485, "node_id": "U_kgDOBr479Q", "avatar_url": "https://avatars.githubusercontent.com/u/113130485?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amangupta201", "html_url": "https://github.com/amangupta201", "followers_url": "https://api.github.com/users/amangupta201/followers", "following_url": "https://api.github.com/users/amangupta201/following{/other_user}", "gists_url": "https://api.github.com/users/amangupta201/gists{/gist_id}", "starred_url": "https://api.github.com/users/amangupta201/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amangupta201/subscriptions", "organizations_url": "https://api.github.com/users/amangupta201/orgs", "repos_url": "https://api.github.com/users/amangupta201/repos", "events_url": "https://api.github.com/users/amangupta201/events{/privacy}", "received_events_url": "https://api.github.com/users/amangupta201/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60086/checks?check_run_id=12228598133) 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.", "Please don't use \"update <file>\" commit messages. These make it harder to understand at a glance at commit history what the changes are.\r\n\r\nhttps://cbea.ms/git-commit/", "Is this fixing a bug or something?" ]
2023-03-23T16:15:17
2023-03-27T19:42:09
2023-03-27T19:42:06
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60086", "html_url": "https://github.com/tensorflow/tensorflow/pull/60086", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60086.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60086.patch", "merged_at": null }
Updated dataset_creator.py Added some features and code Contributed Used documentation of tensorflow
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60086/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60086/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60085
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60085/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60085/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60085/events
https://github.com/tensorflow/tensorflow/issues/60085
1,637,831,750
I_kwDOArmXAs5hn1RG
60,085
A shape mismatch error occurs when using the atan2 function with broadcasted inputs
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 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
[ "@trickiwoo \r\nI was able to replicate the issue in Colab using TF v2.12. Please find the gists [here](https://colab.research.google.com/gist/tiruk007/fdc546be405bbbdd29c0f220e1cd6026/untitled164.ipynb) for reference. It seems like we have to dig more into this issue, we will update soon here.\r\n\r\nThank you !", "There seems to problem with `atan2` function with broadcastable shapes under Gradient Tape.When target is `atan2` function then `tape.jacobian` expecting both target and sources to be of same shape. With both same shape there is no error and if shape changes then there is compatibility error. `tape.gradient `works fine for both cases.\r\n\r\nHowever if target is some other function like `tf.nn.sigmoid()` then with broadcastable shapes `GradientTape().jacobian` works fine without error.\r\n\r\nAll of my observations replicated in the attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/44d64dbe14affc55ff1d170ba0836cb0/60085.ipynb).\r\n\r\nThis seems to be valid bug for me. \r\n\r\n@trickiwoo , do you have any Idea/plan to fix this ?\r\n", "@trickiwoo, The error you are encountering is due to the mismatch in the shape of the gradient. In this case, since you want to compute the Jacobian of value2 with respect to b, you need to reshape the tensors a and b to have compatible shapes. \r\nDo this below \r\n\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\na = tf.ones([1, 1, 3, 3])\r\nb = tf.ones([1, 1, 3, 3]) # Reshape b to have the same shape as a\r\n\r\ndef atan2(a, b):\r\n a_b = tf.math.atan2(a, b)\r\n return a_b\r\n\r\nvalue = atan2(a, b)\r\nprint(value.shape)\r\n\r\nwith tf.GradientTape() as tape:\r\n tape.watch(b)\r\n value2 = atan2(a, b)\r\n\r\ngradient = tape.jacobian(value2, b)\r\nprint(gradient) . \r\n\r\nExpected output is \r\n\r\n(1, 1, 3, 3)\r\ntf.Tensor(\r\n[[[[[[[[-0.5 -0. -0. ]\r\n [-0. -0. -0. ]\r\n [-0. -0. -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0.5 -0. ]\r\n [-0. -0. -0. ]\r\n [-0. -0. -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0. -0.5]\r\n [-0. -0. -0. ]\r\n [-0. -0. -0. ]]]]]\r\n\r\n\r\n\r\n\r\n [[[[[-0. -0. -0. ]\r\n [-0.5 -0. -0. ]\r\n [-0. -0. -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0. -0. ]\r\n [-0. -0.5 -0. ]\r\n [-0. -0. -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0. -0. ]\r\n [-0. -0. -0.5]\r\n [-0. -0. -0. ]]]]]\r\n\r\n\r\n\r\n\r\n [[[[[-0. -0. -0. ]\r\n [-0. -0. -0. ]\r\n [-0.5 -0. -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0. -0. ]\r\n [-0. -0. -0. ]\r\n [-0. -0.5 -0. ]]]]\r\n\r\n\r\n\r\n [[[[-0. -0. -0. ]\r\n [-0. -0. -0. ]\r\n [-0. -0. -0.5]]]]]]]], shape=(1, 1, 3, 3, 1, 1, 3, 3), dtype=float32)", "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/60085\">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/60085\">No</a>\n", "@trickiwoo ,\r\n\r\nI have verified the issue with nightly(2.14.0.dev20230516) and the issue is resolved with above commit. Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/9c550b6120e21d8cf8f22405a78e4600/60085_nightly-2-14.ipynb).", "don't i get an accolade for my input @SuryanarayanaY i resolved the issue earlier" ]
2023-03-23T16:05:17
2023-05-17T09:43:22
2023-05-04T04:23:21
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A shape mismatch error can occur when using the atan2 function with broadcasted inputs. This is because the function broadcasts b, to match the shape of a. However, this broadcasting can introduce errors in the gradient computation. Specifically, in this case, the shape of 'b' was broadcasted to [1, 1, 3, 3] according to the output of the atan2 function, but it remains the same shape as the gradient source. To ensure consistent behavior between the forward and backward passes, it would be desirable to avoid such errors. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np a = tf.ones([1, 1, 3, 3]) b = tf.ones([3, 3]) def atan2(a, b): a_b = tf.math.atan2(a, b) return a_b value = atan2(a, b) print(value.shape) with tf.GradientTape() as tape: tape.watch(b) value2 = atan2(a, b) gradient = tape.jacobian(value2, b) print(gradient) ``` ### Relevant log output ```shell (1, 1, 3, 3) ValueError: Tensor's shape (1, 1, 3, 3, 1, 1, 3, 3) is not compatible with supplied shape (1, 1, 3, 3, 3, 3). ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60085/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60085/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60084
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60084/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60084/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60084/events
https://github.com/tensorflow/tensorflow/issues/60084
1,637,827,798
I_kwDOArmXAs5hn0TW
60,084
tf.py_function throws KeyError when computing Jacobian matrix
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 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": "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
[ "Hi @trickiwoo, Apologies for the delay. We were able to replicate the issue in Colab using TF v2.11. Please find the gist [here](https://colab.sandbox.google.com/gist/synandi/40e7a6bb108d9a9b97bcbe76ab0c67da/60084.ipynb). It seems like we have to dig deep into the issue, we'll update here soon. Thank you!" ]
2023-03-23T16:02:58
2023-04-20T09:27:42
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell tf.py_function throws KeyError when computing Jacobian matrix. It works well when it is computing gradient. ``` ### Standalone code to reproduce the issue ```shell import os import tensorflow as tf import numpy as np a = tf.Variable([1.0, 2.0]) def square(a): return tf.py_function(lambda a: a ** 2, [a], a.dtype) with tf.GradientTape(persistent=True) as tape: tape.watch(a) y = square(a) # gradient = tape.gradient(y, a) # pass jacobian = tape.jacobian(y, a) print(jacobian) ``` ### Relevant log output ```shell Node: 'gradient_tape/EagerPyFunc' KeyError: b'pyfunc_0' [[{{node gradient_tape/EagerPyFunc}}]] [Op:__inference_f_173] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60084/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60084/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60083
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60083/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60083/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60083/events
https://github.com/tensorflow/tensorflow/issues/60083
1,637,452,862
I_kwDOArmXAs5hmYw-
60,083
Build from source on Windows failing
{ "login": "AIML-ankit", "id": 92882293, "node_id": "U_kgDOBYlFdQ", "avatar_url": "https://avatars.githubusercontent.com/u/92882293?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AIML-ankit", "html_url": "https://github.com/AIML-ankit", "followers_url": "https://api.github.com/users/AIML-ankit/followers", "following_url": "https://api.github.com/users/AIML-ankit/following{/other_user}", "gists_url": "https://api.github.com/users/AIML-ankit/gists{/gist_id}", "starred_url": "https://api.github.com/users/AIML-ankit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AIML-ankit/subscriptions", "organizations_url": "https://api.github.com/users/AIML-ankit/orgs", "repos_url": "https://api.github.com/users/AIML-ankit/repos", "events_url": "https://api.github.com/users/AIML-ankit/events{/privacy}", "received_events_url": "https://api.github.com/users/AIML-ankit/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": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "@AIML-ankit Could you please confirm if you are using TF v2.12 which is the latest version?\r\nAs per the tested build configuration listed [here](https://www.tensorflow.org/install/source_windows#tested_build_configurations) please let us know if the build from source on windows is not failing now!\r\nFor installing TF lite with CMake, please refer to [this](https://www.tensorflow.org/lite/guide/build_cmake). \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.", "C:\\Users\\Anmaheshwari\\TF_2\\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package\r\nINFO: Options provided by the client:\r\nInherited 'common' options: --isatty=1 --terminal_columns=172\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc:\r\nInherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Options provided by the client:\r\n'build' options: --python_path=C:/Users/Anmaheshwari/python/python.exe\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc:\r\n'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow.tf_configure.bazelrc:\r\n'build' options: --action_env PYTHON_BIN_PATH=C:/Users/Anmaheshwari/python/python.exe --action_env PYTHON_LIB_PATH=C:/Users/Anmaheshwari/python/lib/site-packages --python_path=C:/Users/Anmaheshwari/python/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true\r\nINFO: Reading rc options for 'build' from c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc:\r\n'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:opt in file c:\\users\\anmaheshwari\\tf_2\\tensorflow.tf_configure.bazelrc: --copt=/arch:AVX --host_copt=/arch:AVX\r\nINFO: Found applicable config definition build:windows in file c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file\r\nINFO: Found applicable config definition build:monolithic in file c:\\users\\anmaheshwari\\tf_2\\tensorflow.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false\r\nINFO: Repository local_execution_config_python instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:962:19: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:96:27: in _tf_toolchains\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/tools/toolchains/remote_config/configs.bzl:6:28: in initialize_rbe_configs\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/tools/toolchains/remote_config/rbe_config.bzl:158:27: in _tensorflow_local_config\r\nRepository rule local_python_configure defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl:279:41: in\r\nINFO: Repository local_config_python instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:962:19: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:106:21: in _tf_toolchains\r\nRepository rule python_configure defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl:298:35: in\r\nERROR: An error occurred during the fetch of repository 'local_execution_config_python':\r\nTraceback (most recent call last):\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 212, column 22, in _create_local_python_repository\r\n_check_python_bin(repository_ctx, python_bin)\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 145, column 25, in _check_python_bin\r\nauto_config_fail(\"--define %s='%s' is not executable. Is it the python binary?\" % (\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/remote_config/common.bzl\", line 12, column 9, in auto_config_fail\r\nfail(\"%sConfiguration Error:%s %s\\n\" % (red, no_color, msg))\r\nError in fail: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nERROR: C:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 212, column 22, in _create_local_python_repository\r\n_check_python_bin(repository_ctx, python_bin)\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/py/python_configure.bzl\", line 145, column 25, in _check_python_bin\r\nauto_config_fail(\"--define %s='%s' is not executable. Is it the python binary?\" % (\r\nFile \"C:/users/anmaheshwari/tf_2/tensorflow/third_party/remote_config/common.bzl\", line 12, column 9, in auto_config_fail\r\nfail(\"%sConfiguration Error:%s %s\\n\" % (red, no_color, msg))\r\nError in fail: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nINFO: Repository stablehlo instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:83:14: in _initialize_third_party\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/stablehlo/workspace.bzl:11:20: in repo\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in\r\nINFO: Repository termcolor_archive instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:388:20: in _tf_repositories\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in\r\nINFO: Repository eigen_archive instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:65:11: in _initialize_third_party\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/eigen3/workspace.bzl:14:20: in repo\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in\r\nINFO: Repository cpuinfo instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:166:20: in _tf_repositories\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in\r\nINFO: Repository sobol_data instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:15:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace2.bzl:82:15: in _initialize_third_party\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/sobol_data/workspace.bzl:6:20: in repo\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive\r\nRepository rule _tf_http_archive defined at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/third_party/repo.bzl:89:35: in\r\nINFO: Repository go_sdk instantiated at:\r\nC:/users/anmaheshwari/tf_2/tensorflow/WORKSPACE:23:14: in\r\nC:/users/anmaheshwari/tf_2/tensorflow/tensorflow/workspace0.bzl:135:20: in workspace\r\nC:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps\r\nC:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:431:28: in go_register_toolchains\r\nC:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:130:21: in go_download_sdk\r\nRepository rule _go_download_sdk defined at:\r\nC:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/io_bazel_rules_go/go/private/sdk.bzl:117:35: in\r\nERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Configuration Error: --define PYTHON_BIN_PATH='C:/Users/Anmaheshwari/python/python.exe' is not executable. Is it the python binary?\r\nINFO: Elapsed time: 1.792s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (34 packages loaded, 194 targets configured)\r\ncurrently loading: @llvm-project//llvm ... (11 packages)\r\nFetching https://github.com/boringssl; fetching\r\nFetching @com_google_absl; fetching\r\nFetching @libjpeg_turbo; fetching\r\nFetching @png; fetching\r\nFetching ...ingssl; Extracting C:/users/anmaheshwari/_bazel_anmaheshwari/unnl57ya/external/boringssl/temp13612522096612888484/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc\r\n.tar.gz\r\n\r\nC:\\Users\\Anmaheshwari\\TF_2\\tensorflow>", "Hi @AIML-ankit \r\n\r\nLooks like this is duplicate of issue #60112 . Can you please close this issue, since it is already being tracked there?\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/60083\">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/60083\">No</a>\n" ]
2023-03-23T12:29:57
2023-04-21T01:53:44
2023-04-21T01:53:42
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows - TensorFlow installation (pip package or built from source): Build from source on Windows - TensorFlow library (version, if pip package or github SHA, if built from source): 2.12 bazel version - 5.3 python version - 3.9 i am following below link - https://www.tensorflow.org/install/source_windows command that I am running - bazel build //tensorflow/tools/pip_package:build_pip_package Error message - Repository rule _tf_http_archive defined at: C:/users/anmaheshwari/downloads/tf/tensorflow-2.12.0/tensorflow-2.12.0/third_party/repo.bzl:89:35: in <toplevel> ERROR: C:/users/anmaheshwari/downloads/tf/tensorflow-2.12.0/tensorflow-2.12.0/tensorflow/core/BUILD:511:11: //tensorflow/core:ops depends on //tensorflow/compiler/mlir/tensorflow:mlir_passthrough_op in repository @ which failed to fetch. no such package '@llvm-project//mlir': Failed to find python3 binary ERROR: Analysis of target '//tensorflow/lite/delegates/flex:tensorflowlite_flex' failed; build aborted: INFO: Elapsed time: 297.423s INFO: 0 processes. FAILED: Build did NOT complete successfully (87 packages loaded, 331 targets configured) currently loading: tensorflow/lite/schema ... (4 packages) Fetching @flatbuffers; fetching Fetching ...ri/grgp23z7/external/flatbuffers; Extracting C:/users/anmaheshwari/_bazel_anmaheshwari/grgp23z7/external/flatbuffers/temp5290822748239123909/v2.0.6.tar.gz Fetching @nsync; fetching Fetching https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/273292d1cfc0a94a65082ee350509af1d113344d.tar.gz C:\Users\Anmaheshwari\Downloads\TF\tensorflow-2.12.0\tensorflow-2.12.0>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60083/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60083/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60082
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60082/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60082/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60082/events
https://github.com/tensorflow/tensorflow/pull/60082
1,637,321,635
PR_kwDOArmXAs5MuWaa
60,082
Fix endless loop in tensorflow::wav::DecodeLin16WaveAsFloatVector
{ "login": "SweetVishnya", "id": 22149206, "node_id": "MDQ6VXNlcjIyMTQ5MjA2", "avatar_url": "https://avatars.githubusercontent.com/u/22149206?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SweetVishnya", "html_url": "https://github.com/SweetVishnya", "followers_url": "https://api.github.com/users/SweetVishnya/followers", "following_url": "https://api.github.com/users/SweetVishnya/following{/other_user}", "gists_url": "https://api.github.com/users/SweetVishnya/gists{/gist_id}", "starred_url": "https://api.github.com/users/SweetVishnya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SweetVishnya/subscriptions", "organizations_url": "https://api.github.com/users/SweetVishnya/orgs", "repos_url": "https://api.github.com/users/SweetVishnya/repos", "events_url": "https://api.github.com/users/SweetVishnya/events{/privacy}", "received_events_url": "https://api.github.com/users/SweetVishnya/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "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/60082/checks?check_run_id=12219818582) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-03-23T11:15:51
2023-03-27T17:32:21
2023-03-27T17:32:20
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60082", "html_url": "https://github.com/tensorflow/tensorflow/pull/60082", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60082.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60082.patch", "merged_at": "2023-03-27T17:32:20" }
This bug was originally fixed by #56455 Regression was introduced in 50b4baf where addition result is truncated to smaller type. Thus, overflow checks do not work. We performed continuous hybrid fuzzing with Sydr + libFuzzer/AFL++, and found an endless cycle in `decode_wav` fuzz target. Seed: [timeout-26f66b056cebe711184a4ac9c508185972e48cb7.txt](https://github.com/tensorflow/tensorflow/files/11050056/timeout-26f66b056cebe711184a4ac9c508185972e48cb7.txt) @mihaimaruseac, could you review, please?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60082/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60082/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60081
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60081/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60081/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60081/events
https://github.com/tensorflow/tensorflow/issues/60081
1,636,891,920
I_kwDOArmXAs5hkP0Q
60,081
Segmentation fault when importing tensorflow 2.12 in MacOS
{ "login": "shkarupa-alex", "id": 1289725, "node_id": "MDQ6VXNlcjEyODk3MjU=", "avatar_url": "https://avatars.githubusercontent.com/u/1289725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shkarupa-alex", "html_url": "https://github.com/shkarupa-alex", "followers_url": "https://api.github.com/users/shkarupa-alex/followers", "following_url": "https://api.github.com/users/shkarupa-alex/following{/other_user}", "gists_url": "https://api.github.com/users/shkarupa-alex/gists{/gist_id}", "starred_url": "https://api.github.com/users/shkarupa-alex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shkarupa-alex/subscriptions", "organizations_url": "https://api.github.com/users/shkarupa-alex/orgs", "repos_url": "https://api.github.com/users/shkarupa-alex/repos", "events_url": "https://api.github.com/users/shkarupa-alex/events{/privacy}", "received_events_url": "https://api.github.com/users/shkarupa-alex/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": 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": 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": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }
[ { "login": "nitins17", "id": 29348997, "node_id": "MDQ6VXNlcjI5MzQ4OTk3", "avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nitins17", "html_url": "https://github.com/nitins17", "followers_url": "https://api.github.com/users/nitins17/followers", "following_url": "https://api.github.com/users/nitins17/following{/other_user}", "gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}", "starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nitins17/subscriptions", "organizations_url": "https://api.github.com/users/nitins17/orgs", "repos_url": "https://api.github.com/users/nitins17/repos", "events_url": "https://api.github.com/users/nitins17/events{/privacy}", "received_events_url": "https://api.github.com/users/nitins17/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "@shkarupa-alex ~My guess is that you're on an arm64 device (M1, M2) and you're trying to use TF 2.12 under Rosetta using the main `tensorflow` package. The main `tensorflow` package only distributes binary wheels that require AVX2 instructions, which Rosetta does not support. In my experience, trying to run TensorFlow under Rosetta results in a segmentation fault like the one you experienced.~ (EDIT: Reply below indicates the environment is a core i7 (x86_64) machine. Using `tensorflow-macos` once it's released might still help 🤷‍♂️ )\r\n\r\nThis is at least in part a symptom of TensorFlow's unusual and confusing packaging practices, which results in new TensorFlow versions being released at different times for different architectures and operating systems. Instead of having a single package named `tensorflow` with binary distributions for the full set of supported architectures and operating systems, TensorFlow has three different packages, intended for use on different architectures and operating systems:\r\n* `tensorflow`: For x86_64 processors on any operating system\r\n* `tensorflow-macos`: For macOS systems, using either x86_64 or arm64 processors\r\n* `tensorflow-cpu-aws`: For Linux aarch64 systems\r\n\r\nIf you want to use TensorFlow on an arm64 macOS system, you need to install `tensorflow-macos` in a native arm64 Python environment. No other combination of Python environment and TensorFlow package will work.\r\n\r\nUnfortunately, TF 2.12 wheels have not yet been published for `tensorflow-macos`, so you'll have to wait if you want to use TF 2.12.\r\n\r\nI'd love to someday see TF packaging return to a more conventional approach of using a single package and distributing binary wheels for each architecture and operating system as part of that single package. My guess is that there are either some challenges with TF's extremely complex build system (Bazel) or issues with TF's organizational structure that have resulted in the current package distribution approach that are unlikely to change.\r\n\r\nIf you're not particularly attached to TensorFlow, PyTorch distributes binary wheels for the most common architectures and operating systems in a single package on PyPI, and they just made their 2.0 release. I haven't tried PyTorch under Rosetta, but if that's a requirement for you it's more likely to work than TensorFlow", "I'm on MacOS with Core i7\r\n\r\n>> tensorflow-macos: For macOS systems, using either x86_64 or arm64 processors\r\nThanks, will wait for it", "@shkarupa-alex,\r\nI was able to reproduce the issue and also getting the same error which was mentioned above.\r\nAlso please have a look at the official document, currently there is no official GPU support for MacOS. \r\n**https://www.tensorflow.org/install/pip#macos**\r\n\r\nIt is better to post this issue here for the quick resolution and the reference.\r\n**https://developer.apple.com/forums/thread/725592\r\nhttps://developer.apple.com/forums/tags/tensorflow-metal**\r\n\r\n\r\n\r\n```\r\ninstallLibSigSegfault exception: libSegFault not found\r\ntests/test_TFUtil.py:12: DeprecationWarning: Importing from numpy.testing.utils has been deprecated since 1.15.0, import from numpy.testing instead.\r\n from numpy.testing.utils import assert_almost_equal, assert_allclose\r\nTF version: 2.11.0\r\nMetal device set to: Apple M1 Pro\r\n\r\n\r\n2023-03-23 17:29:40.4: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] 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-03-23 17:29:40.4: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] 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\nExecuting: test_get_variable_grad_from_update_ops\r\nOptimizer: <tensorflow.python.training.adam.AdamOptimizer object at 0x14e550670>\r\nupdate ops: [<tf.Operation 'test_get_variable_grad_from_update_ops/Adam/update_test_get_variable_grad_from_update_ops/var/ResourceApplyAdam' type=ResourceApplyAdam>]\r\nupdate op keys: ['_has_manual_control_dependencies', 'use_locking', 'T', '_class', 'use_nesterov']\r\nupdate op inputs by name: ['var', 'm', 'v', 'beta1_power', 'beta2_power', 'lr', 'beta1', 'beta2', 'epsilon', 'grad']\r\n2023-03-23 17:29:40.5: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:357] MLIR V1 optimization pass is not enabled\r\n2023-03-23 17:29:41.5: W tensorflow/c/c_api.cc:291] Operation '{name:'test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Assign' id:60 op device:{requested: '', assigned: ''} def:{{{node test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Assign}} = AssignVariableOp[_has_manual_control_dependencies=true, dtype=DT_FLOAT, validate_shape=false](test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1, test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Initializer/zeros)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session.\r\ngrad: Tensor(\"test_get_variable_grad_from_update_ops/gradients/test_get_variable_grad_from_update_ops/sub_grad/tuple/control_dependency:0\", shape=(), dtype=float32)\r\nOptimizer: <tensorflow.python.training.gradient_descent.GradientDescentOptimizer object at 0x14e5506a0>\r\nupdate ops: [<tf.Operation 'test_get_variable_grad_from_update_ops/GradientDescent/update_test_get_variable_grad_from_update_ops/var/ResourceApplyGradientDescent' type=ResourceApplyGradientDescent>]\r\nupdate op keys: ['_has_manual_control_dependencies', 'use_locking', 'T', '_class']\r\nupdate op inputs by name: ['var', 'alpha', 'delta']\r\n2023-03-23 15:29:40.680: W tensorflow/c/c_api.cc:291] Operation '{name:'test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Assign' id:60 op device:{requested: '', assigned: ''} def:{{{node test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Assign}} = AssignVariableOp[_has_manual_control_dependencies=true, dtype=DT_FLOAT, validate_shape=false](test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1, test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Adam_1/Initializer/zeros)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session.\r\ngrad: Tensor(\"test_get_variable_grad_from_update_ops/gradients_1/test_get_variable_grad_from_update_ops/sub_grad/tuple/control_dependency:0\", shape=(), dtype=float32)\r\nOptimizer: <tensorflow.python.training.momentum.MomentumOptimizer object at 0x14e550730>\r\nupdate ops: [<tf.Operation 'test_get_variable_grad_from_update_ops/Momentum/update_test_get_variable_grad_from_update_ops/var/ResourceApplyMomentum' type=ResourceApplyMomentum>]\r\nupdate op keys: ['_has_manual_control_dependencies', 'use_locking', 'T', '_class', 'use_nesterov']\r\nupdate op inputs by name: ['var', 'accum', 'lr', 'grad', 'momentum']\r\n2023-03-23 19:29:40.65: W tensorflow/c/c_api.cc:291] Operation '{name:'test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Momentum/Assign' id:138 op device:{requested: '', assigned: ''} def:{{{node test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Momentum/Assign}} = AssignVariableOp[_has_manual_control_dependencies=true, dtype=DT_FLOAT, validate_shape=false](test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Momentum, test_get_variable_grad_from_update_ops/test_get_variable_grad_from_update_ops/var/Momentum/Initializer/zeros)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session.\r\ngrad: Tensor(\"test_get_variable_grad_from_update_ops/gradients_2/test_get_variable_grad_from_update_ops/sub_grad/tuple/control_dependency:0\", shape=(), dtype=float32)\r\nFatal Python error: Segmentation fault\r\n```\r\n", "@tilakrayal Your logs seem to indicate that you're using TensorFlow 2.11:\r\n\r\n> TF version: 2.11.0\r\n\r\nSince this issue is specifically for TF 2.12, it might be worth opening a new issue for your problem", "I've installed `tensorflow-macos 2.12.0` and got segfault when importing tensorflow", "Here is lldb stack:\r\n```bash\r\nalex@MacBook-Pro Downloads % lldb /Users/alex/.pyenv/versions/3.8.6/bin/python x.py\r\n(lldb) target create \"/Users/alex/.pyenv/versions/3.8.6/bin/python\"\r\nCurrent executable set to '/Users/alex/.pyenv/versions/3.8.6/bin/python' (x86_64).\r\n(lldb) settings set -- target.run-args \"x.py\"\r\n(lldb) run\r\nProcess 38275 launched: '/Users/alex/.pyenv/versions/3.8.6/bin/python' (x86_64)\r\n2023-04-10 16:44:06.224255: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\nProcess 38275 stopped\r\n* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x390)\r\n frame #0: 0x00000001587f028c _multiarray_umath.cpython-38-darwin.so`_warn_if_cast_exists_already + 76\r\n_multiarray_umath.cpython-38-darwin.so`:\r\n-> 0x1587f028c <+76>: movq 0x390(%rax), %rax\r\n 0x1587f0293 <+83>: movq 0x48(%rax), %rdi\r\n 0x1587f0297 <+87>: movq %rbx, %rsi\r\n 0x1587f029a <+90>: callq 0x1589f5152 ; symbol stub for: PyDict_GetItemWithError\r\nTarget 0: (python) stopped.\r\n\r\n```", "@shkarupa-alex , tensorflow-macos is a community build package and it is not officially released by google.\r\nYou can build the packahe from source for MacOs by following the instructions here https://www.tensorflow.org/install/source#macos\r\n\r\nFor Intel based MacOs, you can install tensorflow package using pip. \r\n\r\nBelow are the screenshots for MacOS i5 using `pip install tensorflow`.\r\n\r\n![image](https://user-images.githubusercontent.com/73069040/231263808-d136870e-dc27-43c6-bf12-b4282b972738.png)\r\n\r\n![image](https://user-images.githubusercontent.com/73069040/231263849-f949b83f-a8b6-46ff-a385-93692c1fad32.png)\r\n", "@sachinprasadhs , i've tried to install tensorflow, tensorflow-macos and build tensorflow from source. But always get segfault (starting from r2.12, 2.11 works well from pip and source).\r\n\r\nHere is what i got when building from source:\r\n```bash\r\nalex@MacBook-Pro tensorflow-r2.12 % bazel build --action_env=CUDA_VISIBLE_DEVICES=-1 --config=release_cpu_macos //tensorflow/tools/pip_package:build_pip_package \r\nWARNING: The following configs were expanded more than once: [v2]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=241\r\nINFO: Reading rc options for 'build' from /Users/alex/Downloads/tensorflow-r2.12/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/alex/Downloads/tensorflow-r2.12/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/alex/Downloads/tensorflow-r2.12/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Users/alex/.pyenv/shims/python --action_env PYTHON_LIB_PATH=/Users/alex/.pyenv/versions/3.8.6/lib/python3.8/site-packages --python_path=/Users/alex/.pyenv/shims/python\r\nINFO: Reading rc options for 'build' from /Users/alex/Downloads/tensorflow-r2.12/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:release_cpu_macos in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --config=release_base --config=avx_linux\r\nINFO: Found applicable config definition build:release_base in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --config=v2 --distinct_host_configuration=false\r\nINFO: Found applicable config definition build:v2 in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:avx_linux in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --copt=-mavx --host_copt=-mavx\r\nINFO: Found applicable config definition build:macos in file /Users/alex/Downloads/tensorflow-r2.12/.bazelrc: --apple_platform_type=macos --copt=-DGRPC_BAZEL_BUILD --copt=-w --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17\r\nINFO: Build options --action_env and --python_path have changed, discarding analysis cache.\r\nINFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (584 packages loaded, 34021 targets configured).\r\nINFO: Found 1 target...\r\nERROR: /Users/alex/Downloads/tensorflow-r2.12/tensorflow/BUILD:1591:19: Executing genrule //tensorflow:tf_python_api_gen_v2 failed: (Segmentation fault): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\n2023-04-11 13:22:35.852895: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n/bin/bash: line 1: 53085 Segmentation fault: 11 bazel-out/darwin-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2 --root_init_template=tensorflow/api_template.__init__.py --apidir=bazel-out/darwin-opt/bin/tensorflow_api/v2/ --apiname=tensorflow --apiversion=2 --compat_apiversion=1 --compat_apiversion=2 --compat_init_template=tensorflow/compat_template_v1.__init__.py --compat_init_template=tensorflow/compat_template.__init__.py --packages=tensorflow.python,tensorflow.dtensor.python.accelerator_util,tensorflow.dtensor.python.api,tensorflow.dtensor.python.config,tensorflow.dtensor.python.d_checkpoint,tensorflow.dtensor.python.d_variable,tensorflow.dtensor.python.input_util,tensorflow.dtensor.python.layout,tensorflow.dtensor.python.mesh_util,tensorflow.dtensor.python.tpu_util,tensorflow.dtensor.python.save_restore,tensorflow.lite.python.analyzer,tensorflow.lite.python.lite,tensorflow.lite.python.authoring.authoring,tensorflow.python.modules_with_exports --output_package=tensorflow._api.v2 --use_relative_imports=True --loading=static --loading=default bazel-out/darwin-opt/bin/tensorflow/_api/v2/v2.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/autograph/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/decorator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/dispatch/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/distribute/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/distribute/combinations/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/distribute/interim/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/distribute/multi_process_runner/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/eager_context/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/feature_column/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/function/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/graph_util/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/mixed_precision/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/monitoring/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/nest/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/smart_cond/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/test/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/test/combinations/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/tf2/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/train/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/types/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/saved_model/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/saved_model/load/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__internal__/tracking/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/__operators__/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/audio/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/autograph/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/autograph/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/autodiff/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/bitwise/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/config/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/config/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/config/optimizer/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/config/threading/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/data/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/data/experimental/service/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/debugging/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/debugging/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/cluster_resolver/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/coordinator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/experimental/coordinator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/experimental/partitioners/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/distribute/experimental/rpc/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/dtypes/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/dtypes/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/errors/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/extension_type/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/dtensor/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/numpy/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/numpy/random/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/tensorrt/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/experimental/dlpack/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/feature_column/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/io/gfile/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/graph_util/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/image/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/io/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/queue/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/linalg/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/linalg/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/experimental/authoring/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/python/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lookup/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/lookup/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/math/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/math/special/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/mlir/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/mlir/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/nest/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/nn/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/nn/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/profiler/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/profiler/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/profiler/experimental/client/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/profiler/experimental/server/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/quantization/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/ragged/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/random/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/random/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/raw_ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/saved_model/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/saved_model/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/sets/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/signal/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/sparse/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/strings/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/summary/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/summary/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/sysconfig/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/test/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/test/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/tpu/experimental/embedding/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/tpu/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/tpu/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/train/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/train/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/types/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/types/experimental/distributed/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/version/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/xla/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/xla/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/autograph/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/decorator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/dispatch/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/combinations/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/interim/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/distribute/multi_process_runner/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/eager_context/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/feature_column/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/function/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/graph_util/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/mixed_precision/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/monitoring/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/nest/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/smart_cond/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/test/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/test/combinations/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/tf2/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/train/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/types/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/saved_model/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/saved_model/load/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__internal__/tracking/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/__operators__/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/audio/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/autograph/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/autograph/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/autodiff/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/bitwise/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/config/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/config/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/config/optimizer/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/config/threading/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/data/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/data/experimental/service/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/debugging/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/debugging/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/cluster_resolver/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/coordinator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/coordinator/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/partitioners/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/distribute/experimental/rpc/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/dtypes/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/dtypes/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/errors/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/extension_type/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/dtensor/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/numpy/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/numpy/random/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/tensorrt/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/experimental/dlpack/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/feature_column/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/io/gfile/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/graph_util/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/image/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/io/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/queue/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/linalg/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/linalg/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/authoring/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/python/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lookup/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/lookup/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/math/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/math/special/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/mlir/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/mlir/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/nest/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/nn/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/nn/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/profiler/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/client/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/profiler/experimental/server/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/quantization/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/ragged/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/random/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/random/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/raw_ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/saved_model/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/saved_model/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/sets/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/signal/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/sparse/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/strings/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/summary/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/summary/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/sysconfig/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/test/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/test/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/tpu/experimental/embedding/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/tpu/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/tpu/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/train/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/train/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/types/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/types/experimental/distributed/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/version/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/xla/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/xla/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/__internal__/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/__internal__/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/__internal__/types/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/app/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/audio/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/autograph/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/autograph/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/bitwise/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/config/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/config/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/config/optimizer/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/config/threading/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/data/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/data/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/data/experimental/service/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/debugging/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/debugging/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/distribute/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/distribute/cluster_resolver/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/distribute/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/distributions/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/dtypes/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/dtypes/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/errors/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/experimental/extension_type/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/feature_column/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/gfile/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/io/gfile/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/graph_util/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/image/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/io/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/queue/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/initializers/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/layers/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/layers/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/linalg/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/linalg/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/constants/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/authoring/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/python/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lite/experimental/microfrontend/python/ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/logging/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lookup/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/lookup/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/losses/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/manip/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/math/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/math/special/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/metrics/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/mixed_precision/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/mixed_precision/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/mlir/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/mlir/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/nest/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/nn/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/nn/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/nn/rnn_cell/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/profiler/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/python_io/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/quantization/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/ragged/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/random/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/random/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/raw_ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/resource_loader/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/strings/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/builder/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/constants/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/loader/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/main_op/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/signature_constants/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/signature_def_utils/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/tag_constants/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/saved_model/utils/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/sets/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/signal/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/sparse/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/spectral/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/summary/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/sysconfig/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/test/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/test/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/tpu/experimental/embedding/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/tpu/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/tpu/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/train/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/train/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/train/queue_runner/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/types/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/types/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/user_ops/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/version/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/xla/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/xla/experimental/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/compat/v1/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/compat/v2/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/compat/v1/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v1/compat/v2/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/compat/v1/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/compat/v2/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/compat/v1/compat/__init__.py bazel-out/darwin-opt/bin/tensorflow/_api/v2/compat/v2/compat/v2/compat/__init__.py\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\nERROR: /Users/alex/Downloads/tensorflow-r2.12/tensorflow/python/tools/BUILD:82:10 Middleman _middlemen/tensorflow_Spython_Stools_Sfreeze_Ugraph-runfiles failed: (Segmentation fault): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)\r\nINFO: Elapsed time: 8442.628s, Critical Path: 700.25s\r\nINFO: 15803 processes: 817 internal, 14986 local.\r\nFAILED: Build did NOT complete successfully\r\n```", "Couldn't solve this issue with different hacks.\r\nInstalled clean Python 3.11 and it start works out of the box.", "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/60081\">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/60081\">No</a>\n" ]
2023-03-23T05:48:08
2023-04-18T06:21:16
2023-04-18T06:21:13
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version 2.12 ### Custom Code No ### OS Platform and Distribution MacOS 13.1 ### Mobile device _No response_ ### Python version 3.8.6 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Segmentation fault when importing just upgraded TF 2.12 ``` ### Standalone code to reproduce the issue ```shell alex@MacBook-Pro tfmiss % python Python 3.8.6 (default, Jun 7 2022, 10:54:52) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf ``` ### Relevant log output ```shell 2023-03-23 08:47:14.945316: 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. zsh: segmentation fault python ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60081/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60081/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60080
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60080/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60080/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60080/events
https://github.com/tensorflow/tensorflow/issues/60080
1,636,872,196
I_kwDOArmXAs5hkLAE
60,080
Tensorflow version is 2.11.1 in v2.12.0 tag
{ "login": "npanpaliya", "id": 14196089, "node_id": "MDQ6VXNlcjE0MTk2MDg5", "avatar_url": "https://avatars.githubusercontent.com/u/14196089?v=4", "gravatar_id": "", "url": "https://api.github.com/users/npanpaliya", "html_url": "https://github.com/npanpaliya", "followers_url": "https://api.github.com/users/npanpaliya/followers", "following_url": "https://api.github.com/users/npanpaliya/following{/other_user}", "gists_url": "https://api.github.com/users/npanpaliya/gists{/gist_id}", "starred_url": "https://api.github.com/users/npanpaliya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/npanpaliya/subscriptions", "organizations_url": "https://api.github.com/users/npanpaliya/orgs", "repos_url": "https://api.github.com/users/npanpaliya/repos", "events_url": "https://api.github.com/users/npanpaliya/events{/privacy}", "received_events_url": "https://api.github.com/users/npanpaliya/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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "Looks like TF 2.12.0 tag is created from r2.11 branch instead of r2.12. Because r2.12 branch shows correct version in setup.py.", "@npanpaliya \r\nThe version of TF in v2.12.0 tag is updated to 2.12.0. Please check this [link](https://github.com/tensorflow/tensorflow/blob/v2.12.0/tensorflow/tools/pip_package/setup.py#L50) and confirm the same.\r\n\r\nThank you!", "> @npanpaliya The version of TF in v2.12.0 tag is updated to 2.12.0. Please check this [link](https://github.com/tensorflow/tensorflow/blob/v2.12.0/tensorflow/tools/pip_package/setup.py#L50) and confirm the same.\r\n> \r\n> Thank you!\r\n\r\nYes, I did notice this yesterday night that it is fixed. Thank you for fixing this. ", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60080\">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/60080\">No</a>\n" ]
2023-03-23T05:22:48
2023-03-24T05:41:00
2023-03-24T05:40:57
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version TF 2.12 ### Custom Code Yes ### OS Platform and Distribution Linux RHEL 8.6 ### Mobile device _No response_ ### Python version _No response_ ### Bazel version 5.3 ### GCC/Compiler version 11.2 ### CUDA/cuDNN version 11.4/8.3 ### GPU model and memory _No response_ ### Current Behaviour? ```shell Version of TF in v2.12.0 tag is 2.11.1. However, it should have been 2.12.0. ``` ### Standalone code to reproduce the issue ```shell https://github.com/tensorflow/tensorflow/blob/v2.12.0/tensorflow/tools/pip_package/setup.py#L49 shows 2.11.1 ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60080/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/60080/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60079
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60079/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60079/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60079/events
https://github.com/tensorflow/tensorflow/issues/60079
1,636,843,386
I_kwDOArmXAs5hkD96
60,079
failed when changing GPU delegate compatibility database.
{ "login": "megleo", "id": 50650564, "node_id": "MDQ6VXNlcjUwNjUwNTY0", "avatar_url": "https://avatars.githubusercontent.com/u/50650564?v=4", "gravatar_id": "", "url": "https://api.github.com/users/megleo", "html_url": "https://github.com/megleo", "followers_url": "https://api.github.com/users/megleo/followers", "following_url": "https://api.github.com/users/megleo/following{/other_user}", "gists_url": "https://api.github.com/users/megleo/gists{/gist_id}", "starred_url": "https://api.github.com/users/megleo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/megleo/subscriptions", "organizations_url": "https://api.github.com/users/megleo/orgs", "repos_url": "https://api.github.com/users/megleo/repos", "events_url": "https://api.github.com/users/megleo/events{/privacy}", "received_events_url": "https://api.github.com/users/megleo/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2671339633, "node_id": "MDU6TGFiZWwyNjcxMzM5NjMz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate", "name": "TFLiteGpuDelegate", "color": "F71F04", "default": false, "description": "TFLite Gpu delegate issue" }, { "id": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
open
false
{ "login": "impjdi", "id": 9742927, "node_id": "MDQ6VXNlcjk3NDI5Mjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/impjdi", "html_url": "https://github.com/impjdi", "followers_url": "https://api.github.com/users/impjdi/followers", "following_url": "https://api.github.com/users/impjdi/following{/other_user}", "gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/impjdi/subscriptions", "organizations_url": "https://api.github.com/users/impjdi/orgs", "repos_url": "https://api.github.com/users/impjdi/repos", "events_url": "https://api.github.com/users/impjdi/events{/privacy}", "received_events_url": "https://api.github.com/users/impjdi/received_events", "type": "User", "site_admin": false }
[ { "login": "impjdi", "id": 9742927, "node_id": "MDQ6VXNlcjk3NDI5Mjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/impjdi", "html_url": "https://github.com/impjdi", "followers_url": "https://api.github.com/users/impjdi/followers", "following_url": "https://api.github.com/users/impjdi/following{/other_user}", "gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/impjdi/subscriptions", "organizations_url": "https://api.github.com/users/impjdi/orgs", "repos_url": "https://api.github.com/users/impjdi/repos", "events_url": "https://api.github.com/users/impjdi/events{/privacy}", "received_events_url": "https://api.github.com/users/impjdi/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-03-23T04:46:57
2023-03-28T21:42:03
null
NONE
null
null
null
1. System information OS Platform and Distribution (e.g., Linux Ubuntu 18.04): TensorFlow Source Code 2.9 2. Code When following /home/ts/tensorflow_src/tensorflow/lite/experimental/acceleration/compatibility/README.md to change delegate compatibility database, When convertting from json to flatbuffer `flatc -b database.fbs -- gpu_compatibility.json`, it gave that Usage: flatc [-b|--binary, -c|--cpp, -n|--csharp, -d|--dart, -g|--go, -j|--java, -t|--json, --jsonschema, --kotlin, --lobster, -l|--lua, --nim, --php, --proto, -p|--python, -r|--rust, --swift, -T|--ts, -o, -I, -M, --version, -h|--help, --strict-json, --allow-non-utf8, --natural-utf8, --defaults-json, --unknown-json, --no-prefix, --scoped-enums, --no-emit-min-max-enum-values, --swift-implementation-only, --gen-includes, --no-includes, --gen-mutable, --gen-onefile, --gen-name-strings, --gen-object-api, --gen-compare, --gen-nullable, --java-package-prefix, --java-checkerframework, --gen-generated, --gen-jvmstatic, --gen-all, --gen-json-emit, --cpp-include, --cpp-ptr-type, --cpp-str-type, --cpp-str-flex-ctor, --cpp-field-case-style, --cpp-std, --cpp-static-reflection, --object-prefix, --object-suffix, --go-namespace, --go-import, --go-module-name, --raw-binary, --size-prefixed, --proto-namespace-suffix, --oneof-union, --keep-proto-id, --proto-id-gap, --grpc, --schema, --bfbs-filenames, --bfbs-comments, --bfbs-builtins, --bfbs-gen-embed, --conform, --conform-includes, --filename-suffix, --filename-ext, --include-prefix, --keep-prefix, --reflect-types, --reflect-names, --rust-serialize, --rust-module-root-file, --root-type, --require-explicit-ids, --force-defaults, --force-empty, --force-empty-vectors, --flexbuffers, --no-warnings, --warnings-as-errors, --cs-global-alias, --cs-gen-json-serializer, --json-nested-bytes, --ts-flat-files, --ts-entry-points, --annotate-sparse-vectors, --annotate, --no-leak-private-annotation]... FILE... [-- BINARY_FILE...] error: current schema has no file_identifier: cannot test if "gpu_compatibility.json" matches the schema, use --raw-binary to read this file anyway. 3. and then using `flatc -b database.fbs -- gpu_compatibility.json --raw-binary` to convert. 4. Found that convertted gpu_compatibility.bin size is 117K, but origin one is only 17K. 5. and then compile bazel build -c opt --config=android_arm64 //tensorflow/lite/java:tensorflowlite_gpu bazel build -c opt --config=android_arm64 //tensorflow/lite/java:libtensorflowlite_gpu_jni.so Using libtensorflowlite_gpu_jni.so in example image classification android app, and the app was crashed. Very thanks.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60079/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60079/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60078
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60078/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60078/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60078/events
https://github.com/tensorflow/tensorflow/issues/60078
1,636,730,343
I_kwDOArmXAs5hjoXn
60,078
tf.image.convert_image_dtype behaves incorrectly on Windows (but fine on MacOS)
{ "login": "petered", "id": 1148799, "node_id": "MDQ6VXNlcjExNDg3OTk=", "avatar_url": "https://avatars.githubusercontent.com/u/1148799?v=4", "gravatar_id": "", "url": "https://api.github.com/users/petered", "html_url": "https://github.com/petered", "followers_url": "https://api.github.com/users/petered/followers", "following_url": "https://api.github.com/users/petered/following{/other_user}", "gists_url": "https://api.github.com/users/petered/gists{/gist_id}", "starred_url": "https://api.github.com/users/petered/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/petered/subscriptions", "organizations_url": "https://api.github.com/users/petered/orgs", "repos_url": "https://api.github.com/users/petered/repos", "events_url": "https://api.github.com/users/petered/events{/privacy}", "received_events_url": "https://api.github.com/users/petered/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 4032183365, "node_id": "LA_kwDOArmXAs7wVjxF", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9", "name": "TF 2.9", "color": "1CF842", "default": false, "description": "Issues found in the TF 2.9 release (or RCs)" } ]
closed
false
{ "login": "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
[ "@petered Thank you for reporting an issue!\r\nCould you please provide a complete standalone code to replicate this issue?\r\nThank you!", "Out of curiosity. Do you know if it changes anything with/without GPU? \r\n\r\n@sushreebarsa this should be enough for you to reproduce ...\r\n\r\n```python\r\nimport tensorflow as tf\r\nassert int(tf.image.convert_image_dtype(1., tf.uint32))==2**32-1\r\n```", "Thanks for looking into it @sushreebarsa and thanks @DEKHTIARJonathan for responding. I never tried with GPU. Other possibly relevant info - the Mac in question (which provides the correct, continuous version `convert_image_dtype`) is an M1 Mac. ", "@petered Could you please let us know the exact command you have used to install tensorflow here, it would help us to analyze the issue. Thank you!", "I believe it was just `pip install tensorflow` though I don't have the command-history available at the moment. Are you not able to reproduce it?", "@petered , @DEKHTIARJonathan \r\n\r\nThe behaviour is due to the device the operation being executed.Please check the results on Colab(Linux environment) in the attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/5171e789dd75342c0711d9f6405fc4dd/60078.ipynb) with CPU and GPU respectively. The issue is due to casting behaviour on CPU vs GPU with undefined/overflow values.\r\n\r\nPlease refer to the developer comment for similar issue [here](https://github.com/tensorflow/tensorflow/issues/58749#issuecomment-1467086661).\r\n\r\nOn MacOS by default the operation seems executing on GPU and on WIndows it is executing on CPU.Hence you are getting different results here.\r\n\r\nThankyou!", "Thanks @SuryanarayanaY for looking into that. But it seems MacOS is getting the correct answer on CPU, not just GPU. (I have an M1 2020 Macbook air). Running\r\n\r\n```\r\nimport tensorflow as tf\r\nprint(tf.__version__)\r\nwith tf.device('CPU'):\r\n print('With CPU:')\r\n print(tf.image.convert_image_dtype(1., tf.uint32))\r\n```\r\nPrints:\r\n```\r\n2.9.1\r\nWith CPU:\r\ntf.Tensor(4294967295, shape=(), dtype=uint32)\r\n```\r\n\r\n... Which is the \"correct\" answer.", "This is due to undefined behaviour with cast overflow values. Please refer to this [comment](https://github.com/tensorflow/tensorflow/issues/58749#issuecomment-1467086661) for more context. ", "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.", "Activity!\n\nOn Tue, Apr 25, 2023, 6:54 PM github-actions[bot] ***@***.***>\nwrote:\n\n> This issue is stale because it has been open for 7 days with no activity.\n> It will be closed if no further activity occurs. Thank you.\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/60078#issuecomment-1522648481>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/AAIYO7ZJ2FOZIQNVWZZLY5DXDB55VANCNFSM6AAAAAAWESRCCY>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n", "Hi @petered ,\r\n\r\nThe issue has been fixed in tf-nightly(2.14.0-dev20230503).Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/d168fa4aa643a64d269771ad75bfaa55/60078_r1.ipynb).\r\n\r\nBut there is one point to note here. Images that are represented using floating point values are expected to have values in the range [0,1).If you are using floats outside this range you need to set `saturate=True` in the API. \r\n\r\nSince floating point inputs to integer types may lead to over/underflow problems. Set saturate to True to avoid such problem in problematic conversions. If enabled, saturation will clip the output into the allowed range before performing a potentially dangerous cast. The same is documented now and you can refer the API Doc [source](https://www.tensorflow.org/api_docs/python/tf/image/convert_image_dtype) for more explanation.\r\n\r\nThank you!\r\n\r\n\r\n", "That's great, thank you for the fix.\n\nOn Wed, May 3, 2023, 10:52 PM SuryanarayanaY ***@***.***>\nwrote:\n\n> Hi @petered <https://github.com/petered> ,\n>\n> The issue has been fixed in tf-nightly(2.14.0-dev20230503).Please refer to\n> attached gist\n> <https://colab.research.google.com/gist/SuryanarayanaY/d168fa4aa643a64d269771ad75bfaa55/60078_r1.ipynb>\n> .\n>\n> But there is one point to note here. Images that are represented using\n> floating point values are expected to have values in the range [0,1).If you\n> are using floats outside this range you need to set saturate=True in the\n> API.\n>\n> Since floating point inputs to integer types may lead to over/underflow\n> problems. Set saturate to True to avoid such problem in problematic\n> conversions. If enabled, saturation will clip the output into the allowed\n> range before performing a potentially dangerous cast. The same is\n> documented now and you can refer the API Doc source\n> <https://www.tensorflow.org/api_docs/python/tf/image/convert_image_dtype>\n> for more explanation.\n>\n> Thank you!\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/60078#issuecomment-1534128123>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/AAIYO73POEXMX5TFVEZ5MJDXEM7YHANCNFSM6AAAAAAWESRCCY>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n", "Hi @petered ,\r\n\r\nCould you please spare some time to close the issue as it resolved already. 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/60078\">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/60078\">No</a>\n" ]
2023-03-23T02:02:36
2023-05-08T17:06:34
2023-05-08T17:06:32
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.9.1 ### Custom Code No ### OS Platform and Distribution Windows ### Mobile device _No response_ ### Python version 3.10 ### Current Behaviour? Compare the result of the line ```python tf.image.convert_image_dtype(1., tf.uint32) ``` Between MacOS and Windows. * On Mac it returns `tf.Tensor(4294967295, shape=(), dtype=uint32)` * On windows, `tf.Tensor(0, shape=(), dtype=uint32)`. It seems that Mac has the correct result - you expect the result to saturate to the max uint32 value of `2**32-1==4294967295` when the float-input is >=1 - but it actually jumps back down to zero. This caused a very sneaky bug in my code which caused the detection system to fail to detect in some cases. ### Standalone code to reproduce the issue ```python assert int(tf.image.convert_image_dtype(1., tf.uint32))==2**32-1 ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60078/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60078/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60077
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60077/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60077/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60077/events
https://github.com/tensorflow/tensorflow/pull/60077
1,636,724,659
PR_kwDOArmXAs5MsXCV
60,077
Lite: Fix CMake Build Issue for Metal Delegate
{ "login": "jongkweh", "id": 92666095, "node_id": "U_kgDOBYX47w", "avatar_url": "https://avatars.githubusercontent.com/u/92666095?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jongkweh", "html_url": "https://github.com/jongkweh", "followers_url": "https://api.github.com/users/jongkweh/followers", "following_url": "https://api.github.com/users/jongkweh/following{/other_user}", "gists_url": "https://api.github.com/users/jongkweh/gists{/gist_id}", "starred_url": "https://api.github.com/users/jongkweh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jongkweh/subscriptions", "organizations_url": "https://api.github.com/users/jongkweh/orgs", "repos_url": "https://api.github.com/users/jongkweh/repos", "events_url": "https://api.github.com/users/jongkweh/events{/privacy}", "received_events_url": "https://api.github.com/users/jongkweh/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60077/checks?check_run_id=12210034234) 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 @jongkweh Can you please sign CLA. Thank you!" ]
2023-03-23T01:55:01
2023-05-03T22:43:54
2023-05-03T22:43:54
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60077", "html_url": "https://github.com/tensorflow/tensorflow/pull/60077", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60077.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60077.patch", "merged_at": "2023-05-03T22:43:53" }
This is to support building tensorflow lite metal delegate with CMAKE. Currently, building with cmake for metal delegate seems to be broken.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60077/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60077/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60076
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60076/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60076/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60076/events
https://github.com/tensorflow/tensorflow/pull/60076
1,636,718,768
PR_kwDOArmXAs5MsV1D
60,076
Fixing bug in the annotation of variable ops.
{ "login": "drivanov", "id": 32910461, "node_id": "MDQ6VXNlcjMyOTEwNDYx", "avatar_url": "https://avatars.githubusercontent.com/u/32910461?v=4", "gravatar_id": "", "url": "https://api.github.com/users/drivanov", "html_url": "https://github.com/drivanov", "followers_url": "https://api.github.com/users/drivanov/followers", "following_url": "https://api.github.com/users/drivanov/following{/other_user}", "gists_url": "https://api.github.com/users/drivanov/gists{/gist_id}", "starred_url": "https://api.github.com/users/drivanov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/drivanov/subscriptions", "organizations_url": "https://api.github.com/users/drivanov/orgs", "repos_url": "https://api.github.com/users/drivanov/repos", "events_url": "https://api.github.com/users/drivanov/events{/privacy}", "received_events_url": "https://api.github.com/users/drivanov/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": 1754777628, "node_id": "MDU6TGFiZWwxNzU0Nzc3NjI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu:tensorrt", "name": "comp:gpu:tensorrt", "color": "ea98ba", "default": false, "description": "Issues specific to TensorRT" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Fixed issues found by PyLint", "Hi @pjannaty Can you please review this PR ? Thank you!", "Hi @pjannaty Can you please review this PR ? Thank you!", "Hi @pjannaty Can you please review this PR ? Thank you!", "Hi @pjannaty Can you please review this PR ? Thank you!", "Hi @drivanov, @pjannaty 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!" ]
2023-03-23T01:45:25
2023-11-02T08:34:31
2023-11-02T08:34:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60076", "html_url": "https://github.com/tensorflow/tensorflow/pull/60076", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60076.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60076.patch", "merged_at": null }
To facilitate the conversion of variable ops (used in the experimental `disable_graph_freezing` mode) the converter annotates the graph with the shape of the variable ops. This PR fixes the mapping between captured input names and variables so that the graph can be annotated correctly. the problem with the previously used mapping appeared when the list `graph.internal_captures` contains the non-resource type elements. The unit test is provided.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60076/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60076/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60075
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60075/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60075/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60075/events
https://github.com/tensorflow/tensorflow/pull/60075
1,636,713,074
PR_kwDOArmXAs5MsUq5
60,075
[NVIDIA TF] Add DTensorAllToAll and relayout implementation
{ "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 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": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }
[ { "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@bfontain @rainwoodman @pjannaty ", "FYI: @RuijiaoSun ", "Thanks for the PR. The changes looked good to me. \r\n\r\nI'll pull it internally to give the XLA part of the logic a try on TPUs.", "Good news! The tests for the XLA code path passed on our V3 TPU machines. \r\n" ]
2023-03-23T01:36:02
2023-04-05T23:08:02
2023-04-05T23:08:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60075", "html_url": "https://github.com/tensorflow/tensorflow/pull/60075", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60075.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60075.patch", "merged_at": "2023-04-05T23:08:02" }
This PR adds a new high-level op, `DTensorAllToAll` along with lowering to `CollectiveAllToAllV2`. To start, I've implemented a relayout using this new all-to-all for certain cases only. There should be many more applications for all-to-all that we can implement in the future. ## Supported relayout cases I've added support for the cases where one axis is becoming sharded to a certain mesh dimension while another axis is becoming unsharded from that mesh dimension. For example, `[x,unsharded] -> [unsharded, x]` or `[unsharded, y, x] -> [x, y, unsharded]`. You can look at the unit tests in `spmd_test.py` for more (non-exhaustive) examples. Before this PR, these relayouts would be implemented using all-gather to fully replicate the tensor, followed by slice. With all-to-all, the communication overhead is reduced since only the minimal slices of data that need to be moved are exchanged across the devices. ## Summary of changes * DTensorAllToAll op * DTensorAllToAllLowering pass which can lower to `CollectiveAllToAllV2` for cpu and gpu, or XLA AllToAll for TPU. **I did not test the TPU path at all.** * Use DTensorAllToAll for certain relayouts * MLIR test * Python unit tests
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60075/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60075/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60074
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60074/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60074/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60074/events
https://github.com/tensorflow/tensorflow/issues/60074
1,636,577,370
I_kwDOArmXAs5hjDBa
60,074
`pip install tensorflow-gpu` gives `setuptools.extern.packaging.requirements.InvalidRequirement`
{ "login": "SamuelMarks", "id": 807580, "node_id": "MDQ6VXNlcjgwNzU4MA==", "avatar_url": "https://avatars.githubusercontent.com/u/807580?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SamuelMarks", "html_url": "https://github.com/SamuelMarks", "followers_url": "https://api.github.com/users/SamuelMarks/followers", "following_url": "https://api.github.com/users/SamuelMarks/following{/other_user}", "gists_url": "https://api.github.com/users/SamuelMarks/gists{/gist_id}", "starred_url": "https://api.github.com/users/SamuelMarks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SamuelMarks/subscriptions", "organizations_url": "https://api.github.com/users/SamuelMarks/orgs", "repos_url": "https://api.github.com/users/SamuelMarks/repos", "events_url": "https://api.github.com/users/SamuelMarks/events{/privacy}", "received_events_url": "https://api.github.com/users/SamuelMarks/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": 5206407904, "node_id": "LA_kwDOArmXAs8AAAABNlN64A", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12", "name": "TF 2.12", "color": "c5def5", "default": false, "description": "For issues related to Tensorflow 2.12" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@SamuelMarks,\r\nFrom tensorflow v2.12, removed redundant packages **tensorflow-gpu and tf-nightly-gpu**. These packages were removed and replaced with packages that direct users to switch to **tensorflow or tf-nightly respectively**. \r\n\r\nPlease take a look at the official release doc for the reference.\r\nhttps://github.com/tensorflow/tensorflow/releases\r\n\r\nSince TensorFlow 2.1, the only difference between these two sets of packages was their names, so there is no loss of functionality or GPU support. See https://pypi.org/project/tensorflow-gpu for more details.\r\nhttps://pypi.org/project/tensorflow-gpu/\r\n\r\n`Tensorflow-gpu` has been removed. Please install tensorflow instead. The tensorflow package supports GPU accelerated operations via Nvidia CUDA. Thank you!", "Ah, ok.\r\n\r\nJust to confirm, TensorFlow doesn't support my Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]?\r\n\r\n(I might need to look closer into ROCm)", "@SamuelMarks,\r\nThe **!pip install tensorflow-gpu and tf-nightly-gpu** were removed from tensorflow v2.12. We can directly use **pip install tensorflow** for the gpu.\r\nhttps://pypi.org/project/tensorflow-gpu/\r\n 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/60074\">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/60074\">No</a>\n" ]
2023-03-22T22:23:50
2023-04-12T01:53:35
2023-04-12T01:53:32
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version 2.12.0 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.10 ### Mobile device _No response_ ### Python version Python 3.10.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? My GPU [AMD Ryzen™ 9 6900HX with Radeon™ Graphics × 16] wasn't detected on the regular `pip install tensorflow`, StackOverflow told others to `pip install tensorflow-gpu` which gave me: ```shell $ pip install tensorflow-gpu Collecting tensorflow-gpu Using cached tensorflow-gpu-2.12.0.tar.gz (2.6 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [39 lines of output] Traceback (most recent call last): File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py", line 35, in __init__ parsed = parse_requirement(requirement_string) File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/_parser.py", line 64, in parse_requirement return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES)) File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/_parser.py", line 82, in _parse_requirement url, specifier, marker = _parse_requirement_details(tokenizer) File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/_parser.py", line 126, in _parse_requirement_details marker = _parse_requirement_marker( File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/_parser.py", line 147, in _parse_requirement_marker tokenizer.raise_syntax_error( File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/_tokenizer.py", line 163, in raise_syntax_error raise ParserSyntaxError( setuptools.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier) python_version>"3.7" ^ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-1uf6oamu/tensorflow-gpu_f068f7e6c62d42d8b5619a7789641e46/setup.py", line 40, in <module> setuptools.setup() File "tfenv3/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup _install_setup_requires(attrs) File "tfenv3/lib/python3.10/site-packages/setuptools/__init__.py", line 78, in _install_setup_requires dist.parse_config_files(ignore_option_errors=True) File "tfenv3/lib/python3.10/site-packages/setuptools/dist.py", line 887, in parse_config_files self._finalize_requires() File "tfenv3/lib/python3.10/site-packages/setuptools/dist.py", line 594, in _finalize_requires self._move_install_requirements_markers() File "tfenv3/lib/python3.10/site-packages/setuptools/dist.py", line 634, in _move_install_requirements_markers inst_reqs = list(_reqs.parse(spec_inst_reqs)) File "tfenv3/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py", line 37, in __init__ raise InvalidRequirement(str(e)) from e setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier) python_version>"3.7" ^ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` FYI: Running versions setuptools-67.6.0 wheel-0.40.0 pip-23.0.1 ### Standalone code to reproduce the issue ```shell N/A ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60074/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60074/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60073
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60073/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60073/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60073/events
https://github.com/tensorflow/tensorflow/pull/60073
1,636,512,947
PR_kwDOArmXAs5MrqHv
60,073
Remove tags from end-to-end fuzzer
{ "login": "DavidKorczynski", "id": 657617, "node_id": "MDQ6VXNlcjY1NzYxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/657617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidKorczynski", "html_url": "https://github.com/DavidKorczynski", "followers_url": "https://api.github.com/users/DavidKorczynski/followers", "following_url": "https://api.github.com/users/DavidKorczynski/following{/other_user}", "gists_url": "https://api.github.com/users/DavidKorczynski/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidKorczynski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidKorczynski/subscriptions", "organizations_url": "https://api.github.com/users/DavidKorczynski/orgs", "repos_url": "https://api.github.com/users/DavidKorczynski/repos", "events_url": "https://api.github.com/users/DavidKorczynski/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidKorczynski/received_events", "type": "User", "site_admin": false }
[ { "id": 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
[ "CC @fcoUnda @learning-to-play ", "Closing this -- it's not needed." ]
2023-03-22T21:20:54
2023-03-22T22:39:03
2023-03-22T22:39:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60073", "html_url": "https://github.com/tensorflow/tensorflow/pull/60073", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60073.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60073.patch", "merged_at": null }
The matching of tags is a bit of a blocker. Leaving the tag list empty will allow the status check to pass faster for the fuzzer.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60073/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60073/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60072
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60072/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60072/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60072/events
https://github.com/tensorflow/tensorflow/issues/60072
1,636,494,003
I_kwDOArmXAs5hiuqz
60,072
TFLITE mobilenetv2 conversion from tf leads to poor accuracy on imagenet evaluation tool
{ "login": "suyash-narain", "id": 78979784, "node_id": "MDQ6VXNlcjc4OTc5Nzg0", "avatar_url": "https://avatars.githubusercontent.com/u/78979784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suyash-narain", "html_url": "https://github.com/suyash-narain", "followers_url": "https://api.github.com/users/suyash-narain/followers", "following_url": "https://api.github.com/users/suyash-narain/following{/other_user}", "gists_url": "https://api.github.com/users/suyash-narain/gists{/gist_id}", "starred_url": "https://api.github.com/users/suyash-narain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suyash-narain/subscriptions", "organizations_url": "https://api.github.com/users/suyash-narain/orgs", "repos_url": "https://api.github.com/users/suyash-narain/repos", "events_url": "https://api.github.com/users/suyash-narain/events{/privacy}", "received_events_url": "https://api.github.com/users/suyash-narain/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 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": "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
[ "@suyash-narain \r\nCould you please provide detailed steps of the tflite imagenet evaluation tool to replicate the issue reported here ?\r\n\r\nThank you!", "> @suyash-narain Could you please provide detailed steps of the tflite imagenet evaluation tool to replicate the issue reported here ?\r\n> \r\n> Thank you!\r\n\r\n@tiruk007 Please find the detailed steps I exercised towards building the provided tflite imagenet evaluation tool:\r\n\r\n- clone tensorflow from github:\r\n\r\n> $ git clone \"https://github.com/tensorflow/tensorflow.git\"\r\n> $ cd tensorflow\r\n\r\n- Download ILSVRC validation dataset consisting of 50k images from http://image-net.org/request: ILSVRC2012_img_val https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar\r\n- Download ILSVRC 2012 dev kit: ILSVRC2012_devkit_t12 (tasks1&2) https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz\r\n- Generate Ground Truth Labels:\r\n\r\n> python /tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/generate_validation_labels.py \\\r\n> --ilsvrc_devkit_dir=path/to/ILSVRC2012_devkit_t12 \\\r\n> --validation_labels_output=output_labels.txt\r\n\r\n- Download imagenet labels from https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt\r\n\r\n- Build and run on Ubuntu desktop:\r\n\r\n> bazel run -c opt \\\r\n> -- \\\r\n> //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval \\\r\n> --model_file=mbnv2_model_test1.tflite \\\r\n> --ground_truth_images_path=path/to/ILSVRC2012_img_val \\\r\n> --ground_truth_labels=path/to/output_labels.txt \\\r\n> --model_output_labels=path/to/ImageNetLabels.txt \\\r\n> --output_file_path=accuracy_output.txt \\\r\n> --num_images=0 # Run on all images.\r\n> \r\n\r\n\r\nWhen i run this on a tflite model sourced from tfhub: https://storage.googleapis.com/download.tensorflow.org/models/tflite_11_05_08/mobilenet_v2_1.0_224.tgz\r\ni get the below results:\r\n\r\n> INFO: Num evaluation runs: 50000\r\n> INFO: Preprocessing latency: avg=3790.96(us), std_dev=0(us)\r\n> INFO: Inference latency: avg=6675.06(us), std_dev=206(us)\r\n> INFO: Top-1 Accuracy: 0.71922\r\n> INFO: Top-2 Accuracy: 0.82604\r\n> INFO: Top-3 Accuracy: 0.86718\r\n> INFO: Top-4 Accuracy: 0.8892\r\n> INFO: Top-5 Accuracy: 0.90452\r\n> INFO: Top-6 Accuracy: 0.9152\r\n> INFO: Top-7 Accuracy: 0.9234\r\n> INFO: Top-8 Accuracy: 0.9298\r\n> INFO: Top-9 Accuracy: 0.93518\r\n> INFO: Top-10 Accuracy: 0.9394\r\n\r\nTop1 ~72% which is very close to actual mobilenetv2 accuracy on imagenet.\r\n\r\nBut when i run the same tool on the converted tflite model which I had mentioned in issue, i get accuracy of 43% \r\n", "Is it because of the way image is being processed before bring provided as input to the model?\r\nI convert the model in the similar way as the mnist example provided here:\r\nhttps://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/performance/post_training_integer_quant.ipynb\r\n\r\ndo i need to further preprocess the images?", "Hi @tiruk007 @pjpratik \r\nI changed my representative dataset, and used images from imagenet dataset for my representative dataset to convert model to int8 and uint8 format. \r\nOn checking the accuracy against the imagenet evaluation tool, Igot the following accuracies:\r\n\r\n**accuracy for INT8 tflite:**\r\n\r\n> INFO: Num evaluation runs: 50000\r\n> INFO: Preprocessing latency: avg=3807.62(us), std_dev=0(us)\r\n> INFO: Inference latency: avg=5723.94(us), std_dev=96(us)\r\n> INFO: Top-1 Accuracy: 0.63438\r\n> INFO: Top-2 Accuracy: 0.7515\r\n> INFO: Top-3 Accuracy: 0.80124\r\n> INFO: Top-4 Accuracy: 0.83126\r\n> INFO: Top-5 Accuracy: 0.8516\r\n> INFO: Top-6 Accuracy: 0.86576\r\n> INFO: Top-7 Accuracy: 0.87676\r\n> INFO: Top-8 Accuracy: 0.88508\r\n> INFO: Top-9 Accuracy: 0.89138\r\n> INFO: Top-10 Accuracy: 0.89808\r\n> \r\n\r\nBut interesting thing to note is if i don't convert this model to int8 tflite and let it remain as default float32 tflite model, my accuracies are way lower:\r\n\r\n**accuracy for fp32 tflite:** \r\n> \r\n> INFO: Num evaluation runs: 50000\r\n> INFO: Preprocessing latency: avg=3837.7(us), std_dev=0(us)\r\n> INFO: Inference latency: avg=16046.3(us), std_dev=486(us)\r\n> INFO: Top-1 Accuracy: 0.43192\r\n> INFO: Top-2 Accuracy: 0.5436\r\n> INFO: Top-3 Accuracy: 0.60002\r\n> INFO: Top-4 Accuracy: 0.6364\r\n> INFO: Top-5 Accuracy: 0.66124\r\n> INFO: Top-6 Accuracy: 0.68194\r\n> INFO: Top-7 Accuracy: 0.69918\r\n> INFO: Top-8 Accuracy: 0.71268\r\n> INFO: Top-9 Accuracy: 0.72398\r\n> INFO: Top-10 Accuracy: 0.73382\r\n\r\nthis is odd. shouldn't top1 accuracies of float32 be higher than INT8? mobilenetv2 fp32 should give me ~71% whereas int8 should give me about ~63% according to data mentioned here: https://www.tensorflow.org/lite/performance/model_optimization#quantization\r\n\r\n", "Hi @suyash-narain \r\n\r\nThe input images for the tensorflow hub model are expected to have color values in the range [0,1], following the [common image input](https://www.tensorflow.org/hub/common_signatures/images#input) conventions as per the [documentation](https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5).\r\n\r\nAlso, we might have to apply `softmax` activation as the model returns raw logits as per the this [colab](https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/image_classification.ipynb). Please check this [example](https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/image_classification.ipynb) on image classification using tensorflow hub.\r\n\r\nThanks.", "Hi @pjpratik \r\n\r\nthank you for your reply. So you mean to say I cannot use the imagenet classification evaluation tool for tflite with models sourced from tfhub since they require input image color values in range [0,1] but the imagenet tool fails with that?\r\nthe output from the imagenet tool seems like softmax activation is already applied as i get top classifications between [0-1]\r\n\r\nhow can i use the tflite imagenet classification tool against this mobilenetv2 modle sourced from tfhub to get correct accuracies? \r\n\r\nif i source the model from keras application layers as below:\r\n\r\n> model = tf.keras.applications.mobilenet_v2.MobileNetV2(\r\n> input_shape=None,\r\n> alpha=1.0,\r\n> include_top=True,\r\n> weights='imagenet',\r\n> input_tensor=None,\r\n> pooling='avg',\r\n> classes=1000,\r\n> classifier_activation='softmax'\r\n> )\r\n> converter = tf.lite.TFLiteConverter.from_keras_model(model)\r\n> tflite_file = \"mobilenet_v2_keras_model.tflite\"\r\n> with open(tflite_file, 'wb') as f:\r\n> f.write(converter.convert())\r\n\r\nin this case i get perfect accuracies (~71.9%) as mentioned in official documentation) while running against imagenet evaluation tool provided by tflite. \r\nSo what different thing i need to do against models sourced from tfhub to get similar accuracies as i am getting with keras application layer model?\r\n\r\nthanks", "Hi @suyash-narain \r\n\r\nI have observed that the default normalization the tool does is for the output range `[-1,1]`. \r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/0c7968df89e4e3edb7c48d6b0f50e3a9a477f81a/tensorflow/lite/tools/evaluation/stages/image_preprocessing_stage.h#L168\r\n\r\nThe Mobilenetv2 from keras application applies the `tf` normalization which normalizes to the output range `[-1,1]`. Please check the source code below\r\n\r\nhttps://github.com/keras-team/keras-applications/blob/06fbeb0f16e1304f239b2296578d1c50b15a983a/keras_applications/mobilenet.py#L84\r\n\r\nhttps://github.com/keras-team/keras-applications/blob/06fbeb0f16e1304f239b2296578d1c50b15a983a/keras_applications/imagenet_utils.py#L42\r\n\r\nFor the tool to normalize the data in `[0,1]`, replace \r\n\r\n `AddNormalizationStep(127.5, 1.0 / 127.5);` with\r\n\r\n`AddNormalizationStep(0.0, 1.0 / 255.0);` and run the tool. I have tested with fp32 model converted from tf hub with code below\r\n```\r\nm = tf.keras.Sequential([hub.KerasLayer(\"https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5\")])\r\n\r\nm.build([None, 224, 224, 3])# Batch input shape.\r\n\r\n\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(m)\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\n\r\ntflite_file = \"mbnv2_model_fp32_test1.tflite\"\r\nwith open(tflite_file, 'wb') as f:\r\n f.write(converter.convert())\r\n``` \r\nand obtained the following results.\r\n\r\n<img width=\"416\" alt=\"Screenshot 2023-03-30 at 4 57 41 PM\" src=\"https://user-images.githubusercontent.com/118897289/228825703-aab2094d-1e47-4995-8712-c8fde0d29fb5.png\">\r\n\r\nThanks.", "thanks @pjpratik \r\nthis worked for me. \r\n\r\nIs there a similar evaluation tool for pretrained tf models as well?\r\nI am trying to use the same pretrained tf model on the same dataset https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar \r\nand ground truth labels generated using \r\n\r\n> python /tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/generate_validation_labels.py\r\n> --ilsvrc_devkit_dir=path/to/ILSVRC2012_devkit_t12\r\n> --validation_labels_output=output_labels.txt\r\n\r\nHow do i preprocess such a dataset wherein i have 50000 images in a test directory and a labels.txt file containing ground truth labels for these 50000 images and use the same against the pretrained mobilenet_v2 saved_model downloaded from: https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5\r\n\r\nthanks", "Hi @suyash-narain, glad it worked.\r\n\r\nI see that a ticket has already been opened #60181 for that issue and it is being tracked there. \r\n\r\nFeel free to close this issue if it is resolved.\r\n\r\nThanks.", "Hi @pjpratik \r\n\r\nthanks for your reply. I had one more question. What are the official accuracies for mobilenet_v2 and quantized mobilenet_v2 on imagenet?\r\n\r\nfor fp32, I know it should be 72.9%\r\n\r\nfor int8/uint8 it is 63.7% (post training quantization) or 70.9% (quantization aware training) as mentioned here https://www.tensorflow.org/lite/performance/model_optimization#quantization\r\n\r\nbut when I evaluate the accuracy on quantized mobilenet_v2 model sourced from https://tfhub.dev/tensorflow/lite-model/mobilenet_v2_1.0_224_quantized/1/default/, I get accuracy of 71.5% which is higher than both the mentioned methods.\r\n\r\nWhen I quantize model sourced from https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5 and perform post training quantization on the same using a representative dataset consisting of 100 images from imagenet dataset, I still get a 71.30% accuracy for int8 and 71.25% accuracy for uint8 quantized tflite model when in reality i should be getting 63% right?\r\n\r\nBut when I perform post training quantization on model sourced from keras application layers,\r\n\r\n> model = tf.keras.applications.mobilenet_v2.MobileNetV2(\r\n> input_shape=None,\r\n> alpha=1.0,\r\n> include_top=True,\r\n> weights='imagenet',\r\n> input_tensor=None,\r\n> pooling='avg',\r\n> classes=1000,\r\n> classifier_activation='softmax'\r\n> )\r\n\r\nin this case, I get an accuracy of 63.43% on int8 and 63.69% on uint8 quantized models while running the imagenet evaluation tool. \r\n\r\nwhich models were the original accuracies as mentioned in documentation obtained upon? \r\n\r\nthanks", "Hi @suyash-narain \r\n\r\nI think the reported accuracies are using the test set of 100,000 images whereas here it is being tested on val data. Incase of quantized tflite models, the models might have been trained using QAT and when tested on val data might report higher accuracies as. Inorder to reproduce the reported accuracies, we might need to replicate the experiments with the same test data the models are tested on. \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.", "> \r\n\r\nthanks @pjpratik \r\nI will close this issue", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60072\">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/60072\">No</a>\n" ]
2023-03-22T21:04:00
2023-04-14T01:54:16
2023-04-14T01:54:13
NONE
null
null
null
### System information - **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 20.04 - **TensorFlow installed from (source or binary)**: Binary - **TensorFlow version (use command below)**: 2.11 - **Python version**: 3.9 ### Describe the problem Mobilenetv2 converted from TF to TFLITE using default MLIR converter leads to poor accuracy on tflite imagenet evaluation tool. On imagenet evaluation tool I get the below output: > INFO: Num evaluation runs: 50000 > INFO: Preprocessing latency: avg=3837.7(us), std_dev=0(us) > INFO: Inference latency: avg=16046.3(us), std_dev=486(us) > INFO: Top-1 Accuracy: 0.43192 > INFO: Top-2 Accuracy: 0.5436 > INFO: Top-3 Accuracy: 0.60002 > INFO: Top-4 Accuracy: 0.6364 > INFO: Top-5 Accuracy: 0.66124 > INFO: Top-6 Accuracy: 0.68194 > INFO: Top-7 Accuracy: 0.69918 > INFO: Top-8 Accuracy: 0.71268 > INFO: Top-9 Accuracy: 0.72398 > INFO: Top-10 Accuracy: 0.73382 I used imagenet ILSVRC2012_img_val dataset with mobilenet labels downloaded from https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt. I ran the evaluation on all 50000 images. Top1 accuracy came to 43% whereas official mobilenetv2 top1 accuracy is ~72%. I did not quantize the model and used the default float32. what can be the cause of this delta in accuracy? If i remove `converter.optimizations = [tf.lite.Optimize.DEFAULT]` from script, i still get 43% Top1 accuracy on imagenet. Shouldn't tflite models have similar accuracy to tf models? When i quantize the model to use uint8/int8, i get even worse accuracy to the tune of 0.4%. below is the output log for a uint8 model converted from mobilenetv2: > INFO: Num evaluation runs: 50000 > INFO: Preprocessing latency: avg=3801.64(us), std_dev=0(us) > INFO: Inference latency: avg=5958.53(us), std_dev=166(us) > INFO: Top-1 Accuracy: 0.0044 > INFO: Top-2 Accuracy: 0.00758 > INFO: Top-3 Accuracy: 0.01062 > INFO: Top-4 Accuracy: 0.01338 > INFO: Top-5 Accuracy: 0.01634 > INFO: Top-6 Accuracy: 0.0191 > INFO: Top-7 Accuracy: 0.02216 > INFO: Top-8 Accuracy: 0.02482 > INFO: Top-9 Accuracy: 0.02758 > INFO: Top-10 Accuracy: 0.03016 ### Source code / logs Below code is used for conversion: 1. fp32: > import tensorflow as tf > import tensorflow_hub as hub > > m = tf.keras.Sequential([hub.KerasLayer("https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5")]) > m.build([None, 224, 224, 3])# Batch input shape. > > m.save('model') > > converter = tf.lite.TFLiteConverter.from_saved_model("/content/model") > converter.target_spec.supported_ops = [ > tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops. > tf.lite.OpsSet.SELECT_TF_OPS, # enable TensorFlow ops. > ] > converter.optimizations = [tf.lite.Optimize.DEFAULT] > > tflite_file = "mbnv2_model_test1.tflite" > with open(tflite_file, 'wb') as f: > f.write(converter.convert()) generated model is attached in zip file. [mbnv2_model_test1.zip](https://github.com/tensorflow/tensorflow/files/11044725/mbnv2_model_test1.zip) 2. uint8: > import tensorflow as tf > import tensorflow_hub as hub > > m = tf.keras.Sequential([hub.KerasLayer("https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/5")]) > m.build([None, 224, 224, 3])# Batch input shape. > > m.save('model') > > import numpy as np > def representative_dataset(): > for _ in range(100): > data = tf.random.normal([1,224,224,3]) > yield [(tf.cast(data, tf.float32) / 127.5) - 127.5] > > converter = tf.lite.TFLiteConverter.from_saved_model("/content/model") > converter.target_spec.supported_ops = [ tf.lite.OpsSet.TFLITE_BUILTINS_INT8] # enable TensorFlow int8ops. > converter.optimizations = [tf.lite.Optimize.DEFAULT] > converter.representative_dataset = representative_dataset > converter.inference_input_type = tf.uint8 # or tf.int8 > converter.inference_output_type = tf.uint8 # or tf.int8 > > tflite_file = "mbnv2_model_uint8_test1.tflite" > with open(tflite_file, 'wb') as f: > f.write(converter.convert()) generated model is attached [mbnv2_model_uint8_test1.zip](https://github.com/tensorflow/tensorflow/files/11044895/mbnv2_model_uint8_test1.zip)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60072/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60072/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60071
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60071/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60071/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60071/events
https://github.com/tensorflow/tensorflow/issues/60071
1,636,489,525
I_kwDOArmXAs5hitk1
60,071
tf.experimental.numpy.fabs produces the wrong second derivative in combinations of ForwardAccumulator and tf.GradientTape
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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 @trickiwoo, apologies for the delay.\r\nI was able to replicate the issue in Colab using TF v2.11. Please find the gist [here](https://colab.sandbox.google.com/gist/synandi/411295c65f63287aa3070ca3944eb389/60071.ipynb). It seems like we have to dig deep into the issue, we'll update here soon. Thank you! ", "`None` is a placeholder for uniformly zero.", "@trickiwoo , As per the above comment,` tf.experimental.numpy.fabs` is working as intended. Please fell free to close the issue. 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.", "Thanks! I am closing the issue as it is intended behavior.", "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/60071\">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/60071\">No</a>\n" ]
2023-03-22T20:59:57
2023-06-30T17:53:49
2023-06-30T17:53:47
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell tf.experimental.numpy.fabs produce the wrong second derivative in combinations of ForwardAccumulator and tf.GradientTape. `fabs` is twice differentiable at `x` and it doesn't make sense to output None as the second derivate. The tf.GradientTape alone works well, but combining ForwardAccumulator and tf.GradientTape is memory-efficient for large tensors. It would be appreciated if fabs could support this combination. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import tensorflow.experimental.numpy as np x = tf.Variable([1.0, 2.0]) with tf.autodiff.ForwardAccumulator(x, tf.constant([1., 0.])) as acc: with tf.GradientTape() as tape: y = np.fabs(x) backward = tape.gradient(y, x) forward = acc.jvp(backward) print(backward) print(forward) with tf.GradientTape() as t2: with tf.GradientTape() as t1: y = np.fabs(x) dy_dx = t1.gradient(y, x) d2y_dx2 = t2.gradient(dy_dx, x) print(dy_dx) print(d2y_dx2) ``` ### Relevant log output ```shell tf.Tensor([1. 1.], shape=(2,), dtype=float32) None tf.Tensor([1. 1.], shape=(2,), dtype=float32) tf.Tensor([0. 0.], shape=(2,), dtype=float32) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60071/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60071/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60070
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60070/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60070/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60070/events
https://github.com/tensorflow/tensorflow/pull/60070
1,636,441,546
PR_kwDOArmXAs5MrawD
60,070
Delete file that got added by mistake
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Do not merge yet" ]
2023-03-22T20:19:28
2023-03-23T15:53:29
2023-03-23T15:53:25
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60070", "html_url": "https://github.com/tensorflow/tensorflow/pull/60070", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60070.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60070.patch", "merged_at": "2023-03-23T15:53:25" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60070/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60070/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60069
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60069/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60069/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60069/events
https://github.com/tensorflow/tensorflow/issues/60069
1,636,332,267
I_kwDOArmXAs5hiHLr
60,069
Issue with tensorflow/Cleverhans
{ "login": "fabixs", "id": 124535561, "node_id": "U_kgDOB2xDCQ", "avatar_url": "https://avatars.githubusercontent.com/u/124535561?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fabixs", "html_url": "https://github.com/fabixs", "followers_url": "https://api.github.com/users/fabixs/followers", "following_url": "https://api.github.com/users/fabixs/following{/other_user}", "gists_url": "https://api.github.com/users/fabixs/gists{/gist_id}", "starred_url": "https://api.github.com/users/fabixs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabixs/subscriptions", "organizations_url": "https://api.github.com/users/fabixs/orgs", "repos_url": "https://api.github.com/users/fabixs/repos", "events_url": "https://api.github.com/users/fabixs/events{/privacy}", "received_events_url": "https://api.github.com/users/fabixs/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1188421838, "node_id": "MDU6TGFiZWwxMTg4NDIxODM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows", "name": "subtype:windows", "color": "b619ea", "default": false, "description": "Windows Build/Installation Issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "This error typically occurs when using an older version of TensorFlow with code that was written for a newer version. In this case, it looks like the code is trying to access the **GraphKeys** attribute of the **tensorflow** module, which was removed in **TensorFlow 2.0**.\r\n\r\nTo fix this error, you can try replacing **tf.GraphKey**s with **tf.compat.v1.GraphKeys** throughout your code. This should allow it to run with TensorFlow 2.0 and newer versions.\r\n\r\nand there can be also other issue like It's possible that the CleverHans library is not installed on your system or it is not installed correctly. You can try reinstalling it using the following command:\r\n```\r\n!pip install cleverhans==3.1.0\r\n```", "Hello, thanks for replying. I saw a description like that on internet, I\ntried it but it seems like it doesn't work on google colab. Maybe i need to\ntry more deeply again.\n Thanks anyway.\n\nOn Sat, Mar 25, 2023, 9:29 PM Durgesh Patel ***@***.***>\nwrote:\n\n> This error typically occurs when using an older version of TensorFlow with\n> code that was written for a newer version. In this case, it looks like the\n> code is trying to access the *GraphKeys* attribute of the *tensorflow*\n> module, which was removed in *TensorFlow 2.0*.\n>\n> To fix this error, you can try replacing *tf.GraphKey*s with\n> *tf.compat.v1.GraphKeys* throughout your code. This should allow it to\n> run with TensorFlow 2.0 and newer versions.\n>\n> and there can be also other issue like It's possible that the CleverHans\n> library is not installed on your system or it is not installed correctly.\n> You can try reinstalling it using the following command:\n>\n> !pip install cleverhans==3.1.0\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/60069#issuecomment-1483915384>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A5WEGCKITXYOQOMH3CK7UXDW55ISZANCNFSM6AAAAAAWEHG2AM>\n> .\n> You are receiving this because you authored the thread.Message ID:\n> ***@***.***>\n>\n", "@fabixs Deprecated apis are causing this issue in your implementation. Could you try to use the newer apis by replacing tf.GraphKeys with tf.compat.v1.GraphKeys in your code. Please install the Cleverhans again and rerun the kernel which will install the libraries. Thank you!", " @sushreebarsa I appreciate your reply. But I don't have any line\ntf.GraphKeys in my code, that's why I'm pretty confused. Looks, this is the\nheader of the code right here:\ngoogle colab points out an error from line 4 to line 9 .\n1)import logging\n2)import numpy as np\n3)import tensorflow.compat.v1 as tf\ntf.disable_v2_behavior()\n\n4)from cleverhans.attacks import SaliencyMapMethod, FastGradientMethod\n5)from cleverhans.utils_tf import model_train , model_eval, batch_eval,\n model_argmax\n6)from cleverhans.attacks_tf import jacobian_graph\n7)from cleverhans.utils import other_classes\n8)from cleverhans.attacks import CarliniWagnerL2\n9)from cleverhans.utils_keras import KerasModelWrapper\n\n\n This error is :\n\nAttributeError: module 'tensorflow' has no attribute 'GraphKeys'\n\nNot only I installed Cleverhans3.1.0 but I also installed tensorflow\n2.11.0, keras 2.11.0, and all required packages\nAs I said before, I don't have any place in my code where I used\ntf.GraphKey.\nThis error is gonna drive me crazy, I have already tried several methods\nwithout getting a good solution.\nThanks in advance to anyone who can suggest me a better way to solve this\nproblem.\n\n\n\n\n\n\n\n\n\nOn Sat, Mar 25, 2023, 9:29 PM Durgesh Patel ***@***.***>\nwrote:\n\n> This error typically occurs when using an older version of TensorFlow with\n> code that was written for a newer version. In this case, it looks like the\n> code is trying to access the *GraphKeys* attribute of the *tensorflow*\n> module, which was removed in *TensorFlow 2.0*.\n>\n> To fix this error, you can try replacing *tf.GraphKey*s with\n> *tf.compat.v1.GraphKeys* throughout your code. This should allow it to\n> run with TensorFlow 2.0 and newer versions.\n>\n> and there can be also other issue like It's possible that the CleverHans\n> library is not installed on your system or it is not installed correctly.\n> You can try reinstalling it using the following command:\n>\n> !pip install cleverhans==3.1.0\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/60069#issuecomment-1483915384>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A5WEGCKITXYOQOMH3CK7UXDW55ISZANCNFSM6AAAAAAWEHG2AM>\n> .\n> You are receiving this because you authored the thread.Message ID:\n> ***@***.***>\n>\n", "@SuryanarayanaY I was able to replicate the issue on colab, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/a23b461c0c330971a08016f929926905/60069.ipynb) here. \r\nThank you!", "@fabixs ,\r\n\r\nIs that third party library `cleverhans` using TF 1. versions ? I am sorry to say we are not supporting TF1.x versions currently. Also this is related to third party library `cleverhans` which we are not the right team to address. If you can share a code snippet(2.X version) that can reproduce this error without any third party libraries we will have a look. \r\n\r\nThanks !\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60069\">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/60069\">No</a>\n" ]
2023-03-22T18:54:15
2023-05-04T01:52:44
2023-05-04T01:52:42
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.11.* ### Custom Code Yes ### OS Platform and Distribution windows 10 64b ### Mobile device Google colab ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory NVIDIA T4 Tensor Core GPU ### Current Behaviour? ```shell I try to run an adversarial machine learning program but I have an issue with Cleverhans library. When I'm trying to import the following line : from cleverhans.utils_tf import model_train , model_eval, batch_eval, model_argmax I'm using cleverhans 3.1.0 on google colab. ``` ### Standalone code to reproduce the issue ```shell AttributeError: module 'tensorflow' has no attribute 'GraphKeys' ``` ### Relevant log output ```shell import matplotlib . pyplot as plt import tensorflow.compat.v1 as tf from datetime import datetime, timedelta from sklearn.preprocessing import LabelEncoder , MinMaxScaler from keras.models import Sequential from keras.layers import Dense , Dropout #from tensorflow.keras.optimizers import Adam from keras . optimizers import RMSprop, Adam from tensorflow.python.platform import flags from cleverhans.utils_tf import model_train , model_eval, batch_eval, model_argmax AttributeError: module 'tensorflow' has no attribute 'GraphKeys' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60069/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60069/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60068
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60068/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60068/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60068/events
https://github.com/tensorflow/tensorflow/pull/60068
1,636,084,540
PR_kwDOArmXAs5MqOHR
60,068
Update CITATION.cff
{ "login": "Suyash0096", "id": 113278675, "node_id": "U_kgDOBsB-0w", "avatar_url": "https://avatars.githubusercontent.com/u/113278675?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Suyash0096", "html_url": "https://github.com/Suyash0096", "followers_url": "https://api.github.com/users/Suyash0096/followers", "following_url": "https://api.github.com/users/Suyash0096/following{/other_user}", "gists_url": "https://api.github.com/users/Suyash0096/gists{/gist_id}", "starred_url": "https://api.github.com/users/Suyash0096/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Suyash0096/subscriptions", "organizations_url": "https://api.github.com/users/Suyash0096/orgs", "repos_url": "https://api.github.com/users/Suyash0096/repos", "events_url": "https://api.github.com/users/Suyash0096/events{/privacy}", "received_events_url": "https://api.github.com/users/Suyash0096/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" }, { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60068/checks?check_run_id=12197353885) 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 @Suyash0096 Can you please sign CLA. Thank you!" ]
2023-03-22T16:06:46
2023-03-23T15:29:43
2023-03-23T15:29:35
NONE
spam
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60068", "html_url": "https://github.com/tensorflow/tensorflow/pull/60068", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60068.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60068.patch", "merged_at": null }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60068/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60068/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60067
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60067/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60067/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60067/events
https://github.com/tensorflow/tensorflow/issues/60067
1,635,951,195
I_kwDOArmXAs5hgqJb
60,067
Calling tf.reduce_mean() along the ragged dimension of a tf.RaggedTensor created using from_uniform_row_length returns a tensor with the wrong shape.
{ "login": "melissamullen", "id": 44929819, "node_id": "MDQ6VXNlcjQ0OTI5ODE5", "avatar_url": "https://avatars.githubusercontent.com/u/44929819?v=4", "gravatar_id": "", "url": "https://api.github.com/users/melissamullen", "html_url": "https://github.com/melissamullen", "followers_url": "https://api.github.com/users/melissamullen/followers", "following_url": "https://api.github.com/users/melissamullen/following{/other_user}", "gists_url": "https://api.github.com/users/melissamullen/gists{/gist_id}", "starred_url": "https://api.github.com/users/melissamullen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/melissamullen/subscriptions", "organizations_url": "https://api.github.com/users/melissamullen/orgs", "repos_url": "https://api.github.com/users/melissamullen/repos", "events_url": "https://api.github.com/users/melissamullen/events{/privacy}", "received_events_url": "https://api.github.com/users/melissamullen/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": "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
[ "@tilakrayal Do you mind if I take on this issue? Looks like a good beginner issue to me", "@melissamullen I am able to reproduce this from the master build. Let me see what's the right approach here", "@melissamullen,\r\nThank you for raising the issue. I tried to execute the given code and it was executed as mentioned. The **Uniform_row_length** method can be used to create RaggedTensors with multiple uniform outer dimensions. For example, a **RaggedTensor** with shape `[2, 2, None]` can be constructed with this method from a RaggedTensor values with shape `[4, None]`\r\n```\r\nvalues = tf.ragged.constant([[1, 2, 3], [4], [5, 6], [7, 8, 9, 10, 9], [7, 8, 9, 10, 11, 12]])\r\nprint(values.shape)\r\n\r\n\r\nrt1 = tf.RaggedTensor.from_uniform_row_length(values, 5)\r\nprint(rt1)\r\n\r\nprint(rt1.shape)\r\n\r\noutput:\r\n-------------\r\n\r\n(5, None)\r\n<tf.RaggedTensor [[[1, 2, 3], [4], [5, 6], [7, 8, 9, 10, 9], [7, 8, 9, 10, 11, 12]]]>\r\n(1, 5, None)\r\n```\r\n\r\n\r\n**tf.math.Reduce_mean** reduces `input_tensor` along the dimensions given in axis by computing the mean of elements across the dimensions in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimensions are retained with length 1.\r\n```\r\n#print(\"Averaging along ragged dimension (axis = 2)...\\n\")\r\n\r\n# Reduce mean along ragged axis\r\nprint(\"* Averaged Tensor: *\\n\")\r\navg_ragged_dim = tf.reduce_mean(rt1, axis=2)\r\nprint(f\"avg_ragged_dim = {avg_ragged_dim}\\n\")\r\nprint(f\"Shape of avg_ragged_dim: {avg_ragged_dim.shape}\\n\")\r\n\r\noutput:\r\n---------------\r\navg_ragged_dim = <tf.RaggedTensor [[2.0, 4.0, 5.5, 8.6, 9.5]]>\r\n\r\nShape of avg_ragged_dim: (1, None)\r\n```\r\nKindly find the gist of it here. [Gist1](https://colab.research.google.com/gist/tilakrayal/e67baf0e4eb5a5dbfa6d00082ed3f1ba/untitled1051.ipynb) [Gist2](https://colab.research.google.com/gist/tilakrayal/b9876f684d7c6d607333e1355c5cface/untitled1050.ipynb) Thank you!\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60067\">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/60067\">No</a>\n" ]
2023-03-22T15:03:16
2023-04-08T01:50:02
2023-04-08T01:49:59
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.13.0-dev20230322 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 22.04.1 LTS ### Mobile device _No response_ ### Python version 3.8.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.5 ### GPU model and memory _No response_ ### Current Behaviour? Calling tf.reduce_mean() along the ragged dimension of a tf.RaggedTensor created using from_uniform_row_length returns a tensor with the wrong shape. ```shell Steps to Recreate: 1. Create a tf.RaggedTensor using from_uniform_row_length() 2. Call tf.reduce_mean() along the ragged dimension 3. Check shape of output ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf values = [[[1, 2, 3], [4, 5]], [[6], [7, 8, 9]]] rt1 = tf.ragged.constant(values, dtype=tf.int32) print("\nTF Ragged Tensor Problem:\n------------------------\n") print("* Ragged Tensor 1 *\n") print(f"\nrt1 = {rt1}\n") print(f"Shape of rt1: {rt1.shape}\n") # TF Shape = (2, None, None) # Real Shape = (2, 2, ragged) # [ # [ # [1, 2, 3], # [4, 5] # ], # [ # [6], # [7, 8, 9] # ] # ] rt2 = tf.RaggedTensor.from_uniform_row_length(rt1, 2) print("* Ragged Tensor 2 *\n") print(f"rt2 = {rt2}\n") print(f"Shape of rt2: {rt2.shape}\n") # TF Shape = (1, 2, None, None) # Real Shape = (1, 2, 2, ragged) # [ # [ # [ # [1, 2, 3], # [4, 5] # ], # [ # [6], # [7, 8, 9] # ] # ] # ] print("Averaging along ragged dimension (axis = 3)...\n") # Reduce mean along ragged axis print("* Averaged Tensor: *\n") avg_ragged_dim = tf.reduce_mean(rt2, axis=3) print(f"avg_ragged_dim = {avg_ragged_dim}\n") print(f"Shape of avg_ragged_dim: {avg_ragged_dim.shape}\n") print("Notice the 2 is gone instead of the None.\n") # TF Shape = (1, None, None) --------> notice 2 is gone instead of None # Real Shape = (1, 2, 2) # [ # [ # [2.0, 4.5], # [6.0, 8.0] # ] # ] ``` ### Relevant log output ```shell TF Ragged Tensor Problem: ------------------------ * Ragged Tensor 1 * rt1 = <tf.RaggedTensor [[[1, 2, 3], [4, 5]], [[6], [7, 8, 9]]]> Shape of rt1: (2, None, None) * Ragged Tensor 2 * rt2 = <tf.RaggedTensor [[[[1, 2, 3], [4, 5]], [[6], [7, 8, 9]]]]> Shape of rt2: (1, 2, None, None) Averaging along ragged dimension (axis = 3)... * Averaged Tensor: * avg_ragged_dim = <tf.RaggedTensor [[[2.0, 4.5], [6.0, 8.0]]]> Shape of avg_ragged_dim: (1, None, None) Notice the 2 is gone instead of the None. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60067/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60067/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60066
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60066/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60066/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60066/events
https://github.com/tensorflow/tensorflow/pull/60066
1,635,854,070
PR_kwDOArmXAs5Mpdby
60,066
Update file stale-issues.yml
{ "login": "shmishra99", "id": 124146945, "node_id": "U_kgDOB2ZVAQ", "avatar_url": "https://avatars.githubusercontent.com/u/124146945?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shmishra99", "html_url": "https://github.com/shmishra99", "followers_url": "https://api.github.com/users/shmishra99/followers", "following_url": "https://api.github.com/users/shmishra99/following{/other_user}", "gists_url": "https://api.github.com/users/shmishra99/gists{/gist_id}", "starred_url": "https://api.github.com/users/shmishra99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shmishra99/subscriptions", "organizations_url": "https://api.github.com/users/shmishra99/orgs", "repos_url": "https://api.github.com/users/shmishra99/repos", "events_url": "https://api.github.com/users/shmishra99/events{/privacy}", "received_events_url": "https://api.github.com/users/shmishra99/received_events", "type": "User", "site_admin": false }
[ { "id": 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
[ "Please don't use \"update <file>\" commit messages. These make it harder to understand at a glance at commit history what the changes are.\r\n\r\nhttps://cbea.ms/git-commit/" ]
2023-03-22T14:15:39
2023-03-27T17:20:04
2023-03-27T17:20:03
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60066", "html_url": "https://github.com/tensorflow/tensorflow/pull/60066", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60066.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60066.patch", "merged_at": "2023-03-27T17:20:03" }
In this PR: 1) Increased the no. of operations per run from 30 to 1000 to pick more issues and PRs. 2) Add Override stale . 3) Prevent to remove stale label when issue PRs update. 4) Changed the version of stale from v5 to v7.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60066/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60066/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60065
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60065/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60065/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60065/events
https://github.com/tensorflow/tensorflow/issues/60065
1,635,817,959
I_kwDOArmXAs5hgJnn
60,065
How to check for NoneTensorSpec?
{ "login": "hamzamerzic", "id": 10846014, "node_id": "MDQ6VXNlcjEwODQ2MDE0", "avatar_url": "https://avatars.githubusercontent.com/u/10846014?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hamzamerzic", "html_url": "https://github.com/hamzamerzic", "followers_url": "https://api.github.com/users/hamzamerzic/followers", "following_url": "https://api.github.com/users/hamzamerzic/following{/other_user}", "gists_url": "https://api.github.com/users/hamzamerzic/gists{/gist_id}", "starred_url": "https://api.github.com/users/hamzamerzic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hamzamerzic/subscriptions", "organizations_url": "https://api.github.com/users/hamzamerzic/orgs", "repos_url": "https://api.github.com/users/hamzamerzic/repos", "events_url": "https://api.github.com/users/hamzamerzic/events{/privacy}", "received_events_url": "https://api.github.com/users/hamzamerzic/received_events", "type": "User", "site_admin": false }
[ { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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
[ "**NoneTensorSpec** is not a public API in TensorFlow, so it is not directly accessible from the public API. However, you can access it through the private module **_tensor_spec**, like this:\r\n\r\n```\r\nfrom tensorflow.python.framework import tensor_spec as _tensor_spec\r\nimport tensorflow as tf\r\n\r\nspec = tf.TensorSpec(shape=(2, 3), dtype=tf.float32)\r\nspec_with_none = tf.TensorSpec(shape=(2, 3), dtype=tf.float32, name='maybe_none')\r\nspecs = [spec, spec_with_none]\r\n\r\n# Find specs with NoneTensorSpec\r\nnone_specs = [s for s in specs if isinstance(s, _tensor_spec.NoneTensorSpec)]\r\n\r\n# Replace NoneTensorSpec with None\r\nfor i, s in enumerate(specs):\r\n if isinstance(s, _tensor_spec.NoneTensorSpec):\r\n specs[i] = None\r\n```", "@pat749, Thanks for your time and effort on responding to the issue.\r\n@hamzamerzic , Can you take a look into the above response, also have you checked `tf.TensorSpec `https://www.tensorflow.org/api_docs/python/tf/TensorSpec?version=nightly if that is something which you are looking for. 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.", "Thanks. I just tried this in a public Colab running TF 2.12.0 and I get an `AttributeError: module 'tensorflow.python.framework.tensor_spec' has no attribute 'NoneTensorSpec'`. I looked at the nightly `tf.TensorSpec` API as well, but there is no mention of `NoneTensorSpec`.\r\n\r\nBut it does look like the following works:\r\n\r\n```python\r\nfrom tensorflow.python.data.util import structure\r\n\r\nstructure.NoneTensorSpec()\r\n```" ]
2023-03-22T13:56:04
2023-04-05T03:21:27
2023-04-05T03:21:27
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### 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 Behaviour? ```shell I have a dataset that returns `None` values. I would like to programatically find and replace the `NoneTensorSpec` values of the spec into a custom value (`None`), but I cannot find `NoneTensorSpec` in the public API and am not sure what the best way to filter for it is. ``` ### Standalone code to reproduce the issue ```shell ds = tf.data.Dataset.from_tensors((3, None)) print(ds.element_spec) ``` ### Relevant log output ```shell `(TensorSpec(shape=(), dtype=tf.int32, name=None), NoneTensorSpec())` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60065/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60065/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60064
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60064/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60064/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60064/events
https://github.com/tensorflow/tensorflow/issues/60064
1,635,477,099
I_kwDOArmXAs5he2Zr
60,064
How to save average weights of checkpoints using Tensorflow 2.X?
{ "login": "yjiangling", "id": 42861880, "node_id": "MDQ6VXNlcjQyODYxODgw", "avatar_url": "https://avatars.githubusercontent.com/u/42861880?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yjiangling", "html_url": "https://github.com/yjiangling", "followers_url": "https://api.github.com/users/yjiangling/followers", "following_url": "https://api.github.com/users/yjiangling/following{/other_user}", "gists_url": "https://api.github.com/users/yjiangling/gists{/gist_id}", "starred_url": "https://api.github.com/users/yjiangling/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yjiangling/subscriptions", "organizations_url": "https://api.github.com/users/yjiangling/orgs", "repos_url": "https://api.github.com/users/yjiangling/repos", "events_url": "https://api.github.com/users/yjiangling/events{/privacy}", "received_events_url": "https://api.github.com/users/yjiangling/received_events", "type": "User", "site_admin": false }
[ { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 1105108936, "node_id": "MDU6TGFiZWwxMTA1MTA4OTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:model", "name": "comp:model", "color": "0052cc", "default": false, "description": "Model 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
[ "> \r\n\r\nThanks a lot for the help, but unfortunately the problem is still exisit. The averaged checkpoint have changed almost every name of the variables (1. change the '/' to '.S' ; 2. add '.ATTRIBUTES/VARIABLE_VALUE' to each variable again). Here is the var_list of single checkpoint and the averaged checkpoint with tf.train.list_variables (Left is the single checkpoint and the right is the averaged checkpoint). And I checked the single checkpoint and averaged checkpoint in TF1, they have the same variable name, what's wrong with it? \r\n\r\n![image](https://user-images.githubusercontent.com/42861880/227094325-7d6adfac-eacf-434a-8fa5-a5a623e69326.png)\r\n", "@yjiangling Thank you for raising an issue!\r\nCould you please specify the TF version you are using and provide the standalone code to replicate this one?\r\nThank you!", "> @yjiangling Thank you for raising an issue! Could you please specify the TF version you are using and provide the standalone code to replicate this one? Thank you!\r\n\r\nOK, I use the TensorFlow2.2 and TensorFlow2.4. You can use the attach scripts to replicate the issue (the name of the variable of the averaged checkpoint replace the string \"/\" with \".S\"). Please delete the suffix of \".txt\" before run it.\r\n\r\n[avg_checkpoints.py.txt](https://github.com/tensorflow/tensorflow/files/11075893/avg_checkpoints.py.txt)\r\n[gen_checkpoints.py.txt](https://github.com/tensorflow/tensorflow/files/11075897/gen_checkpoints.py.txt)\r\n\r\n\r\nThanks a lot for the help!!!", "@yjiangling Thank you for the response!\r\nFYI, the older version of TF is not actively supported. It is now recommended to use the latest TF version. I am trying to replicate it in the latest TF version and update you soon. Thank you!\r\n", "@yjiangling I tried to replicate this issue on the latest TF version 2.12 and faced different results. Could you please check this [gist](https://colab.research.google.com/gist/sushreebarsa/e6b241f88e3721b38bec0195ef9fd7b8/60064.ipynb) and confirm the same?\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.", "> @yjiangling I tried to replicate this issue on the latest TF version 2.12 and faced different results. Could you please check this [gist](https://colab.research.google.com/gist/sushreebarsa/e6b241f88e3721b38bec0195ef9fd7b8/60064.ipynb) and confirm the same? Thank you!\r\n\r\nThanks a lot for the detail experiments and the replay, I'm sorry for the late reply. I solve this problem with the following step:\r\n1. build model\r\n`model = Model()\r\npred = model.predict() # may use model.call() is also ok`\r\n\r\n2. create train Checkpoint\r\n`ckpt = tf.train.Checkpoint(model=model)`\r\n\r\n3. restore parameter of each checkpoint, get weights and average\r\n```\r\nfor checkpoint in checkpoints:\r\n ckpt.restore(checkpoint).expect_partial()\r\n weights = model.get_weights()\r\n swa_weithts += weights\r\nswa_weithts = [weight/len(checkpoints) for weight in swa_weithts]\r\n```\r\n\r\n4. set weights and save model\r\n```\r\nmodel.set_weights(swa_weithts)\r\nckpt.save(save_path)\r\n```\r\n\r\nMust use model.call() or model.predict() one time, otherwise can't get the weights of the checkpoint, I still do not understand the reason, maybe someone may look into it who is interested.", "> 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.\r\n\r\nThank you, the problem have been solved, you can feel free to close it.", "@yjiangling Thank you for the update!\r\nClosing the issue as the issue has been resolved. \r\nThank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60064\">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/60064\">No</a>\n" ]
2023-03-22T10:23:59
2023-04-24T07:48:59
2023-04-24T07:48:57
NONE
null
null
null
HELP NEEDED !!! Hi, everyone. I found a scrit to load serials of checkpoints for a model and save average weights of them in TensorFlow1. https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/utils/avg_checkpoints.py Which is very useful to improve the performance of the model. But in TensorFlow2, the saved checkpoints like this: ![image](https://user-images.githubusercontent.com/42861880/226873472-d5b31ef6-6e59-4136-ae55-8d367418cd7c.png) How to average the weights of parameters for them? I tried to write a script but the output checkpoint seems not as we expected, anyone can give some helps? Thanks a lot in advance. Here is my script: ` import os import numpy as np import tensorflow as tf from absl import app from absl import flags from absl import logging FLAGS = flags.FLAGS flags.DEFINE_string("checkpoints","", "Comma-separated list of checkpoints to average.") flags.DEFINE_integer("num_last_chekpoints", 0, "Average the last N saved checkpoints." " If the checkpoints flag is set, this is ignored.") flags.DEFINE_string("prefix", "", "Prefix (e.g., directory) to append to each checkpoint.") flags.DEFINE_string("output_path", "/tmp/averaged.ckpt", "Path to output the averaged checkpoint to.") def checkpoint_exists(path): return (tf.io.gfile.exists(path) or tf.io.gfile.exists(path + ".index")) def main(argv): if FLAGS.checkpoints: # Get the checkpoints list from flags and run some basic checks. checkpoints = [c.strip() for c in FLAGS.checkpoints.split(",")] checkpoints = [c for c in checkpoints if c] if not checkpoints: raise ValueError("No checkpoints provided for averaging.") if FLAGS.prefix: checkpoints = [FLAGS.prefix + c for c in checkpoints] else: assert FLAGS.num_last_chekpoints >= 1, "Must average at least one model" assert FLAGS.prefix, ("Prefix must be provided when averaging last" " N checkpoints") # checkpoint_state = tf.train.get_checkpoint_state( # os.path.dirname(FLAGS.prefix)) # # Checkpoints are ordered from oldest to newest. # checkpoints = checkpoint_state.all_model_checkpoint_paths[ # -FLAGS.num_last_checkpoints:] file_list = os.listdir(FLAGS.prefix) checkpoints = [os.path.join(FLAGS.prefix, file) for file in file_list if file.endswith(".index")] checkpoints = [checkpoint[:-6] for checkpoint in checkpoints] checkpoints.sort(key=lambda checkpoint: int(checkpoint.split('-')[-1])) checkpoints = checkpoints[-FLAGS.num_last_checkpoints:] checkpoints = [c for c in checkpoints if checkpoint_exists(c)] if not checkpoints: if FLAGS.checkpoints: raise ValueError( "None of the provided checkpoints exist. %s" % FLAGS.checkpoints) else: raise ValueError("Could not find checkpoints at %s" % os.path.dirname(FLAGS.prefix)) # Read variables from all checkpoints and average them. logging.info("Reading variables and averaging checkpoints:") for c in checkpoints: logging.info("%s ", c) var_list = tf.train.list_variables(checkpoints[0]) var_values, var_dtypes = {}, {} for (name, shape) in var_list: if not name.startswith("save_counter"): var_values[name] = np.zeros(shape) for checkpoint in checkpoints: reader = tf.train.load_checkpoint(checkpoint) for name in var_values: tensor = reader.get_tensor(name) dtype = reader.get_variable_to_dtype_map()[name] if dtype == tf.string: var_values[name] = tensor else: var_values[name] += tensor var_dtypes[name] = dtype logging.info("Read from checkpoint %s", checkpoint) for name in var_values: # Average. if var_dtypes[name] != tf.string: var_values[name] /= len(checkpoints) name = var_list[-1][0] assert name.startswith("save_counter") shape = reader.get_variable_to_shape_map()[name] dtype = reader.get_variable_to_dtype_map()[name] var_values[name] = np.zeros(shape) var_dtypes[name] = dtype for name in var_values.keys(): var_values[name] = tf.Variable( var_values[name], dtype=var_dtypes[name]) save = tf.train.Checkpoint() save.mapped = var_values # save.listed = [] # save.mapped = {} # for name in var_values.keys(): # save.listed.append(var_values[name]) # save.mapped[name] = var_values[name] save_path = save.save(FLAGS.output_path) logging.info("Averaged checkpoints saved in %s", FLAGS.output_path) if __name__ == '__main__': app.run(main) `
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60064/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60064/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60063
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60063/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60063/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60063/events
https://github.com/tensorflow/tensorflow/issues/60063
1,635,424,756
I_kwDOArmXAs5hepn0
60,063
CTCModel
{ "login": "MrAchraf10", "id": 76006274, "node_id": "MDQ6VXNlcjc2MDA2Mjc0", "avatar_url": "https://avatars.githubusercontent.com/u/76006274?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MrAchraf10", "html_url": "https://github.com/MrAchraf10", "followers_url": "https://api.github.com/users/MrAchraf10/followers", "following_url": "https://api.github.com/users/MrAchraf10/following{/other_user}", "gists_url": "https://api.github.com/users/MrAchraf10/gists{/gist_id}", "starred_url": "https://api.github.com/users/MrAchraf10/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MrAchraf10/subscriptions", "organizations_url": "https://api.github.com/users/MrAchraf10/orgs", "repos_url": "https://api.github.com/users/MrAchraf10/repos", "events_url": "https://api.github.com/users/MrAchraf10/events{/privacy}", "received_events_url": "https://api.github.com/users/MrAchraf10/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": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "It seems like there are two import statements for **CTCModel** from different locations:\r\n```\r\nfrom keras_ctcmodel.CTCModel import CTCModel as CTCModel\r\nfrom CTCModel import CTCModel\r\n```\r\nYou should remove one of the import statements, depending on where the **CTCModel** class is defined in your project.", "\nOk, I understood, thanks a lot.\n________________________________\nDe : Durgesh Patel ***@***.***>\nEnvoyé : samedi 25 mars 2023 21:41\nÀ : tensorflow/tensorflow ***@***.***>\nCc : Achraf EL ASRI ***@***.***>; Author ***@***.***>\nObjet : Re: [tensorflow/tensorflow] CTCModel (Issue #60063)\n\n\nIt seems like there are two import statements for CTCModel from different locations:\n\nfrom keras_ctcmodel.CTCModel import CTCModel as CTCModel\nfrom CTCModel import CTCModel\n\n\nYou should remove one of the import statements, depending on where the CTCModel class is defined in your project.\n\n—\nReply to this email directly, view it on GitHub<https://github.com/tensorflow/tensorflow/issues/60063#issuecomment-1483917680>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASD4HAUQYP7L3LQMAYB7753W55KANANCNFSM6AAAAAAWDSQCY4>.\nYou are receiving this because you authored the thread.Message ID: ***@***.***>\n", "@MrAchraf10 Could you please see the installation instructions as below \r\n```\r\n$ pip install keras-ctcmodel\r\n\r\nOR\r\n\r\n$ git clone https://github.com/cyprienruffino/CTCModel\r\n python setup.py install --user\r\n\r\n\r\n```\r\nLet us know if you still face the issue for importing CTCModel using the following \r\n```\r\nfrom keras_ctcmodel.CTCModel import CTCModel as CTCModel\r\n\r\n```\r\nThank you!", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue 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/60063\">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/60063\">No</a>\n" ]
2023-03-22T09:55:11
2023-04-11T01:53:11
2023-04-11T01:53:07
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11.1 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell ImportError Traceback (most recent call last) Cell In[1], line 7 5 from keras.models import Model 6 import tensorflow_addons as tfa ----> 7 from keras_ctcmodel.CTCModel import CTCModel as CTCModel 8 from CTCModel import CTCModel 9 import pickle File ~\anaconda3\envs\tensorflow\lib\site-packages\keras_ctcmodel\CTCModel.py:7 5 import os 6 from keras import Input ----> 7 from keras.engine import Model 8 from keras.layers import Lambda 9 from keras.models import model_from_json, Sequential ImportError: cannot import name 'Model' from 'keras.engine' I can't find a solution to this problem, please, I need your help !! ``` ### Standalone code to reproduce the issue ```shell from keras.layers import TimeDistributed, Activation, Dense, Input, Bidirectional, LSTM, Masking, GaussianNoise from keras.layers import Conv2D, MaxPooling2D, Reshape, Flatten, Dense from tensorflow.keras.layers import BatchNormalization from keras.optimizers import Adam from keras.models import Model import tensorflow_addons as tfa from keras_ctcmodel.CTCModel import CTCModel as CTCModel from CTCModel import CTCModel ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60063/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60063/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60062
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60062/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60062/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60062/events
https://github.com/tensorflow/tensorflow/issues/60062
1,635,271,150
I_kwDOArmXAs5heEHu
60,062
[MSVC]Tensorflow failed to error C2678: binary '==': no operator found which takes a left-hand operand of type 'const _Ty'
{ "login": "Eva-An", "id": 122774610, "node_id": "U_kgDOB1FkUg", "avatar_url": "https://avatars.githubusercontent.com/u/122774610?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Eva-An", "html_url": "https://github.com/Eva-An", "followers_url": "https://api.github.com/users/Eva-An/followers", "following_url": "https://api.github.com/users/Eva-An/following{/other_user}", "gists_url": "https://api.github.com/users/Eva-An/gists{/gist_id}", "starred_url": "https://api.github.com/users/Eva-An/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Eva-An/subscriptions", "organizations_url": "https://api.github.com/users/Eva-An/orgs", "repos_url": "https://api.github.com/users/Eva-An/repos", "events_url": "https://api.github.com/users/Eva-An/events{/privacy}", "received_events_url": "https://api.github.com/users/Eva-An/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1188421838, "node_id": "MDU6TGFiZWwxMTg4NDIxODM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows", "name": "subtype:windows", "color": "b619ea", "default": false, "description": "Windows Build/Installation Issues" }, { "id": 5244472328, "node_id": "LA_kwDOArmXAs8AAAABOJhMCA", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:cpu-intel", "name": "subtype:cpu-intel", "color": "507561", "default": false, "description": "To track windows cpu issues" } ]
open
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Eva-An, please try MSVC 2019 (set BAZEL_VC=C:\\Program Files(x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC). " ]
2023-03-22T08:22:03
2023-06-01T20:29:27
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version master branch, commit: 48246a6 ### Custom Code No ### OS Platform and Distribution Windows Server 2022 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version 5.3.0 ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Current: ERROR: F:/gitp/tensorflow/tensorflow/tensorflow/compiler/xla/pjrt/BUILD:598:11: Compiling tensorflow/compiler/xla/pjrt/transpose.cc failed: (Exit 2): cl.exe failed: error executing command cd /d F:/bazeltemp/2powapgf/execroot/org_tensorflow SET INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\ATLMFC\include;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um SET PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\VC\VCPackages;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\Roslyn;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Performance Tools\x64;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\;;C:\Windows\system32;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\VC\Linux\bin\ConnectionManagerExe SET PWD=/proc/self/cwd SET PYTHON_BIN_PATH=C:/Python39/python.exe SET PYTHON_LIB_PATH=C:/Python39/lib/site-packages SET RUNFILES_MANIFEST_ONLY=1 SET TEMP=C:\Users\CPPTES~1\AppData\Local\Temp SET TF2_BEHAVIOR=1 SET TMP=C:\Users\CPPTES~1\AppData\Local\Temp C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\cl.exe @bazel-out/x64_windows-opt/bin/tensorflow/compiler/xla/pjrt/_objs/transpose/transpose.obj.params # Configuration: 6c527fa88d503266dc3c2010527883ab34835d92feca5051a6b7c0c26b585cd5 # Execution platform: @local_execution_config_platform//:platform C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include\xstddef(106): error C2678: binary '==': no operator found which takes a left-hand operand of type 'const _Ty' (or there is no acceptable conversion) with [ _Ty=xla::TransposePlanCacheKey ] Expect: Build pass. ``` ### Standalone code to reproduce the issue ```shell git clone https://github.com/tensorflow/tensorflow.git F:\gitP\tensorflow\tensorflow cd F:\gitP\tensorflow\tensorflow pip3 install -r tensorflow/tools/ci_build/release/requirements_common.txt 2>&1 set PATH=F:\gitP\tensorflow\tensorflow\..\tools;%path% set PATH=F:\gitP\tensorflow\tensorflow\..\tools\msys64\usr\bin;%path% yes "" 2>nul | python ./configure.py 2>&1 set BAZEL_VC=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC set BAZEL_VC_FULL_VERSION=14.35.32215 set PATH=F:\gitP\tensorflow\tensorflow\..\tools;%path% set PATH=F:\gitP\tensorflow\tensorflow\..\tools\msys64\usr\bin;%path% bazel --output_user_root F:\bazelTemp build --jobs 8 --config=opt --local_ram_resources=2048 --subcommands //tensorflow/tools/pip_package:build_pip_package 2>&1 ``` ### Relevant log output [build.zip](https://github.com/tensorflow/tensorflow/files/11038139/build.zip) [transpose.zip](https://github.com/tensorflow/tensorflow/files/11038153/transpose.zip) **Or you can follow below steps to reproduce the issue with .i file Repro Steps:** 1.Download transpose.zip and unzip it 2.Open VS2022 x64 Native Tools command. 3.cl.exe transpose.i /TP /c /EHsc /std:c++17 </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60062/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60062/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60061
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60061/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60061/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60061/events
https://github.com/tensorflow/tensorflow/issues/60061
1,634,961,778
I_kwDOArmXAs5hc4ly
60,061
Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.13.0 failed: (Exit 1): gcc failed: error executing command
{ "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 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": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/received_events", "type": "User", "site_admin": false }
[ { "login": "trevor-m", "id": 12981474, "node_id": "MDQ6VXNlcjEyOTgxNDc0", "avatar_url": "https://avatars.githubusercontent.com/u/12981474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trevor-m", "html_url": "https://github.com/trevor-m", "followers_url": "https://api.github.com/users/trevor-m/followers", "following_url": "https://api.github.com/users/trevor-m/following{/other_user}", "gists_url": "https://api.github.com/users/trevor-m/gists{/gist_id}", "starred_url": "https://api.github.com/users/trevor-m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trevor-m/subscriptions", "organizations_url": "https://api.github.com/users/trevor-m/orgs", "repos_url": "https://api.github.com/users/trevor-m/repos", "events_url": "https://api.github.com/users/trevor-m/events{/privacy}", "received_events_url": "https://api.github.com/users/trevor-m/received_events", "type": "User", "site_admin": false }, { "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
[ "Here is a log with the linker errors. It looks like we will need to make sure libtensorflow_cc exports all of these undefined TF symbols via `roots`.\r\nFor the missing mlir symbols, TF hides symbols matching `*mlir*` using the linker scripts to prevent duplication bugs, so we should have tf serving depend on mlir directly in those cases.\r\n\r\n[tfs_build.log](https://github.com/tensorflow/tensorflow/files/11054607/tfs_build.log)\r\n" ]
2023-03-22T02:34:16
2023-10-25T09:41:08
null
COLLABORATOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version Head ### Custom Code No ### OS Platform and Distribution Linux ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? [Dynamic Pywrap PR 58734](https://github.com/tensorflow/tensorflow/pull/58734) seems to introduce a a TensorFlow Serving linking error. ### Standalone code to reproduce the issue Run ```shell $ git clone git@github.com:tensorflow/serving.git $ cd serving $ sudo ./tools/run_in_docker.sh bazel test --action_env=TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e tensorflow_serving/... &> /tmp/tfs_bazel_output.log ``` and search `Linking external` in /tmp/tfs_bazel_output.log ### Relevant log output ```shell /usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/external/org_tensorflow/tensorflow/BUILD:1214:21: Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0 failed: (Exit 1): gcc failed: error executing command (cd /usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/execroot/tf_serving && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ PWD=/proc/self/cwd \ TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e \ /usr/bin/gcc @bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0-2.params) ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60061/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60061/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60060
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60060/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60060/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60060/events
https://github.com/tensorflow/tensorflow/issues/60060
1,634,900,272
I_kwDOArmXAs5hcpkw
60,060
tf2.11 tf.profiler.experimental doesn't generate trace.json.gz. Possible to have a python script to get the json.gz from xplane.pb?
{ "login": "louie-tsai", "id": 21761437, "node_id": "MDQ6VXNlcjIxNzYxNDM3", "avatar_url": "https://avatars.githubusercontent.com/u/21761437?v=4", "gravatar_id": "", "url": "https://api.github.com/users/louie-tsai", "html_url": "https://github.com/louie-tsai", "followers_url": "https://api.github.com/users/louie-tsai/followers", "following_url": "https://api.github.com/users/louie-tsai/following{/other_user}", "gists_url": "https://api.github.com/users/louie-tsai/gists{/gist_id}", "starred_url": "https://api.github.com/users/louie-tsai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/louie-tsai/subscriptions", "organizations_url": "https://api.github.com/users/louie-tsai/orgs", "repos_url": "https://api.github.com/users/louie-tsai/repos", "events_url": "https://api.github.com/users/louie-tsai/events{/privacy}", "received_events_url": "https://api.github.com/users/louie-tsai/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 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": "cliveverghese", "id": 934461, "node_id": "MDQ6VXNlcjkzNDQ2MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/934461?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cliveverghese", "html_url": "https://github.com/cliveverghese", "followers_url": "https://api.github.com/users/cliveverghese/followers", "following_url": "https://api.github.com/users/cliveverghese/following{/other_user}", "gists_url": "https://api.github.com/users/cliveverghese/gists{/gist_id}", "starred_url": "https://api.github.com/users/cliveverghese/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cliveverghese/subscriptions", "organizations_url": "https://api.github.com/users/cliveverghese/orgs", "repos_url": "https://api.github.com/users/cliveverghese/repos", "events_url": "https://api.github.com/users/cliveverghese/events{/privacy}", "received_events_url": "https://api.github.com/users/cliveverghese/received_events", "type": "User", "site_admin": false }
[ { "login": "cliveverghese", "id": 934461, "node_id": "MDQ6VXNlcjkzNDQ2MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/934461?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cliveverghese", "html_url": "https://github.com/cliveverghese", "followers_url": "https://api.github.com/users/cliveverghese/followers", "following_url": "https://api.github.com/users/cliveverghese/following{/other_user}", "gists_url": "https://api.github.com/users/cliveverghese/gists{/gist_id}", "starred_url": "https://api.github.com/users/cliveverghese/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cliveverghese/subscriptions", "organizations_url": "https://api.github.com/users/cliveverghese/orgs", "repos_url": "https://api.github.com/users/cliveverghese/repos", "events_url": "https://api.github.com/users/cliveverghese/events{/privacy}", "received_events_url": "https://api.github.com/users/cliveverghese/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
[ "loop @aice-support", "@sushreebarsa \r\nany update for this question?", "I have replicated the reported behaviour. With Tf 2.10v I found many files along with xplane.pb being built but with TF2.12 and tf-nightly there is only one file i.e. xplane.pb. I have attached minimal code snippet for replicating the behaviour in attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/dc945ea54171d35a0bd6a65a0d2e6b2b/60060.ipynb).\r\n\r\n**With TF 2.10:**\r\n\r\n<img width=\"1512\" alt=\"Screenshot 2023-04-12 at 2 53 17 PM\" src=\"https://user-images.githubusercontent.com/116063290/231417640-4c1a9ac2-a481-4b5b-96ed-18fd877175ea.png\">\r\n\r\n\r\n**With TF2.12:**\r\n\r\n<img width=\"1512\" alt=\"Screenshot 2023-04-12 at 2 50 09 PM\" src=\"https://user-images.githubusercontent.com/116063290/231417430-2188e423-965d-4b01-b751-087bda35f86c.png\">\r\n\r\n@louie-tsai , I need to check the reasons for this difference in behaviour and will update you if ay workaround. Thanks", "@SuryanarayanaY \r\nthanks. It also works for me to generate trace.json file from xplane.pb file from a tool/script.", "Hi @louie-tsai ,\r\n\r\nHave you used any tool outside Tensorflow for this? Please confirm and also if issue resolved please feel free to close the issue. Thanks!", "@SuryanarayanaY \r\nOh. I haven't had any solution by using other tool.\r\nIf you have a tool to convert it, that option would also work for me.\r\n", "Hi @louie-tsai ,\r\n\r\nThe reason for this behavior after 2.10 version because of the changes made here in the commit https://github.com/tensorflow/tensorflow/commit/52992fc29f00fc743e07e16067f6418af6c489ff.\r\n\r\nThe detailed discussion can be found here https://github.com/tensorflow/tensorflow/issues/58738.\r\n", "@sachinprasadhs \r\nis there a way to get the json.gz from xplane.pb?\r\njson.gz file is helpful for our debugging. We have had some analysis tools depending on it already.\r\nthanks", "@cliveverghese, Could you please take a look into the above request. Thanks!", "You could use pywrap_profiler functions defined in https://github.com/tensorflow/tensorflow/blob/f62622072d3b6de1790861ba749a1bfa043bd1dd/tensorflow/python/profiler/internal/profiler_wrapper.cc to extract the trace.json. \r\n\r\nReferences to how this can be invoked can be found here\r\nhttps://github.com/tensorflow/profiler/blob/85dcfd10656d623330b11c3bbb8afed6418ec533/plugin/tensorboard_plugin_profile/convert/raw_to_tool_data.py\r\n\r\nThis would look like \r\n```\r\npywrap_profiler.xspace_to_tools_data(xspace_file_path, \"trace_viewer\")\r\n```", "@cliveverghese's comment got me to finally get the `.json` out of this annoying file format. I made this Python script (with a patch from @louie-tsai):\r\n\r\n```py\r\nimport argparse\r\n\r\n# Create argument parser\r\nparser = argparse.ArgumentParser(description=\"Convert raw file to tool data\")\r\nparser.add_argument(\"input_file\", help=\"Input file path\")\r\nparser.add_argument(\"output_file\", help=\"Output JSON file path\")\r\n\r\n# Parse the arguments\r\nargs = parser.parse_args()\r\n\r\n# Process the input file\r\nprint(\"\\033[32mImport TensorFlow...\\033[0m\")\r\nimport tensorboard_plugin_profile.convert.raw_to_tool_data as rttd\r\ninput_file = args.input_file\r\nprint(\"\\033[32mXSpace to Tool Data...\\033[0m\")\r\ntv = rttd.xspace_to_tool_data([input_file], \"trace_viewer^\", {'tqx': ''})\r\n\r\nif isinstance(tv, tuple):\r\n tv = tv[0]\r\n\r\n# Write the processed data to the output file\r\noutput_file = args.output_file\r\nprint(\"\\033[32mWriting file...\\033[0m\")\r\nwith open(output_file, \"w\") as f:\r\n f.write(tv)\r\n\r\nprint(\"\\033[32mDone!\\033[0m\")\r\n\r\n```", "thanks a lot! It works for me.\r\nWe will start using this API for our analysis tool.", "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/60060\">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/60060\">No</a>\n", "output of xspace_to_tool_data is tuple data format for my case, so I need to only get first item of the tuple data.", "> output of xspace_to_tool_data is tuple data format for my case, so I need to only get first item of the tuple data.\r\n\r\nI now had this problem too. I put an if in the code to support multiple versions of TensorFlow.\r\nI also added colors for fun. I updated the code in my original answer." ]
2023-03-22T01:05:52
2024-05-18T02:41:10
2023-06-02T00:59:43
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version tf2.11 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 22.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell In tf2.10, when use the tf.profiler.experimental.start(logdir) and tf.profiler.experimental.stop(). It will generate many files as bellow in logdir folder. . ├── events.out.tfevents.XXXX.profile-empty └── plugins └── profile └── 2022_11_29_08_25_43 ├── XXXX.input_pipeline.pb ├── XXXX.kernel_stats.pb ├── XXXX.memory_profile.json.gz ├── XXXX.overview_page.pb ├── XXXX.tensorflow_stats.pb ├── XXXX.trace.json └── XXXX.xplane.pb But in tf2.11, it only generate these files. . ├── events.out.tfevents.XXXX.profile-empty └── plugins └── profile ├── 2022_11_29_08_32_10 │ └── XXXX.xplane.pb Possible to derive json.gz file from xplane.pb with some python scripts? ``` ### Standalone code to reproduce the issue ```shell NA ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60060/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60060/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60059
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60059/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60059/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60059/events
https://github.com/tensorflow/tensorflow/issues/60059
1,634,880,016
I_kwDOArmXAs5hckoQ
60,059
QuantizeAndDequantizeV4 throws TypeError in gradient computation in forward mode
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
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
[ "@trickiwoo Though i was able to replicate the issue [here](https://colab.research.google.com/gist/sushreebarsa/5af7133e302705296c699040acddd4de/60059.ipynb), please confirm if this is a duplicate ticket of [this](https://github.com/tensorflow/tensorflow/issues/59960) issue. If so please close this thread as we will follow up with the other one. Thank you!", "Hi @sushreebarsa , thanks for replicating it! It was a similar issue but for different APIs", "@trickiwoo Thank you for the confirmation.\r\n@SuryanarayanaY Could you please have a look at this issue?\r\nThank you!" ]
2023-03-22T00:32:52
2023-05-10T18:57:40
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell QuantizeAndDequantizeV4 throws TypeError in gradient computation in forward mode. I encountered a similar issue (https://github.com/tensorflow/tensorflow/issues/59960) where quantize_and_dequantize_v2 is wrongly associated with _QuantizeAndDequantizeV4GradGrad in gradient computation. In this case, the V4 version API doesn't work either. It would be great if they could be fixed in the backend. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np tensor = tf.random.uniform(shape=[1, 1], dtype=tf.float32) def quantizeAndDequantize(x): y = tf.raw_ops.QuantizeAndDequantizeV4(input=x, input_min=0., input_max=5.) return y output = quantizeAndDequantize(tensor) # pass with tf.autodiff.ForwardAccumulator(tensor, tf.constant([[0.], [1.]])) as acc: output = quantizeAndDequantize(tensor) ``` ### Relevant log output ```shell TypeError: _QuantizeAndDequantizeV4GradGrad() takes 2 positional arguments but 4 were given ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60059/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60059/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60058
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60058/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60058/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60058/events
https://github.com/tensorflow/tensorflow/pull/60058
1,634,537,217
PR_kwDOArmXAs5MlDP6
60,058
[tosa] Specify the accumulator type in avg_pool
{ "login": "tatwaichong", "id": 78814694, "node_id": "MDQ6VXNlcjc4ODE0Njk0", "avatar_url": "https://avatars.githubusercontent.com/u/78814694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tatwaichong", "html_url": "https://github.com/tatwaichong", "followers_url": "https://api.github.com/users/tatwaichong/followers", "following_url": "https://api.github.com/users/tatwaichong/following{/other_user}", "gists_url": "https://api.github.com/users/tatwaichong/gists{/gist_id}", "starred_url": "https://api.github.com/users/tatwaichong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tatwaichong/subscriptions", "organizations_url": "https://api.github.com/users/tatwaichong/orgs", "repos_url": "https://api.github.com/users/tatwaichong/repos", "events_url": "https://api.github.com/users/tatwaichong/events{/privacy}", "received_events_url": "https://api.github.com/users/tatwaichong/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 4651658080, "node_id": "LA_kwDOArmXAs8AAAABFUKrYA", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-tosa", "name": "comp:lite-tosa", "color": "bfdadc", "default": false, "description": "TFLite TOSA conversion issues" } ]
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 @tatwaichong Can you please resolve conflicts? Thank you!", "Hi @tatwaichong Any update on this PR? Please. Thank you!", "I believe this is waiting an upstream change to be submitted and would be integrated along with that.", "This was landed successfully as part off the LLVM integrate." ]
2023-03-21T19:01:27
2023-05-12T21:16:59
2023-05-12T21:04:57
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60058", "html_url": "https://github.com/tensorflow/tensorflow/pull/60058", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60058.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60058.patch", "merged_at": null }
Tosa supports fp16 and fp32 accumulator type for fp16 input, but no way to tell for average pooling whether accumulator should be fp16 or fp32 from input type. note that this PR needs to collaborate with https://reviews.llvm.org/D146317 that add a new accumulator attribute type.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60058/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60058/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60057
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60057/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60057/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60057/events
https://github.com/tensorflow/tensorflow/issues/60057
1,633,478,895
I_kwDOArmXAs5hXOjv
60,057
Keras clone_model does not work if a concatenate layer with one element to concatenate is used.
{ "login": "benHeid", "id": 9725296, "node_id": "MDQ6VXNlcjk3MjUyOTY=", "avatar_url": "https://avatars.githubusercontent.com/u/9725296?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benHeid", "html_url": "https://github.com/benHeid", "followers_url": "https://api.github.com/users/benHeid/followers", "following_url": "https://api.github.com/users/benHeid/following{/other_user}", "gists_url": "https://api.github.com/users/benHeid/gists{/gist_id}", "starred_url": "https://api.github.com/users/benHeid/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benHeid/subscriptions", "organizations_url": "https://api.github.com/users/benHeid/orgs", "repos_url": "https://api.github.com/users/benHeid/repos", "events_url": "https://api.github.com/users/benHeid/events{/privacy}", "received_events_url": "https://api.github.com/users/benHeid/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" } ]
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
[ "Note I also opened an Issue at Keras since I am not sure where its fit better.", "@benHeid,\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 feel free to close this issue, as this issue is already tracking there in Keras repo.\r\nhttps://github.com/keras-team/tf-keras/issues/230\r\n\r\n Thank you!\r\n", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60057\">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/60057\">No</a>\n" ]
2023-03-21T09:03:59
2023-09-22T18:10:52
2023-03-21T13:28:50
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.13 (nightly) ### Custom Code No ### OS Platform and Distribution Windows ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version Na ### GPU model and memory _No response_ ### Current Behaviour? ```shell If I build a keras model that contains a concatenate layer which only concatenate one element, then the `clone_model` function will fail on that model. My assumption is that the reason for this behaviour is that the parameter input of this model is a Tensor instead of a List. If I take a look on concatenate layers with multiple inputs, then the input parameter is a list. I suppose that the error is that the `self._preserve_input_structure_in_config` is not set to true. ``` ### Standalone code to reproduce the issue ```shell from tensorflow.python.keras.layers import Concatenate, Input from tensorflow.python.keras.models import clone_model, Model input1 = Input(shape=(1,2), name="input") concat = Concatenate()([input1]) model = Model(input1, concat) model.compile() print("Model exist, now lets try to clone the model..") cloned_model = clone_model(model) # This line fails ``` ### Relevant log output ```shell ...\scratch_2.py", line 12, in <module> cloned_model = clone_model(model) ..... tensorflow\python\keras\layers\merge.py", line 491, in build raise ValueError('A `Concatenate` layer should be called ' ValueError: A `Concatenate` layer should be called on a list of at least 1 input. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60057/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60057/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60056
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60056/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60056/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60056/events
https://github.com/tensorflow/tensorflow/pull/60056
1,633,418,903
PR_kwDOArmXAs5MhRHn
60,056
Go: add support for empty tags-set when loading saved model
{ "login": "kristofmaar", "id": 44155528, "node_id": "MDQ6VXNlcjQ0MTU1NTI4", "avatar_url": "https://avatars.githubusercontent.com/u/44155528?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kristofmaar", "html_url": "https://github.com/kristofmaar", "followers_url": "https://api.github.com/users/kristofmaar/followers", "following_url": "https://api.github.com/users/kristofmaar/following{/other_user}", "gists_url": "https://api.github.com/users/kristofmaar/gists{/gist_id}", "starred_url": "https://api.github.com/users/kristofmaar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kristofmaar/subscriptions", "organizations_url": "https://api.github.com/users/kristofmaar/orgs", "repos_url": "https://api.github.com/users/kristofmaar/repos", "events_url": "https://api.github.com/users/kristofmaar/events{/privacy}", "received_events_url": "https://api.github.com/users/kristofmaar/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" } ]
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
[ "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/60056/checks?check_run_id=12153354161) 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 @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "Hi @gharibian Can you please review this PR ? Thank you!", "You're right, I added the test back with the requested functionality." ]
2023-03-21T08:20:39
2024-06-05T08:25:06
null
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60056", "html_url": "https://github.com/tensorflow/tensorflow/pull/60056", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60056.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60056.patch", "merged_at": null }
There is a check in `saved_model.go` that does not allow empy tag set, however there are models without tags that work perfectly in the library without providing them (they are optional in the Python library too, for example). Apparently the check was added in #36466, though instead of throwing an error on an empty set, a nil value can be passed in these cases and the C library will not complain. Otherwise, the pointer to the first element is passed as before.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60056/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60056/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60055
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60055/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60055/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60055/events
https://github.com/tensorflow/tensorflow/issues/60055
1,633,283,065
I_kwDOArmXAs5hWev5
60,055
Type INT32 (2) not supported.Node ADD (number 0) failed to invoke with status 1.Node WHILE (number 10) failed to invoke with status 1
{ "login": "Fabiran", "id": 127216064, "node_id": "U_kgDOB5UpwA", "avatar_url": "https://avatars.githubusercontent.com/u/127216064?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Fabiran", "html_url": "https://github.com/Fabiran", "followers_url": "https://api.github.com/users/Fabiran/followers", "following_url": "https://api.github.com/users/Fabiran/following{/other_user}", "gists_url": "https://api.github.com/users/Fabiran/gists{/gist_id}", "starred_url": "https://api.github.com/users/Fabiran/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fabiran/subscriptions", "organizations_url": "https://api.github.com/users/Fabiran/orgs", "repos_url": "https://api.github.com/users/Fabiran/repos", "events_url": "https://api.github.com/users/Fabiran/events{/privacy}", "received_events_url": "https://api.github.com/users/Fabiran/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1589976566, "node_id": "MDU6TGFiZWwxNTg5OTc2NTY2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:micro", "name": "comp:micro", "color": "3e2eea", "default": false, "description": "Related to TensorFlow Lite Microcontrollers" }, { "id": 1946362326, "node_id": "MDU6TGFiZWwxOTQ2MzYyMzI2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.3", "name": "TF 2.3", "color": "1d76db", "default": false, "description": "Issues related to TF 2.3" } ]
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
[ "@Fabiran \r\nCould you please provide a reproducible code or a toy example to reproduce the issue reported here ?\r\n\r\nThank you!", "Hi, @tiruk007, here is my data [N6.csv](https://github.com/tensorflow/tensorflow/files/11049537/N6.csv) and code.\r\n## model process\r\nimport time\r\nimport numpy as np\r\nimport pandas as pd\r\nimport tensorflow as tf\r\nfrom sklearn.metrics import mean_squared_error, mean_absolute_error\r\nfrom sklearn.model_selection import train_test_split\r\nfrom sklearn.preprocessing import StandardScaler\r\nfrom tensorflow.python.keras.layers import LSTM, Dense, Dropout\r\nfrom tensorflow.python.keras.models import Sequential\r\n\r\n#read data\r\ndata = pd.read_csv('N6.csv')\r\n\r\ndata_HR = data['HR'].values\r\n\r\n#z_escore\r\nscaler = StandardScaler()\r\nscaler.fit(data_HR.reshape(-1, 1))\r\ndata_std = scaler.transform(data_HR.reshape(-1, 1))\r\n\r\n#split\r\ndata_for_training, data_for_testing = train_test_split(data_std, test_size=0.2, shuffle=False)\r\n\r\ndata_for_training, data_for_val = train_test_split(data_for_training, test_size=0.2, shuffle=False)\r\n\r\n\r\ndef createXY(dataset, n_past):\r\n dataX = []\r\n dataY = []\r\n for i in range(n_past, len(dataset)):\r\n dataX.append(dataset[i - n_past:i])\r\n dataY.append(dataset[i])\r\n return np.array(dataX), np.array(dataY)\r\n\r\n\r\nwindow_size = 30\r\n\r\ntrainX, trainY = createXY(data_for_training, window_size)\r\nvalX, valY = createXY(data_for_val, window_size)\r\ntestX, testY = createXY(data_for_testing, window_size)\r\n\r\n#reshape to 3D\r\ntrainX = np.reshape(trainX, (trainX.shape[0], trainX.shape[1], 1))\r\nvalX = np.reshape(valX, (valX.shape[0], valX.shape[1], 1))\r\ntestX = np.reshape(testX, (testX.shape[0], testX.shape[1], 1))\r\n\r\n#build model\r\nmodel = Sequential()\r\nmodel.add(LSTM(30, activation='relu', return_sequences=False, input_shape=(window_size, 1)))\r\nmodel.add(Dropout(0.2))\r\nmodel.add(Dense(1))\r\nmodel.compile(loss='mean_squared_error', optimizer='adam')\r\n\r\nepochs = 25\r\nhistory = model.fit(trainX, trainY, epochs=epochs, batch_size=32, verbose=1, validation_data=(valX, valY))\r\n\r\nmodel.summary()\r\n\r\nprediction_std = model.predict(testX)\r\nprediction = scaler.inverse_transform(prediction_std)\r\n\r\n#convert into tflite\r\nconverter = tf.lite.TFLiteConverter.from_keras_model(model)\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\ntflite_model = converter.convert()\r\nwith open(f\"model1.tflite\", \"wb\") as f:\r\n f.write(tflite_model)\r\n\r\n\r\n## arduino nano 33 ble sense\r\n\r\n#include <TensorFlowLite.h>\r\n#include \"model.h\"\r\n#include \"tensorflow/lite/micro/all_ops_resolver.h\"\r\n#include \"tensorflow/lite/micro/micro_interpreter.h\"\r\n#include \"tensorflow/lite/micro/micro_log.h\"\r\n#include \"tensorflow/lite/micro/system_setup.h\"\r\n#include \"tensorflow/lite/schema/schema_generated.h\"\r\n\r\n\r\n// Globals, used for compatibility with Arduino-style sketches.\r\nnamespace {\r\nconst tflite::Model* model = nullptr;\r\ntflite::MicroInterpreter* interpreter = nullptr;\r\nTfLiteTensor* input = nullptr;\r\nTfLiteTensor* output = nullptr;\r\nTfLiteTensor* output_type = nullptr;\r\nTfLiteTensor* output_precip = nullptr;\r\nconstexpr int kTensorArenaSize = 100*1024;\r\n// Keep aligned to 16 bytes for CMSIS\r\nalignas(16) uint8_t tensor_arena[kTensorArenaSize];\r\n} // namespace\r\n\r\n// The name of this function is important for Arduino compatibility.\r\nvoid setup() {\r\n tflite::InitializeTarget();\r\n\r\n // Map the model into a usable data structure. This doesn't involve any\r\n // copying or parsing, it's a very lightweight operation.\r\n model = tflite::GetModel(g_model);\r\n if (model->version() != TFLITE_SCHEMA_VERSION) {\r\n MicroPrintf(\r\n \"Model provided is schema version %d not equal \"\r\n \"to supported version %d.\\n\",\r\n model->version(), TFLITE_SCHEMA_VERSION);\r\n }\r\n\r\n // This pulls in all the operation implementations we need.\r\n // NOLINTNEXTLINE(runtime-global-variables)\r\n static tflite::AllOpsResolver resolver;\r\n\r\n // Build an interpreter to run the model with.\r\n static tflite::MicroInterpreter static_interpreter(\r\n model, resolver, tensor_arena, kTensorArenaSize);\r\n interpreter = &static_interpreter;\r\n\r\n // Allocate memory from the tensor_arena for the model's tensors.\r\n TfLiteStatus allocate_status = interpreter->AllocateTensors();\r\n if (allocate_status != kTfLiteOk) {\r\n MicroPrintf(\"AllocateTensors() failed\");\r\n return;\r\n }\r\n\r\n // Obtain a pointer to the model's input tensor\r\n input = interpreter->input(0);\r\n input->dims->data[0] = 1;\r\n input->dims->data[1] = 30;\r\n input->dims->data[2] = 1;\r\n input->dims->data[3] = 1;\r\n\r\n MicroPrintf(\"size:%d data:%d data1:%d data2:%d \\n\",input->dims->size,input->dims->data[0],input->dims->data[1],input->dims->data[2],input->type);\r\n Serial.println(input->type);\r\n \r\n\r\n\r\n float input_data[1][30][1] = {\r\n {\r\n {0.14},\r\n {0.95},\r\n {0.33},\r\n {0.25},\r\n {0.29},\r\n {0.26},\r\n {0.88},\r\n {0.78},\r\n {0.78},\r\n {0.5},\r\n {0.59},\r\n {0.65},\r\n {0.38},\r\n {0.27},\r\n {0.3},\r\n {0.27},\r\n {0.5},\r\n {0.01},\r\n {0.275},\r\n {0.333},\r\n {0.237},\r\n {0.54},\r\n {0.91},\r\n {0.96},\r\n {0.83},\r\n {0.023},\r\n {0.87},\r\n {0.534},\r\n {0.32},\r\n {0.50}\r\n }\r\n }; // Put your input data here\r\n for (int i = 0; i < 30; i++) {\r\n input->data.f[i] = input_data[0][i][0];\r\n }\r\n\r\n TfLiteStatus invoke_status = interpreter->Invoke();\r\n if (invoke_status != kTfLiteOk) {\r\n MicroPrintf(\"Invoke failed\\n\");\r\n }\r\n\r\n output = interpreter->output(0);\r\n output_type = interpreter->output(1);\r\n output_precip = interpreter->output(0);\r\n\r\n MicroPrintf(\"size:%d data:%d data1:%d type:%c\\n\",output->dims->size,output->dims->data[0],output->dims->data[1],input->type);\r\n\r\n Serial.println(output_type->type);\r\n Serial.println(output_precip->type);\r\n float output_val = output->data.f[0];\r\n\r\n MicroPrintf(\"Output value: %f\\n\", output_val);\r\n \r\n}\r\n\r\nvoid loop() {}", "According to this [1825](https://github.com/tensorflow/tflite-micro/issues/1825) and [patch](https://github.com/tensorflow/tflite-micro/files/11012191/0001-changes-to-add-to-support-int32-types-for-LSTM.patch), I have tried to modify the CMSIS-NN/add.cpp, the error didn't run, but the output values is NaN. \r\n@tiruk007\r\n\r\n", "@pjpratik \r\nCould you please look into this\r\n\r\nThank you!", "Hi @Fabiran \r\n\r\nI see that you are using TF 2.3. We recommend you to use latest stable version TF 2.11 and also fusion code lab for Keras LSTM conversion which can be found [here](https://www.tensorflow.org/lite/models/convert/rnn#example).\r\n\r\nIn your case,\r\n\r\n```\r\nrun_model = tf.function(lambda x: model(x))\r\n# This is important, let's fix the input size.\r\nBATCH_SIZE = 1\r\nSTEPS = window_size\r\nINPUT_SIZE = 1\r\nconcrete_func = run_model.get_concrete_function(\r\n tf.TensorSpec([BATCH_SIZE, STEPS, INPUT_SIZE], model.inputs[0].dtype))\r\n\r\n# model directory.\r\nMODEL_DIR = \"keras_lstm\"\r\nmodel.save(MODEL_DIR, save_format=\"tf\", signatures=concrete_func)\r\n\r\nconverter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR)\r\ntflite_model = converter.convert()\r\nwith open(f\"model1.tflite\", \"wb\") as f:\r\n f.write(tflite_model)\r\n````\r\nCan you please try this and let us know if the issue still persists.\r\n\r\nThanks.", "> Hi @Fabiran\r\n> \r\n> I see that you are using TF 2.3. We recommend you to use latest stable version TF 2.11 and also fusion code lab for Keras LSTM conversion which can be found [here](https://www.tensorflow.org/lite/models/convert/rnn#example).\r\n> \r\n> In your case,\r\n> \r\n> ```\r\n> run_model = tf.function(lambda x: model(x))\r\n> # This is important, let's fix the input size.\r\n> BATCH_SIZE = 1\r\n> STEPS = window_size\r\n> INPUT_SIZE = 1\r\n> concrete_func = run_model.get_concrete_function(\r\n> tf.TensorSpec([BATCH_SIZE, STEPS, INPUT_SIZE], model.inputs[0].dtype))\r\n> \r\n> # model directory.\r\n> MODEL_DIR = \"keras_lstm\"\r\n> model.save(MODEL_DIR, save_format=\"tf\", signatures=concrete_func)\r\n> \r\n> converter = tf.lite.TFLiteConverter.from_saved_model(MODEL_DIR)\r\n> tflite_model = converter.convert()\r\n> with open(f\"model1.tflite\", \"wb\") as f:\r\n> f.write(tflite_model)\r\n> ```\r\n> \r\n> Can you please try this and let us know if the issue still persists.\r\n> \r\n> Thanks.\r\n\r\nHello, @pjpratik. It is the same issue. tensorflow==2.11 and use get_concrete_function.\r\n![1679676819879](https://user-images.githubusercontent.com/127216064/227590437-f7df8761-be09-4dd8-b182-879a03fd30ee.jpg)\r\n\r\n![1679673076818](https://user-images.githubusercontent.com/127216064/227575620-6cea61c7-94a5-49e7-8493-1efca7d44555.jpg)\r\n", "Maybe I find a solution, acorrding to this [issue](https://github.com/tensorflow/tflite-micro/issues/1825) and [patch](https://github.com/tensorflow/tflite-micro/files/11012191/0001-changes-to-add-to-support-int32-types-for-LSTM.patch), and take your advice, what' more, I find that the SRAM of arduino nano 33 ble sense is possibly not enough to run the model, so I reduce the LSTM unit and window size, eg: model.add(LSTM(***20***, activation='relu', return_sequences=False, input_shape=(window_size, 1))). And this model needs to be further optimized. Whether this issue has been specifically resolved remains to be considered.", "Hi @Fabiran Thanks for the information. Is the issue resolved by making those changes?\r\n\r\nI have tested the code in python and found no issue while performing inference using `interpretr.invoke` with provided values.The tflite output was aligned to the model's output. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/6292148fc3144b2cdd4ca6d9a1cc1bd7/60055.ipynb).\r\n\r\nThanks.", "Hi, @pjpratik . It is resolved, thanks for your help!", "Hi @Fabiran, glad it is resolved.\r\n\r\nPlease feel free to close the issue.\r\n\r\nThanks.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "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/60055\">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/60055\">No</a>\n" ]
2023-03-21T06:03:18
2023-04-14T01:52:18
2023-04-14T01:52:15
NONE
null
null
null
**System information** - OS Platform : window10 - TensorFlow installed from (source or binary): pip - TensorFlow version (or github SHA if from source):2.3.3 - board: Arduino Nano 33 ble sense I tried to run TensorFlow Lite for Microcontrollers with Arduino Nano 33 ble sense, the model is my custom LSTM. And the result : Type INT32 (2) not supported.Node ADD (number 0) failed to invoke with status 1.Node WHILE (number 10) failed to invoke with status 1.Invoke failed. But it has output values. ![model1 tflite](https://user-images.githubusercontent.com/127216064/226529585-4acac340-fb0b-4f24-a3ea-b1a588c41648.png)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60055/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60055/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60054
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60054/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60054/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60054/events
https://github.com/tensorflow/tensorflow/issues/60054
1,633,172,140
I_kwDOArmXAs5hWDqs
60,054
Build Error in Mac OS
{ "login": "mayankagarwals", "id": 39498938, "node_id": "MDQ6VXNlcjM5NDk4OTM4", "avatar_url": "https://avatars.githubusercontent.com/u/39498938?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mayankagarwals", "html_url": "https://github.com/mayankagarwals", "followers_url": "https://api.github.com/users/mayankagarwals/followers", "following_url": "https://api.github.com/users/mayankagarwals/following{/other_user}", "gists_url": "https://api.github.com/users/mayankagarwals/gists{/gist_id}", "starred_url": "https://api.github.com/users/mayankagarwals/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mayankagarwals/subscriptions", "organizations_url": "https://api.github.com/users/mayankagarwals/orgs", "repos_url": "https://api.github.com/users/mayankagarwals/repos", "events_url": "https://api.github.com/users/mayankagarwals/events{/privacy}", "received_events_url": "https://api.github.com/users/mayankagarwals/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": 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" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @mayankagarwals\r\nApologies for the delay. At the moment you can use TF v2.11 whl file available [here](https://www.tensorflow.org/install/pip#package_location). As far as I know, `tensorflow-2.13.0-cp38-cp38-macosx_12_0_x86_64.whl` is not available in the official document. Hence, you are getting the above error message. Kindly use the stable wheel file which is `tensorflow-2.11.0-cp38-cp38-macosx_10_14_x86_64.whl`. Thank you!", "Hey @synandi \r\n\r\nI was actually trying to build from source with the intention of contributing to tensorflow. While I was not able to build the mac binary, I got around it by spinning up a linux docker container, mounting my local directory there and building linux binary. Thanks for the response though :) \r\n\r\nClosing the issue as I think mac binaries are unstable", "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/60054\">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/60054\">No</a>\n" ]
2023-03-21T03:42:03
2023-03-24T12:44:22
2023-03-24T12:44:19
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.13 ### Custom Code No ### OS Platform and Distribution macOS Monterey ### Mobile device _No response_ ### Python version 3.9 ### Bazel version 5.3.0 ### GCC/Compiler version Apple clang version 13.1.6 (clang-1316.0.21.2.5) ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Running `pip install /tmp/tensorflow_pkg/tensorflow-2.13.0-cp38-cp38-macosx_12_0_x86_64.whl` Leads to `tensorflow-2.13.0-cp38-cp38-macosx_12_0_x86_64.whl is not a supported wheel on this platform` Built the code from source using https://www.tensorflow.org/install/source ``` ### Standalone code to reproduce the issue ```shell No Code ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60054/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60054/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60053
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60053/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60053/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60053/events
https://github.com/tensorflow/tensorflow/issues/60053
1,633,107,746
I_kwDOArmXAs5hVz8i
60,053
Efficientnet B7 classification conversion from tf to tflite fails tflite imagenet evaluation test
{ "login": "suyash-narain", "id": 78979784, "node_id": "MDQ6VXNlcjc4OTc5Nzg0", "avatar_url": "https://avatars.githubusercontent.com/u/78979784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suyash-narain", "html_url": "https://github.com/suyash-narain", "followers_url": "https://api.github.com/users/suyash-narain/followers", "following_url": "https://api.github.com/users/suyash-narain/following{/other_user}", "gists_url": "https://api.github.com/users/suyash-narain/gists{/gist_id}", "starred_url": "https://api.github.com/users/suyash-narain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suyash-narain/subscriptions", "organizations_url": "https://api.github.com/users/suyash-narain/orgs", "repos_url": "https://api.github.com/users/suyash-narain/repos", "events_url": "https://api.github.com/users/suyash-narain/events{/privacy}", "received_events_url": "https://api.github.com/users/suyash-narain/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": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
open
false
{ "login": "arfaian", "id": 1106365, "node_id": "MDQ6VXNlcjExMDYzNjU=", "avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arfaian", "html_url": "https://github.com/arfaian", "followers_url": "https://api.github.com/users/arfaian/followers", "following_url": "https://api.github.com/users/arfaian/following{/other_user}", "gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}", "starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arfaian/subscriptions", "organizations_url": "https://api.github.com/users/arfaian/orgs", "repos_url": "https://api.github.com/users/arfaian/repos", "events_url": "https://api.github.com/users/arfaian/events{/privacy}", "received_events_url": "https://api.github.com/users/arfaian/received_events", "type": "User", "site_admin": false }
[ { "login": "arfaian", "id": 1106365, "node_id": "MDQ6VXNlcjExMDYzNjU=", "avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arfaian", "html_url": "https://github.com/arfaian", "followers_url": "https://api.github.com/users/arfaian/followers", "following_url": "https://api.github.com/users/arfaian/following{/other_user}", "gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}", "starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arfaian/subscriptions", "organizations_url": "https://api.github.com/users/arfaian/orgs", "repos_url": "https://api.github.com/users/arfaian/repos", "events_url": "https://api.github.com/users/arfaian/events{/privacy}", "received_events_url": "https://api.github.com/users/arfaian/received_events", "type": "User", "site_admin": false }, { "login": "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
[ "@suyash-narain \r\nCould you please try to convert the model by using `hub.load()` or `hub.KerasLayer()` as per [Doc1](https://www.tensorflow.org/hub/migration_tf2#summary_of_the_new_api) & [Doc2](https://tfhub.dev/tensorflow/efficientnet/b7/classification/1) then try to evaluate tf-lite model. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/a64d6cf4de9f727456208d5e4611c31d/untitled163.ipynb) for reference and let us know if still issue persists.\r\n\r\nThank you !", "> @suyash-narain Could you please try to convert the model by using `hub.load()` or `hub.KerasLayer()` as per [Doc1](https://www.tensorflow.org/hub/migration_tf2#summary_of_the_new_api) & [Doc2](https://tfhub.dev/tensorflow/efficientnet/b7/classification/1) then try to evaluate tf-lite model. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/a64d6cf4de9f727456208d5e4611c31d/untitled163.ipynb) for reference and let us know if still issue persists.\r\n> \r\n> Thank you !\r\n\r\nHi, i tried to convert the model using `hub.load()` or `hub.KerasLayer()` as specified in the colab gist sent by you. I still get the same error. \r\n\r\nif i use the below method:\r\n\r\n> import tensorflow as tf\r\n> import tensorflow_hub as hub\r\n> \r\n> m = tf.keras.Sequential([hub.KerasLayer(\"https://tfhub.dev/tensorflow/efficientnet/b7/classification/1\")])\r\n> m.build([None, 600, 600, 3])# Batch input shape.\r\n> \r\n> m.save('model')\r\n> \r\n> converter = tf.lite.TFLiteConverter.from_saved_model(\"/content/model\")\r\n> converter.target_spec.supported_ops = [\r\n> tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.\r\n> tf.lite.OpsSet.SELECT_TF_OPS, # enable TensorFlow ops.\r\n> ]\r\n> \r\n> tflite_file = \"effnetB7_model.tflite\"\r\n> with open(tflite_file, 'wb') as f:\r\n> f.write(converter.convert()) \r\n\r\nthe input shape becomes (1,600,600,3) as desired, and has the output shape (1,1000). The official ImageNetLabels.txt available at https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt has total of 1001 labels ranging from (0-1000). So in that way, the output shape for this model should be (1,1001). When I run it against tflite imagenet evaluation tool, i get the same error` 'model_output_ not set correctly'`. If i remove 0-background label from label file to bring total labels to 1000, i still get the same error. \r\n\r\nI get similar error results if i use `hub.load()`", "@suyash-narain \r\nCould you please provide detailed steps of tflite imagenet evaluation test to replicate the issue reported here ?\r\n\r\nThank you!", "@tiruk007 Please find the detailed steps I exercised towards building the provided tflite imagenet evaluation tool:\r\n\r\n1. clone tensorflow from github:\r\n\r\n> $ git clone \"https://github.com/tensorflow/tensorflow.git\"\r\n> $ cd tensorflow\r\n\r\n 2. Download ILSVRC validation dataset consisting of 50k images from http://image-net.org/request: ILSVRC2012_img_val https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar\r\n\r\n3. Download ILSVRC 2012 dev kit: ILSVRC2012_devkit_t12 (tasks1&2) https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz\r\n\r\n4. Generate Ground Truth Labels:\r\n\r\n> python /tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/generate_validation_labels.py \\\r\n> --ilsvrc_devkit_dir=path/to/ILSVRC2012_devkit_t12 \\\r\n> --validation_labels_output=output_labels.txt\r\n\r\n5. Download imagenet labels from https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt\r\n\r\n6. Build and run on Ubuntu desktop:\r\n\r\n \r\n\r\n> bazel run -c opt\r\n> -- \r\n> //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval\r\n> --model_file=mbnv2_model_test1.tflite\r\n> --ground_truth_images_path=path/to/ILSVRC2012_img_val\r\n> --ground_truth_labels=path/to/output_labels.txt\r\n> --model_output_labels=path/to/ImageNetLabels.txt\r\n> --output_file_path=accuracy_output.txt\r\n> --num_images=0 # Run on all images.\r\n", "Hi @suyash-narain \r\n\r\nSorry for the delayed response.\r\n\r\nAs the tool for evaluation is based on ILSVRC 2012 task, the classes with shape [1,1001] are only accepted for the evaluation. The tensorflow hub provides modules trained on ImageNet (ILSVRC-2012-CLS) which return the output shapes as `[1,1001]` and can be evaluated using the tool.\r\n\r\nPlease find the list of models [here](https://tfhub.dev/google/collections/image/1).\r\n\r\nThanks.", "Hi @pjpratik \r\nYour reply confuses me. If i use a mobilenetv2 tflite model created using keras application layers as below:\r\n\r\n> model = tf.keras.applications.mobilenet_v2.MobileNetV2(\r\n> input_shape=None,\r\n> alpha=1.0,\r\n> include_top=True,\r\n> weights='imagenet',\r\n> input_tensor=None,\r\n> pooling='avg',\r\n> classes=1000,\r\n> classifier_activation='softmax'\r\n> )\r\n> converter = tf.lite.TFLiteConverter.from_keras_model(model)\r\n> tflite_file = \"mobilenet_v2_keras_model.tflite\"\r\n> with open(tflite_file, 'wb') as f:\r\n> f.write(converter.convert())\r\n\r\ni get output model shape as [1.1000]. I run this model against imagenet labels having 1000 classes from 1-1000 (removing 0-background), and it works. Same way, if i run efficientnetlite4 downloaded from https://tfhub.dev/tensorflow/efficientnet/lite4/classification/2, and run it against imagenet labels having 1000 classes from 1-1000 after removing 0-background class, it still works. \r\nIts just the efficientnet B7 downloaded from tfhub and converted to tflite that fails. even the classification accuracy on individual images is off the charts. \r\nSo what changes can i make to execute efficientnet B7 perfectly against imagenet evaluation tool, or increase accuracy of tflite model. I think this model was also trained against imagenet dataset.\r\n\r\nthanks\r\n\r\n> Hi @suyash-narain\r\n> \r\n> Sorry for the delayed response.\r\n> \r\n> As the tool for evaluation is based on ILSVRC 2012 task, the classes with shape [1,1001] are only accepted for the evaluation. The tensorflow hub provides modules trained on ImageNet (ILSVRC-2012-CLS) which return the output shapes as `[1,1001]` and can be evaluated using the tool.\r\n> \r\n> Please find the list of models [here](https://tfhub.dev/google/collections/image/1).\r\n> \r\n> Thanks.\r\n\r\n", "Hi @suyash-narain Thanks for the clarification.\r\n\r\nSorry for the delayed response. I was able to reproduce this issue. Please find the screenshot here.\r\n\r\n<img width=\"565\" alt=\"Screenshot 2023-04-06 at 12 27 18 PM\" src=\"https://user-images.githubusercontent.com/118897289/230296057-ce4de44c-1743-4b4b-943d-996bda7c3826.png\">\r\n\r\n\r\n@sachinprasadhs Could you please look into this? Thanks." ]
2023-03-21T01:54:12
2023-04-11T17:49:04
null
NONE
null
null
null
### System information - **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Linux Ubuntu 20.04 - **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on a mobile device**: No - **TensorFlow installed from (source or binary)**: Binary - **TensorFlow version (use command below)**: 2.11 - **Python version**: 3.9 ### Describe the problem I am trying to convert efficientnet_b7_classification model available in tfhub: https://storage.googleapis.com/tfhub-modules/tensorflow/efficientnet/b7/classification/1.tar.gz to tflite I use the below code snippet to convert the saved model to tflite: > import tensorflow as tf > converter = tf.lite.TFLiteConverter.from_saved_model('saved_model') > tflite_model = converter.convert() > with open('model.tflite', 'wb') as f: > f.write(tflite_model) on visualizing the model on netron, i saw that the input to the model is of shape (1,1,1,3). whereas, the input to efficientnet_b7 is 600x600. So the converted model should have the shape (1,600,600,3), but i don't see this. The output of the model is of the shape (1,1000). > I try to change the input shape using the below snippet: > model = tf.saved_model.load('saved_model') > concrete_func = model.signatures["serving_default"] > concrete_func.inputs[0].set_shape([1,600,600,3]) > converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func],model) > tflite_model = converter.conver But on visualizing the model, i still see the input shape as (1,1,1,3), and output shape is (1,1000). The model has been trained on imagenet so output shape should be fine with the label file consisting of 1000 labels starting from 1-1000 instead of 0-1000 which includes the dummy as well. so from my labelfile, i removed the dummy, and it then used the same labelfile to evaluate the tflite model using the imagenet_image_classification run_eval binary. On running it against the converted tflite model, i get the below error log, which seemingly says that the model output shape is wrong. What is the correct way to go about converting and testing efficientnet_b7 model? The output shape of mobilenets is (1,1001), whereas that of efficientnets is (1,1000) even though both are trained on imagenet dataset. why is that so? thanks! ### Source code / logs > $ bazel run -c opt -- //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval --model_file=/home/mtk/Downloads/efficientnet_b7_float_model.tflite --ground_truth_images_path=/home/mtk/Downloads/ILSVRC2012_img_val --ground_truth_labels=/home/mtk/Documents/val.txt --model_output_labels=/home/mtk/Documents/tflite_models/imagenet_classes.txt --output_file_path=tmp/accuracy_output.txt --num_images=0 > INFO: Options provided by the client: > Inherited 'common' options: --isatty=1 --terminal_columns=79 > INFO: Reading rc options for 'run' from /home/mtk/Documents/tensorflow/.bazelrc: > Inherited 'common' options: --experimental_repo_remote_exec > INFO: Reading rc options for 'run' from /home/mtk/Documents/tensorflow/.bazelrc: > Inherited 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils > INFO: Found applicable config definition build:short_logs in file /home/mtk/Documents/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING > INFO: Found applicable config definition build:v2 in file /home/mtk/Documents/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 > INFO: Found applicable config definition build:linux in file /home/mtk/Documents/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes > INFO: Found applicable config definition build:dynamic_kernels in file /home/mtk/Documents/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS > INFO: Analyzed target //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval (0 packages loaded, 0 targets configured). > INFO: Found 1 target... > Target //tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification:run_eval up-to-date: > bazel-bin/tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/run_eval > INFO: Elapsed time: 0.091s, Critical Path: 0.00s > INFO: 1 process: 1 internal. > INFO: Build completed successfully, 1 total action > INFO: Running command line: bazel-bin/tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification/run_eval '--model_file=/home/mtk/Downloads/efficientnet_b7_float_model.tflite' '--ground_truth_images_path=/home/mtk/Downloads/ILSVRC2012_img_val' '--ground_truth_labels=/home/mtk/Documents/val.txt' '--model_output_labels=/home/mtk/Documents/tflite_models/imagenet_classes.txt' '--output_INFO: Build completed successfully, 1 total action > INFO: Created TensorFlow Lite XNNPACK delegate for CPU. > INFO: Evaluated: 0% > 2023-03-20 18:49:35.911460: E tensorflow/lite/tools/evaluation/stages/topk_accuracy_eval_stage.cc:80] model_output_ not set correctly > ERROR: Could not run the task evaluation!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60053/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60053/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60052
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60052/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60052/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60052/events
https://github.com/tensorflow/tensorflow/issues/60052
1,633,093,491
I_kwDOArmXAs5hVwdz
60,052
variant_op_registry.h:114 Check failed: existing == nullptr UnaryVariantDeviceCopy for direction: 1 and type_index: tensorflow::Tensor already registered
{ "login": "DimanNe", "id": 279056, "node_id": "MDQ6VXNlcjI3OTA1Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/279056?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DimanNe", "html_url": "https://github.com/DimanNe", "followers_url": "https://api.github.com/users/DimanNe/followers", "following_url": "https://api.github.com/users/DimanNe/following{/other_user}", "gists_url": "https://api.github.com/users/DimanNe/gists{/gist_id}", "starred_url": "https://api.github.com/users/DimanNe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DimanNe/subscriptions", "organizations_url": "https://api.github.com/users/DimanNe/orgs", "repos_url": "https://api.github.com/users/DimanNe/repos", "events_url": "https://api.github.com/users/DimanNe/events{/privacy}", "received_events_url": "https://api.github.com/users/DimanNe/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" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "### Potential workaround\r\n\r\nIt looks like removing `--config=monolithic` from the build command fixes the issue.\r\n\r\n(I am not 100% sure because there is another error, but it seems it is now a completely different error regarding python installation/dirs...)", "Still wondering how it was supposed to work with `--config=monolithic`.", "Hi @Damine, \r\nThank you for reporting the issue! We are trying to replicate the issue on our end. could you please share complete steps you've followed to build tensorflow?\r\nI was successfully able to build tensorflow with the below code\r\n ```\r\nbazel build --verbose_failures //tensorflow/tools/pip_package:build_pip_package\r\n```\r\nKindly refer to the screenshot below.\r\n![image](https://user-images.githubusercontent.com/98147397/226950961-b296024e-5422-4af5-b1bf-5b1fad221034.png)\r\n\r\nThank you!\r\n\r\n ", "Yep, I think it works fine **without** `--config=monolithic`.", "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/60052\">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/60052\">No</a>\n" ]
2023-03-21T01:25:54
2023-03-25T10:50:05
2023-03-25T10:50:03
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version r2.12 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04.2 LTS ### Mobile device _No response_ ### Python version 3.10.6 ### Bazel version 5.3.0 ### GCC/Compiler version 11.3.0 ### CUDA/cuDNN version 12.0 ### GPU model and memory _No response_ ### Current Behaviour? I am following the [official docs](https://www.tensorflow.org/install/source) on how to build it from source and got this error: `bazel build --verbose_failures --config=cuda --config=monolithic //tensorflow/tools/pip_package:build_pip_package` ``` 2023-03-21 00:37:20.736329: F ./tensorflow/core/framework/variant_op_registry.h:114] Check failed: existing == nullptr (0x606472d59ab8 vs. nullptr)UnaryVariantDeviceCopy for direction: 1 and type_index: tensorflow::Tensor already registered ``` After some debugging in gdb, it look like this issue happens because two "competing" libraries get loaded (each of which tries to register same device copy function. Below are (abbreviated) backtraces: 3 (per-direction 3 in total) registrations from libtensorflow_framework.so.2 that looks like this: ``` Breakpoint 1, 0x000073e06f9670a8 in tensorflow::UnaryVariantOpRegistry::RegisterDeviceCopyFn(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Variant const&, tensorflow::Variant*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #0 0x000073e06f9670a8 in tensorflow::UnaryVariantOpRegistry::RegisterDeviceCopyFn(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Variant const&, tensorflow::Variant*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #1 0x000073e070509cfc in tensorflow::variant_op_registry_fn_registration::UnaryVariantDeviceCopyRegistration<tensorflow::Tensor>::UnaryVariantDeviceCopyRegistration(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #2 0x000073e06f425e78 in _GLOBAL__sub_I_copy_tensor.cc () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #3 0x000073e07187547e in call_init (l=<optimized out>, argc=argc@entry=17, argv=argv@entry=0x7ffcb9ade588, env=env@entry=0x7ffcb9ade618) at ./elf/dl-init.c:70 ``` And then one attempt to register, presumably same copy function from libtensorflow_cc.so.2: ``` Breakpoint 1, 0x000073e06f9670a8 in tensorflow::UnaryVariantOpRegistry::RegisterDeviceCopyFn(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Variant const&, tensorflow::Variant*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #0 0x000073e06f9670a8 in tensorflow::UnaryVariantOpRegistry::RegisterDeviceCopyFn(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Variant const&, tensorflow::Variant*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #1 0x000073e070509cfc in tensorflow::variant_op_registry_fn_registration::UnaryVariantDeviceCopyRegistration<tensorflow::Tensor>::UnaryVariantDeviceCopyRegistration(tensorflow::VariantDeviceCopyDirection, tensorflow::TypeIndex const&, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*, std::function<tsl::Status (tensorflow::Tensor const&, tensorflow::Tensor*)>)> const&) () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Clibtensorflow_Uframework_Uimport_Ulib___Utensorflow/libtensorflow_framework.so.2 #2 0x000073e04f15e458 in _GLOBAL__sub_I_copy_tensor.cc () from /home/dimanne/.cache/bazel/_bazel_dimanne/33c66632a93eff405a3246128a23107c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/../../../_solib_local/_U_S_Stensorflow_Spython_C_Upywrap_Utensorflow_Uinternal.so_Ucclib___Utensorflow/libtensorflow_cc.so.2 #3 0x000073e07187547e in call_init (l=<optimized out>, argc=argc@entry=17, argv=argv@entry=0x7ffcb9ade588, env=env@entry=0x7ffcb9ade618) at ./elf/dl-init.c:70 ``` I found a ~similar issue on [SO](https://stackoverflow.com/questions/53113327/tensorflow-c-error-unary-variantshapefn-for-type-name-int-already-registered) Does anyone have any ideas how to fix it? ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60052/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60052/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60051
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60051/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60051/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60051/events
https://github.com/tensorflow/tensorflow/pull/60051
1,632,974,308
PR_kwDOArmXAs5Mfxbt
60,051
Update RELEASE.md for 2.12
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-20T22:46:23
2023-03-21T15:15:56
2023-03-20T23:12:25
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60051", "html_url": "https://github.com/tensorflow/tensorflow/pull/60051", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60051.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60051.patch", "merged_at": "2023-03-20T23:12:25" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60051/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60051/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60050
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60050/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60050/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60050/events
https://github.com/tensorflow/tensorflow/pull/60050
1,632,952,846
PR_kwDOArmXAs5Mfs9Z
60,050
Update the security section in RELEASE.md
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-20T22:20:31
2023-03-20T22:36:43
2023-03-20T22:22:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60050", "html_url": "https://github.com/tensorflow/tensorflow/pull/60050", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60050.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60050.patch", "merged_at": "2023-03-20T22:22:08" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60050/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60050/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60049
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60049/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60049/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60049/events
https://github.com/tensorflow/tensorflow/pull/60049
1,632,917,116
PR_kwDOArmXAs5MflDw
60,049
Update setup.py on TF release branch with released version of Estimat…
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-20T21:50:58
2023-03-20T21:51:27
2023-03-20T21:51:24
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60049", "html_url": "https://github.com/tensorflow/tensorflow/pull/60049", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60049.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60049.patch", "merged_at": "2023-03-20T21:51:24" }
Update setup.py on TF release branch with released version of Estimator and keras.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60049/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60049/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60048
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60048/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60048/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60048/events
https://github.com/tensorflow/tensorflow/issues/60048
1,632,867,955
I_kwDOArmXAs5hU5Zz
60,048
TensorArray throws AttributeError in gradient computation
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @trickiwoo,\r\n\r\nAs TensorArray is a wrapper class for dynamic sized,, per-time-step, Tensor arrays. Also from documentation this class is meant to be used with dynamic iteration primitives such as `while_loop` and `map_fn`. \r\n\r\nIt supports gradient `back-propagation` via special \"flow\" control flow dependencies. Please also refer to [tf.raw_ops](https://www.tensorflow.org/api_docs/python/tf/raw_ops) which confirms it supports gradient.\r\n\r\nFor your case mentioned since they are not using any dynamic iteration primitives, you can use `tf.stack()` to collect all elements at once and then apply gradients or use `tf.read()` iteratively to collect elements one by one and apply gradients.\r\nHowever the correct way to use TensorArray is by using with dynamic iteration primitives such as `while_loop` and `map_fn`.\r\n\r\nI just added a simple [gist](https://colab.research.google.com/gist/SuryanarayanaY/c84d303dd7d569bcfe4c73bf79a8a2be/60048.ipynb#scrollTo=NfqXvYrilJqE) here for your reference. Please let us know if it helps.\r\n\r\nThank you!", "Hi @SuryanarayanaY , thanks for your detailed inputs! \r\n\r\nI've tried your example with the `for` loop and it works well with the gradient computation:\r\n\r\n```\r\nv = tf.Variable(1)\r\n@tf.function\r\ndef f(x):\r\n ta = tf.TensorArray(tf.int32, size=0, dynamic_size=True)\r\n for i in tf.range(x):\r\n v.assign_add(i)\r\n ta = ta.write(i, v)\r\n return ta\r\nf(5)\r\n```\r\nAnd made a few modifications as follows. It turns out that without dynamic iteration primitives, `tf.read()`, or `tf.stack()`, it doesn't throw any error, contrasting the case I reported before. The usage of TensorArray, and whether it supports back propagation seems vague. I think it would be great if there could have a consistently defined behavior or produce a better error message.\r\n```\r\nimport os\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\nv = tf.Variable(1)\r\n@tf.function\r\ndef f(x):\r\n ta = tf.TensorArray(tf.int32, size=4, dynamic_size=True)\r\n ta = ta.write(0, v)\r\n return ta\r\n\r\n\r\nwith tf.GradientTape() as tape:\r\n tape.watch(v)\r\n t = f(5)\r\ngradient = tape.jacobian(t, v)\r\n```", "Hi @trickiwoo ,\r\n\r\nCould I know what error message you want to display?(I assuming you want to display the error regarding the usage of TensorArray w.r.t Gradients). Due to performance reasons all the checks are not getting validated. If you want to propose some changes to documentation or want to accommodate user error or want to add some more example codes please feel free to propose a PR and Team may happily review 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/60048\">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/60048\">No</a>\n" ]
2023-03-20T21:09:04
2023-04-12T01:53:38
2023-04-12T01:53:35
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell The [documentation](https://www.tensorflow.org/api_docs/python/tf/TensorArray) claims that TensorArray "supports gradient back-propagation via special "flow" control flow dependencies". However, it seems that `TensorArray` is an [unsupported type](https://github.com/tensorflow/tensorflow/blob/d5b57ca93e506df258271ea00fc29cf98383a374/tensorflow/python/ops/gradient_checker_v2.py#L261) for gradient computation at the moment. It would be great if there is clarification, in documentation or better error message. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf elems = tf.ones(shape=[2]) def init_tensor_array(elems): ta = tf.TensorArray(dtype=tf.float32, size=4, dynamic_size=True) ta = ta.write(0, elems) return ta ta = init_tensor_array(elems) with tf.GradientTape() as tape: tape.watch(elems) t = init_tensor_array(elems) gradient = tape.jacobian(t, elems) ``` ### Relevant log output ```shell AttributeError: 'TensorArray' object has no attribute 'shape' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60048/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60048/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60047
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60047/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60047/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60047/events
https://github.com/tensorflow/tensorflow/pull/60047
1,632,843,261
PR_kwDOArmXAs5MfVDF
60,047
Fused MHA Support in XLA GPU: Stream Executor changes
{ "login": "AyanmoI", "id": 42984676, "node_id": "MDQ6VXNlcjQyOTg0Njc2", "avatar_url": "https://avatars.githubusercontent.com/u/42984676?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AyanmoI", "html_url": "https://github.com/AyanmoI", "followers_url": "https://api.github.com/users/AyanmoI/followers", "following_url": "https://api.github.com/users/AyanmoI/following{/other_user}", "gists_url": "https://api.github.com/users/AyanmoI/gists{/gist_id}", "starred_url": "https://api.github.com/users/AyanmoI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AyanmoI/subscriptions", "organizations_url": "https://api.github.com/users/AyanmoI/orgs", "repos_url": "https://api.github.com/users/AyanmoI/repos", "events_url": "https://api.github.com/users/AyanmoI/events{/privacy}", "received_events_url": "https://api.github.com/users/AyanmoI/received_events", "type": "User", "site_admin": false }
[ { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "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
[ "@cheshire There were some issues rebasing the other [PR](https://github.com/tensorflow/tensorflow/pull/60002) branch. So I created a this PR with the same changes and closed the other PR. Please approve this PR. Sorry about the confusion. I am resolving the build issue in the tests. This is due to introduction of new cudnn frontend.", "I think @akuegel is also fixing this internally.", "> I think @akuegel is also fixing this internally.\r\n\r\nI just checked, and there are differences in the fixes. Let's import again and see whether additional fixes will be needed, and if not, we can take it as is.", "This has been merged. I had to also apply some fixes suggested by ClangTidy as it was also blocking the submit.", "Unfortunately this change needs to be rolled back, it seems it breaks JAX build under CUDA 11.4 and CuDNN 8.2", "> Unfortunately this change needs to be rolled back, it seems it breaks JAX build under CUDA 11.4 and CuDNN 8.2\r\n\r\n@akuegel what are the issues? We can work on fixing them and re-merge.", "Can we re-open this PR to work on fixing the issues? I don't see a way to re-open this. ", "It fails to build under CUDA 11.4 /CuDNN 8.2:\r\n\r\n```\r\nexternal/xla/xla/stream_executor/cuda/cuda_dnn.cc: At global scope:\r\nexternal/xla/xla/stream_executor/cuda/cuda_dnn.cc:3500:5: error: 'cudnnBackendTensorReordering_t' has not been declared\r\n 3500 | cudnnBackendTensorReordering_t cudnn_tensor_order_type =\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nexternal/xla/xla/stream_executor/cuda/cuda_dnn.cc:3501:9: error: 'CUDNN_TENSOR_REORDERING_NONE' was not declared in this scope; did you mean 'cudnn_frontend::cudnnBackendTensorReordering_t::CUDNN_TENSOR_REORDERING_NONE'?\r\n 3501 | CUDNN_TENSOR_REORDERING_NONE,\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n | cudnn_frontend::cudnnBackendTensorReordering_t::CUDNN_TENSOR_REORDERING_NONE\r\nIn file included from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_ConvDesc.h:35,\r\n from bazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend.h:100,\r\n from external/xla/xla/stream_executor/cuda/cuda_dnn.cc:56:\r\nbazel-out/k8-opt/bin/external/cudnn_frontend_archive/_virtual_includes/cudnn_frontend/third_party/cudnn_frontend/include/cudnn_frontend_utils.h:376:5: note: 'cudnn_frontend::cudnnBackendTensorReordering_t::CUDNN_TENSOR_REORDERING_NONE' declared here\r\n 376 | CUDNN_TENSOR_REORDERING_NONE,\r\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\netc.\r\n```\r\n\r\n", "@akuegel After reopening the PR, why does it now have only one file? Was this partially merged?", "It looks like only the last commit got reverted. I don't think the issue (of build failing with CUDA 11.4 and CuDNN 8.2) will have resolved with reverting the last commit only.", "> \r\n\r\nActually all of it was reverted:\r\n\r\nhttps://github.com/tensorflow/tensorflow/commit/7a4d2e8b1a503a45ff86d40b0387fc832302379f\r\n\r\nWhy it doesn't show properly merged in this PR, I don't know :-(\r\nMaybe it is easier to create a new PR?", "> > \r\n> \r\n> Actually all of it was reverted:\r\n> \r\n> [7a4d2e8](https://github.com/tensorflow/tensorflow/commit/7a4d2e8b1a503a45ff86d40b0387fc832302379f)\r\n> \r\n> Why it doesn't show properly merged in this PR, I don't know :-( Maybe it is easier to create a new PR?\r\n\r\nYeah..I guess. Let me do that.", "@akuegel @cheshire opened a new PR https://github.com/tensorflow/tensorflow/pull/60139" ]
2023-03-20T20:52:49
2023-03-28T08:58:14
2023-03-28T08:41:27
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60047", "html_url": "https://github.com/tensorflow/tensorflow/pull/60047", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60047.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60047.patch", "merged_at": null }
cuDNN currently supports the following patterns for Multi-headed attention: BMM1 - BMM2 BMM1 - Scale - Bias - Mask - Softmax - BMM2 BMM1 - Scale - Bias - Mask - Softmax - Dropout - BMM2 BMM1 - Scale - Mask - Softmax - BMM2 BMM1 - Scale - Mask - Softmax - Dropout - BMM2 BMM1 - Softmax - Dropout - BMM2 This PR adds support for the stream executor for these patterns.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60047/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60047/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60046
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60046/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60046/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60046/events
https://github.com/tensorflow/tensorflow/pull/60046
1,632,793,216
PR_kwDOArmXAs5MfKjH
60,046
Add handling of TensorRT's new enumeration value `nvinfer1::DataType::kFP8`
{ "login": "linuxmetel", "id": 61399424, "node_id": "MDQ6VXNlcjYxMzk5NDI0", "avatar_url": "https://avatars.githubusercontent.com/u/61399424?v=4", "gravatar_id": "", "url": "https://api.github.com/users/linuxmetel", "html_url": "https://github.com/linuxmetel", "followers_url": "https://api.github.com/users/linuxmetel/followers", "following_url": "https://api.github.com/users/linuxmetel/following{/other_user}", "gists_url": "https://api.github.com/users/linuxmetel/gists{/gist_id}", "starred_url": "https://api.github.com/users/linuxmetel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linuxmetel/subscriptions", "organizations_url": "https://api.github.com/users/linuxmetel/orgs", "repos_url": "https://api.github.com/users/linuxmetel/repos", "events_url": "https://api.github.com/users/linuxmetel/events{/privacy}", "received_events_url": "https://api.github.com/users/linuxmetel/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
[ "@DEKHTIARJonathan ", "Thank you.\r\n\r\nI merged master branch few minutes ago. Now, there hasn't be any conflict yet.", "There is a silent conflict in the latest merge commit. [These lines](https://github.com/tensorflow/tensorflow/blob/10cbe6ef7ad60cdeef873e6a99be86b0ad80693c/tensorflow/compiler/tf2tensorrt/common/utils.cc#L216-L220) are repeated [here](https://github.com/tensorflow/tensorflow/blob/10cbe6ef7ad60cdeef873e6a99be86b0ad80693c/tensorflow/compiler/tf2tensorrt/common/utils.cc#L235-L239). ", "OK, I fixed." ]
2023-03-20T20:14:52
2023-04-14T17:51:16
2023-04-14T17:50:04
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60046", "html_url": "https://github.com/tensorflow/tensorflow/pull/60046", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60046.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60046.patch", "merged_at": "2023-04-14T17:50:04" }
`nvinfer1::DataType::kFP8` added between 8.5.3 and 8.6.0 of TensorRT. (API Reference: [8.5.3](https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-853/api/c_api/namespacenvinfer1.html#a83aed11a1c160f30dcd13809678bdd29), [8.6.0]( https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-860-ea/api/c_api/namespacenvinfer1.html#a83aed11a1c160f30dcd13809678bdd29)) And compiling will be failed with TensorRT 8.6.0 because of this change like #60031. It happens because the new enumeration value hasn't be handled in some switch blocks yet. I added some cases for `kFP8` in switch block of `nvinfer1::DataType` if the switch block has the all of or almost all of cases of the `nvinfer1::Dat aType`'s enumerate types. I think this change doesn't have problem, but I can't compile it because of another problem (which maybe is the same as https://github.com/tensorflow/tensorflow/issues/58881). So I made it a Draft PR for now. <details> <summary>Click to expand!</summary> ``` ERROR: /home/linuxmetel/tensorflow/tensorflow/BUILD:1263:21: Linking tensorflow/libtensorflow_cc.so.2.13.0 failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow_cc.so.2.13.0-2.params /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(sparse_mat_mul_op.pic.o): in function `tensorflow::CSRSparseMatMulGPUOp<Eigen::GpuDevice, float>::Compute(tensorflow::OpKernelContext*)': sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEfE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEfE7ComputeEPNS_15OpKernelContextE]+0x473): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, float>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEfE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEfE7ComputeEPNS_15OpKernelContextE]+0x501): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, float>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(sparse_mat_mul_op.pic.o): in function `tensorflow::CSRSparseMatMulGPUOp<Eigen::GpuDevice, double>::Compute(tensorflow::OpKernelContext*)': sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEdE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEdE7ComputeEPNS_15OpKernelContextE]+0x473): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, double>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEdE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceEdE7ComputeEPNS_15OpKernelContextE]+0x501): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, double>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(sparse_mat_mul_op.pic.o): in function `tensorflow::CSRSparseMatMulGPUOp<Eigen::GpuDevice, std::complex<float> >::Compute(tensorflow::OpKernelContext*)': sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIfEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIfEE7ComputeEPNS_15OpKernelContextE]+0x473): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<float> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIfEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIfEE7ComputeEPNS_15OpKernelContextE]+0x501): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<float> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(sparse_mat_mul_op.pic.o): in function `tensorflow::CSRSparseMatMulGPUOp<Eigen::GpuDevice, std::complex<double> >::Compute(tensorflow::OpKernelContext*)': sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIdEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIdEE7ComputeEPNS_15OpKernelContextE]+0x473): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<double> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: sparse_mat_mul_op.cc:(.text._ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIdEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow20CSRSparseMatMulGPUOpIN5Eigen9GpuDeviceESt7complexIdEE7ComputeEPNS_15OpKernelContextE]+0x501): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<double> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(mat_mul_op.pic.o): in function `tensorflow::CSRMatMulGPUOp<std::complex<double> >::Compute(tensorflow::OpKernelContext*)': mat_mul_op.cc:(.text._ZN10tensorflow14CSRMatMulGPUOpISt7complexIdEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow14CSRMatMulGPUOpISt7complexIdEE7ComputeEPNS_15OpKernelContextE]+0x3ce): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<double> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(mat_mul_op.pic.o): in function `tensorflow::CSRMatMulGPUOp<std::complex<float> >::Compute(tensorflow::OpKernelContext*)': mat_mul_op.cc:(.text._ZN10tensorflow14CSRMatMulGPUOpISt7complexIfEE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow14CSRMatMulGPUOpISt7complexIfEE7ComputeEPNS_15OpKernelContextE]+0x3ce): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, std::complex<float> >::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(mat_mul_op.pic.o): in function `tensorflow::CSRMatMulGPUOp<double>::Compute(tensorflow::OpKernelContext*)': mat_mul_op.cc:(.text._ZN10tensorflow14CSRMatMulGPUOpIdE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow14CSRMatMulGPUOpIdE7ComputeEPNS_15OpKernelContextE]+0x3cd): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, double>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' /usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/sparse/libkernels.pic.lo(mat_mul_op.pic.o): in function `tensorflow::CSRMatMulGPUOp<float>::Compute(tensorflow::OpKernelContext*)': mat_mul_op.cc:(.text._ZN10tensorflow14CSRMatMulGPUOpIfE7ComputeEPNS_15OpKernelContextE[_ZN10tensorflow14CSRMatMulGPUOpIfE7ComputeEPNS_15OpKernelContextE]+0x3ce): undefined reference to `tensorflow::functor::CSRSparseMatrixTranspose<Eigen::GpuDevice, float>::operator()(tensorflow::OpKernelContext*, bool, tensorflow::CSRSparseMatrix const&, tensorflow::CSRSparseMatrix*)' collect2: error: ld returned 1 exit status 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: 698.990s, Critical Path: 312.83s INFO: 1626 processes: 98 internal, 1528 local. FAILED: Build did NOT complete successfully ``` </details> I read the guideline, but I don't think unit tests should be added because it's not a change which adds features or fixes bug. And I signed CLA but maybe it hasn't be approved yet. If submitting PR before it's approval is not good, I'll ap ologize for that. For your information: The list of the functions which have the switch blocks of `nvinfer1::DataType` that I added that case in: - `std::ostream& operator<<()` in tensorflow/compiler/tf2tensorrt/common/utils.cc - `size_t TRT_ShapedWeights::size_bytes()` in tensorflow/compiler/tf2tensorrt/convert/weights.cc - `Status SetupBindings()` in tensorflow/compiler/tf2tensorrt/utils/trt_engine_utils.cc - `string DebugString()` in tensorflow/compiler/tf2tensorrt/convert/utils.cc - `Status TrtTypeToTfType()` in tensorflow/compiler/tf2tensorrt/convert/utils.cc (I don't know why it doesn't have `kINT8`'s case) The list of the functions which have the switch blocks of `nvinfer1::DataType` that I didn't add that case in: - `Status SetValues()` in tensorflow/compiler/tf2tensorrt/convert/weights.h - `Status Validate()` in tensorflow/compiler/tf2tensorrt/convert/ops/fill_ops.cc - `void ReorderCKtoKC()`, `void ReorderRSCKToKCRS()`, `void ReorderDRSCKToKCDRS()` and `void ReorderDRSCKToKCDRS()` in tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc I'm sorry for my bad English.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60046/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60046/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60045
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60045/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60045/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60045/events
https://github.com/tensorflow/tensorflow/pull/60045
1,632,449,104
PR_kwDOArmXAs5MeAcP
60,045
[TF-TRT] Fix repeated layer name bug
{ "login": "aboubezari", "id": 126983138, "node_id": "U_kgDOB5Gb4g", "avatar_url": "https://avatars.githubusercontent.com/u/126983138?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aboubezari", "html_url": "https://github.com/aboubezari", "followers_url": "https://api.github.com/users/aboubezari/followers", "following_url": "https://api.github.com/users/aboubezari/following{/other_user}", "gists_url": "https://api.github.com/users/aboubezari/gists{/gist_id}", "starred_url": "https://api.github.com/users/aboubezari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aboubezari/subscriptions", "organizations_url": "https://api.github.com/users/aboubezari/orgs", "repos_url": "https://api.github.com/users/aboubezari/repos", "events_url": "https://api.github.com/users/aboubezari/events{/privacy}", "received_events_url": "https://api.github.com/users/aboubezari/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" }, { "id": 1754777628, "node_id": "MDU6TGFiZWwxNzU0Nzc3NjI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu:tensorrt", "name": "comp:gpu:tensorrt", "color": "ea98ba", "default": false, "description": "Issues specific to TensorRT" } ]
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
[ "@aboubezari thanks for the PR! Good catch.\r\n\r\nWould you mind adding one tiny unittest that shows without your fix it fails and with your fix it works?\r\nThat way I can merge it and make sure it doesn't happen again", "> @aboubezari thanks for the PR! Good catch.\r\n> \r\n> Would you mind adding one tiny unittest that shows without your fix it fails and with your fix it works? That way I can merge it and make sure it doesn't happen again\r\n\r\nI'm working on building the unittests properly on my machine, will get back to you, thanks", "@DEKHTIARJonathan I tried reproducing the issue on `convert_nodes_test.cc`, but I'm realizing that this is not a conversion-time error, but this is something that happens when we attempt to execute the engine at inference time, so the UT is not useful at the moment. \r\n\r\nSince this is a low-risk change, what do you think about merging it as is? ", "@nluehr @pjannaty @poulsbo @DEKHTIARJonathan friendly ping here, what do we think is the best next step forward?", "> I tried reproducing the issue on convert_nodes_test.cc, but I'm realizing that this is not a conversion-time error, but this is something that happens when we attempt to execute the engine at inference time, so the UT is not useful at the moment.\r\n\r\nTF-TRT code is not executed at runtime. There is conversion aka. segmentation time and engine build time (which happens prior the first execution).\r\n\r\nIt should still be possible to write a unittest.\r\n\r\nIf you can identify which layer is leading to the problem, we should be able to replicate very simply with a unittest.\r\n\r\nIndeed the problem is fairly simple and low risk, however it is of good practice to merge a change/bugfix with a unittest :)\r\nIf you are not able to write the unittest please provide a 1-2 layers networks that shows the issues. Don't forget to set `minimum_segment_size=1`\r\n\r\nFeel free to use this template to show us the problem:\r\n\r\n```python\r\nimport tensorflow as tf\r\n\r\ntf.get_logger().setLevel('INFO')\r\n\r\nINPUT_SIZE = (512, 5000)\r\nSAVED_MODEL_DIR=\"/tmp/1234\"\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\r\n # Create a basic model instance\r\n model = tf.keras.models.Sequential([\r\n tf.keras.layers.Dense(4096, activation='relu'),\r\n ])\r\n \r\n # Build model - randomly initialized\r\n _ = model(tf.random.uniform(INPUT_SIZE))\r\n\r\n # Save Model\r\n model.save(SAVED_MODEL_DIR)\r\n \r\n # =================== INFERENCE ================ #\r\n from tensorflow.python.saved_model import signature_constants\r\n from tensorflow.python.saved_model import tag_constants\r\n from tensorflow.python.compiler.tensorrt import trt_convert as trt\r\n\r\n converter = trt.TrtGraphConverterV2(\r\n input_saved_model_dir=SAVED_MODEL_DIR,\r\n input_saved_model_tags=[tag_constants.SERVING],\r\n input_saved_model_signature_key=signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY,\r\n precision_mode=trt.TrtPrecisionMode.FP32,\r\n minimum_segment_size=1\r\n )\r\n\r\n func = converter.convert()\r\n\r\n converter.summary()\r\n\r\n data = tf.random.uniform(INPUT_SIZE)\r\n for step in range(1, 20):\r\n print(f\"Step: {step + 1}/50\")\r\n _ = func(data).numpy()\r\n```", "Hey @DEKHTIARJonathan, \r\nI wanted to confirm whether this is an inference time error not, so I re-ran my own test case with a custom layer. \r\nAs you can see below, the engine is created successfully, and when we execute the tensorrt network created by the converter, the inference fails in tensorrt and falls back to the native segment, which I don't want. With this change, the failure is resolved. \r\nI am working on a reproducible error with native tensorflow components. Based on this, do you have recommendations on how to catch it in a unittest? \r\nHere's the log:\r\n```\r\nW20230410 06:52:48.092698 2334411 trt_optimization_pass.cc:186] Calibration with FP32 or FP16 is not implemented. Falling back to use_calibration = False.Note that the default value of use_calibration is True.\r\nW20230410 06:52:48.093089 2334411 segment.cc:956] \r\n\r\n################################################################################\r\nTensorRT unsupported/non-converted OP Report:\r\n - Identity -> 3x\r\n - [Count: 3x] excluded by segmenter option. Most likely an input or output node.\r\n\r\n - Placeholder -> 3x\r\n - [Count: 3x] excluded by segmenter option. Most likely an input or output node.\r\n\r\n - NoOp -> 2x\r\n - [Count: 2x] Op type NoOp is not supported.\r\n\r\n--------------------------------------------------------------------------------\r\n - Total nonconverted OPs: 8\r\n - Total nonconverted OP Types: 3\r\nFor more information see https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html#supported-ops.\r\n################################################################################\r\nW20230410 06:52:48.093191 2334411 segment.cc:1284] The environment variable TF_TRT_MAX_ALLOWED_ENGINES=20 has no effect since there are only 1 TRT Engines with at least minimum_segment_size=1 nodes.\r\nI20230410 06:52:48.093217 2334411 convert_graph.cc:795] Number of TensorRT candidate segments: 1\r\nI20230410 06:52:48.101868 2334411 convert_graph.cc:909] Replaced segment 0 consisting of 1 nodes by TRTEngineOp_000_000.\r\nWARNING: Logging before InitGoogleLogging() is written to STDERR\r\nI20230410 06:52:48.296857 2334263 utils.cc:100] Linked TensorRT version: 8.5.1\r\nI20230410 06:52:48.296913 2334263 utils.cc:102] Loaded TensorRT version: 8.5.1\r\nW20230410 06:52:52.116518 2334263 trt_logger.cc:36] TF-TRT Warning: DefaultLogger CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars\r\nE20230410 06:52:52.150035 2334263 trt_logger.cc:40] DefaultLogger 4: [network.cpp::validate::2760] Error Code 4: Internal Error (Repeated layer name: TRTEngineOp_000_000/PartitionedCall/model/tf.nuro_detection_output/DetectionOutput-shuffle:SHUFFLE (layers must have distinct names))\r\nW20230410 06:52:52.204959 2334263 trt_engine_op.cc:1046] TF-TRT Warning: Engine creation for TRTEngineOp_000_000 failed. The native segment will be used instead. Reason: INTERNAL: Failed to build TensorRT engine\r\nW20230410 06:52:52.205046 2334263 trt_engine_op.cc:887] TF-TRT Warning: Engine retrieval for input shapes: [[1,1600], [1,4000], [1,2000]] failed. Running native segment for TRTEngineOp_000_000\r\nI0410 06:52:52.370252 2334179 builder_impl.py:780] Assets written to: /tmp/tmp3mqez0ti/test_model_trt/assets\r\nTRTEngineOP Name Device # Nodes # Inputs # Outputs Input DTypes Output Dtypes Input Shapes Output Shapes \r\n================================================================================================================================================================\r\nTRTEngineOp_000_000 device:GPU:0 1 3 3 ['float32', 'f ... ['float32', 'i ... [[1, 1600], [1 ... [[200, 8], [1] ...\r\n\r\n - DetectionOutput: 1x\r\n\r\n================================================================================================================================================================\r\n[*] Total number of TensorRT engines: 1\r\n[*] % of OPs Converted: 14.29% [1/7]\r\n***\r\nStarting tensorrt vs. tf inference:\r\nW20230410 06:52:55.758549 2334264 trt_logger.cc:36] TF-TRT Warning: DefaultLogger CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars\r\nE20230410 06:52:55.789471 2334264 trt_logger.cc:40] DefaultLogger 4: [network.cpp::validate::2760] Error Code 4: Internal Error (Repeated layer name: PartitionedCall/TRTEngineOp_000_000/PartitionedCall/model/tf.nuro_detection_output/DetectionOutput-shuffle:SHUFFLE (layers must have distinct names))\r\nW20230410 06:52:55.837152 2334264 trt_engine_op.cc:1046] TF-TRT Warning: Engine creation for PartitionedCall/TRTEngineOp_000_000 failed. The native segment will be used instead. Reason: INTERNAL: Failed to build TensorRT engine\r\nW20230410 06:52:55.837267 2334264 trt_engine_op.cc:887] TF-TRT Warning: Engine retrieval for input shapes: [[1,1600], [1,4000], [1,2000]] failed. Running native segment for PartitionedCall/TRTEngineOp_000_000\r\n```\r\n", "Actually, I do this conversion warning: \r\n```\r\nTF-TRT Warning: Engine creation for TRTEngineOp_000_000 failed. The native segment will be used instead. Reason: INTERNAL: Failed to build TensorRT engine\r\n```\r\nLet me keep trying to resurface this :) ", "Ok, I realized what I was missing: I was not calling `BuildAndRun` in the unittest to actually build & test the network. \r\n\r\nI've added the unittest and confirmed that it fails without my change and passes with it. \r\n\r\n@nluehr @pjannaty @poulsbo @DEKHTIARJonathan can we take one more look? It should be ready 👍 ", "## Unittest results \r\n\r\n**Command**: \r\n```\r\nbazel build -c opt --copt=\"-Wno-error=switch\" tensorflow/compiler/tf2tensorrt:convert_nodes_test && bazel-bin/tensorflow/compiler/tf2tensorrt/convert_nodes_test_gpu --gtest_filter=\"OpConverterTest.DuplicateSqueeze\"\r\n```\r\n\r\n**With my change:**\r\n```\r\nNote: Google Test filter = OpConverterTest.DuplicateSqueeze\r\n[==========] Running 1 test from 1 test suite.\r\n[----------] Global test environment set-up.\r\n[----------] 1 test from OpConverterTest\r\n[ RUN ] OpConverterTest.DuplicateSqueeze\r\n2023-04-10 16:09:25.417162: I tensorflow/compiler/tf2tensorrt/common/utils.cc:104] Linked TensorRT version: 8.6.0\r\n2023-04-10 16:09:25.417259: I tensorflow/compiler/tf2tensorrt/common/utils.cc:106] Loaded TensorRT version: 8.6.0\r\n2023-04-10 16:09:25.463796: W tensorflow/compiler/tf2tensorrt/convert/op_converter_registry.cc:55] Overwriting TF->TRT Abs op converter with priority 1 using another converter with priority 2\r\n2023-04-10 16:09:25.468067: I tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc:1330] [TF-TRT] Sparse compute capability: enabled.\r\n[ OK ] OpConverterTest.DuplicateSqueeze (323 ms)\r\n[----------] 1 test from OpConverterTest (323 ms total)\r\n\r\n[----------] Global test environment tear-down\r\n[==========] 1 test from 1 test suite ran. (323 ms total)\r\n[ PASSED ] 1 test.\r\n```\r\n\r\n**Without my change:** \r\n```\r\nNote: Google Test filter = OpConverterTest.DuplicateSqueeze\r\n[==========] Running 1 test from 1 test suite.\r\n[----------] Global test environment set-up.\r\n[----------] 1 test from OpConverterTest\r\n[ RUN ] OpConverterTest.DuplicateSqueeze\r\n2023-04-10 16:13:13.607505: I tensorflow/compiler/tf2tensorrt/common/utils.cc:104] Linked TensorRT version: 8.6.0\r\n2023-04-10 16:13:13.607600: I tensorflow/compiler/tf2tensorrt/common/utils.cc:106] Loaded TensorRT version: 8.6.0\r\n2023-04-10 16:13:13.654402: W tensorflow/compiler/tf2tensorrt/convert/op_converter_registry.cc:55] Overwriting TF->TRT Abs op converter with priority 1 using another converter with priority 2\r\n2023-04-10 16:13:13.658712: I tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc:1330] [TF-TRT] Sparse compute capability: enabled.\r\n2023-04-10 16:13:13.695280: E tensorflow/compiler/tf2tensorrt/utils/trt_logger.cc:87] DefaultLogger 4: [network.cpp::validate::2783] Error Code 4: Internal Error (Repeated layer name: /my_unary-shuffle:SHUFFLE (layers must have distinct names))\r\ntensorflow/compiler/tf2tensorrt/convert/convert_nodes_test.cc:9891: Failure\r\nExpected equality of these values:\r\n ::tsl::OkStatus()\r\n Which is: OK\r\n (BuildAndRun(input_data, &outputs))\r\n Which is: INTERNAL: Failed to build TensorRT engine\r\n[ FAILED ] OpConverterTest.DuplicateSqueeze (214 ms)\r\n[----------] 1 test from OpConverterTest (214 ms total)\r\n\r\n[----------] Global test environment tear-down\r\n[==========] 1 test from 1 test suite ran. (214 ms total)\r\n[ PASSED ] 0 tests.\r\n[ FAILED ] 1 test, listed below:\r\n[ FAILED ] OpConverterTest.DuplicateSqueeze\r\n\r\n 1 FAILED TEST\r\n```", "@DEKHTIARJonathan quick ping, let me know if there's anything else, I think we're close here :) \r\n\r\n", "@nluehr @pjannaty @poulsbo @DEKHTIARJonathan another friendly ping :)\r\nCould we take a look please? We should be all good now with unittest coverage. \r\n\r\n", "@nluehr @pjannaty @poulsbo @DEKHTIARJonathan one last ping for a while. I'm going on vacation for 2-3 weeks after today so would be great to take a look in that time, thanks!", "LGTM approved" ]
2023-03-20T16:17:26
2023-05-04T19:50:17
2023-04-28T16:13:09
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60045", "html_url": "https://github.com/tensorflow/tensorflow/pull/60045", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60045.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60045.patch", "merged_at": "2023-04-28T16:13:09" }
## Issue When there are multiple invocations of `SqueezeTensor` in a layer, the converter will complain: ``` Repeated layer name: TRTEngineOp_000_000/PartitionedCall/model/tf.detection_output/DetectionOutput-shuffle:SHUFFLE (layers must have distinct names)) ``` This happens despite passing `op_instance` to `SqueezeTensor`. The root cause is `op_instance` not being propagated to `PrepareTensorForShape`. ## Fix Propagate the `op_instance` argument to the internal `PrepareTensorForShape` call. Tested that a >1000 node graph completed with no issues. Add unit test coverage to prevent this issue from happening again.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60045/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60045/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60044
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60044/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60044/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60044/events
https://github.com/tensorflow/tensorflow/pull/60044
1,632,422,891
PR_kwDOArmXAs5Md6rV
60,044
[NVIDIA TF] Prefer NHWC in layout optimizer for bfloat16 on Ampere+ GPUs.
{ "login": "nluehr", "id": 1873655, "node_id": "MDQ6VXNlcjE4NzM2NTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1873655?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nluehr", "html_url": "https://github.com/nluehr", "followers_url": "https://api.github.com/users/nluehr/followers", "following_url": "https://api.github.com/users/nluehr/following{/other_user}", "gists_url": "https://api.github.com/users/nluehr/gists{/gist_id}", "starred_url": "https://api.github.com/users/nluehr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nluehr/subscriptions", "organizations_url": "https://api.github.com/users/nluehr/orgs", "repos_url": "https://api.github.com/users/nluehr/repos", "events_url": "https://api.github.com/users/nluehr/events{/privacy}", "received_events_url": "https://api.github.com/users/nluehr/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1097545273, "node_id": "MDU6TGFiZWwxMDk3NTQ1Mjcz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:grappler", "name": "comp:grappler", "color": "0052cc", "default": false, "description": "Grappler related issues" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "LGTM. Thanks." ]
2023-03-20T16:04:17
2023-04-04T17:51:52
2023-03-29T22:14:00
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60044", "html_url": "https://github.com/tensorflow/tensorflow/pull/60044", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60044.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60044.patch", "merged_at": "2023-03-29T22:14:00" }
On Ampere+ GPUs bfloat16 convolutions perform better in NHWC than NCHW (similar to fp16 for Volta+ GPUs). This PR updates the Grappler layout optimizer to take this into consideration.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60044/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60044/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60043
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60043/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60043/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60043/events
https://github.com/tensorflow/tensorflow/issues/60043
1,632,212,829
I_kwDOArmXAs5hSZdd
60,043
Accuracy issue during elementwise layer broadcasting in TFlite gpu delegate
{ "login": "gokulkrishna98", "id": 28308334, "node_id": "MDQ6VXNlcjI4MzA4MzM0", "avatar_url": "https://avatars.githubusercontent.com/u/28308334?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gokulkrishna98", "html_url": "https://github.com/gokulkrishna98", "followers_url": "https://api.github.com/users/gokulkrishna98/followers", "following_url": "https://api.github.com/users/gokulkrishna98/following{/other_user}", "gists_url": "https://api.github.com/users/gokulkrishna98/gists{/gist_id}", "starred_url": "https://api.github.com/users/gokulkrishna98/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gokulkrishna98/subscriptions", "organizations_url": "https://api.github.com/users/gokulkrishna98/orgs", "repos_url": "https://api.github.com/users/gokulkrishna98/repos", "events_url": "https://api.github.com/users/gokulkrishna98/events{/privacy}", "received_events_url": "https://api.github.com/users/gokulkrishna98/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": 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": 2671339633, "node_id": "MDU6TGFiZWwyNjcxMzM5NjMz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate", "name": "TFLiteGpuDelegate", "color": "F71F04", "default": false, "description": "TFLite Gpu delegate issue" }, { "id": 3797168204, "node_id": "LA_kwDOArmXAs7iVDBM", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8", "name": "TF 2.8", "color": "5DC9D0", "default": false, "description": "" } ]
open
false
{ "login": "impjdi", "id": 9742927, "node_id": "MDQ6VXNlcjk3NDI5Mjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/impjdi", "html_url": "https://github.com/impjdi", "followers_url": "https://api.github.com/users/impjdi/followers", "following_url": "https://api.github.com/users/impjdi/following{/other_user}", "gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/impjdi/subscriptions", "organizations_url": "https://api.github.com/users/impjdi/orgs", "repos_url": "https://api.github.com/users/impjdi/repos", "events_url": "https://api.github.com/users/impjdi/events{/privacy}", "received_events_url": "https://api.github.com/users/impjdi/received_events", "type": "User", "site_admin": false }
[ { "login": "impjdi", "id": 9742927, "node_id": "MDQ6VXNlcjk3NDI5Mjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4", "gravatar_id": "", "url": "https://api.github.com/users/impjdi", "html_url": "https://github.com/impjdi", "followers_url": "https://api.github.com/users/impjdi/followers", "following_url": "https://api.github.com/users/impjdi/following{/other_user}", "gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}", "starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/impjdi/subscriptions", "organizations_url": "https://api.github.com/users/impjdi/orgs", "repos_url": "https://api.github.com/users/impjdi/repos", "events_url": "https://api.github.com/users/impjdi/events{/privacy}", "received_events_url": "https://api.github.com/users/impjdi/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
[ "Regarding the model accuracy for model_3 : (1, 10, 1) x (1, 10, 3) , I think updating this condition for 3d shapes will resolve it.\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/1b8f5c396f0c016ebe81fe1af029e6f205c926a4/tensorflow/lite/delegates/gpu/common/model_builder.cc#L814\r\n\r\nIt would be helpful if there can be clarity on broadcasting of (1, 10, 1) and (3).", "Hi @gokulkrishna98 Thanks for reporting the issue.\r\n\r\nCould you please share a reproducible code/gist in order to expedite trouble shooting process.\r\n\r\nThanks.", "Hi @pjpratik,\r\nI am doing inferencing of mul layer of shape (1, 1600, 1) x (384) via TFliteGpuDelegateV2 through samsung galaxy s22.\r\nusing the steps mentioned here: https://www.tensorflow.org/lite/guide/inference#load_and_run_a_model_in_c\r\nand https://www.tensorflow.org/lite/performance/gpu#delegate_serialization\r\n\r\n```\r\n// Load the model\r\nstd::unique_ptr<tflite::FlatBufferModel> model =\r\n tflite::FlatBufferModel::BuildFromFile(filename);\r\n\r\n// Build the interpreter\r\ntflite::ops::builtin::BuiltinOpResolver resolver;\r\nstd::unique_ptr<tflite::Interpreter> interpreter;\r\ntflite::InterpreterBuilder(*model, resolver)(&interpreter);\r\n\r\n// Resize input tensors, if desired.\r\ninterpreter->AllocateTensors();\r\n\r\nfloat* input = interpreter->typed_input_tensor<float>(0);\r\n// Fill `input`.\r\n\r\ninterpreter->Invoke();\r\n\r\nfloat* output = interpreter->typed_output_tensor<float>(0);\r\n```\r\n\r\nThere is accuracy issue during this inferencing when setting tfliteGpuDelegateV2 instead of default xnnpack (cpu). The accuracy issue report can be seen in my previous message.", "@gokulkrishna98 Thanks for the information.\r\n\r\nHave you tried on TF 2.11 and TF Nightly and see if the issue still exists?\r\n\r\nThanks.", "Yes, I have also tested it on tf2.11, the same issue persists. I believe there has been no change in elementwise parser by commit history in nightly, so I don’t think testing is required there.", "Also, https://github.com/tensorflow/tensorflow/issues/60043#issuecomment-1476327924,\r\n\r\n here the input tensor 1 should be the greater one, but the channel size is checked for equality ", "@gokulkrishna98 Thanks for the information.\r\n\r\n@sachinprasadhs Could you please look into this issue? Thanks.", "I'm not entirely clear what you mean by `{input1 - [1, 1600, 1] and input2 - [384]}` (this is not even mathematically well-formed?), but note that we're quite ad hoc when it comes to broadcast, because whatever seems so natural and the norm in Python doesn't necessarily mean that's the norm in C++. In fact, all the broadcast situations have to be hand-coded in an ad-hoc fashion. Having said that, we assume (probably not the best assumption) that the left operand is \"bigger\" and the right operand is \"smaller\", and that's not even universally true; I think we support that in ADD but not necessarily in MUL. You have to inspect the code; it's been a while since I last checked it. IIRC, the logic used to be something like:\r\n\r\n```\r\nif (right operand shape > left operand shape) {\r\n swap(left, right); // so that right is always bigger, and the right is always smaller\r\n}\r\n\r\nwhere > is defined as, \r\n\r\nreturn l.b > r.b || l.h > r.h || l.w > r.w || l.c > r.c; // C operator precedence to be reflected\r\n```\r\n\r\nnow, your tensor (1, 1600, 1) will be probably expanded to (1, 1, 1600, 1) and the 384 will be expanded to (1, 1, 1, 384). Due to the definition of >, (1, 1600, 1) will be probably considered as a bigger tensor (because 1600 gets compared to 1 before 1 > 384 is evaluated) and the 384 the smaller tensor. Now... then comes one of the bad assumptions. We use the dimension of the bigger tensor to do the math, so ... we will probably only use (1, 1, 1600, 1) and the 1st value of (1, 1, 1, 384) is used to do multiplication along the 1600 elements.\r\n\r\nSo that's the bug, and you are welcome to add a proper broadcasting that solves your problem, or restructure your network to bypass the situation. I don't remember whether GPU supports EXPAND_DIMS, but one way would be to expand (1, 1600, 1) to (1, 1600, 384) and then maybe multiply with a tensor with an explicit shape of (1, 1, 384).\r\n\r\ntl;dr Broadcast in GPU delegate is broken; don't rely on it. Be more explicit.", "Hi @impjdi thanks for the reply. \r\n\r\nEven I thought so 1,1600, 1 and 384 is not well formed but the logic is implemented in tensorflow core op and as well as in tensorflowlite-cpu op. It broadcasts each element in 2nd dim of first input and elements in 384 (i.e 1 1600, 1 and 1 1600, 384), to result in [1,1600, 384]. So wanted a clear idea to why there is limitation in GPU implementation for better clarity while writing a model.\r\n\r\nRegarding the broadcasting error, I even interchanged both the inputs, still the error occurs for the case with 1d input, I feel there is limitation during GPU kernels or GPU broadcasting ( I couldn't find its code through grep, so cant comment on that).\r\n\r\nfor the case of \r\nmodel_3 : (1, 10, 1) x (1, 10, 3) => accuracy issue occurs. (mean absolute error (mae) = 2.44e-01).\r\nwe can just update this statement https://github.com/tensorflow/tensorflow/issues/60043#issuecomment-1476327924, it resolves the issue. (change the == comparison along channel dims to <=)\r\n\r\nI tried to do include broadcast_to layer to prevent this, but this results in pack operation in tflite which does not have gpu implementation in r2.8.\r\n\r\nLooks like the only way is to do manual broadcasting, but this layer is introduced when trying to do keras.layerNormalization on 3d input and converting this to Tflite. So manual broadcasting seems difficult here, hence some help is needed.\r\n\r\n\r\nAlso, Is there any documentation or study material regarding tensorflowlite convertor or Tflite architecture in general, would like to do opensource contribution in the future. It would be tremendously helpful in understanding the codebase." ]
2023-03-20T14:18:05
2023-03-29T03:11:38
null
NONE
null
null
null
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 22.04 - TensorFlow installed from (source or binary): source - TensorFlow version (or github SHA if from source): r2.8 - TfliteGpuDelegate backend: cl **Standalone code to reproduce the issue** While running the multiplication layer on TfliteGpuDelegate with input dimensions as {input1 - [1, 1600, 1] and input2 - [384]}, I am getting accuracy issues. The accuracy is fine while running on CPU. I am assuming there are limitations or issues in GPU execution during broadcasting. I have run experimentation on the following shapes and these are the observations: [accuracy when compared the tflite cpu execution.] model_1 : (1, 10, 3) x (1, 10, 3) => accuracy is fine. model_2 : (1, 10, 3) x (1, 10, 1) => accuracy is fine. model_3 : (1, 10, 1) x (1, 10, 3) => accuracy issue occurs. (mean absolute error (mae) = 2.44e-01). model_4 : (1, 10, 1) x (3) => accuracy issue occurs. (mae = 2.71e-01). PFA links for the models and detailed accuracy report is below. models: https://drive.google.com/drive/folders/1DCfV1xPxdliJ7jtYF6LzhDjxTRM0uDSm?usp=share_link accuracy report : https://drive.google.com/file/d/1wjLa1-KrgeyAzimEvhpq_ifRSfEOYeJr/view?usp=share_link It would be helpful if the limitations are explained or the issues is debugged regarding this. Also any workaround for fixing (1, 1600, 1) x 384 will be appreciated. **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/60043/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60043/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60042
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60042/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60042/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60042/events
https://github.com/tensorflow/tensorflow/issues/60042
1,631,955,891
I_kwDOArmXAs5hRauz
60,042
How to build with xnnpack
{ "login": "njuhang", "id": 46017704, "node_id": "MDQ6VXNlcjQ2MDE3NzA0", "avatar_url": "https://avatars.githubusercontent.com/u/46017704?v=4", "gravatar_id": "", "url": "https://api.github.com/users/njuhang", "html_url": "https://github.com/njuhang", "followers_url": "https://api.github.com/users/njuhang/followers", "following_url": "https://api.github.com/users/njuhang/following{/other_user}", "gists_url": "https://api.github.com/users/njuhang/gists{/gist_id}", "starred_url": "https://api.github.com/users/njuhang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/njuhang/subscriptions", "organizations_url": "https://api.github.com/users/njuhang/orgs", "repos_url": "https://api.github.com/users/njuhang/repos", "events_url": "https://api.github.com/users/njuhang/events{/privacy}", "received_events_url": "https://api.github.com/users/njuhang/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2726299159, "node_id": "MDU6TGFiZWwyNzI2Mjk5MTU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-xnnpack", "name": "comp:lite-xnnpack", "color": "97F7B2", "default": false, "description": "TensorFlow Lite XNNPack related issues" }, { "id": 4511033337, "node_id": "LA_kwDOArmXAs8AAAABDODn-Q", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10", "name": "TF 2.10", "color": "C15088", "default": false, "description": "" } ]
closed
false
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[ "@njuhang \r\nCould you please try `-DTFLITE_ENABLE_XNNPACK=OFF` to disable XNNPACK which is enabled by default. Please refer to this [documentation](https://www.tensorflow.org/lite/guide/build_cmake#available_options_to_build_tensorflow_lite) for further assistance.\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.", "Closing as stale. Please reopen if you'd like to work on this further.\r\n\r\nThanks !" ]
2023-03-20T11:56:44
2023-04-10T19:48:14
2023-04-10T19:48:14
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.10.0 ### Custom Code Yes ### OS Platform and Distribution ubuntu 20.04 ### Mobile device Qualcomm ### Python version 3.8 ### Bazel version 5.1.1 ### GCC/Compiler version 9.3.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I want to build without xnnpack, or with xnnpack-qs8 diabled. How to achieve that? ``` ### Standalone code to reproduce the issue ```shell I tried with "--define=tflite_with_xnnpack_qu8=false --define=tflite_with_xnnpack_qs8=false", and "--define tflite_with_xnnpack=false". But it seems that they didn't work. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60042/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60042/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60041
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60041/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60041/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60041/events
https://github.com/tensorflow/tensorflow/issues/60041
1,631,400,909
I_kwDOArmXAs5hPTPN
60,041
`zeta` doesn't support gradient computation
{ "login": "trickiwoo", "id": 121965696, "node_id": "U_kgDOB0UMgA", "avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trickiwoo", "html_url": "https://github.com/trickiwoo", "followers_url": "https://api.github.com/users/trickiwoo/followers", "following_url": "https://api.github.com/users/trickiwoo/following{/other_user}", "gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions", "organizations_url": "https://api.github.com/users/trickiwoo/orgs", "repos_url": "https://api.github.com/users/trickiwoo/repos", "events_url": "https://api.github.com/users/trickiwoo/events{/privacy}", "received_events_url": "https://api.github.com/users/trickiwoo/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
open
false
null
[]
null
[ "Its really a Bug?\nI think its functionnal issue. ", "Hi @trickiwoo, \r\nThanks for reporting the issue!\r\nI was able to replicate the issue in Colab using TF v2.11 and tf-nightly(2.13.0-dev20230319). Please find the gists [here(2.11)](https://colab.sandbox.google.com/gist/synandi/057fe7f51c5b1d54d3245f9f46cb4f84/60041_2-11.ipynb) and [here(tf-nightly)](https://colab.sandbox.google.com/gist/synandi/3a1c3095cf86462a482946c27f2951e5/60041.ipynb). It seems like we have to dig more into this issue, we will update soon here. Thank you!", "Hi @trickiwoo, Apologies for the delay. \r\n\r\nIt's an intended behaviour. `tape.jacobian(t,x)` is returning `None` because of floating point errors. \r\nAs per the formula, \r\n![image](https://user-images.githubusercontent.com/98147397/227233026-24a76f6d-5c77-4cd7-98c5-cc6e8ea6a2e0.png)\r\n\r\nThe Hurwitz zeta function involves summing up a series of terms, when you evaluate zeta(x, y) with x=2 and y=2, the function becomes very small for large values of n, and computing the sum numerically may lead to numerical instability or precision errors in the computations. Thank you!\r\n\r\n \r\n", "Thanks for your time in investigating the issue! @synandi \r\n\r\nI don't believe that summing up a series of small values can cause numerical instability, as the forward pass appears to work correctly. The only difference between zeta and its gradient is the presence of an additional coefficient in the gradient.\r\n\r\nAnd also, as this [page](https://www.tensorflow.org/api_docs/python/tf/raw_ops) implies, `zeta` supports gradient computation. If it is an intended behavior, it will be appreciated if to clarify it on this page.", "@trickiwoo, `zeta` supports gradient computation. Please consider this code, where I tried to compute the derivative of `t` with respect to `y`. \r\n```\r\nimport tensorflow as tf\r\nimport numpy as np\r\n\r\nx = tf.Variable(tf.constant([2], dtype=tf.float32))\r\ny = tf.Variable(tf.constant([2], dtype=tf.float32))\r\n\r\ndef zeta(x, y):\r\n t = tf.math.zeta(x, y)\r\n return t\r\n\r\nt = zeta(x, y)\r\nprint(t)\r\nwith tf.GradientTape() as tape:\r\n tape.watch(x)\r\n tape.watch(y)\r\n t = zeta(x, y)\r\n\r\ngradient = tape.jacobian(t, [x,y])\r\nprint(gradient)\r\n```\r\n\r\nOutput is as follows:\r\n```\r\ntf.Tensor([0.6449341], shape=(1,), dtype=float32)\r\n[None, <tf.Tensor: shape=(1, 1), dtype=float32, numpy=array([[-0.40411383]], dtype=float32)>]\r\n```\r\n\r\nThe first element of the output is `None` because the derivative of `t` with respect to `x` is `0` and `-0.40411383` is the partial derivative of `t` with respect to `y`. Thank you!", "Hi @synandi , thanks for looking into the issue!\r\n\r\nZeta is differentiable with respect to x at `x=2` and the derivate of t with respect to x is `-0.937548` according to Mathematica results:\r\n![image](https://user-images.githubusercontent.com/121965696/227678352-65468c2a-3528-4d62-b950-de619b4aea2f.png)\r\n", "@trickiwoo It's just not implemented for x. There's a TODO [here](https://github.com/tensorflow/tensorflow/blob/e060e74b0f47c1832179554486ee211185588e89/tensorflow/python/ops/math_grad.py#L1125).\r\n\r\nThe derivatives w.r.t. `x` are quite complex. See [the formulae](https://dlmf.nist.gov/25.11#E18). Is this something you actually need? This is probably something that would need to be done by an external contributor.", "i would like to work on this issue can you please assign me this?", "Calculating the Jacobian and the differential (gradient) of the Riemann zeta function with mpmath is not directly supported as TensorFlow's automatic differentiation. However, we can numerically approximate the derivatives using finite differences. so i think this should address the issue\r\n\r\n**import mpmath\r\ndef zeta(s):\r\n return mpmath.zeta(s)\r\nmpmath.mp.dps = 50 # You can adjust the precision as needed\r\ns = mpmath.mpc(2, 3) # Replace with your desired complex value of s\r\ndx = 1e-8 # Small perturbation for the real part of s\r\ndy = 1e-8j # Small perturbation for the imaginary part of s\r\ndf_ds_real = (zeta(s + dx) - zeta(s)) / dx\r\ndf_ds_imag = (zeta(s + dy) - zeta(s)) / dy\r\n\r\njacobian = mpmath.matrix([[df_ds_real], [df_ds_imag]])\r\nprint(\"Jacobian (gradient):\")\r\nprint(jacobian)**\r\n", "@amishhaa , Thanks for your time and effort on working on this issue.\r\nCould you please create a PR with the necessary changes to address the issue.", "> Calculating the Jacobian and the differential (gradient) of the Riemann zeta function with mpmath is not directly supported as TensorFlow's automatic differentiation. However, we can numerically approximate the derivatives using finite differences. so i think this should address the issue\r\n\r\nYou're probably going to want those perturbations to be dependent on the magnitude of the input values.", "You are correct. When calculating numerical derivatives using finite differences, it is essential to choose appropriate perturbation values based on the magnitude of the input values. \r\nTo address this concern, you can scale the perturbations relative to the magnitude of the input values.\r\n\r\n\r\nimport mpmath\r\ndef zeta(s):\r\n return mpmath.zeta(s)\r\nmpmath.mp.dps = 50 # You can adjust the precision as needed\r\ns = mpmath.mpc(2, 3) # Replace with your desired complex value of s\r\nperturbation_scale = 1e-6 # Adjust the scale as needed\r\ndx = perturbation_scale * abs(s.real)\r\ndy = perturbation_scale * abs(s.imag)\r\ndf_ds_real = (zeta(s + dx) - zeta(s - dx)) / (2 * dx)\r\ndf_ds_imag = (zeta(s + dy) - zeta(s - dy)) / (2 * dy)\r\n\r\njacobian = mpmath.matrix([[df_ds_real], [df_ds_imag]])\r\nprint(\"Jacobian (gradient):\")\r\nprint(jacobian)\r\n", "@synandi @cantonios @sachinprasadhs \r\n\r\nHi, I'm new to this repo. I read discussion, my approach: since zeta function is differentiable w.r.t x, we can define a custom gradient like tf.custom_gradient decorator to compute gradients correctly.\r\n\r\nWould like to collaborate with any already working on this OR get guidance from experienced contributors in the repo. Thanks!", "@yokeshwaran1 do you want to collaborate with me on this issue ?\r\n", "> @yokeshwaran1 do you want to collaborate with me on this issue ?\r\n\r\nHi @vulkomilev , apologize for the delay in my response; I missed seeing ur message earlier. Yeah, I'm interested in collaborating on this issue", "Hi @cantonios ,\r\n\r\nI'm relatively new to the world of open source contributions, and I'm eager to get involved.If you see any room for improvement or encounter any issues, please let me know.\r\n\r\nRegarding the problem itself, could we consider addressing it using the following approach?\r\n\r\n```python\r\n@ops.RegisterGradient(\"Zeta\")\r\ndef _ZetaGrad(op, grad):\r\n \"\"\"Returns the gradient of zeta(x, q) with respect to x and q.\"\"\"\r\n x = op.inputs[0]\r\n q = op.inputs[1]\r\n\r\n # Broadcasting gradients\r\n sx = array_ops.shape(x)\r\n sq = array_ops.shape(q)\r\n unused_rx, rq = gen_array_ops.broadcast_gradient_args(sx, sq)\r\n\r\n # Evaluating gradient\r\n with ops.control_dependencies([grad]):\r\n x_conj = math_ops.conj(x)\r\n q_conj = math_ops.conj(q)\r\n partial_q = -x_conj * math_ops.zeta(x + 1, q) # Derivative with respect to q\r\n **partial_x = -tf.reduce_sum(tf.math.log(q + tf.range(tf.shape(q), dtype=q.dtype)) / (q + tf.range(tf.shape(q), dtype=q.dtype))**x_conj) # Derivative with respect to x\r\n\r\n return (partial_x, # Derivative with respect to x\r\n array_ops.reshape(math_ops.reduce_sum(partial_q * grad, rq), sq))**\r\n", "This issue is stale because it has been open for 180 days with no activity. It will be closed if no further activity occurs. Thank you." ]
2023-03-20T05:15:05
2024-04-14T02:10:45
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell `zeta` doesn't support gradient computation. The Hurwitz zeta function is differentiable with respect to x. The partial derivative with respect to x can be expressed as: dζ(x, q) / dx = - ∑(n=0 to ∞) (n + q)^(-x) * ln(n + q) ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np x = tf.Variable(tf.constant([2], dtype=tf.float32)) y = tf.Variable(tf.constant([2], dtype=tf.float32)) def zeta(x, y): t = tf.math.zeta(x, y) return t t = zeta(x, y) print(t) with tf.GradientTape() as tape: tape.watch(x) t = zeta(x, y) gradient = tape.jacobian(t, x) print(gradient) ``` ### Relevant log output ```shell tf.Tensor([0.6449342], shape=(1,), dtype=float32) None ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60041/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60041/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60040
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60040/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60040/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60040/events
https://github.com/tensorflow/tensorflow/issues/60040
1,631,068,940
I_kwDOArmXAs5hOCMM
60,040
Missing module
{ "login": "danik292", "id": 116908854, "node_id": "U_kgDOBvfjNg", "avatar_url": "https://avatars.githubusercontent.com/u/116908854?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danik292", "html_url": "https://github.com/danik292", "followers_url": "https://api.github.com/users/danik292/followers", "following_url": "https://api.github.com/users/danik292/following{/other_user}", "gists_url": "https://api.github.com/users/danik292/gists{/gist_id}", "starred_url": "https://api.github.com/users/danik292/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danik292/subscriptions", "organizations_url": "https://api.github.com/users/danik292/orgs", "repos_url": "https://api.github.com/users/danik292/repos", "events_url": "https://api.github.com/users/danik292/events{/privacy}", "received_events_url": "https://api.github.com/users/danik292/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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
[ "Let me check this @danik292 ", "> Let me check this @danik292 \n\nYou wish check my profile? ", "Can you help me with how you did the local setup and what commands you ran to come across this issue? ", "Yes I will send you link on video with how to reproduce", "Hi @danik292 Thanks for reporting the issue.\r\n\r\nCan you provide more details as @mayankagarwals asked. \r\n\r\nI was able successfully run the `async_comp_test.py` without any error with following log\r\n```\r\nRunning tests under Python 3.9.16: /usr/bin/python3\r\n[ RUN ] AsyncCompilationTest.testAsyncCompilationJit\r\n[ SKIPPED ] AsyncCompilationTest.testAsyncCompilationJit\r\n[ RUN ] AsyncCompilationTest.test_session\r\n[ SKIPPED ] AsyncCompilationTest.test_session\r\n----------------------------------------------------------------------\r\nRan 2 tests in 0.016s\r\n\r\nOK (skipped=2)\r\n```\r\n\r\n Please refer this [gist](https://colab.research.google.com/gist/pjpratik/e785e9fc89ef7aa07f15768febcb4ae1/60040.ipynb) and let us know if it helps.\r\n\r\nThanks.", "> Hi @danik292 Thanks for reporting the issue.\n> \n> Can you provide more details as @mayankagarwals asked. \n> \n> I was able successfully run the `async_comp_test.py` without any error with following log\n> ```\n> Running tests under Python 3.9.16: /usr/bin/python3\n> [ RUN ] AsyncCompilationTest.testAsyncCompilationJit\n> [ SKIPPED ] AsyncCompilationTest.testAsyncCompilationJit\n> [ RUN ] AsyncCompilationTest.test_session\n> [ SKIPPED ] AsyncCompilationTest.test_session\n> ----------------------------------------------------------------------\n> Ran 2 tests in 0.016s\n> \n> OK (skipped=2)\n> ```\n> \n> Please refer this [gist](https://colab.research.google.com/gist/pjpratik/e785e9fc89ef7aa07f15768febcb4ae1/60040.ipynb) and let us know if it helps.\n> \n> Thanks.\n\nI use codespace debugger. There are one call on non existing module so the code is able to run but, we want a clean code right. So I think the best sloution is delete it, but I dont know meybe its essential and it cannot be delete so I only reported issue.", "Hi @danik292 , this doesn't seem to be a bug as it is being run as a standalone code. Installing tensorflow will solve the issue.\r\n\r\nThanks.", "> Hi @danik292 , this doesn't seem to be a bug as it is being run as a standalone code. Installing tensorflow will solve the issue.\n> \n> Thanks.\n\nSo a close it. ", "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/60040\">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/60040\">No</a>\n" ]
2023-03-19T18:44:47
2023-03-21T13:52:50
2023-03-21T13:52:47
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Preformence bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version code ### Custom Code No ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Hello, I found a error with missing modul in file async_comp_test. ``` ### Standalone code to reproduce the issue ```shell 1. make codespace 2.Find file async_comp_test.py 3. Start debugging. ``` ### Relevant log output ```shell No module named 'tensorflow' File "/workspaces/tensorflow/tensorflow/compiler/tests/async_comp_test.py", line 20, in <module> from tensorflow.core.protobuf import config_pb2 ModuleNotFoundError: No module named 'tensorflow' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60040/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60040/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60039
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60039/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60039/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60039/events
https://github.com/tensorflow/tensorflow/pull/60039
1,631,036,584
PR_kwDOArmXAs5MZR6R
60,039
Improve readability of applied patch files
{ "login": "Vertexwahn", "id": 3775001, "node_id": "MDQ6VXNlcjM3NzUwMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3775001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vertexwahn", "html_url": "https://github.com/Vertexwahn", "followers_url": "https://api.github.com/users/Vertexwahn/followers", "following_url": "https://api.github.com/users/Vertexwahn/following{/other_user}", "gists_url": "https://api.github.com/users/Vertexwahn/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vertexwahn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vertexwahn/subscriptions", "organizations_url": "https://api.github.com/users/Vertexwahn/orgs", "repos_url": "https://api.github.com/users/Vertexwahn/repos", "events_url": "https://api.github.com/users/Vertexwahn/events{/privacy}", "received_events_url": "https://api.github.com/users/Vertexwahn/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
[ "what issue is this for?" ]
2023-03-19T17:24:20
2023-03-20T21:55:28
2023-03-20T18:30:34
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60039", "html_url": "https://github.com/tensorflow/tensorflow/pull/60039", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60039.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60039.patch", "merged_at": "2023-03-20T18:30:34" }
Currently, it is hard to read which patch files are applied to ComputeLibrary. By introducing line breaks this becomes easier.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60039/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60039/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60038
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60038/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60038/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60038/events
https://github.com/tensorflow/tensorflow/pull/60038
1,630,956,836
PR_kwDOArmXAs5MZB5R
60,038
Remove not needed build file
{ "login": "Vertexwahn", "id": 3775001, "node_id": "MDQ6VXNlcjM3NzUwMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3775001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vertexwahn", "html_url": "https://github.com/Vertexwahn", "followers_url": "https://api.github.com/users/Vertexwahn/followers", "following_url": "https://api.github.com/users/Vertexwahn/following{/other_user}", "gists_url": "https://api.github.com/users/Vertexwahn/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vertexwahn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vertexwahn/subscriptions", "organizations_url": "https://api.github.com/users/Vertexwahn/orgs", "repos_url": "https://api.github.com/users/Vertexwahn/repos", "events_url": "https://api.github.com/users/Vertexwahn/events{/privacy}", "received_events_url": "https://api.github.com/users/Vertexwahn/received_events", "type": "User", "site_admin": false }
[ { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-19T14:04:19
2023-03-30T22:49:42
2023-03-30T22:49:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60038", "html_url": "https://github.com/tensorflow/tensorflow/pull/60038", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60038.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60038.patch", "merged_at": "2023-03-30T22:49:41" }
The dependency `mkl_dnn` seems not to be used anywhere. Furthermore, the referenced build file `mkldnn.BUILD` seems not to be suitable to build oneDNN v0.21.3. It seems the real magic happens in `mkl_dnn_v1` and `mkl_dnn_acl_compatible` which target oneDNN 2.7.3.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60038/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60038/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60037
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60037/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60037/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60037/events
https://github.com/tensorflow/tensorflow/issues/60037
1,630,310,125
I_kwDOArmXAs5hLI7t
60,037
Tensoflow Installation Problem
{ "login": "ictorv", "id": 106619187, "node_id": "U_kgDOBlrhMw", "avatar_url": "https://avatars.githubusercontent.com/u/106619187?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ictorv", "html_url": "https://github.com/ictorv", "followers_url": "https://api.github.com/users/ictorv/followers", "following_url": "https://api.github.com/users/ictorv/following{/other_user}", "gists_url": "https://api.github.com/users/ictorv/gists{/gist_id}", "starred_url": "https://api.github.com/users/ictorv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ictorv/subscriptions", "organizations_url": "https://api.github.com/users/ictorv/orgs", "repos_url": "https://api.github.com/users/ictorv/repos", "events_url": "https://api.github.com/users/ictorv/events{/privacy}", "received_events_url": "https://api.github.com/users/ictorv/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": 1445545631, "node_id": "MDU6TGFiZWwxNDQ1NTQ1NjMx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%201.14", "name": "TF 1.14", "color": "5319e7", "default": false, "description": "for issues seen with TF 1.14" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "```tensorflow 1.14.0``` is not compatible with auto installed ```protobuf``` version.\r\nStep 1: ```pip uninstall protobuf```\r\nStep 2: ```pip install protobuf==30.20.0```\r\n\r\nor any other lower version:\r\nhttps://pypi.org/project/protobuf/#history" ]
2023-03-18T12:44:40
2023-03-20T10:23:36
2023-03-19T05:15:00
NONE
null
null
null
I'm using python ```version 3.7.8``` while installing specific version of tensorflow i.e, ```1.14.0``` using pip command ```pip install tensorflow==1.14.0``` it is showing ``` using cached tensorflow-1.14.0-cp37-cp37m-win_amd64.whl .... ``` and unable to ```import tensorflow``` properly. It shows error: ``` File "C:\Python37\lib\site-packages\tensorflow\__init__.py", line 28, in <module> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Python37\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module> from tensorflow.core.framework.graph_pb2 import * File "C:\Python37\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 16, in <module> from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2 File "C:\Python37\lib\site-packages\tensorflow\core\framework\node_def_pb2.py", line 16, in <module> from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2 File "C:\Python37\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in <module> from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2 File "C:\Python37\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in <module> from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2 File "C:\Python37\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 42, in <module> serialized_options=None, file=DESCRIPTOR), File "C:\Python37\lib\site-packages\google\protobuf\descriptor.py", line 561, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60037/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60037/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60036
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60036/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60036/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60036/events
https://github.com/tensorflow/tensorflow/issues/60036
1,630,271,423
I_kwDOArmXAs5hK_e_
60,036
A CUDA_ERROR_MISALIGNED_ADDRESS/CUDA_ERROR_ILLEGAL_ADDRESS can be triggered in SparseSplit
{ "login": "shijy16", "id": 31403391, "node_id": "MDQ6VXNlcjMxNDAzMzkx", "avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shijy16", "html_url": "https://github.com/shijy16", "followers_url": "https://api.github.com/users/shijy16/followers", "following_url": "https://api.github.com/users/shijy16/following{/other_user}", "gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shijy16/subscriptions", "organizations_url": "https://api.github.com/users/shijy16/orgs", "repos_url": "https://api.github.com/users/shijy16/repos", "events_url": "https://api.github.com/users/shijy16/events{/privacy}", "received_events_url": "https://api.github.com/users/shijy16/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @shijy16 ,\r\nThanks for reporting the issue!\r\nI was able to replicate the issue in Colab using TF v2.11 and tf-nightly(2.13.0-dev20230320). Please find the gists [here(2.11)](https://colab.research.google.com/gist/tiruk007/cb271c3ff011e74b136b1dd4903b15b7/untitled162.ipynb) and [here(tf-nightly)](https://colab.research.google.com/gist/tiruk007/ddeb0d8fb97c30e1349c451fb4ea854b/untitled162.ipynb). It seems like we have to dig more into this issue, we will update soon here. \r\n\r\nThank you!", "@SuryanarayanaY \r\nI was able to reproduce the issue on a virtual machine using TF v2.12. Please find the below screenshots for reference:\r\n![2](https://user-images.githubusercontent.com/111861663/228052283-c1a1303a-46e9-46fc-bd72-b3881b8772f4.png)\r\n![1](https://user-images.githubusercontent.com/111861663/228052295-7bceb6eb-5207-48d6-b50b-f52128ef2185.png)\r\n\r\nThank you !\r\n", "Hi @shijy16 ,\r\n\r\nThis seems to be a vulnerability. Request you to report the issues as per policy here.(https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md#reporting-vulnerabilities).\r\n\r\nPlease also refer to this [comment](https://github.com/tensorflow/tensorflow/issues/60121#issuecomment-1485230826) by the Developer regarding credit.\r\n\r\nThank you!\r\n\r\n", "> Hi @shijy16 ,\r\n> \r\n> This seems to be a vulnerability. Request you to report the issues as per policy here.(https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md#reporting-vulnerabilities).\r\n> \r\n> Please also refer to this [comment](https://github.com/tensorflow/tensorflow/issues/60121#issuecomment-1485230826) by the Developer regarding credit.\r\n> \r\n> Thank you!\r\n\r\nHi, I am sorry that I did not realize this might be a vulnerability. I've reported the bug to OSS VRP project. \r\nThank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60036\">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/60036\">No</a>\n", "Hi @shijy16 ,\r\n\r\nThanks again for reporting this. Now the issue is fixed with t`f-nightly(2.13.0-dev20230420)` and the code successfully raises intended error.Please refer below logs. Thanks!\r\n\r\n```\r\n(base) suryanarayanay@surya-ubuntu20:~$ python 60036_latest.py \r\n2023-04-20 15:11:25.430153: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-04-20 15:11:27.576142: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2.13.0-dev20230420\r\n2023-04-20 15:11:32.854960: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:33.329714: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:33.332278: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:33.335989: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:33.338301: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:33.340511: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:34.904200: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:34.906890: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:34.909200: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-04-20 15:11:34.911420: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13623 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:04.0, compute capability: 7.5\r\n2023-04-20 15:11:35.501617: W tensorflow/core/framework/op_kernel.cc:1828] OP_REQUIRES failed at sparse_split_op.cc:109 : INVALID_ARGUMENT: Number of elements in indices (4) and values (16) do not match\r\n2023-04-20 15:11:35.501695: I tensorflow/core/common_runtime/executor.cc:1210] [/job:localhost/replica:0/task:0/device:GPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: Number of elements in indices (4) and values (16) do not match\r\n [[{{node SparseSplit}}]]\r\nTraceback (most recent call last):\r\n File \"/home/suryanarayanay/60036_latest.py\", line 21, in <module>\r\n res = tf.raw_ops.SparseSplit(\r\n File \"/home/suryanarayanay/miniconda3/lib/python3.10/site-packages/tensorflow/python/util/tf_export.py\", line 413, in wrapper\r\n return f(**kwargs)\r\n File \"/home/suryanarayanay/miniconda3/lib/python3.10/site-packages/tensorflow/python/ops/gen_sparse_ops.py\", line 2894, in sparse_split\r\n return sparse_split_eager_fallback(\r\n File \"/home/suryanarayanay/miniconda3/lib/python3.10/site-packages/tensorflow/python/ops/gen_sparse_ops.py\", line 2928, in sparse_split_eager_fallback\r\n _result = _execute.execute(b\"SparseSplit\", num_split + num_split +\r\n File \"/home/suryanarayanay/miniconda3/lib/python3.10/site-packages/tensorflow/python/eager/execute.py\", line 53, in quick_execute\r\n tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __wrapped__SparseSplit_num_split_30_device_/job:localhost/replica:0/task:0/device:GPU:0}} Number of elements in indices (4) and values (16) do not match\r\n [[{{node SparseSplit}}]] [Op:SparseSplit]\r\n(base) suryanarayanay@surya-ubuntu20:~$ \r\n```" ]
2023-03-18T10:42:39
2023-04-20T15:15:49
2023-04-18T15:55:08
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version tf 2.13.0-dev20230317 ### Custom Code No ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version CUDA 11.5 ### GPU model and memory _No response_ ### Current Behaviour? ```shell A cuda memory corruption can be triggered by the following code in `tf.raw_ops.SparseSplit`. When the code is executing, a CUDA Memory Error would be reported, the gpu memory would be occupied, and it will never stop. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf for i in range(100): with tf.device("GPU:0"): num_split = 30 split_dim = -1 indices = tf.saturate_cast(tf.random.uniform([4, 8], minval=-1024, maxval=1024, dtype=tf.int64), dtype=tf.int64) values = tf.complex(tf.random.uniform([16], dtype=tf.float32, minval=-1024, maxval=1024),tf.random.uniform([16], dtype=tf.float32, minval=-1024, maxval=1024)) shape = [108, 28, 108] res = tf.raw_ops.SparseSplit( num_split=num_split, split_dim=split_dim, indices=indices, values=values, shape=shape, ) ``` ### Relevant log output ```shell 2023-03-18 18:36:32.613986: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-03-18 18:36:32.661775: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-18 18:36:33.415445: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2023-03-18 18:36:35.026862: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14577 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0 2023-03-18 18:36:35.342047: E tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:789] failed to record completion event; therefore, failed to create inter-stream dependency 2023-03-18 18:36:35.342151: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:1160] failed to enqueue async memcpy from device to host: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered; host dst: 0x7f6d47200000; GPU src: 0x7f69b8000500; size: 8=0x82023-03-18 18:36:35.342182: E tensorflow/compiler/xla/stream_executor/stream.cc:336] Error recording event in stream: Error recording CUDA event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered; not marking stream as bad, as the Event object may be at fault. Monitor for further errors. 2023-03-18 18:36:35.342209: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:1033] could not wait stream on event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered 2023-03-18 18:36:35.342229: E tensorflow/compiler/xla/stream_executor/stream.cc:1120] Error waiting for event in stream: error recording waiting for CUDA event on stream 0x5562acfa15e0; not marking stream as bad, as the Event object may be at fault. Monitor for further errors. 2023-03-18 18:36:35.342248: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:615] unable to add host callback: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered 2023-03-18 18:36:35.342299: I tensorflow/compiler/xla/stream_executor/stream.cc:1108] [stream=0x556292e3cf30,impl=0x5562acb89830] did not wait for [stream=0x556292e3f420,impl=0x5562acb898d0] 2023-03-18 18:36:35.342323: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:1160] failed to enqueue async memcpy from device to host: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered; host dst: 0x7f6d47200100; GPU src: 0x7f69b8000600; size: 8=0x82023-03-18 18:36:35.342345: E tensorflow/compiler/xla/stream_executor/stream.cc:336] Error recording event in stream: Error recording CUDA event: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered; not marking stream as bad, as the Event object may be at fault. Monitor for further errors. 2023-03-18 18:36:35.342367: I tensorflow/compiler/xla/stream_executor/stream.cc:1126] [stream=0x5562acfa15e0,impl=0x5562924676a0] did not wait for an event. 2023-03-18 18:36:35.342386: I tensorflow/compiler/xla/stream_executor/stream.cc:2393] [stream=0x5562acfa15e0,impl=0x5562924676a0] was in error state before adding host callback 2023-03-18 18:36:35.342403: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:615] unable to add host callback: CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60036/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60036/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60035
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60035/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60035/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60035/events
https://github.com/tensorflow/tensorflow/issues/60035
1,630,268,051
I_kwDOArmXAs5hK-qT
60,035
A check fail can be triggered in MatrixSquareRoot
{ "login": "shijy16", "id": 31403391, "node_id": "MDQ6VXNlcjMxNDAzMzkx", "avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shijy16", "html_url": "https://github.com/shijy16", "followers_url": "https://api.github.com/users/shijy16/followers", "following_url": "https://api.github.com/users/shijy16/following{/other_user}", "gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shijy16/subscriptions", "organizations_url": "https://api.github.com/users/shijy16/orgs", "repos_url": "https://api.github.com/users/shijy16/repos", "events_url": "https://api.github.com/users/shijy16/events{/privacy}", "received_events_url": "https://api.github.com/users/shijy16/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 1162044565, "node_id": "MDU6TGFiZWwxMTYyMDQ0NTY1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%201.12", "name": "TF 1.12", "color": "c2e0c6", "default": false, "description": "Issues related to TF 1.12" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @shijy16,\r\nThank you for reporting the issue!\r\nI was able to replicate the issue in Ubuntu 20.04. Please find the screenshot below. We are trying to dig deep into the issue, we'll update here soon. \r\n![image](https://user-images.githubusercontent.com/98147397/226864853-69cfb444-8b9c-471f-bea5-d797af6165f8.png)\r\nThank you! ", "I too replicated the same error as reported.\r\n```\r\n(base) suryanarayanay@surya-ubuntu-22-04:~$ python 60035.py\r\n2023-03-24 11:56:04.828135: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n2023-03-24 11:56:04.888753: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-03-24 11:56:05.854504: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2.13.0-dev20230324\r\n2.13.0-dev20230324\r\n2023-03-24 11:56:13.188061: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 38197 MB memory: -> device: 0, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:04.0, compute capability: 8.0\r\n2023-03-24 11:56:13.189779: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 38197 MB memory: -> device: 1, name: NVIDIA A100-SXM4-40GB, pci bus id: 0000:00:05.0, compute capability: 8.0\r\n2023-03-24 11:56:14.020498: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 4 with 5849693008847355793, result: -1\r\nAborted (core dumped)\r\n(base) suryanarayanay@surya-ubuntu-22-04:~$ \r\n```", "From the API document, https://www.tensorflow.org/api_docs/python/tf/raw_ops/MatrixSquareRoot, \"The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. \",\r\n\r\nThe input does not form a square matries for inner-most 2 dimensions. \r\n\r\n@shijy16 , could you share more background info why you choose such shape input ?\r\nThanks ", "@maxwillzq \r\nHi, I am a security researcher, and I was testing the TensorFlow API to ensure its security. Although the input shape may not be the expected input according to the documentation or the code, it can pose a security risk, as it can lead to a crash. Therefore, this kind of input need to be checked and reported with proper error message, instead of throwing a crash.\r\n\r\nI hope this answers your question. If you have any further inquiries or concerns, please do not hesitate to let me know.", "Thanks a lot for the explain, @shijy16. It makes sense. I will take a look how to add this check.", "@shijy16 Please don't file vulnerabilities on GitHub. Please consult https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md and follow rules for responsible disclosure.", "Hi @shijy16 ,\r\n\r\nThe issue got resolved now with tf-nightly(2.14.0-dev20230514) and now TF is successfully able to raise the intended Error.\r\nPlease refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/b1ca366360d589d5167da9587b9e301e/60035_nightly-2-14-0-dev20230514.ipynb).\r\n\r\nPlease check and confirm and let us know if we can close the issue as it resolved now.\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/60035\">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/60035\">No</a>\n" ]
2023-03-18T10:29:13
2023-05-30T01:59:05
2023-05-30T01:59:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version tf 2.13.0-dev20230317 ### Custom Code No ### 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 CUDA 11.5 ### GPU model and memory _No response_ ### Current Behaviour? ```shell A crash due to check fail can be triggered by feeding a corner case to `tf.raw_ops.MatrixSquareRoot`. This case is similar to the one I submitted in the last issue, and this kind of bug is likely to be caused by the 0 and large value in input's shape. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf input = tf.random.uniform([10, 15, 0, 4, 5849693008847355793], dtype=tf.float64, minval=-1024, maxval=1024) res = tf.raw_ops.MatrixSquareRoot( input=input, ) ``` ### Relevant log output ```shell 2023-03-18 18:27:16.712528: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-03-18 18:27:16.760165: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-18 18:27:17.510832: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2023-03-18 18:27:19.128040: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14577 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0 2023-03-18 18:27:19.389933: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 4 with 5849693008847355793, result: -1 Aborted (core dumped) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60035/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60035/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60034
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60034/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60034/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60034/events
https://github.com/tensorflow/tensorflow/issues/60034
1,630,266,246
I_kwDOArmXAs5hK-OG
60,034
A check fail can be triggered in CholeskyGrad
{ "login": "shijy16", "id": 31403391, "node_id": "MDQ6VXNlcjMxNDAzMzkx", "avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shijy16", "html_url": "https://github.com/shijy16", "followers_url": "https://api.github.com/users/shijy16/followers", "following_url": "https://api.github.com/users/shijy16/following{/other_user}", "gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shijy16/subscriptions", "organizations_url": "https://api.github.com/users/shijy16/orgs", "repos_url": "https://api.github.com/users/shijy16/repos", "events_url": "https://api.github.com/users/shijy16/events{/privacy}", "received_events_url": "https://api.github.com/users/shijy16/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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
[ "@shijy16 Thank you for reporting this issue!\r\n@SuryanarayanaY While reproducing the issue on colab using TF v2.11, I faced the following error log as the session crashed. Please find the [gist](https://colab.research.google.com/gist/sushreebarsa/92ef432386ec054e604a1ac8678b6571/60069.ipynb) here.\r\n\r\n\r\nMar 26, 2023, 6:28:42 PM | WARNING | WARNING:root:kernel b01c86be-9273-4315-9125-c491e703869b restarted\r\n-- | -- | --\r\nMar 26, 2023, 6:28:42 PM | INFO | KernelRestarter: restarting kernel (1/5), keep random ports\r\nMar 26, 2023, 6:28:41 PM | WARNING | 2023-03-26 12:58:41.908549: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 1152921504606846976 with 8, result: -9223372036854775808\r\nMar 26, 2023, 6:28:41 PM | WARNING | 2023-03-26 12:58:41.865783: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:267] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected\r\nMar 26, 2023, 6:28:39 PM | WARNING | 2023-03-26 12:58:39.761239: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.\r\nMar 26, 2023, 6:28:39 PM | WARNING | 2023-03-26 12:58:39.761218: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64\r\nMar 26, 2023, 6:28:39 PM | WARNING | 2023-03-26 12:58:39.761060: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64\r\nMar 26, 2023, 6:28:38 PM | WARNING | To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\nMar 26, 2023, 6:28:38 PM | WARNING | 2023-03-26 12:58:38.606508: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA\r\nMar 26, 2023, 6:27:33 PM | WARNING | WARNING:root:kernel b01c86be-9273-4315-9125-c491e703869b restarted\r\n\r\n\r\nThank you!", "Hi @shijy16 ,\r\n\r\nThe issue has been resolved in Tf2.16v. Please refer attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/5bf279b369178bc09447f310323393ce/60034_nightly_success.ipynb).", "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/60034\">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/60034\">No</a>\n" ]
2023-03-18T10:22:30
2024-04-20T01:47:40
2024-04-20T01:47:31
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source binary ### Tensorflow Version tf 2.13.0-dev20230317 ### Custom Code No ### 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 CUDA 11.5 ### GPU model and memory _No response_ ### Current Behaviour? ```shell A crash due to check fail can be triggered by giving a corner case in `tf.raw_ops.CholeskyGrad`. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf l = tf.random.uniform([8, 0, 2**60, 8], dtype=tf.float64, minval=-2**50, maxval=2**50) grad = tf.random.uniform([], dtype=tf.float64, minval=-2**50, maxval=2**50) res = tf.raw_ops.CholeskyGrad( l=l, grad=grad, ) ``` ### Relevant log output ```shell 2023-03-18 18:20:23.847214: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2023-03-18 18:20:23.894704: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-18 18:20:24.657541: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 2023-03-18 18:20:26.296951: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14577 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0 2023-03-18 18:20:26.563113: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying 1152921504606846976 with 8, result: -9223372036854775808 Aborted (core dumped) ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60034/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60034/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60033
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60033/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60033/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60033/events
https://github.com/tensorflow/tensorflow/pull/60033
1,629,976,461
PR_kwDOArmXAs5MV2kZ
60,033
Update Relese.md
{ "login": "venkat2469", "id": 104534215, "node_id": "U_kgDOBjsQxw", "avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venkat2469", "html_url": "https://github.com/venkat2469", "followers_url": "https://api.github.com/users/venkat2469/followers", "following_url": "https://api.github.com/users/venkat2469/following{/other_user}", "gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}", "starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions", "organizations_url": "https://api.github.com/users/venkat2469/orgs", "repos_url": "https://api.github.com/users/venkat2469/repos", "events_url": "https://api.github.com/users/venkat2469/events{/privacy}", "received_events_url": "https://api.github.com/users/venkat2469/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-17T22:10:50
2023-03-17T22:56:40
2023-03-17T22:56:33
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60033", "html_url": "https://github.com/tensorflow/tensorflow/pull/60033", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60033.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60033.patch", "merged_at": "2023-03-17T22:56:33" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60033/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60033/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60032
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60032/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60032/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60032/events
https://github.com/tensorflow/tensorflow/issues/60032
1,629,759,434
I_kwDOArmXAs5hJCfK
60,032
failed to expand 'RETURN_IF_ROCTRACER_ERROR', it is invalid to use a preprocessor directive as macro parameter
{ "login": "7elmie", "id": 55303037, "node_id": "MDQ6VXNlcjU1MzAzMDM3", "avatar_url": "https://avatars.githubusercontent.com/u/55303037?v=4", "gravatar_id": "", "url": "https://api.github.com/users/7elmie", "html_url": "https://github.com/7elmie", "followers_url": "https://api.github.com/users/7elmie/followers", "following_url": "https://api.github.com/users/7elmie/following{/other_user}", "gists_url": "https://api.github.com/users/7elmie/gists{/gist_id}", "starred_url": "https://api.github.com/users/7elmie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/7elmie/subscriptions", "organizations_url": "https://api.github.com/users/7elmie/orgs", "repos_url": "https://api.github.com/users/7elmie/repos", "events_url": "https://api.github.com/users/7elmie/events{/privacy}", "received_events_url": "https://api.github.com/users/7elmie/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": 3797168204, "node_id": "LA_kwDOArmXAs7iVDBM", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8", "name": "TF 2.8", "color": "5DC9D0", "default": false, "description": "" } ]
closed
false
{ "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false }
[ { "login": "tilakrayal", "id": 81610181, "node_id": "MDQ6VXNlcjgxNjEwMTgx", "avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tilakrayal", "html_url": "https://github.com/tilakrayal", "followers_url": "https://api.github.com/users/tilakrayal/followers", "following_url": "https://api.github.com/users/tilakrayal/following{/other_user}", "gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}", "starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions", "organizations_url": "https://api.github.com/users/tilakrayal/orgs", "repos_url": "https://api.github.com/users/tilakrayal/repos", "events_url": "https://api.github.com/users/tilakrayal/events{/privacy}", "received_events_url": "https://api.github.com/users/tilakrayal/received_events", "type": "User", "site_admin": false } ]
null
[ "@7elmie,\r\nIn order to expedite the trouble-shooting process, could you please provide a complete code snippet you are trying to execute. \r\n\r\nAlso could you please take a look at the below code and try to execute where it is defining the **RETURN_IF_ROCTRACER_ERROR**.\r\nhttps://github.com/tensorflow/tensorflow/blob/3ff332d2e6c30df9d1220467d6dc59d9ab4fd26b/tensorflow/compiler/xla/backends/profiler/gpu/rocm_tracer.cc\r\n\r\n```\r\n#define RETURN_IF_ROCTRACER_ERROR(expr) \\\r\n do { \\\r\n roctracer_status_t status = expr; \\\r\n if (status != ROCTRACER_STATUS_SUCCESS) { \\\r\n const char* errstr = se::wrap::roctracer_error_string(); \\\r\n LOG(ERROR) << \"function \" << #expr << \"failed with error \" << errstr; \\\r\n return tsl::errors::Internal( \\\r\n absl::StrCat(\"roctracer call error\", errstr));\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.", "Closing this as stale. Please reopen if this is still a valid request. Thank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60032\">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/60032\">No</a>\n" ]
2023-03-17T18:38:05
2023-07-14T08:39:37
2023-07-14T08:39:34
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.8 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened!Why is this an issue? At Codacy we strive to provide great descriptions for our patterns. With good explanations developers can better understand issues and even learn how to fix them. For this tool we are not yet meeting this standard but you can help us improve the docs. To know more, take a look at our tool documentation guide. You can also visit the tool's website to find useful tips about the patterns. ``` ### Standalone code to reproduce the issue ```shell } RETURN_IF_ROCTRACER_ERROR(static_cast<roctracer_status_t>( #if TF_ROCM_VERSION >= 50300 se::wrap::roctracer_next_record(record, &record) #else ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60032/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60032/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60031
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60031/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60031/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60031/events
https://github.com/tensorflow/tensorflow/issues/60031
1,629,134,154
I_kwDOArmXAs5hGp1K
60,031
Build failure: enumeration value ‘kFP8’ not handled in switch [-Werror=switch]
{ "login": "VermiIIi0n", "id": 104612478, "node_id": "U_kgDOBjxCfg", "avatar_url": "https://avatars.githubusercontent.com/u/104612478?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VermiIIi0n", "html_url": "https://github.com/VermiIIi0n", "followers_url": "https://api.github.com/users/VermiIIi0n/followers", "following_url": "https://api.github.com/users/VermiIIi0n/following{/other_user}", "gists_url": "https://api.github.com/users/VermiIIi0n/gists{/gist_id}", "starred_url": "https://api.github.com/users/VermiIIi0n/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VermiIIi0n/subscriptions", "organizations_url": "https://api.github.com/users/VermiIIi0n/orgs", "repos_url": "https://api.github.com/users/VermiIIi0n/repos", "events_url": "https://api.github.com/users/VermiIIi0n/events{/privacy}", "received_events_url": "https://api.github.com/users/VermiIIi0n/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": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false }
[ { "login": "SuryanarayanaY", "id": 116063290, "node_id": "U_kgDOBur8Og", "avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SuryanarayanaY", "html_url": "https://github.com/SuryanarayanaY", "followers_url": "https://api.github.com/users/SuryanarayanaY/followers", "following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}", "gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}", "starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions", "organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs", "repos_url": "https://api.github.com/users/SuryanarayanaY/repos", "events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}", "received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events", "type": "User", "site_admin": false } ]
null
[ "I got the same problem while compiling [v2.12.0-rc1](https://github.com/tensorflow/tensorflow/tree/v2.12.0-rc1).\r\n\r\nI find new DataType `kFP8` added between 8.5.3 and 8.6.0 of TensorRT. (API Reference: [8.5.3](https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-853/api/c_api/namespacenvinfer1.html#a83aed11a1c160f30dcd13809678bdd29), [8.6.0](https://docs.nvidia.com/deeplearning/tensorrt/archives/tensorrt-860-ea/api/c_api/namespacenvinfer1.html#a83aed11a1c160f30dcd13809678bdd29)) And, in the `case` block, enumeration value `kFP8` hasn't handled in switch yet.\r\n\r\n(following code from v2.12.0-rc1)\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/0d8efc960d2874c2f56eed8690d132763a92a33c/tensorflow/compiler/tf2tensorrt/convert/weights.cc#L61-L76\r\n\r\nI think this problem will be fixed by adding a case for `kFP8` with `IS_TRT_VERSION_GE` macro. According to [API Reference](https://docs.nvidia.com/deeplearning/tensorrt/api/c_api/namespacenvinfer1.html#abdc74c40fe7a0c3d05d2caeccfbc29c1a7397615c6bee5b62289fc7cceb82fbf7), `kFP8` is not supported yet and maybe some codes to generate assert error should be inserted.", "@linuxmetel ,\r\n\r\nThanks for the PR. Our Team will review and get back to you if any more details needed. 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/60031\">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/60031\">No</a>\n" ]
2023-03-17T11:15:01
2023-04-14T17:50:05
2023-04-14T17:50:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version Latest master branch (3.17), tf-nightly 2.13 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 22.04 ### Mobile device _No response_ ### Python version 3.10.9 ### Bazel version 5.3.0 ### GCC/Compiler version 11 ### CUDA/cuDNN version CUDA12.1 cuDNN8.8.1 TensorRT8.6.0 ### GPU model and memory RTX 3070 8G ### Current Behaviour? ```shell Cannot build with bazel ERROR: /tmp/tensorflow/tensorflow/compiler/tf2tensorrt/BUILD:188:11: Compiling tensorflow/compiler/tf2tensorrt/common/utils.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/tf2tensorrt/_objs/common_utils/utils.pic.d ... (remaining 176 arguments skipped) tensorflow/compiler/tf2tensorrt/common/utils.cc: In function ‘std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::DataType&)’: tensorflow/compiler/tf2tensorrt/common/utils.cc:209:10: error: enumeration value ‘kFP8’ not handled in switch [-Werror=switch] 209 | switch (v) { | ^ cc1plus: some warnings being treated as errors Target //tensorflow/tools/pip_package:build_pip_package failed to build ``` ### Standalone code to reproduce the issue ```shell bazel build --config=cuda --cxxopt="-march=native" --cxxopt="-O3" //tensorflow/tools/pip_package:build_pip_package ``` ### Relevant log output ```shell /tmp/tensorflow/tensorflow/compiler/tf2tensorrt/BUILD:188:11: Compiling tensorflow/compiler/tf2tensorrt/common/utils.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/tf2tensorrt/_objs/common_utils/utils.pic.d ... (remaining 176 arguments skipped) tensorflow/compiler/tf2tensorrt/common/utils.cc: In function ‘std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::DataType&)’: tensorflow/compiler/tf2tensorrt/common/utils.cc:209:10: error: enumeration value ‘kFP8’ not handled in switch [-Werror=switch] 209 | switch (v) { | ^ cc1plus: some warnings being treated as errors Target //tensorflow/tools/pip_package:build_pip_package failed to build ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60031/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/60031/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60030
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60030/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60030/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60030/events
https://github.com/tensorflow/tensorflow/issues/60030
1,629,090,604
I_kwDOArmXAs5hGfMs
60,030
About Android calling TensorFlow Lite crash problem
{ "login": "polarbbb", "id": 128142094, "node_id": "U_kgDOB6NLDg", "avatar_url": "https://avatars.githubusercontent.com/u/128142094?v=4", "gravatar_id": "", "url": "https://api.github.com/users/polarbbb", "html_url": "https://github.com/polarbbb", "followers_url": "https://api.github.com/users/polarbbb/followers", "following_url": "https://api.github.com/users/polarbbb/following{/other_user}", "gists_url": "https://api.github.com/users/polarbbb/gists{/gist_id}", "starred_url": "https://api.github.com/users/polarbbb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/polarbbb/subscriptions", "organizations_url": "https://api.github.com/users/polarbbb/orgs", "repos_url": "https://api.github.com/users/polarbbb/repos", "events_url": "https://api.github.com/users/polarbbb/events{/privacy}", "received_events_url": "https://api.github.com/users/polarbbb/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @polarbbb Thanks for reporting the issue.\r\n\r\nCan you confirm the model is in `Assets` folder. Please check this relevant thread [#55123](https://github.com/tensorflow/tensorflow/issues/55123) and see if t helps.\r\n\r\nIf not, can you please provide the steps you have followed to encounter issue.\r\n\r\nThanks.\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60030\">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/60030\">No</a>\n" ]
2023-03-17T10:43:59
2023-04-05T01:47:48
2023-04-05T01:47:46
NONE
null
null
null
### 1. Problem overview I recently reported an error when importing the Tensorflow Lite model using Android Studio, but I did not find the problem after searching. I hope you can help me. The following is the detailed information ### 2. System information -implementation 'org.tensorflow:tensorflow-lite:2.11.0' -implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly' -implementation 'org.tensorflow:tensorflow-lite-support:0.1.0' -implementation 'org.tensorflow:tensorflow-lite-metadata:0.1.0' -Android 12.0 x86_64 ### 3. Code public MyModelRunner(Context context) throws IOException { try { interpreter = new Interpreter(loadModelFile(context)); } catch (IOException e) { e.printStackTrace(); } } private MappedByteBuffer loadModelFile(Context context) throws IOException { AssetFileDescriptor fileDescriptor = context.getAssets().openFd("new_model.tflite"); FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor()); FileChannel fileChannel = inputStream.getChannel(); long startOffset = fileDescriptor.getStartOffset(); long declaredLength = fileDescriptor.getDeclaredLength(); return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength); } ### 4. (optional) info / logs 2023-03-17 18:02:45.343 22670-22670 libc com.example.myproject01 A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffff4 in tid 22670 (ple.myproject01), pid 22670 (ple.myproject01) 2023-03-17 18:02:45.399 22706-22706 DEBUG pid-22706 A pid: 22670, tid: 22670, name: ple.myproject01 >>> com.example.myproject01 <<< 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #00 pc 00282792 /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #01 pc 020242b8 /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #02 pc 02023ec2 /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #03 pc 0202456b /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #04 pc 01e6f187 /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.637 22706-22706 DEBUG pid-22706 A #05 pc 0027cb45 /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/lib/x86/libtensorflowlite_flex_jni.so 2023-03-17 18:02:45.639 22706-22706 DEBUG pid-22706 A #37 pc 002e6bdc [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.flex.FlexDelegate.<clinit>+4) 2023-03-17 18:02:45.640 22706-22706 DEBUG pid-22706 A #60 pc 002e47ae [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.NativeInterpreterWrapper.maybeCreateFlexDelegate+6) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #63 pc 002e4be4 [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.NativeInterpreterWrapper.addDelegates+16) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #66 pc 002e4e68 [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.NativeInterpreterWrapper.init+104) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #69 pc 002e4baa [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.NativeInterpreterWrapper.<init>+146) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #72 pc 002e44d0 [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.NativeInterpreterWrapperExperimental.<init>) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #75 pc 002e4304 [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.Interpreter.<init>+4) 2023-03-17 18:02:45.641 22706-22706 DEBUG pid-22706 A #78 pc 002e42e6 [anon:dalvik-classes.dex extracted in memory from /data/app/~~8c21WzJfTIFEm7pmQFGjow==/com.example.myproject01-zu0b6G7gIfCmfZkzPmHgpg==/base.apk] (org.tensorflow.lite.Interpreter.<init>+2) 2023-03-17 18:02:45.642 22706-22706 DEBUG pid-22706 A #81 pc 00000f66 /data/data/com.example.myproject01/code_cache/.overlay/base.apk/classes3.dex (com.example.myproject01.MyModelRunner.<init>+18) 2023-03-17 18:02:45.642 22706-22706 DEBUG pid-22706 A #84 pc 00000fc8 /data/data/com.example.myproject01/code_cache/.overlay/base.apk/classes3.dex (com.example.myproject01.Recommend_Fragment$1.onClick+20) ---------------------------- PROCESS ENDED (22670) for package com.example.myproject01 ---------------------------- 2023-03-17 18:02:45.957 518-597 InputDispatcher system_process E channel 'c1e13a6 com.example.myproject01/com.example.myproject01.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60030/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60030/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60029
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60029/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60029/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60029/events
https://github.com/tensorflow/tensorflow/issues/60029
1,628,928,310
I_kwDOArmXAs5hF3k2
60,029
pb file, StridedSlice op, attribute begin, Tensor data is empty
{ "login": "yinghuang", "id": 22361533, "node_id": "MDQ6VXNlcjIyMzYxNTMz", "avatar_url": "https://avatars.githubusercontent.com/u/22361533?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yinghuang", "html_url": "https://github.com/yinghuang", "followers_url": "https://api.github.com/users/yinghuang/followers", "following_url": "https://api.github.com/users/yinghuang/following{/other_user}", "gists_url": "https://api.github.com/users/yinghuang/gists{/gist_id}", "starred_url": "https://api.github.com/users/yinghuang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yinghuang/subscriptions", "organizations_url": "https://api.github.com/users/yinghuang/orgs", "repos_url": "https://api.github.com/users/yinghuang/repos", "events_url": "https://api.github.com/users/yinghuang/events{/privacy}", "received_events_url": "https://api.github.com/users/yinghuang/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": 4511033337, "node_id": "LA_kwDOArmXAs8AAAABDODn-Q", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10", "name": "TF 2.10", "color": "C15088", "default": false, "description": "" } ]
closed
false
{ "login": "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
[ "@yinghuang Thank you for raising the issue!\r\nCould you please confirm if the issue is not replicating in 2.9.0 version of TF and only replicating on 2.10?\r\nThank you!\r\n", "This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.", "This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60029\">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/60029\">No</a>\n" ]
2023-03-17T08:48:16
2023-04-11T01:53:14
2023-04-11T01:53:11
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.10 ### Custom Code Yes ### OS Platform and Distribution win10 ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell In https://github.com/google/automl/tree/master/efficientdet/tf2, I export a pb model from tf2-ckpt use tf2.10, but converting it to openvino-IR model failed. After I check out hours, I find it is caused by the StridedSlice op in pb file. When this op slice from the first element, its attribute would be wrong in the pb file. But it is all right if you slice not from the first element. ``` ### Standalone code to reproduce the issue ```shell Specifically, given a tensor x with shape [m], if I get the first row, y=x[0], the node details in pb file would probably be: input name: images begin name: strided_slice/stack category: Const type: int32[1] Tensor data is empty. end name: strided_slice/stack_1 category: Const type: int32[1] [ 1 ] strides name: strided_slice/stack_2 category: Const type: int32[1] [ 1 ] , The point is the attribute begin, its data is empty rather than 0. When I use tf 2.9.1, it produces the correct results: input name: images begin name: strided_slice/stack category: Const type: int32[1] [ 0 ] end name: strided_slice/stack_1 category: Const type: int32[1] [ 1 ] strides name: strided_slice/stack_2 category: Const type: int32[1] [ 1 ] ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60029/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60029/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60028
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60028/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60028/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60028/events
https://github.com/tensorflow/tensorflow/issues/60028
1,628,790,718
I_kwDOArmXAs5hFV--
60,028
bug feedback
{ "login": "seems666", "id": 44560618, "node_id": "MDQ6VXNlcjQ0NTYwNjE4", "avatar_url": "https://avatars.githubusercontent.com/u/44560618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seems666", "html_url": "https://github.com/seems666", "followers_url": "https://api.github.com/users/seems666/followers", "following_url": "https://api.github.com/users/seems666/following{/other_user}", "gists_url": "https://api.github.com/users/seems666/gists{/gist_id}", "starred_url": "https://api.github.com/users/seems666/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seems666/subscriptions", "organizations_url": "https://api.github.com/users/seems666/orgs", "repos_url": "https://api.github.com/users/seems666/repos", "events_url": "https://api.github.com/users/seems666/events{/privacy}", "received_events_url": "https://api.github.com/users/seems666/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 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": "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
[ "@seems666,\r\nWhen I was trying to execute the mentioned code on tensorflow v2.11, the code was executed only one time and also the output was generated.\r\n![Screenshot 2023-03-18 9 32 23 AM](https://user-images.githubusercontent.com/81610181/226083925-49a6357d-214a-461c-82ea-004d22defe42.png)\r\n\r\nAlso **tf.keras.layers.MaxPool2D** performs the Max pooling operation for 2D spatial data. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/061afd80e107214219f8000ca3093c85/untitled1041.ipynb) and you are using tensoflow v2.5 which was a bit old. So please try to install tensorflow v2.11 which is the latest stable version. \r\n\r\nThank you!", "> \r\n\r\nGot it, thank you very much!", "@seems666,\r\nGood to hear that your issue got resolved and thank you for the confirmation. So Could you please feel free to close this issue and If you need any further assistance please feel free to create a new issue. Thank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60028\">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/60028\">No</a>\n" ]
2023-03-17T06:45:23
2023-03-18T10:29:38
2023-03-18T10:29:35
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.5 ### Custom Code Yes ### OS Platform and Distribution Windows 10 21H2 9044.2604 ### Mobile device _No response_ ### Python version 3.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version 11.6 ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! Operator MaxPool2D has no output for a long time and doesn't throw any Exception when kernel_size is greater than the height of input_data ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np nums = 1 in_channels = 1 out_channels = 3 height = 1 width = 1 kernel_size = 3 stride = 2 pad_mode = 'valid' tf_data = np.ones([nums, in_channels, height, width], float) try: print(tf.keras.layers.MaxPool2D(pool_size=(kernel_size, kernel_size), strides=stride, padding=pad_mode,data_format='channels_first')(tf_data)) except BaseException as e: print(e) ``` ### Relevant log output ```shell the code is always running without any output or exception ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60028/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60028/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60027
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60027/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60027/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60027/events
https://github.com/tensorflow/tensorflow/issues/60027
1,628,645,108
I_kwDOArmXAs5hEyb0
60,027
New
{ "login": "ghost", "id": 10137, "node_id": "MDQ6VXNlcjEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ghost", "html_url": "https://github.com/ghost", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "organizations_url": "https://api.github.com/users/ghost/orgs", "repos_url": "https://api.github.com/users/ghost/repos", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "received_events_url": "https://api.github.com/users/ghost/received_events", "type": "User", "site_admin": false }
[ { "id": 1593512946, "node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid", "name": "invalid", "color": "db6f57", "default": true, "description": "Hacktoberfest spam PR" } ]
closed
true
{ "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false }
[ { "login": "tiruk007", "id": 111861663, "node_id": "U_kgDOBqrfnw", "avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiruk007", "html_url": "https://github.com/tiruk007", "followers_url": "https://api.github.com/users/tiruk007/followers", "following_url": "https://api.github.com/users/tiruk007/following{/other_user}", "gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions", "organizations_url": "https://api.github.com/users/tiruk007/orgs", "repos_url": "https://api.github.com/users/tiruk007/repos", "events_url": "https://api.github.com/users/tiruk007/events{/privacy}", "received_events_url": "https://api.github.com/users/tiruk007/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-17T03:53:24
2023-03-17T17:06:37
2023-03-17T03:54:39
NONE
spam
null
null
Issue
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60027/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60027/timeline
null
not_planned
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60026
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60026/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60026/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60026/events
https://github.com/tensorflow/tensorflow/pull/60026
1,628,477,907
PR_kwDOArmXAs5MQ2qc
60,026
Reduce MKL overheads on small shapes by not rewriting node to use MKL
{ "login": "milpuz01", "id": 79916358, "node_id": "MDQ6VXNlcjc5OTE2MzU4", "avatar_url": "https://avatars.githubusercontent.com/u/79916358?v=4", "gravatar_id": "", "url": "https://api.github.com/users/milpuz01", "html_url": "https://github.com/milpuz01", "followers_url": "https://api.github.com/users/milpuz01/followers", "following_url": "https://api.github.com/users/milpuz01/following{/other_user}", "gists_url": "https://api.github.com/users/milpuz01/gists{/gist_id}", "starred_url": "https://api.github.com/users/milpuz01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/milpuz01/subscriptions", "organizations_url": "https://api.github.com/users/milpuz01/orgs", "repos_url": "https://api.github.com/users/milpuz01/repos", "events_url": "https://api.github.com/users/milpuz01/events{/privacy}", "received_events_url": "https://api.github.com/users/milpuz01/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": 1104829434, "node_id": "MDU6TGFiZWwxMTA0ODI5NDM0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:mkl", "name": "comp:mkl", "color": "0052cc", "default": false, "description": "MKL related issues" }, { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @milpuz01 Can you please resolve conflicts? Thank you!", "> Some more comments. I'll post more tomorrow. Sorry for the delay!\r\n\r\nThanks @penpornk. I have tried to address all your comments in https://github.com/tensorflow/tensorflow/pull/60026/commits/450f4feac896baa6b7d75d82b02973f73cf990b6", "@TensorFlow-MKL Any feedback on this PR? Thank you!", "> @TensorFlow-MKL Any feedback on this PR? Thank you!\r\n\r\n@agramesh1, @mahmoud-abuzaina, @ashiqimranintel, @sachinmuradi do you maybe have any comments about the PR? Many thanks.", "Hi, we have couple main concerns :\r\n1. Moving the fusion to mkl_layout_pass is not a good idea. From design perspective, we should preferably do all fusions in remapper with proper #ifdef INTEL_MKL and IsMKLEnabled() checks. \r\n2. oneDNN would be the right place to handle optimizations for processor (or instruction set) variations instead of adding in mkl_layout_pass.\r\n\r\nBoth these changes applied for other fusions and primitives, can easily explode mkl_layout_pass code. ", "Hi @gaurides, thank you very much for your reply and the concerns that you have raised. I have couple of questions/comments that I have put below:\r\n\r\n> 1. Moving the fusion to mkl_layout_pass is not a good idea. From design perspective, we should preferably do all fusions in remapper with proper #ifdef INTEL_MKL and IsMKLEnabled() checks.\r\n\r\nI can see that there are few other fusions already present in `mkl_layout_pass` such as merging convolution with bias (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/common_runtime/mkl_layout_pass.cc#L3048). Is there expectations that those fusions will also move to `remapper`?\r\n\r\n> Both these changes applied for other fusions and primitives, can easily explode mkl_layout_pass code.\r\n\r\nI think the same argument could be applied to `remapper` too as adding fusions there it will also make it explode in terms of code size? What influences decisions where graph rewriting pass should be? My impression was that lowering op to oneDNN should be in `mkl_layout_pass`, while fusion and other (high-level?) optimisations should be in `remapper` that might benefit other low-level libraries (such as Eigen).\r\n\r\n> 2. oneDNN would be the right place to handle optimizations for processor (or instruction set) variations instead of adding in mkl_layout_pass.\r\n\r\nThe optimisation that we are doing with heuristic here is that we are choosing between lowering operation to be executed using oneDNN (i.e. rewriting it to be _Mkl) or executing operation using Eigen library so that is not possible to do in oneDNN as that decision is made before a call is made to oneDNN.\r\n\r\n@penpornk, do you think that it might be introducing a new layout pass for AArch64 that would be called instead of `mkl_layout_pass`. We are already seeing some divergence in terms of fusion or lowering ops to onedNN such as here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/optimizers/remapper.cc#L4603 and https://github.com/tensorflow/tensorflow/pull/60723 \r\n\r\nThanks,\r\nMilos.", "Hi @milpuz01, right, you will see some fusions currently happening in mkl_layout_pass but they are very old (5-6 years old). They need to be moved to remapper whenever possible. All new fusions have been added to remapper. We also added a pattern_matcher in remapper, which is easy and convenient to define patterns. take a [look here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/optimizers/remapper.cc#L1444) . It's easier to match patterns than with code. So, you can try using it to do all fusions in grappler.\r\nUsing IsMKLEnabled() and #ifdef in remapper seems ok. You can probably define another functions that does the conditions checks to fuse or not. So, I recommend keeping fusions in remapper.\r\nWith respect to the logic to decide whether to use Mkl* version of the op or use Eigen, it's ok if you want to keep it in mkl_layout_pass as long as it doesn't affect Intel CPU code. But based on multiple HWs arch, it is easy to see it get complicated. We typically try to use generic conditions for shape/size. ", "@milpuz01 Could you please add some unit tests.", "Hi @milpuz01 Any update on this PR? Please. Thank you!", "> So, you can try using it to do all fusions in grappler. Using IsMKLEnabled() and #ifdef in remapper seems ok. You can probably define another functions that does the conditions checks to fuse or not. So, I recommend keeping fusions in remapper.\r\n\r\nThanks @gaurides for in-depth explanation. I have now reverted the change and put back fusion back that was removed from the mapper. In order to be able to decide whether to fuse or not on AArch64 I have added new function as per your suggestion in a new header file `mkl_heuristics.h` that can check now whether we want to fuse or not and use it in remapper. The same function is also used in layout pass too when decision needs to be made there. \r\n\r\n> With respect to the logic to decide whether to use Mkl* version of the op or use Eigen, it's ok if you want to keep it in mkl_layout_pass as long as it doesn't affect Intel CPU code. \r\n\r\nAll the code that we are added is either guarded by `DNNL_AARCH64_USE_ACL` or reverts to default behaviour so it doesn't affect Intel's CPU code.\r\n", "> @milpuz01 Could you please add some unit tests.\r\n\r\nThanks @mdfaijul for the comment. I have added new tests in `mkl_herustics_test.cc` to test method for calculating FLOPS and threshold. The rest of changes do not introduce any new behaviour that is not covered already by existing tests that are in tests for `remapper_test.cc` and `mkl_remapper_test.cc`. Furthermore, in this change PR: https://github.com/tensorflow/tensorflow/pull/60160 we have extended convolution benchmark to take into account rewriting of nodes using layout pass so that tests that we get best performance when running convolutions. ", "> Could you please help fix [PY+CPP Ubuntu CPU](https://source.cloud.google.com/results/invocations/c09a2a5f-e1e3-410f-8b8f-d2b79592ea1d/log) build failures?\r\n\r\nSorry about this @penporn. I believe that commit [a1f135e](https://github.com/tensorflow/tensorflow/pull/60026/commits/a1f135efcaa05abb86ad7b1f5f91258cf9ae5e60) should fix the failures as ordering of included headers was not correct in `mkl_heuristics_test.cc`", "Could you please help take a look at `//tensorflow/core/common_runtime/eager:context_test` failure?\r\n```\r\n==================== Test output for //tensorflow/core/common_runtime/eager:context_test:\r\n2023-07-25 12:21:47.692537: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.\r\n2023-07-25 12:21:47.692765: W tensorflow/tsl/lib/monitoring/collection_registry.cc:81] Trying to register 2 metrics with the same name: /tensorflow/core/bfc_allocator_delay. The old value will be erased in order to register a new one. Please check if you link the metric more than once, or if the name is already used by other metrics.\r\n[==========] Running 10 tests from 1 test suite.\r\n[----------] Global test environment set-up.\r\n[----------] 10 tests from EagerContextTest\r\n[ RUN ] EagerContextTest.CompositeDevice\r\n[ OK ] EagerContextTest.CompositeDevice (25 ms)\r\n[ RUN ] EagerContextTest.CompositeDeviceWithGivenName\r\n[ OK ] EagerContextTest.CompositeDeviceWithGivenName (0 ms)\r\n[ RUN ] EagerContextTest.AddFunctionDef\r\n[ OK ] EagerContextTest.AddFunctionDef (26 ms)\r\n[ RUN ] EagerContextTest.AddFunctionDefRepeatSame\r\n[ OK ] EagerContextTest.AddFunctionDefRepeatSame (0 ms)\r\n[ RUN ] EagerContextTest.AddFunctionDefRepeatDifferent\r\n[ OK ] EagerContextTest.AddFunctionDefRepeatDifferent (1 ms)\r\n[ RUN ] EagerContextTest.FunctionErrorRecovery\r\n2023-07-25 12:21:47.827207: F ./tensorflow/core/framework/device_base.h:146] Check failed: cpu_worker_threads_ != nullptr \r\n*** Received signal 6 ***\r\n*** BEGIN MANGLED STACK TRACE ***\r\n```\r\nI believe this comes from the changes in //tensorflow/core/common_runtime/optimize_function_graph_utils.cc.\r\nhttps://github.com/tensorflow/tensorflow/pull/60026/files#diff-cf5de83fc2a1e4038beb6f3994daae6bb9bc321f8eb05a6e125980ab4b598680R556-R562", "> Could you please help take a look at `//tensorflow/core/common_runtime/eager:context_test` failure?\r\n\r\nThanks @penpornk. Commit 2701cc4 should make the test to pass. I have restricted to only check for number of threads for intra op if it is local device because that is common path that is used when doing MKL layout pass. I have also moved to set it inside of `PreprocessAndPartitionGraph()` instead of `OptimizeFunctionGraph()` as MKL layout pass is called from former." ]
2023-03-16T23:54:21
2023-07-27T11:10:39
2023-07-26T20:26:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60026", "html_url": "https://github.com/tensorflow/tensorflow/pull/60026", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60026.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60026.patch", "merged_at": "2023-07-26T20:26:02" }
We observed that when you run networks that have layers with smaller input and overall lower compute density overhead into MKL path dominates useful compute so in that case it is better to call default, Eigen, path. This patch introduces changes to MKL layout pass where a liner analytical model is used to decide based on compute density and number of threads to either rewrite node to use MKL code path or leave it as it is. It propagates input shapes of the operation by decorating node with _input_shapes attribute number of threads used to parallelise operation by reading it from device on which operation is expected to execute (in this case CPUDevice) which, are then retrived in MKL layout pass and passed to the analytical model. With this approach we have observed speedup for models available on TF-Hub as shown in the two attached graphs when running with 8 and 16 cores on Neoverse-V1 platform. Before shows results without this patch and after shows results with the patch relative when same models are ran with TF_ENABLE_ONEDNN_OPTS=0. Overall for 8 cores we see ~1.2x average speedup over TF_ENABLE_ONEDNN_OPTS=0 for 8 cores and ~1.12x for 16 cores. ![8cores_results](https://user-images.githubusercontent.com/79916358/225777461-0962b80c-4923-4b50-bb55-b65874ee3da9.png) ![16cores_results](https://user-images.githubusercontent.com/79916358/225777470-3fea315f-d78c-447b-9bbc-4f09202400da.png) In addition to analytical model improvements for convolution, fused convolution, fused batch normalisation and swish, this patch also moves code for merging sigmoid and multiplication from remapper.cc to mkl_layout_pass.cc as it is MKL merge operation. cc: @penpornk @cantonios
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60026/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60026/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60025
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60025/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60025/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60025/events
https://github.com/tensorflow/tensorflow/pull/60025
1,628,474,474
PR_kwDOArmXAs5MQ173
60,025
Remove redundant `static_assert`s
{ "login": "XPhyro", "id": 10392678, "node_id": "MDQ6VXNlcjEwMzkyNjc4", "avatar_url": "https://avatars.githubusercontent.com/u/10392678?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XPhyro", "html_url": "https://github.com/XPhyro", "followers_url": "https://api.github.com/users/XPhyro/followers", "following_url": "https://api.github.com/users/XPhyro/following{/other_user}", "gists_url": "https://api.github.com/users/XPhyro/gists{/gist_id}", "starred_url": "https://api.github.com/users/XPhyro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XPhyro/subscriptions", "organizations_url": "https://api.github.com/users/XPhyro/orgs", "repos_url": "https://api.github.com/users/XPhyro/repos", "events_url": "https://api.github.com/users/XPhyro/events{/privacy}", "received_events_url": "https://api.github.com/users/XPhyro/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
[ "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/60025/checks?check_run_id=12067066574) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request." ]
2023-03-16T23:49:00
2023-03-24T14:12:44
2023-03-24T14:08:05
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60025", "html_url": "https://github.com/tensorflow/tensorflow/pull/60025", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60025.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60025.patch", "merged_at": "2023-03-24T14:08:05" }
Removed redundant `static_assert`s. They seem to have been introduced in 0b6b491d21d6 with the switch from `tensorflow::int64` to `int64_t`.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60025/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60025/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60024
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60024/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60024/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60024/events
https://github.com/tensorflow/tensorflow/issues/60024
1,628,422,065
I_kwDOArmXAs5hD7-x
60,024
tf-nightly [2.13.0.dev20230322]: module 'tensorflow' has no attribute 'version'
{ "login": "YuliyaPylypiv", "id": 22336454, "node_id": "MDQ6VXNlcjIyMzM2NDU0", "avatar_url": "https://avatars.githubusercontent.com/u/22336454?v=4", "gravatar_id": "", "url": "https://api.github.com/users/YuliyaPylypiv", "html_url": "https://github.com/YuliyaPylypiv", "followers_url": "https://api.github.com/users/YuliyaPylypiv/followers", "following_url": "https://api.github.com/users/YuliyaPylypiv/following{/other_user}", "gists_url": "https://api.github.com/users/YuliyaPylypiv/gists{/gist_id}", "starred_url": "https://api.github.com/users/YuliyaPylypiv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YuliyaPylypiv/subscriptions", "organizations_url": "https://api.github.com/users/YuliyaPylypiv/orgs", "repos_url": "https://api.github.com/users/YuliyaPylypiv/repos", "events_url": "https://api.github.com/users/YuliyaPylypiv/events{/privacy}", "received_events_url": "https://api.github.com/users/YuliyaPylypiv/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": 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" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @YuliyaPylypiv,\r\nThank you for raising this issue! Could you please let us know the steps followed to install Tensorflow?", "Hi @synandi, I used pip to install TensorFlow `pip3 install tf-nightly`", "The issue is resolved with `v1.12.1-91194-g44c02012675 2.13.0-dev20230317` version\r\n\r\n```\r\npython -c \"import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)\"\r\n2023-03-17 14:50:51.497925: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\nv1.12.1-91194-g44c02012675 2.13.0-dev20230317\r\n```", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60024\">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/60024\">No</a>\n", "Hi @synandi,\r\n\r\nI'm seeing the same issue again with `tf-nightly 2.13.0.dev20230322` on macos x86 machine\r\n\r\nTo reproduce:\r\n```\r\npip install tf-nightly==2.13.0.dev20230322\r\npython -c \"import tensorflow as tf; print(tf.version.VERSION)\"\r\n```\r\n\r\nResult: \r\n```\r\nTraceback (most recent call last):\r\n File \"<string>\", line 1, in <module>\r\nAttributeError: module 'tensorflow' has no attribute 'version'\r\n```", "Hi @YuliyaPylypiv, \r\nIt is recommended to use the stable version of Tensorflow instead of tf-nightly as it is unstable. It will likely be resolved in the stable release. Thank you!", "Do this below \r\n!python -c \"import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)\"\r\n!python -c \"import tensorflow as tf; tf.random.set_seed(1)\" \r\n\r\noutput below\r\n2023-03-31 23:13:38.444282: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\nv1.12.1-91939-g13de22a3b30 2.13.0-dev20230331\r\n2023-03-31 23:13:42.397786: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT", "I'm aware that stable TensorFlow works! Wanted to make sure the issue is resolved with the tf-nightly. Thank you all!", "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/60024\">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/60024\">No</a>\n" ]
2023-03-16T22:57:01
2023-04-03T23:37:16
2023-04-03T23:37:13
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.13.0.dev20230316 ### Custom Code No ### OS Platform and Distribution macos 13.0.1 x86 ### Mobile device _No response_ ### Python version 3.9.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'tensorflow' has no attribute 'version' python -c "import tensorflow as tf; tf.random.set_seed(1)" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'tensorflow' has no attribute 'random' ``` ### Standalone code to reproduce the issue ```shell python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)" python -c "import tensorflow as tf; tf.random.set_seed(1)" ``` ### Relevant log output ```shell Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'tensorflow' has no attribute 'version' ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60024/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60024/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60023
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60023/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60023/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60023/events
https://github.com/tensorflow/tensorflow/issues/60023
1,628,370,133
I_kwDOArmXAs5hDvTV
60,023
How to find accuracy of a pretrained tflite model
{ "login": "suyash-narain", "id": 78979784, "node_id": "MDQ6VXNlcjc4OTc5Nzg0", "avatar_url": "https://avatars.githubusercontent.com/u/78979784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suyash-narain", "html_url": "https://github.com/suyash-narain", "followers_url": "https://api.github.com/users/suyash-narain/followers", "following_url": "https://api.github.com/users/suyash-narain/following{/other_user}", "gists_url": "https://api.github.com/users/suyash-narain/gists{/gist_id}", "starred_url": "https://api.github.com/users/suyash-narain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suyash-narain/subscriptions", "organizations_url": "https://api.github.com/users/suyash-narain/orgs", "repos_url": "https://api.github.com/users/suyash-narain/repos", "events_url": "https://api.github.com/users/suyash-narain/events{/privacy}", "received_events_url": "https://api.github.com/users/suyash-narain/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473184161, "node_id": "MDU6TGFiZWw0NzMxODQxNjE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support", "name": "type:support", "color": "159b2e", "default": false, "description": "Support issues" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2788658540, "node_id": "MDU6TGFiZWwyNzg4NjU4NTQw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support", "name": "comp:lite-support", "color": "4A5F20", "default": false, "description": "Lite support library related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @suyash-narain \r\n\r\nTensorflow lite provides [TFLite Model Task Evaluation](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/evaluation/tasks#tflite-model-task-evaluation) where we can perform the evaluation of image classification and object detection models.\r\n\r\nFor checking the imagenet accuracy, please refer to image classification evaluation based on ILSVRC 2012 task [here](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/evaluation/tasks/imagenet_image_classification#image-classification-evaluation-based-on-ilsvrc-2012-task).\r\n\r\nPlease let us know if it helps and feel free to close the issue if it is resolved.\r\n\r\nThanks.", "thank you! it helps\r\nI will close the issue now", "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/60023\">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/60023\">No</a>\n", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60023\">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/60023\">No</a>\n" ]
2023-03-16T22:12:11
2023-03-17T23:21:08
2023-03-17T23:21:06
NONE
null
null
null
### System information - **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No - **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: - Ubuntu 20.04 - **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on a mobile device**: None - **TensorFlow installed from (source or binary)**: binary - **TensorFlow version (use command below)**: v2.11 - **Python version**: 3.9 ### Describe the problem I have a pretrained tf mobilenetv2 model downloaded from tfhub which i converted to tflite using tflite interpreter converter. The original model was trained on imagenet dataset, but i want to find out the accuracy of the converted tflite model. How do I do that? As of now, the eval function is specific to models generated from modelmaker. What is the best way to find the model accuracy? thanks
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60023/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60023/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60022
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60022/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60022/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60022/events
https://github.com/tensorflow/tensorflow/issues/60022
1,628,342,044
I_kwDOArmXAs5hDocc
60,022
Saving Custom Model Not Working
{ "login": "aecelaya", "id": 12498403, "node_id": "MDQ6VXNlcjEyNDk4NDAz", "avatar_url": "https://avatars.githubusercontent.com/u/12498403?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aecelaya", "html_url": "https://github.com/aecelaya", "followers_url": "https://api.github.com/users/aecelaya/followers", "following_url": "https://api.github.com/users/aecelaya/following{/other_user}", "gists_url": "https://api.github.com/users/aecelaya/gists{/gist_id}", "starred_url": "https://api.github.com/users/aecelaya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aecelaya/subscriptions", "organizations_url": "https://api.github.com/users/aecelaya/orgs", "repos_url": "https://api.github.com/users/aecelaya/repos", "events_url": "https://api.github.com/users/aecelaya/events{/privacy}", "received_events_url": "https://api.github.com/users/aecelaya/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": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "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
[ "@aecelaya,\r\nIf your model contains custom objects or custom layers then you need to define **get_config** and **from_config** methods in the Model. Then during model.save() you need to pass an argument to custom_objects with dictionary of custom objects.\r\n\r\nPlease refer to attached [source](https://www.tensorflow.org/guide/keras/save_and_serialize#defining_the_config_methods) for a minimal example.\r\n\r\nYou may also refer to the keras https://github.com/keras-team/tf-keras/issues/64. Please try to recreate the model accordingly.\r\n\r\nThanks!", "Thank you for the reply! I tried what you suggested, but I still see the same error.\r\n\r\nFor now, I can move forward without needing to save the model. I'll revisit this issue later.\r\n\r\nThank you!", "Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60022\">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/60022\">No</a>\n" ]
2023-03-16T21:46:24
2023-09-22T06:37:10
2023-03-19T20:37:35
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.11.0 ### Custom Code Yes ### OS Platform and Distribution Colab Notebook ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I'm trying to save a custom model where the number of channels increases as we progress along the forward pass of the architecture. The forward pass of the model works as expected, and I can train it. However, when trying to save the model, I get an error concerning the number of channels passed to certain convolutional layers. Is there a way around this issue? ``` ### Standalone code to reproduce the issue ```shell https://colab.research.google.com/drive/1YZd8OQWjgYasVblDit-gRNvA-kFJdRkn?usp=sharing ``` ### Relevant log output ```shell --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-7-696ba1b852d4> in <module> ----> 1 wnet.save("/content/wnet") 7 frames /tmp/__autograph_generated_filelz68b5h5.py in tf__call(self, x) 8 do_return = False 9 retval_ = ag__.UndefinedReturnValue() ---> 10 x = ag__.converted_call(ag__.ld(self).conv, (ag__.ld(x),), None, fscope) 11 x = ag__.converted_call(ag__.ld(self).norm, (ag__.ld(x),), None, fscope) 12 x = ag__.converted_call(ag__.ld(self).activation, (ag__.ld(x),), None, fscope) ValueError: Exception encountered when calling layer 'base_model' (type BaseModel). in user code: File "<ipython-input-1-355bdcd220c4>", line 149, in call * x = decoder_block([*previous_skips[str(self.global_depth - 1 - i)], File "/usr/local/lib/python3.9/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler ** raise e.with_traceback(filtered_tb) from None File "/tmp/__autograph_generated_file30lnbd33.py", line 12, in tf__call x = ag__.converted_call(ag__.ld(self).block, (ag__.ld(x),), None, fscope) File "/tmp/__autograph_generated_filejlndlto_.py", line 10, in tf__call x = ag__.converted_call(ag__.ld(self).conv1, (ag__.ld(x),), None, fscope) File "/tmp/__autograph_generated_filelz68b5h5.py", line 10, in tf__call x = ag__.converted_call(ag__.ld(self).conv, (ag__.ld(x),), None, fscope) ValueError: Exception encountered when calling layer 'decoder_block_1' (type DecoderBlock). in user code: File "<ipython-input-1-355bdcd220c4>", line 96, in call * x = self.block(x) File "/usr/local/lib/python3.9/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler ** raise e.with_traceback(filtered_tb) from None File "/tmp/__autograph_generated_filejlndlto_.py", line 10, in tf__call x = ag__.converted_call(ag__.ld(self).conv1, (ag__.ld(x),), None, fscope) File "/tmp/__autograph_generated_filelz68b5h5.py", line 10, in tf__call x = ag__.converted_call(ag__.ld(self).conv, (ag__.ld(x),), None, fscope) ValueError: Exception encountered when calling layer 'u_net_block_7' (type UNetBlock). in user code: File "<ipython-input-2-76991f1be87b>", line 14, in call * x = self.conv1(x) File "/usr/local/lib/python3.9/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler ** raise e.with_traceback(filtered_tb) from None File "/tmp/__autograph_generated_filelz68b5h5.py", line 10, in tf__call x = ag__.converted_call(ag__.ld(self).conv, (ag__.ld(x),), None, fscope) ValueError: Exception encountered when calling layer 'conv_layer_14' (type ConvLayer). in user code: File "<ipython-input-1-355bdcd220c4>", line 56, in call * x = self.conv(x) File "/usr/local/lib/python3.9/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler ** raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.9/dist-packages/keras/engine/input_spec.py", line 277, in assert_input_compatibility raise ValueError( ValueError: Input 0 of layer "conv3d_14" is incompatible with the layer: expected axis -1 of input shape to have value 24, but received input with shape (None, 16, 16, 16, 32) Call arguments received by layer 'conv_layer_14' (type ConvLayer): • x=tf.Tensor(shape=(None, 16, 16, 16, 32), dtype=float32) Call arguments received by layer 'u_net_block_7' (type UNetBlock): • x=tf.Tensor(shape=(None, 16, 16, 16, 32), dtype=float32) Call arguments received by layer 'decoder_block_1' (type DecoderBlock): • skip=['tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)', 'tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)', 'tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)'] • x=tf.Tensor(shape=(None, 8, 8, 8, 8), dtype=float32) Call arguments received by layer 'base_model' (type BaseModel): • x=tf.Tensor(shape=(None, 8, 8, 8, 8), dtype=float32) • previous_skips={'0': ListWrapper(['tf.Tensor(shape=(None, 64, 64, 64, 8), dtype=float32)']), '1': ListWrapper(['tf.Tensor(shape=(None, 32, 32, 32, 8), dtype=float32)']), '2': ListWrapper(['tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)', 'tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)'])} • previous_peaks={'0': ListWrapper([]), '1': ListWrapper(['tf.Tensor(shape=(None, 32, 32, 32, 8), dtype=float32)']), '2': ListWrapper(['tf.Tensor(shape=(None, 16, 16, 16, 8), dtype=float32)'])} ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60022/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60022/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/60021
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60021/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60021/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60021/events
https://github.com/tensorflow/tensorflow/pull/60021
1,628,252,941
PR_kwDOArmXAs5MQE0x
60,021
lite: Add config option to enable label_image example
{ "login": "jameshilliard", "id": 3298484, "node_id": "MDQ6VXNlcjMyOTg0ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3298484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jameshilliard", "html_url": "https://github.com/jameshilliard", "followers_url": "https://api.github.com/users/jameshilliard/followers", "following_url": "https://api.github.com/users/jameshilliard/following{/other_user}", "gists_url": "https://api.github.com/users/jameshilliard/gists{/gist_id}", "starred_url": "https://api.github.com/users/jameshilliard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jameshilliard/subscriptions", "organizations_url": "https://api.github.com/users/jameshilliard/orgs", "repos_url": "https://api.github.com/users/jameshilliard/repos", "events_url": "https://api.github.com/users/jameshilliard/events{/privacy}", "received_events_url": "https://api.github.com/users/jameshilliard/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 @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @sirakiin Can you please review this PR ? Thank you!" ]
2023-03-16T20:47:24
2023-12-22T20:55:33
2023-12-20T06:37:51
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60021", "html_url": "https://github.com/tensorflow/tensorflow/pull/60021", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60021.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60021.patch", "merged_at": "2023-12-20T06:37:51" }
It's handy to have an option to enable the label_image example so that it can be built and installed using the all target which is preferable in some cases when packaging tensorflow-lite.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60021/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60021/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60020
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60020/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60020/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60020/events
https://github.com/tensorflow/tensorflow/pull/60020
1,628,233,654
PR_kwDOArmXAs5MQAgN
60,020
[NVIDIA XLA] Vector BiasAdd Epilogue Fusion for FP8 GEMMs
{ "login": "wenscarl", "id": 25590028, "node_id": "MDQ6VXNlcjI1NTkwMDI4", "avatar_url": "https://avatars.githubusercontent.com/u/25590028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wenscarl", "html_url": "https://github.com/wenscarl", "followers_url": "https://api.github.com/users/wenscarl/followers", "following_url": "https://api.github.com/users/wenscarl/following{/other_user}", "gists_url": "https://api.github.com/users/wenscarl/gists{/gist_id}", "starred_url": "https://api.github.com/users/wenscarl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wenscarl/subscriptions", "organizations_url": "https://api.github.com/users/wenscarl/orgs", "repos_url": "https://api.github.com/users/wenscarl/repos", "events_url": "https://api.github.com/users/wenscarl/events{/privacy}", "received_events_url": "https://api.github.com/users/wenscarl/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 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-03-16T20:35:29
2023-03-29T22:17:15
2023-03-29T22:17:15
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60020", "html_url": "https://github.com/tensorflow/tensorflow/pull/60020", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60020.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60020.patch", "merged_at": "2023-03-29T22:17:15" }
Vector BiasAdd Epilogue Fusion for FP8 GEMMs. It's assumed that matrix bias and vector bias don't co-exist. Matrix bias fusion has been supported in [59804](https://github.com/tensorflow/tensorflow/pull/59804). Vector bias epilog fusion is applied when beta being zero which makes matrix bias a trivial. @reedwm @philipphack
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60020/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60020/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60019
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60019/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60019/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60019/events
https://github.com/tensorflow/tensorflow/pull/60019
1,628,083,636
PR_kwDOArmXAs5MPfj5
60,019
Fixes to build and run TFLite evaluation ios app
{ "login": "martin-etchart", "id": 1056375, "node_id": "MDQ6VXNlcjEwNTYzNzU=", "avatar_url": "https://avatars.githubusercontent.com/u/1056375?v=4", "gravatar_id": "", "url": "https://api.github.com/users/martin-etchart", "html_url": "https://github.com/martin-etchart", "followers_url": "https://api.github.com/users/martin-etchart/followers", "following_url": "https://api.github.com/users/martin-etchart/following{/other_user}", "gists_url": "https://api.github.com/users/martin-etchart/gists{/gist_id}", "starred_url": "https://api.github.com/users/martin-etchart/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/martin-etchart/subscriptions", "organizations_url": "https://api.github.com/users/martin-etchart/orgs", "repos_url": "https://api.github.com/users/martin-etchart/repos", "events_url": "https://api.github.com/users/martin-etchart/events{/privacy}", "received_events_url": "https://api.github.com/users/martin-etchart/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/60019/checks?check_run_id=12060948392) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request.", "I think its ok", "> Please make this again master branch\r\n\r\nChanging branch to master gives a lot of issues, it will be probably easier to to cherrypick and create a new PR from master, would you agree @mihaimaruseac ?", "Yeah, I would say, let's close this, open a new one on master and after that lands cherrypick to the last active release branches.", "> Yeah, I would say, let's close this, open a new one on master and after that lands cherrypick to the last active release branches.\r\n\r\nDone, you can close this one now.", "Thank you" ]
2023-03-16T18:48:50
2023-05-12T15:21:50
2023-05-12T15:17:20
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60019", "html_url": "https://github.com/tensorflow/tensorflow/pull/60019", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60019.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60019.patch", "merged_at": null }
Minimal changes to build and run the TFLite evaluation tool on iOS.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60019/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/60019/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60018
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60018/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60018/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60018/events
https://github.com/tensorflow/tensorflow/pull/60018
1,627,958,131
PR_kwDOArmXAs5MPEd-
60,018
[Intel oneDNN][Bug Fix] fix unit test failure with framework::function test
{ "login": "gzmkl", "id": 29215195, "node_id": "MDQ6VXNlcjI5MjE1MTk1", "avatar_url": "https://avatars.githubusercontent.com/u/29215195?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gzmkl", "html_url": "https://github.com/gzmkl", "followers_url": "https://api.github.com/users/gzmkl/followers", "following_url": "https://api.github.com/users/gzmkl/following{/other_user}", "gists_url": "https://api.github.com/users/gzmkl/gists{/gist_id}", "starred_url": "https://api.github.com/users/gzmkl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gzmkl/subscriptions", "organizations_url": "https://api.github.com/users/gzmkl/orgs", "repos_url": "https://api.github.com/users/gzmkl/repos", "events_url": "https://api.github.com/users/gzmkl/events{/privacy}", "received_events_url": "https://api.github.com/users/gzmkl/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": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-03-16T17:28:38
2023-03-21T18:43:35
2023-03-21T18:43:34
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60018", "html_url": "https://github.com/tensorflow/tensorflow/pull/60018", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60018.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60018.patch", "merged_at": "2023-03-21T18:43:34" }
This PR fixes a unit test failure which was caused by the merge of this past PR https://github.com/tensorflow/tensorflow/pull/55411
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60018/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60018/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60017
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60017/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60017/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60017/events
https://github.com/tensorflow/tensorflow/pull/60017
1,627,922,527
PR_kwDOArmXAs5MO851
60,017
Clarifying language in the Breaking Changes section in RELEASE.md
{ "login": "joefernandez", "id": 931947, "node_id": "MDQ6VXNlcjkzMTk0Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/931947?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joefernandez", "html_url": "https://github.com/joefernandez", "followers_url": "https://api.github.com/users/joefernandez/followers", "following_url": "https://api.github.com/users/joefernandez/following{/other_user}", "gists_url": "https://api.github.com/users/joefernandez/gists{/gist_id}", "starred_url": "https://api.github.com/users/joefernandez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joefernandez/subscriptions", "organizations_url": "https://api.github.com/users/joefernandez/orgs", "repos_url": "https://api.github.com/users/joefernandez/repos", "events_url": "https://api.github.com/users/joefernandez/events{/privacy}", "received_events_url": "https://api.github.com/users/joefernandez/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-16T17:05:35
2023-03-17T15:15:57
2023-03-17T15:15:53
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60017", "html_url": "https://github.com/tensorflow/tensorflow/pull/60017", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60017.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60017.patch", "merged_at": "2023-03-17T15:15:53" }
Clarifying language in the Breaking Changes section
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60017/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60017/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60016
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60016/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60016/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60016/events
https://github.com/tensorflow/tensorflow/pull/60016
1,627,900,156
PR_kwDOArmXAs5MO4Ej
60,016
Fix release notes
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-16T16:52:14
2023-03-16T17:20:05
2023-03-16T17:20:01
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60016", "html_url": "https://github.com/tensorflow/tensorflow/pull/60016", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60016.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60016.patch", "merged_at": "2023-03-16T17:20:01" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60016/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60016/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60015
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60015/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60015/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60015/events
https://github.com/tensorflow/tensorflow/pull/60015
1,627,833,428
PR_kwDOArmXAs5MOpV0
60,015
lite: Update CMakeLists.txt
{ "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 }
[]
closed
false
null
[]
null
[ "Is https://github.com/tensorflow/tensorflow/issues/59631 the right issue?", "> Is https://github.com/tensorflow/tensorflow/issues/59631 the right issue?\r\n\r\nYes, this is a cherry-pick so I didn't change commit message. It's a breakage on CMake build.", "Thanks for fixing it @terryheo ! Is it possible to merge this commit to the master branch?", "> Thanks for fixing it @terryheo ! Is it possible to merge this commit to the master branch?\r\n\r\nIt's a cherry-pick from the master change https://github.com/tensorflow/tensorflow/commit/5115fa96d7c5b41451674892317be43e30b7c389" ]
2023-03-16T16:14:48
2023-04-05T03:13:11
2023-04-05T03:13:10
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60015", "html_url": "https://github.com/tensorflow/tensorflow/pull/60015", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60015.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60015.patch", "merged_at": "2023-04-05T03:13:10" }
To fix undefined symbol: _ZN6tflite9telemetry20TelemetryReportEventEP13TfLiteContextPKc12TfLiteStatus This PR resolves #59631 PiperOrigin-RevId: 510050310
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60015/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60015/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/60014
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/60014/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/60014/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/60014/events
https://github.com/tensorflow/tensorflow/pull/60014
1,627,811,319
PR_kwDOArmXAs5MOknY
60,014
Disable a test that results in OOM+segfault
{ "login": "mihaimaruseac", "id": 323199, "node_id": "MDQ6VXNlcjMyMzE5OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihaimaruseac", "html_url": "https://github.com/mihaimaruseac", "followers_url": "https://api.github.com/users/mihaimaruseac/followers", "following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}", "gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions", "organizations_url": "https://api.github.com/users/mihaimaruseac/orgs", "repos_url": "https://api.github.com/users/mihaimaruseac/repos", "events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}", "received_events_url": "https://api.github.com/users/mihaimaruseac/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-03-16T16:05:51
2023-03-16T16:11:29
2023-03-16T16:11:26
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/60014", "html_url": "https://github.com/tensorflow/tensorflow/pull/60014", "diff_url": "https://github.com/tensorflow/tensorflow/pull/60014.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/60014.patch", "merged_at": "2023-03-16T16:11:26" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/60014/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/60014/timeline
null
null
true