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/59612
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59612/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59612/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59612/events
https://github.com/tensorflow/tensorflow/issues/59612
1,576,100,627
I_kwDOArmXAs5d8WMT
59,612
LayerNormalization layer cannot be imported
{ "login": "goruck", "id": 12125472, "node_id": "MDQ6VXNlcjEyMTI1NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/12125472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/goruck", "html_url": "https://github.com/goruck", "followers_url": "https://api.github.com/users/goruck/followers", "following_url": "https://api.github.com/users/goruck/following{/other_user}", "gists_url": "https://api.github.com/users/goruck/gists{/gist_id}", "starred_url": "https://api.github.com/users/goruck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/goruck/subscriptions", "organizations_url": "https://api.github.com/users/goruck/orgs", "repos_url": "https://api.github.com/users/goruck/repos", "events_url": "https://api.github.com/users/goruck/events{/privacy}", "received_events_url": "https://api.github.com/users/goruck/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi, @goruck \r\n\r\nIt seems like you're trying to use legacy Keras code which is stale and about to be deleted. we have added warning on [that page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/keras#stop) and The current Keras code lives in [github/keras-team/keras](https://github.com/keras-team/keras).\r\n\r\nWe have also updated in our `TensorFlow 2.11.0` [release notes](https://github.com/tensorflow/tensorflow/releases#:~:text=tensorflow/python/keras%20code%20is%20a%20legacy%20copy%20of%20Keras%20since%20the%20TensorFlow%20v2.7%20release%2C%20and%20will%20be%20deleted%20in%20the%20v2.12%20release.%20Please%20remove%20any%20import%20of%20tensorflow.python.keras%20and%20use%20the%20public%20API%20with%20from%20tensorflow%20import%20keras%20or%20import%20tensorflow%20as%20tf%3B%20tf.keras.) and you'll find `.py `files in the `normalization` folder after clicking on this [link](https://github.com/keras-team/keras)( keras->layers->normalization) and please use the public API with `from tensorflow import keras` as shown in this [gist file](https://colab.research.google.com/gist/gaikwadrahul8/0bbf4b93862ab9e1410845bc4e94c7d4/-59612.ipynb) and I was able to replicate the issue on `ubuntu 20.04` with `Tensorflow==2.11` and it's importing as expected, I have added screenshot for your reference below:\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/217636029-a1e08043-c55f-4d94-9259-7d81a76cd7ff.png)\r\n\r\nIf issue still persists please let us know? or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!", "Hi @gaikwadrahul8, this resolved it perfectly. Thank you so much!" ]
2023-02-08T13:12:17
2023-02-09T03:04:26
2023-02-09T03:04:25
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.5 LTS - **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on a mobile device**: N/A - **TensorFlow installed from (source or binary)**: binary - **TensorFlow version (use command below)**: v2.11.0-rc2-17-gd5b57ca93e5 2.11.0 - **Python version**: 3.9.12 - **Bazel version (if compiling from source)**: N/A - **GCC/Compiler version (if compiling from source)**: N/A - **CUDA/cuDNN version**: cudatoolkit=11.2 cudnn=8.1.0 - **GPU model and memory**: RTX 3090, 24 GB - **Exact command to reproduce**: ```text (nilm) lindo@titan:~/Develop/nilm/ml/transformer_model$ python3 Python 3.9.12 (main, Jun 1 2022, 11:38:51) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from tensorflow.python.keras.layers import LayerNormalization 2023-02-08 04:49:08.994050: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-02-08 04:49:09.517674: 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: :/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/nvvm/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt 2023-02-08 04:49:09.517729: 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: :/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/nvvm/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt:/home/lindo/anaconda3/envs/nilm/lib/:/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorrt 2023-02-08 04:49:09.517738: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'LayerNormalization' from 'tensorflow.python.keras.layers' (/home/lindo/anaconda3/envs/nilm/lib/python3.9/site-packages/tensorflow/python/keras/layers/__init__.py) >>> ``` ### Describe the problem Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request. The [LayerNormalization](https://www.tensorflow.org/api_docs/python/tf/keras/layers/LayerNormalization) layer does not exist, in fact none of the normalization layers are in ```tensorflow/python/keras/layers``` and so cannot be imported in a Python script. I have installed tensorflow using pip in a conda environment as described in the [tensorflow installation documentation](https://www.tensorflow.org/install/pip). The expected behavior is the LayerNormalization layer should exist in the source tree and be importable as Python module. ### Source code / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem. Steps to reproduce. 1. Install tensorflow in a conda environment using pip per the documentation. 2. Import the LayerNormalization layer.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59612/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59612/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59611
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59611/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59611/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59611/events
https://github.com/tensorflow/tensorflow/issues/59611
1,576,067,427
I_kwDOArmXAs5d8OFj
59,611
tf.math.tan cannot accept integer variables.
{ "login": "mazeltovlee", "id": 91937711, "node_id": "U_kgDOBXrbrw", "avatar_url": "https://avatars.githubusercontent.com/u/91937711?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mazeltovlee", "html_url": "https://github.com/mazeltovlee", "followers_url": "https://api.github.com/users/mazeltovlee/followers", "following_url": "https://api.github.com/users/mazeltovlee/following{/other_user}", "gists_url": "https://api.github.com/users/mazeltovlee/gists{/gist_id}", "starred_url": "https://api.github.com/users/mazeltovlee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mazeltovlee/subscriptions", "organizations_url": "https://api.github.com/users/mazeltovlee/orgs", "repos_url": "https://api.github.com/users/mazeltovlee/repos", "events_url": "https://api.github.com/users/mazeltovlee/events{/privacy}", "received_events_url": "https://api.github.com/users/mazeltovlee/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": 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
[ "@mazeltovlee \r\nI was able to reproduce the issue on Colab using TF v2.11 and tf-nightly. Please find the gist of [TF v2.11](https://colab.research.google.com/gist/tiruk007/104184ad07c155074f46055be5db683f/untitled117.ipynb) and [tf_nightly-2.13.0.dev20230212](https://colab.research.google.com/gist/tiruk007/c35fe01535a05b5c259ec9a384566714/untitled118.ipynb) for reference.It seems like we have to dig more into this issue, we will update soon here. \r\n\r\nThank you!", "tf.math.tan seems to be able to accept integer values in a tensor as long as one or more non integer values are present.", "@mazeltovlee ,\r\n\r\nThanks for reporting this. There is some conflict here.I can see from file `tensorflow.python.ops.gen_math_ops` where `tan() `is accepting the args where `int` dtype is not in that list which is conflict to what documentation says. Need to check the code at C++ level for exact supported `dtypes` and will do necessary changes to documentation/code if needed any.\r\n\r\n<img width=\"1457\" alt=\"Screenshot 2023-02-20 at 12 41 05 PM\" src=\"https://user-images.githubusercontent.com/116063290/220041333-19ab27ce-55f7-4e60-8f09-71838341dd78.png\">\r\n\r\n\r\nBut please note that there is no Crash but only user error as Invalid Argument Error.Could you actually find crash apart from the Invalid Argument Error? \r\n", "Hi @SuryanarayanaY ,\r\n\r\nThe error I am experiencing is the NotFoundError:\r\n\r\n```\r\ntensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node Tan}} = Tan[T=DT_INT8]\r\nAll kernels registered for op Tan:\r\n device='XLA_CPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF]\r\n device='XLA_GPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF]\r\n device='CPU'; T in [DT_COMPLEX128]\r\n device='CPU'; T in [DT_COMPLEX64]\r\n device='CPU'; T in [DT_DOUBLE]\r\n device='CPU'; T in [DT_FLOAT]\r\n device='CPU'; T in [DT_BFLOAT16]\r\n device='CPU'; T in [DT_HALF]\r\n device='GPU'; T in [DT_COMPLEX128]\r\n device='GPU'; T in [DT_COMPLEX64]\r\n device='GPU'; T in [DT_DOUBLE]\r\n device='GPU'; T in [DT_FLOAT]\r\n device='GPU'; T in [DT_HALF]\r\n [Op:Tan]\r\n```\r\nI find no other error message apart from this one.", "@justacookiee , If the Tensor contains at least one float value then all other ints in the Tensor also considered as float only.\r\n\r\n@mazeltovlee , As per error message there is supported kernel for this Op with \"XLA_CPU_JIT\" and also \"XLA_GPU_JIT\". Hence I tried to check this API wrapped under `tf.function` with` jit_compile=True` then also the API is not accepting the Integers.Please refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/96d7dcbec9d432900e76bd5436807b0f/59611.ipynb).", "As per the source code:\r\n\r\n Supported operators for device: XLA_GPU_JIT\r\n\r\n\r\n\r\n> Tan | T={complex64,double,float,int32,int64}\r\n> -- | --\r\n\r\n\r\n\r\n\r\nSupported operators for device: XLA_CPU_JIT\r\n\r\n\r\n> \r\n> Tan | T={complex64,double,float,int32,int64}\r\n> -- | --\r\n\r\n\r\n\r\n\r\n", "Hi @mazeltovlee , Interger dtype was never intended to be supported for `Tan`, the fix has been made and submitted in the commit here https://github.com/tensorflow/tensorflow/commit/fc0095d3ee7dd21b6b61978a8dd2f526c7455605#diff-85cdc6a4e3fb58b63753cb91f5c637e489b4fa481a7e848afe0c02f026181536, showing the supported dtypes.\r\nDocument will be updated inline to the above commit once the Tensorflow 2.12 release is published. Thanks!", "Thanks for the fix and the explanation. I am closing 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/59611\">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/59611\">No</a>\n" ]
2023-02-08T12:54:22
2023-03-02T12:04:30
2023-03-02T11:06:33
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.11.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Following the documentation: https://www.tensorflow.org/api_docs/python/tf/math/tan, tf.math.tan should accept integer variables but it fails. ``` ### Standalone code to reproduce the issue ```shell tf.math.tan(tf.Variable(0, dtype="int8") # crash tf.math.tan(tf.Variable(0, dtype="int16") # crash tf.math.tan(tf.Variable(0, dtype="int32") # crash tf.math.tan(tf.Variable(0, dtype="int64") # crash ``` ### Relevant log output ```shell The error message is similar to below: raise core._status_to_exception(e) from None # pylint: disable=protected-access tensorflow.python.framework.errors_impl.NotFoundError: Could not find device for node: {{node Tan}} = Tan[T=DT_INT8] All kernels registered for op Tan: device='XLA_CPU_JIT'; T in [DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT16, DT_INT8, DT_COMPLEX64, DT_INT64, DT_BFLOAT16, DT_COMPLEX128, DT_HALF] device='CPU'; T in [DT_HALF] device='CPU'; T in [DT_BFLOAT16] device='CPU'; T in [DT_FLOAT] device='CPU'; T in [DT_DOUBLE] device='CPU'; T in [DT_COMPLEX64] device='CPU'; T in [DT_COMPLEX128] [Op:Tan] ``` ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59611/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59611/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59610
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59610/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59610/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59610/events
https://github.com/tensorflow/tensorflow/pull/59610
1,576,037,518
PR_kwDOArmXAs5JhWbp
59,610
[ROCm] fix gpu_conv_algorithm_picker on ROCm build
{ "login": "i-chaochen", "id": 913790, "node_id": "MDQ6VXNlcjkxMzc5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/913790?v=4", "gravatar_id": "", "url": "https://api.github.com/users/i-chaochen", "html_url": "https://github.com/i-chaochen", "followers_url": "https://api.github.com/users/i-chaochen/followers", "following_url": "https://api.github.com/users/i-chaochen/following{/other_user}", "gists_url": "https://api.github.com/users/i-chaochen/gists{/gist_id}", "starred_url": "https://api.github.com/users/i-chaochen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/i-chaochen/subscriptions", "organizations_url": "https://api.github.com/users/i-chaochen/orgs", "repos_url": "https://api.github.com/users/i-chaochen/repos", "events_url": "https://api.github.com/users/i-chaochen/events{/privacy}", "received_events_url": "https://api.github.com/users/i-chaochen/received_events", "type": "User", "site_admin": false }
[ { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "close it as https://github.com/tensorflow/tensorflow/commit/e9bd1094b7d3c047ff6abbe503e124f253ea29ce has fixed it\r\n\r\nThanks! @cheshire " ]
2023-02-08T12:32:54
2023-02-09T12:00:40
2023-02-09T12:00:36
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59610", "html_url": "https://github.com/tensorflow/tensorflow/pull/59610", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59610.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59610.patch", "merged_at": null }
This new added PR https://github.com/tensorflow/tensorflow/commit/9b616058967513340d882623c489b25398849373 has broken ROCm build and it is for CUDA only, as ROCm implementation has not used redzone. This PR fixes it. @cheshire Thanks in advance!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59610/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59610/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59609
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59609/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59609/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59609/events
https://github.com/tensorflow/tensorflow/pull/59609
1,575,883,544
PR_kwDOArmXAs5Jg1Eh
59,609
serializing/deserializing layers in TensorFlow.
{ "login": "AbhisekOmkar", "id": 67184718, "node_id": "MDQ6VXNlcjY3MTg0NzE4", "avatar_url": "https://avatars.githubusercontent.com/u/67184718?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AbhisekOmkar", "html_url": "https://github.com/AbhisekOmkar", "followers_url": "https://api.github.com/users/AbhisekOmkar/followers", "following_url": "https://api.github.com/users/AbhisekOmkar/following{/other_user}", "gists_url": "https://api.github.com/users/AbhisekOmkar/gists{/gist_id}", "starred_url": "https://api.github.com/users/AbhisekOmkar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AbhisekOmkar/subscriptions", "organizations_url": "https://api.github.com/users/AbhisekOmkar/orgs", "repos_url": "https://api.github.com/users/AbhisekOmkar/repos", "events_url": "https://api.github.com/users/AbhisekOmkar/events{/privacy}", "received_events_url": "https://api.github.com/users/AbhisekOmkar/received_events", "type": "User", "site_admin": false }
[ { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @AbhisekOmkar It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.\r\n@fchollet, @qlzh727" ]
2023-02-08T10:40:09
2023-02-08T14:58:33
2023-02-08T14:58:33
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59609", "html_url": "https://github.com/tensorflow/tensorflow/pull/59609", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59609.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59609.patch", "merged_at": null }
The code is a script for populating and serializing/deserializing layers in TensorFlow. Some improvements that can be made to the code include: Grouping related imports: Instead of having all the imports at the top of the script, they can be grouped and separated based on the module they belong to. This will make the script more organized and easier to maintain. Improving readability: Some parts of the script can be simplified and made more readable by using meaningful variable names, breaking down complex statements into multiple lines, and using descriptive comments. Making use of the custom_objects argument in deserialize: The custom_objects argument can be utilized to allow for custom layers to be deserialized in addition to the built-in layers. Here is an example of the improved code: import threading from tensorflow import tf2 from tensorflow.keras import backend as K from tensorflow.keras.engine import base_layer, input_layer from tensorflow.keras.layers import advanced_activations from tensorflow.keras.layers import convolutional, convolutional_recurrent, pooling from tensorflow.keras.layers import core, dense_attention, embeddings, merge from tensorflow.keras.layers import recurrent, recurrent_v2 from tensorflow.keras.layers import rnn_cell_wrapper_v2 from tensorflow.keras.models import Functional, Model, Sequential from tensorflow.keras.utils import generic_utils, tf_inspect from tensorflow.keras.utils.generic_utils import deserialize_keras_object from tensorflow.keras.utils.tf_export import keras_export # Constants to store the layer modules and built-in objects V1_MODULES = (base_layer, input_layer, advanced_activations, convolutional, convolutional_recurrent, core, dense_attention, embeddings, merge, pooling, recurrent) V2_MODULES = (rnn_cell_wrapper_v2, recurrent_v2) BUILT_IN_OBJECTS = { 'Input': input_layer.Input, 'InputSpec': input_layer.InputSpec, 'Functional': Functional, 'Model': Model, 'Sequential': Sequential } # Thread-local variable to store the populated deserializable objects LOCAL = threading.local() def populate_deserializable_objects(): """Populate the deserializable objects with the built-in layers and functions.""" global LOCAL if not hasattr(LOCAL, 'ALL_OBJECTS'): LOCAL.ALL_OBJECTS = {} LOCAL.GENERATED_WITH_V2 = None if LOCAL.ALL_OBJECTS and LOCAL.GENERATED_WITH_V2 == tf2.enabled(): # Deserializable objects already generated for the proper TF version return LOCAL.ALL_OBJECTS = BUILT_IN_OBJECTS.copy() LOCAL.GENERATED_WITH_V2 = tf2.enabled()
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59609/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59609/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59608
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59608/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59608/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59608/events
https://github.com/tensorflow/tensorflow/issues/59608
1,575,851,049
I_kwDOArmXAs5d7ZQp
59,608
change in reproducibility behavior of GlorotUniform between tf 2.6 and 2.11
{ "login": "saswatac", "id": 4872140, "node_id": "MDQ6VXNlcjQ4NzIxNDA=", "avatar_url": "https://avatars.githubusercontent.com/u/4872140?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saswatac", "html_url": "https://github.com/saswatac", "followers_url": "https://api.github.com/users/saswatac/followers", "following_url": "https://api.github.com/users/saswatac/following{/other_user}", "gists_url": "https://api.github.com/users/saswatac/gists{/gist_id}", "starred_url": "https://api.github.com/users/saswatac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/saswatac/subscriptions", "organizations_url": "https://api.github.com/users/saswatac/orgs", "repos_url": "https://api.github.com/users/saswatac/repos", "events_url": "https://api.github.com/users/saswatac/events{/privacy}", "received_events_url": "https://api.github.com/users/saswatac/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "it is related to intializers in general - https://github.com/tensorflow/tensorflow/issues/57763 . Resolving 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/59608\">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/59608\">No</a>\n" ]
2023-02-08T10:18:11
2023-02-10T05:37:32
2023-02-08T11:18:11
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.11 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04.5 LTS ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? With tf 2.6 , the following code always produces same result, but produces varying results in tf 2.11 ```python import tensorflow as tf tf.random.set_seed(42) initializer = tf.keras.initializers.GlorotUniform() initializer(shape=(2, 2)) ``` ### Standalone code to reproduce the issue ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59608/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59608/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59607
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59607/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59607/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59607/events
https://github.com/tensorflow/tensorflow/pull/59607
1,575,836,105
PR_kwDOArmXAs5Jgq5K
59,607
[tosa] Legalize tfl.rfft2d to tosa.rfft2d
{ "login": "lhutton1", "id": 35535092, "node_id": "MDQ6VXNlcjM1NTM1MDky", "avatar_url": "https://avatars.githubusercontent.com/u/35535092?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhutton1", "html_url": "https://github.com/lhutton1", "followers_url": "https://api.github.com/users/lhutton1/followers", "following_url": "https://api.github.com/users/lhutton1/following{/other_user}", "gists_url": "https://api.github.com/users/lhutton1/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhutton1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhutton1/subscriptions", "organizations_url": "https://api.github.com/users/lhutton1/orgs", "repos_url": "https://api.github.com/users/lhutton1/repos", "events_url": "https://api.github.com/users/lhutton1/events{/privacy}", "received_events_url": "https://api.github.com/users/lhutton1/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": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "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
[ "Since #59606 was merged, this is ready for review :)", "cc @rsuderman @jpienaar", "(I don't know why AMD build failed here)", "friendly ping if you have some free time :) - the AMD build failure doesn't look related" ]
2023-02-08T10:08:28
2023-04-12T11:45:58
2023-04-12T10:48:19
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59607", "html_url": "https://github.com/tensorflow/tensorflow/pull/59607", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59607.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59607.patch", "merged_at": "2023-04-12T10:48:19" }
In the case the provided fft_length > the input height or width, a tfl.pad operation is automatically inserted. When fft_length < the input height or width, a slice is manually inserted to crop the input. ~Note: this PR relies on commits from #59606 and therefore also contains the contents of #59606.~ Signed-off-by: Luke Hutton <[email protected]>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59607/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59607/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59606
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59606/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59606/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59606/events
https://github.com/tensorflow/tensorflow/pull/59606
1,575,828,404
PR_kwDOArmXAs5JgpNU
59,606
[tosa] Legalize tfl.real and tfl.imag
{ "login": "lhutton1", "id": 35535092, "node_id": "MDQ6VXNlcjM1NTM1MDky", "avatar_url": "https://avatars.githubusercontent.com/u/35535092?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lhutton1", "html_url": "https://github.com/lhutton1", "followers_url": "https://api.github.com/users/lhutton1/followers", "following_url": "https://api.github.com/users/lhutton1/following{/other_user}", "gists_url": "https://api.github.com/users/lhutton1/gists{/gist_id}", "starred_url": "https://api.github.com/users/lhutton1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lhutton1/subscriptions", "organizations_url": "https://api.github.com/users/lhutton1/orgs", "repos_url": "https://api.github.com/users/lhutton1/repos", "events_url": "https://api.github.com/users/lhutton1/events{/privacy}", "received_events_url": "https://api.github.com/users/lhutton1/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": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "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
[ "@NatashaKnk for visibility given you are looking close to here.", "Hi, it looks like something failed CI, but because its an internal check I wasn't able to take a look: `Google internal checks FAILED for runs with create time 2023-02-20T18:50`, is there a way I can view more information about the error?", "I see a failure on tensorflow/compiler/mlir/tosa/tests:tfl-to-tosa-pipeline.mlir.test , could you check locally?", "Hmm they seem to be passing for me locally, even with the branch rebased on `e6177f7d`", "I'll check later but the error was around a non-integer/float type being queried from wrong attribute. Could you check with assertions enabled? (I think for this tool you could still build the debug version).", "Thanks @jpienaar, building in debug revealed the issue.. hoping its fixed now!" ]
2023-02-08T10:03:37
2023-03-01T15:01:40
2023-03-01T15:00:31
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59606", "html_url": "https://github.com/tensorflow/tensorflow/pull/59606", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59606.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59606.patch", "merged_at": "2023-03-01T15:00:31" }
TOSA has no notion of complex datatypes, it represents a single complex input tensor using two floating point input tensors corresponding to the "real" and "imag" parts of the complex input. To maintain the correct mapping of these tensors during the legalization from TFL to TOSA, a complex tensor of shape [x, ..., y] is converted to a single floating point tensor of shape [x, ..., y, 2] where each resulting pair of values can be used to represent a complex value. This ensures a 1:1 mapping between TFL and TOSA input/output tensors. This commit intends to demonstrate the legalization of operations with a complex input by legalizing tfl.real and tfl.imag ops. In doing so, the infrastructure for legalizing and removing complex types from the resulting TOSA graph is provided. During the legalization "unrealized_conversion_cast" operations are interted to account for the difference in representation of complex tensors in TFL and TOSA. These casts are later fully removed by the "strip-complex-types" pass. Later commits will show legalization of operations with a complex output. Legalization of tfl.real and tfl.imag is completed by slicing the relevant dimension of the complex input tensor, given shape [x, ..., y, 2], and then reshaping the result. Signed-off-by: Luke Hutton <[email protected]>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59606/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59606/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59605
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59605/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59605/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59605/events
https://github.com/tensorflow/tensorflow/issues/59605
1,575,679,634
I_kwDOArmXAs5d6vaS
59,605
Install tensorboard as an extra
{ "login": "ralbertazzi", "id": 8771599, "node_id": "MDQ6VXNlcjg3NzE1OTk=", "avatar_url": "https://avatars.githubusercontent.com/u/8771599?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ralbertazzi", "html_url": "https://github.com/ralbertazzi", "followers_url": "https://api.github.com/users/ralbertazzi/followers", "following_url": "https://api.github.com/users/ralbertazzi/following{/other_user}", "gists_url": "https://api.github.com/users/ralbertazzi/gists{/gist_id}", "starred_url": "https://api.github.com/users/ralbertazzi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ralbertazzi/subscriptions", "organizations_url": "https://api.github.com/users/ralbertazzi/orgs", "repos_url": "https://api.github.com/users/ralbertazzi/repos", "events_url": "https://api.github.com/users/ralbertazzi/events{/privacy}", "received_events_url": "https://api.github.com/users/ralbertazzi/received_events", "type": "User", "site_admin": false }
[ { "id": 284285184, "node_id": "MDU6TGFiZWwyODQyODUxODQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:tensorboard", "name": "comp:tensorboard", "color": "0052cc", "default": false, "description": "Tensorboard related issues" }, { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 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": "MichaelHudgins", "id": 30155094, "node_id": "MDQ6VXNlcjMwMTU1MDk0", "avatar_url": "https://avatars.githubusercontent.com/u/30155094?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MichaelHudgins", "html_url": "https://github.com/MichaelHudgins", "followers_url": "https://api.github.com/users/MichaelHudgins/followers", "following_url": "https://api.github.com/users/MichaelHudgins/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelHudgins/gists{/gist_id}", "starred_url": "https://api.github.com/users/MichaelHudgins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelHudgins/subscriptions", "organizations_url": "https://api.github.com/users/MichaelHudgins/orgs", "repos_url": "https://api.github.com/users/MichaelHudgins/repos", "events_url": "https://api.github.com/users/MichaelHudgins/events{/privacy}", "received_events_url": "https://api.github.com/users/MichaelHudgins/received_events", "type": "User", "site_admin": false }
[ { "login": "MichaelHudgins", "id": 30155094, "node_id": "MDQ6VXNlcjMwMTU1MDk0", "avatar_url": "https://avatars.githubusercontent.com/u/30155094?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MichaelHudgins", "html_url": "https://github.com/MichaelHudgins", "followers_url": "https://api.github.com/users/MichaelHudgins/followers", "following_url": "https://api.github.com/users/MichaelHudgins/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelHudgins/gists{/gist_id}", "starred_url": "https://api.github.com/users/MichaelHudgins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelHudgins/subscriptions", "organizations_url": "https://api.github.com/users/MichaelHudgins/orgs", "repos_url": "https://api.github.com/users/MichaelHudgins/repos", "events_url": "https://api.github.com/users/MichaelHudgins/events{/privacy}", "received_events_url": "https://api.github.com/users/MichaelHudgins/received_events", "type": "User", "site_admin": false }, { "login": "learning-to-play", "id": 66660475, "node_id": "MDQ6VXNlcjY2NjYwNDc1", "avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4", "gravatar_id": "", "url": "https://api.github.com/users/learning-to-play", "html_url": "https://github.com/learning-to-play", "followers_url": "https://api.github.com/users/learning-to-play/followers", "following_url": "https://api.github.com/users/learning-to-play/following{/other_user}", "gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}", "starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions", "organizations_url": "https://api.github.com/users/learning-to-play/orgs", "repos_url": "https://api.github.com/users/learning-to-play/repos", "events_url": "https://api.github.com/users/learning-to-play/events{/privacy}", "received_events_url": "https://api.github.com/users/learning-to-play/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Thanks for the feature request. AFAIK, we don't have anything planned for the minimal tensorflow version to reduce the dependency packages.\r\n@learning-to-play , Could you please take a look into this request.\r\n" ]
2023-02-08T08:17:31
2023-03-20T02:36:57
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.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 The `tensorflow` package currently relies on a great deal of sub-dependencies. Among them the biggest one is definitely the tensorboard, as you can see from this tree obtained through `poetry`. I wonder if the `tensorboard` (and possibly other dependencies) are really needed for a minimal installation of tensorflow. E.g. do I really need the tensorboard for running inference on a model? The more dependencies we have - The more bloated our virtual environments become - The slower our CI jobs are - The bigger are our Docker images that run TensorFlow - The slower is the dependency resolution of Python packages with tools such as poetry, pipenv, pdm, .. In comparison, `torch` just depends on `typing-extensions`. It would be great to have a minimal installation of `tensorflow` by default and rely on pip extras to install any satellite functionalities (such as `pip install tensorflow[tensorboard]`). tensorflow >=2.3.0 ├── absl-py >=0.4.0 ├── astunparse >=1.6.0 │ ├── six >=1.6.1,<2.0 │ └── wheel >=0.23.0,<1.0 ├── flatbuffers >=1.12 ├── gast >=0.2.1 ├── google-pasta >=0.1.1 │ └── six * (circular dependency aborted here) ├── grpcio >=1.24.3,<2.0 ├── h5py >=2.9.0 │ └── numpy >=1.14.5 ├── keras >=2.8.0rc0,<2.9 ├── keras-preprocessing >=1.1.1 │ ├── numpy >=1.9.1 (circular dependency aborted here) │ └── six >=1.9.0 (circular dependency aborted here) ├── libclang >=9.0.1 ├── numpy >=1.20 (circular dependency aborted here) ├── opt-einsum >=2.3.2 │ └── numpy >=1.7 (circular dependency aborted here) ├── protobuf >=3.9.2 ├── setuptools * ├── six >=1.12.0 (circular dependency aborted here) ├── tensorboard >=2.8,<2.9 │ ├── absl-py >=0.4 (circular dependency aborted here) │ ├── google-auth >=1.6.3,<3 │ │ ├── cachetools >=2.0.0,<6.0 │ │ ├── pyasn1-modules >=0.2.1 │ │ │ └── pyasn1 >=0.4.6,<0.5.0 │ │ ├── rsa >=3.1.4,<5 │ │ │ └── pyasn1 >=0.1.3 (circular dependency aborted here) │ │ └── six >=1.9.0 (circular dependency aborted here) │ ├── google-auth-oauthlib >=0.4.1,<0.5 │ │ ├── google-auth >=1.0.0 (circular dependency aborted here) │ │ └── requests-oauthlib >=0.7.0 │ │ ├── oauthlib >=3.0.0 │ │ └── requests >=2.0.0 │ │ ├── certifi >=2017.4.17 │ │ ├── charset-normalizer >=2,<4 │ │ ├── idna >=2.5,<4 │ │ └── urllib3 >=1.21.1,<1.27 │ ├── grpcio >=1.24.3 (circular dependency aborted here) │ ├── markdown >=2.6.8 │ │ └── importlib-metadata >=4.4 │ │ └── zipp >=0.5 │ ├── numpy >=1.12.0 (circular dependency aborted here) │ ├── protobuf >=3.6.0 (circular dependency aborted here) │ ├── requests >=2.21.0,<3 (circular dependency aborted here) │ ├── setuptools >=41.0.0 (circular dependency aborted here) │ ├── tensorboard-data-server >=0.6.0,<0.7.0 │ ├── tensorboard-plugin-wit >=1.6.0 │ ├── werkzeug >=0.11.15 │ └── wheel >=0.26 (circular dependency aborted here) ├── tensorflow-estimator >=2.8,<2.9 ├── tensorflow-io-gcs-filesystem >=0.23.1 ├── termcolor >=1.1.0 ├── typing-extensions >=3.6.6 └── wrapt >=1.11.0 ``` ``` ### Standalone code to reproduce the issue ```shell pip install tensorflow ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59605/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59605/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59604
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59604/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59604/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59604/events
https://github.com/tensorflow/tensorflow/issues/59604
1,575,571,959
I_kwDOArmXAs5d6VH3
59,604
Segmentation Fault when inference in Google Coral Dev Board mini
{ "login": "shungyan", "id": 84812149, "node_id": "MDQ6VXNlcjg0ODEyMTQ5", "avatar_url": "https://avatars.githubusercontent.com/u/84812149?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shungyan", "html_url": "https://github.com/shungyan", "followers_url": "https://api.github.com/users/shungyan/followers", "following_url": "https://api.github.com/users/shungyan/following{/other_user}", "gists_url": "https://api.github.com/users/shungyan/gists{/gist_id}", "starred_url": "https://api.github.com/users/shungyan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shungyan/subscriptions", "organizations_url": "https://api.github.com/users/shungyan/orgs", "repos_url": "https://api.github.com/users/shungyan/repos", "events_url": "https://api.github.com/users/shungyan/events{/privacy}", "received_events_url": "https://api.github.com/users/shungyan/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 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
[ "#0 0x0000007ff7d01710 in strlen () from /lib/aarch64-linux-gnu/libc.so.6\r\nhttps://github.com/google-coral/edgetpu/issues/1 0x0000007ff5ac1264 in tflite::InterpreterBuilder::ParseSignatureDefs(flatbuffers::Vector<flatbuffers::Offsettflite::SignatureDef > const*, tflite::Interpreter*) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/pull/2 0x0000007ff5ac19d4 in tflite::InterpreterBuilder::operator()(std::unique_ptr<tflite::Interpreter, std::default_deletetflite::Interpreter >, int) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/issues/3 0x0000007ff58f3440 in tflite::interpreter_wrapper::InterpreterWrapper::CreateInterpreterWrapper(std::unique_ptr<tflite::FlatBufferModel, std::default_deletetflite::FlatBufferModel >, std::unique_ptr<tflite::interpreter_wrapper::PythonErrorReporter, std::default_deletetflite::interpreter_wrapper::PythonErrorReporter >, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long)>, std::allocator<std::function<void (unsigned long)> > > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/issues/4 0x0000007ff58f39c0 in tflite::interpreter_wrapper::InterpreterWrapper::CreateWrapperCPPFromFile(char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long)>, std::allocator<std::function<void (unsigned long)> > > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/issues/5 0x0000007ff58f08d0 in pybind11::cpp_function::initialize<pybind11_init__pywrap_tensorflow_interpreter_wrapper(pybind11::module&)::{lambda(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long--Type for more, q to quit, c to continue without paging--\r\n)>, std::allocator<std::function<void (unsigned long)> > > const&)https://github.com/google-coral/edgetpu/pull/2}, tflite::interpreter_wrapper::InterpreterWrapper, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::_cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long)>, std::allocator<std::function<void (unsigned long)> > > const&, pybind11::name, pybind11::scope, pybind11::sibling>(pybind11_init__pywrap_tensorflow_interpreter_wrapper(pybind11::module&)::{lambda(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long)>, std::allocator<std::function<void (unsigned long)> > > const&)https://github.com/google-coral/edgetpu/pull/2}&&, tflite::interpreter_wrapper::InterpreterWrapper* ()(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::vector<std::function<void (unsigned long)>, std::allocator<std::function<void (unsigned long)> > > const&), pybind11::name const&, pybind11::scope const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)https://github.com/google-coral/edgetpu/issues/3}::_FUN(pybind11::detail::function_call) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/issues/6 0x0000007ff58e78ec in pybind11::cpp_function::dispatcher(_object, _object*, _object*) ()\r\nfrom /usr/lib/python3/dist-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.cpython-37m-aarch64-linux-gnu.so\r\nhttps://github.com/google-coral/edgetpu/pull/7 0x000000000043cf90 in _PyMethodDef_RawFastCallKeywords ()\r\nhttps://github.com/google-coral/edgetpu/issues/8 0x000000000043d030 in _PyCFunction_FastCallKeywords ()\r\nhttps://github.com/google-coral/edgetpu/issues/9 0x000000000042b0e4 in _PyEval_EvalFrameDefault ()\r\nhttps://github.com/google-coral/edgetpu/issues/10 0x00000000004df2bc in _PyEval_EvalCodeWithName ()\r\nhttps://github.com/google-coral/edgetpu/issues/11 0x000000000043c9bc in _PyFunction_FastCallDict ()\r\nhttps://github.com/google-coral/edgetpu/issues/12 0x000000000043e104 in _PyObject_Call_Prepend ()\r\nhttps://github.com/google-coral/edgetpu/issues/13 0x000000000048e078 in ?? ()\r\nhttps://github.com/google-coral/edgetpu/issues/14 0x0000000000487858 in ?? ()\r\nhttps://github.com/google-coral/edgetpu/issues/15 0x000000000043d240 in _PyObject_FastCallKeywords ()\r\n--Type for more, q to quit, c to continue without paging--\r\nhttps://github.com/google-coral/edgetpu/issues/16 0x0000000000425490 in _PyEval_EvalFrameDefault ()\r\nhttps://github.com/google-coral/edgetpu/issues/17 0x00000000004df2bc in _PyEval_EvalCodeWithName ()\r\nhttps://github.com/google-coral/edgetpu/issues/18 0x000000000043cb24 in _PyFunction_FastCallKeywords ()\r\nhttps://github.com/google-coral/edgetpu/issues/19 0x0000000000429e78 in _PyEval_EvalFrameDefault ()\r\nhttps://github.com/google-coral/edgetpu/issues/20 0x0000000000422914 in ?? ()\r\nhttps://github.com/google-coral/edgetpu/issues/21 0x0000000000429bac in _PyEval_EvalFrameDefault ()\r\nhttps://github.com/google-coral/edgetpu/issues/22 0x00000000004df2bc in _PyEval_EvalCodeWithName ()\r\nhttps://github.com/google-coral/edgetpu/issues/23 0x00000000004df600 in PyEval_EvalCode ()\r\nhttps://github.com/google-coral/edgetpu/issues/24 0x0000000000512430 in PyRun_FileExFlags ()\r\nhttps://github.com/google-coral/edgetpu/issues/25 0x000000000051260c in PyRun_SimpleFileExFlags ()\r\nhttps://github.com/google-coral/edgetpu/issues/26 0x0000000000431be8 in ?? ()\r\nhttps://github.com/google-coral/edgetpu/issues/27 0x0000000000431e18 in _Py_UnixMain ()\r\nhttps://github.com/google-coral/edgetpu/issues/28 0x0000007ff7ca6d24 in __libc_start_main () from /lib/aarch64-linux-gnu/libc.so.6\r\nhttps://github.com/google-coral/edgetpu/issues/29 0x000000000042c3b0 in _start ()\r\n\r\nHi, I got this error message by using gdb, it seems like something wrong with the interpreter but not sure what is the exact problem", "Hi, @pjpratik \r\n\r\nCould you please look into this issue. Thank you!", "Hi, I have resolved this issue by changing the package I'm using when inferencing. 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/59604\">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/59604\">No</a>\n", "> Hi, I have resolved this issue by changing the package I'm using when inferencing. Thanks.\r\n\r\nCan you tell me what package?\r\n" ]
2023-02-08T06:41:45
2024-02-17T08:18:13
2023-02-13T01:15:03
NONE
null
null
null
### 1. System information - Mendel Linux - Pycoral package (built in for coral dev board mini) ### 2. Code Model Training Link: https://colab.research.google.com/drive/1rk9Pe115dg5Njwh_5g-sh3m7ShVXiNyN TF Lite Conversion Link: https://colab.research.google.com/drive/18HPUPVdvBIyPh9z2rd338phJRCQSf7QC#scrollTo=uSYKpoUI0QRU TF Lite Conversion Code Snippet: # Load the HDF5 model model = tf.keras.models.load_model("lung_segmentation_80epochs_avg_pooling_700kparam_aug.hdf5",custom_objects={'dice_coef_loss': dice_coef_loss, 'dice_coef':dice_coef}) converter = tf.lite.TFLiteConverter.from_keras_model(model) converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.representative_dataset = representative_data_gen # Ensure that if any ops can't be quantized, the converter throws an error converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8] # Set the input and output tensors to uint8 (APIs added in r2.3) converter.inference_input_type = tf.uint8 converter.inference_output_type = tf.uint8 tflite_model_quant = converter.convert() # Save the quantized model to disk with open("new_model_quant.tflite", "wb") as f: f.write(tflite_model_quant) ### 3. Failure after conversion -When model was used to inference in Google Coral Dev Board mini, Segmentation Fault occur python3 semantic_segmentation.py\ --model lung_segmentation_quant.tflite \ --input test.png \ --keep_aspect_ratio \ --output ${HOME}/segmentation_result.jpg
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59604/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59604/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59603
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59603/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59603/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59603/events
https://github.com/tensorflow/tensorflow/pull/59603
1,575,514,731
PR_kwDOArmXAs5JfmVD
59,603
Simple logic changes in tpu
{ "login": "joesho112358", "id": 8650931, "node_id": "MDQ6VXNlcjg2NTA5MzE=", "avatar_url": "https://avatars.githubusercontent.com/u/8650931?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joesho112358", "html_url": "https://github.com/joesho112358", "followers_url": "https://api.github.com/users/joesho112358/followers", "following_url": "https://api.github.com/users/joesho112358/following{/other_user}", "gists_url": "https://api.github.com/users/joesho112358/gists{/gist_id}", "starred_url": "https://api.github.com/users/joesho112358/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joesho112358/subscriptions", "organizations_url": "https://api.github.com/users/joesho112358/orgs", "repos_url": "https://api.github.com/users/joesho112358/repos", "events_url": "https://api.github.com/users/joesho112358/events{/privacy}", "received_events_url": "https://api.github.com/users/joesho112358/received_events", "type": "User", "site_admin": false }
[ { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @joesho112358 Can you please resolve conflicts? Thank you!", "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.", "This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further." ]
2023-02-08T05:35:11
2023-04-19T01:56:05
2023-04-19T01:55:58
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59603", "html_url": "https://github.com/tensorflow/tensorflow/pull/59603", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59603.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59603.patch", "merged_at": null }
Noticed a couple things when reading through that I think will help with readability at least.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59603/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59603/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59602
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59602/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59602/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59602/events
https://github.com/tensorflow/tensorflow/pull/59602
1,575,314,625
PR_kwDOArmXAs5Je8IT
59,602
Add new single-kernel implementation of sparse to ragged index conversion
{ "login": "vysarge", "id": 10239441, "node_id": "MDQ6VXNlcjEwMjM5NDQx", "avatar_url": "https://avatars.githubusercontent.com/u/10239441?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vysarge", "html_url": "https://github.com/vysarge", "followers_url": "https://api.github.com/users/vysarge/followers", "following_url": "https://api.github.com/users/vysarge/following{/other_user}", "gists_url": "https://api.github.com/users/vysarge/gists{/gist_id}", "starred_url": "https://api.github.com/users/vysarge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vysarge/subscriptions", "organizations_url": "https://api.github.com/users/vysarge/orgs", "repos_url": "https://api.github.com/users/vysarge/repos", "events_url": "https://api.github.com/users/vysarge/events{/privacy}", "received_events_url": "https://api.github.com/users/vysarge/received_events", "type": "User", "site_admin": false }
[ { "id": 1169365682, "node_id": "MDU6TGFiZWwxMTY5MzY1Njgy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L", "name": "size:L", "color": "adafea", "default": false, "description": "CL Change Size: Large" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @vysarge Can you please resolve conflicts? Thank you!", "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.", "Conflicts have been resolved.", "Hi @JXRiver Can you please review this PR ? Thank you!", "Hi @JXRiver Can you please review this PR ? Thank you!", "Hi @JXRiver Can you please review this PR ? Thank you!", "@JXRiver you self assigned here. Can you PTAL or reassign to someone with better context. ", "Closed the prerequisite of this PR github.com/tensorflow/tensorflow/pull/59508. Going to close this one as well." ]
2023-02-08T01:38:50
2023-11-01T18:21:13
2023-11-01T18:21:10
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59602", "html_url": "https://github.com/tensorflow/tensorflow/pull/59602", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59602.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59602.patch", "merged_at": null }
Adds a new op, SparseIndicesToRaggedRowSplits, and modifies `RaggedTensor.from_sparse` to use this op in place of the previous implementation. On a single A100-40GB GPU, my tests showed a speedup of 5x up to 150x depending on the input SparseTensor. The op is also implemented for CPU. This op accepts SparseTensor indices as input and returns a tensor of row_splits which can be used to create a RaggedTensor. If argument `validate_ragged_right` is set to true, the op will additionally check that the input indices represent a ragged-right SparseTensor. Because this change modifies `RaggedTensor.from_sparse` to create the new RaggedTensor with the `from_row_splits` constructor instead of `from_value_rowids` as before, PR #59508 or another such change will be necessary to avoid regression for existing code that repeatedly calls `row_lengths()` or `value_rowids()` on a RaggedTensor created with `from_sparse`.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59602/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59602/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59601
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59601/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59601/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59601/events
https://github.com/tensorflow/tensorflow/issues/59601
1,575,125,488
I_kwDOArmXAs5d4oHw
59,601
Tensorflow ROCm - Faceswap - Anaconda Enviroment
{ "login": "linuxreitt", "id": 124739751, "node_id": "U_kgDOB29gpw", "avatar_url": "https://avatars.githubusercontent.com/u/124739751?v=4", "gravatar_id": "", "url": "https://api.github.com/users/linuxreitt", "html_url": "https://github.com/linuxreitt", "followers_url": "https://api.github.com/users/linuxreitt/followers", "following_url": "https://api.github.com/users/linuxreitt/following{/other_user}", "gists_url": "https://api.github.com/users/linuxreitt/gists{/gist_id}", "starred_url": "https://api.github.com/users/linuxreitt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linuxreitt/subscriptions", "organizations_url": "https://api.github.com/users/linuxreitt/orgs", "repos_url": "https://api.github.com/users/linuxreitt/repos", "events_url": "https://api.github.com/users/linuxreitt/events{/privacy}", "received_events_url": "https://api.github.com/users/linuxreitt/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": 1903591931, "node_id": "MDU6TGFiZWwxOTAzNTkxOTMx", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.2", "name": "TF 2.2", "color": "0052cc", "default": false, "description": "Issues related to TF 2.2" } ]
closed
false
{ "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false }
[ { "login": "sushreebarsa", "id": 84765720, "node_id": "MDQ6VXNlcjg0NzY1NzIw", "avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sushreebarsa", "html_url": "https://github.com/sushreebarsa", "followers_url": "https://api.github.com/users/sushreebarsa/followers", "following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}", "gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}", "starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions", "organizations_url": "https://api.github.com/users/sushreebarsa/orgs", "repos_url": "https://api.github.com/users/sushreebarsa/repos", "events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}", "received_events_url": "https://api.github.com/users/sushreebarsa/received_events", "type": "User", "site_admin": false } ]
null
[ "@linuxreitt Could you please make sure to check the tested build configuration as mentioned [here](https://www.tensorflow.org/install/source#tested_build_configurations) and use the latest TF version.\r\nThank you! ", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59601\">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/59601\">No</a>\n" ]
2023-02-07T22:33:18
2023-02-24T06:07:05
2023-02-24T06:07: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 tensorflow-rocm 2.10.1.540 / tensorflow 2.2.3 ### Custom Code Yes ### OS Platform and Distribution Linux PikaOS 22.10 ### Mobile device _No response_ ### Python version 3.8.16 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory AMD RX6800XT ### Current Behaviour? ```shell Installed faceswap in anaconda enviroment and then ran the gui as below. $ python faceswap.py gui Setting Faceswap backend to ROCM 02/07/2023 22:26:06 INFO Log level set to: INFO 02/07/2023 22:26:06 ERROR There was an error importing Tensorflow. This is most likely because you do not have TensorFlow installed, or you are trying to run tensorflow-gpu on a system without an Nvidia graphics card. Original import error: Traceback (most recent call last): 02/07/2023 22:26:06 ERROR File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> 02/07/2023 22:26:06 ERROR from tensorflow.python._pywrap_tensorflow_internal import * 02/07/2023 22:26:06 ERROR ImportError: librccl.so.1: cannot open shared object file: No such file or directory 02/07/2023 22:26:06 ERROR 02/07/2023 22:26:06 ERROR 02/07/2023 22:26:06 ERROR Failed to load the native TensorFlow runtime. 02/07/2023 22:26:06 ERROR See https://www.tensorflow.org/install/errors for some common causes and solutions. 02/07/2023 22:26:06 ERROR If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message. ``` ### Standalone code to reproduce the issue ```shell python faceswap.py gui ``` ### Relevant log output ```shell cat <<EOF > /tmp/check_os.py import platform print("""os: %s os kernel version: %s os release version: %s os platform: %s linux distribution: %s echo "cat ${OUTPUT_FILE}"ate the fields in the github issue template." of that file."e" >> ${OUTPUT_FILE}E} Collecting system information... Traceback (most recent call last): File "/tmp/check_os.py", line 17, in <module> platform.linux_distribution(), AttributeError: module 'platform' has no attribute 'linux_distribution' 2023-02-07 22:30:47.806461: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX_VNNI FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Traceback (most recent call last): File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: librccl.so.1: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/check_tf.py", line 1, in <module> import tensorflow as tf; File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/__init__.py", line 37, in <module> from tensorflow.python.tools import module_util as _module_util File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/python/__init__.py", line 36, in <module> from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 77, in <module> raise ImportError( ImportError: Traceback (most recent call last): File "/home/michael/anaconda3/envs/Faceswap-ROCm/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module> from tensorflow.python._pywrap_tensorflow_internal import * ImportError: librccl.so.1: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common causes and solutions. If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message. Command 'bazel' not found, but can be installed with: sudo apt install bazel-bootstrap Wrote environment to tf_env.txt. You can review the contents of that file. and use it to populate the fields in the github issue template. cat tf_env.txt ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59601/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59601/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59600
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59600/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59600/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59600/events
https://github.com/tensorflow/tensorflow/issues/59600
1,575,060,499
I_kwDOArmXAs5d4YQT
59,600
Location of the TFLite API source code
{ "login": "APatel2001", "id": 26450832, "node_id": "MDQ6VXNlcjI2NDUwODMy", "avatar_url": "https://avatars.githubusercontent.com/u/26450832?v=4", "gravatar_id": "", "url": "https://api.github.com/users/APatel2001", "html_url": "https://github.com/APatel2001", "followers_url": "https://api.github.com/users/APatel2001/followers", "following_url": "https://api.github.com/users/APatel2001/following{/other_user}", "gists_url": "https://api.github.com/users/APatel2001/gists{/gist_id}", "starred_url": "https://api.github.com/users/APatel2001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/APatel2001/subscriptions", "organizations_url": "https://api.github.com/users/APatel2001/orgs", "repos_url": "https://api.github.com/users/APatel2001/repos", "events_url": "https://api.github.com/users/APatel2001/events{/privacy}", "received_events_url": "https://api.github.com/users/APatel2001/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": 1093464312, "node_id": "MDU6TGFiZWwxMDkzNDY0MzEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:others", "name": "type:others", "color": "159b2e", "default": false, "description": "issues not falling in bug, perfromance, support, build and install or feature" }, { "id": 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, You can find the source code for all the implementation of MLIR on TFLite here https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir/lite/ir.\r\nThe source code is mainly implemented in `C/C++` and `.td `", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further. 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/59600\">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/59600\">No</a>\n" ]
2023-02-07T21:40:43
2023-03-09T22:44:33
2023-03-09T22:44:23
NONE
null
null
null
I had a question. I am currently working on a project with the Google Coral TPU. Essentially, we found that the coral TPU doesn't support every operation supported by tflite and we wanted to make the coral support more operations. I see that all the functions supported by tflite are documented here: https://www.tensorflow.org/mlir/tfl_ops. However, I cannot find the source code for these functions inside the tensorflow repository. Does tensorflow lite just take the standard tensorflow functions and add a wrapper around them? If anyone here has any experience working with the tensorflow source in any way, I would appreciate the help!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59600/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59600/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59599
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59599/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59599/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59599/events
https://github.com/tensorflow/tensorflow/pull/59599
1,574,985,743
PR_kwDOArmXAs5Jd1sF
59,599
[oneDNN]: Adding a build flag to conditionally compile with oneDNN v3.x
{ "login": "bhavani-subramanian", "id": 28113241, "node_id": "MDQ6VXNlcjI4MTEzMjQx", "avatar_url": "https://avatars.githubusercontent.com/u/28113241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bhavani-subramanian", "html_url": "https://github.com/bhavani-subramanian", "followers_url": "https://api.github.com/users/bhavani-subramanian/followers", "following_url": "https://api.github.com/users/bhavani-subramanian/following{/other_user}", "gists_url": "https://api.github.com/users/bhavani-subramanian/gists{/gist_id}", "starred_url": "https://api.github.com/users/bhavani-subramanian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bhavani-subramanian/subscriptions", "organizations_url": "https://api.github.com/users/bhavani-subramanian/orgs", "repos_url": "https://api.github.com/users/bhavani-subramanian/repos", "events_url": "https://api.github.com/users/bhavani-subramanian/events{/privacy}", "received_events_url": "https://api.github.com/users/bhavani-subramanian/received_events", "type": "User", "site_admin": false }
[ { "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": 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": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }
[ { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@penpornk I have addressed your review comments. Can you please take a look?", "Hi @penpornk Can you please review this PR ? Thank you!", "@penpornk Gentle reminder for PR review. Please let me know if you have any questions. Thanks.", "@penpornk Thanks for the PR review. I have addressed all your review comments. Can you please take a look?", "Closing the PR since it has been merged in https://github.com/tensorflow/tensorflow/commit/2802c538daff0ad369c8c8243f1f0f9b605f51d1." ]
2023-02-07T20:34:29
2023-04-10T20:19:37
2023-04-10T16:59:40
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59599", "html_url": "https://github.com/tensorflow/tensorflow/pull/59599", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59599.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59599.patch", "merged_at": null }
This PR adds a build flag to conditionally compile with oneDNN v3.x. It also adds support for oneDNN v3.x in `mkl_util.h`. To build with oneDNN v3.x, pass `--config=mkl --define=build_with_onednn_v3=true --define=build_with_onednn_v2=false`.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59599/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59599/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59598
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59598/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59598/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59598/events
https://github.com/tensorflow/tensorflow/pull/59598
1,574,825,658
PR_kwDOArmXAs5JdT18
59,598
[NVIDIA TF] Add CollectiveAllToAllV2 op
{ "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" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }
[ { "login": "rohan100jain", "id": 144114, "node_id": "MDQ6VXNlcjE0NDExNA==", "avatar_url": "https://avatars.githubusercontent.com/u/144114?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rohan100jain", "html_url": "https://github.com/rohan100jain", "followers_url": "https://api.github.com/users/rohan100jain/followers", "following_url": "https://api.github.com/users/rohan100jain/following{/other_user}", "gists_url": "https://api.github.com/users/rohan100jain/gists{/gist_id}", "starred_url": "https://api.github.com/users/rohan100jain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rohan100jain/subscriptions", "organizations_url": "https://api.github.com/users/rohan100jain/orgs", "repos_url": "https://api.github.com/users/rohan100jain/repos", "events_url": "https://api.github.com/users/rohan100jain/events{/privacy}", "received_events_url": "https://api.github.com/users/rohan100jain/received_events", "type": "User", "site_admin": false }, { "login": "bfontain", "id": 6878204, "node_id": "MDQ6VXNlcjY4NzgyMDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6878204?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bfontain", "html_url": "https://github.com/bfontain", "followers_url": "https://api.github.com/users/bfontain/followers", "following_url": "https://api.github.com/users/bfontain/following{/other_user}", "gists_url": "https://api.github.com/users/bfontain/gists{/gist_id}", "starred_url": "https://api.github.com/users/bfontain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bfontain/subscriptions", "organizations_url": "https://api.github.com/users/bfontain/orgs", "repos_url": "https://api.github.com/users/bfontain/repos", "events_url": "https://api.github.com/users/bfontain/events{/privacy}", "received_events_url": "https://api.github.com/users/bfontain/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-07T18:21:41
2023-02-14T18:28:07
2023-02-14T18:28:06
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59598", "html_url": "https://github.com/tensorflow/tensorflow/pull/59598", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59598.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59598.patch", "merged_at": "2023-02-14T18:28:06" }
Adds `CollectiveAllToAllV2` op. This op is similar to `CollectiveAllToAllV3` but uses tensor inputs for the collective parameters instead of a resource. In a future PR, I will add a `DTensorAllToAll` op which will be lowered to this `CollectiveAllToAllV2` op. cc @rainwoodman @bfontain
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59598/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59598/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59597
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59597/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59597/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59597/events
https://github.com/tensorflow/tensorflow/issues/59597
1,574,798,969
I_kwDOArmXAs5d3YZ5
59,597
Autocomplete fails for any submodules
{ "login": "dburian", "id": 49344220, "node_id": "MDQ6VXNlcjQ5MzQ0MjIw", "avatar_url": "https://avatars.githubusercontent.com/u/49344220?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dburian", "html_url": "https://github.com/dburian", "followers_url": "https://api.github.com/users/dburian/followers", "following_url": "https://api.github.com/users/dburian/following{/other_user}", "gists_url": "https://api.github.com/users/dburian/gists{/gist_id}", "starred_url": "https://api.github.com/users/dburian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dburian/subscriptions", "organizations_url": "https://api.github.com/users/dburian/orgs", "repos_url": "https://api.github.com/users/dburian/repos", "events_url": "https://api.github.com/users/dburian/events{/privacy}", "received_events_url": "https://api.github.com/users/dburian/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": 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
[ "@dburian Thanks for reporting the issue.\r\n\r\nI have tried in google colab and the auto complete suggestions are working fine. Please refer the below screenshot.\r\n\r\n![image](https://user-images.githubusercontent.com/118897289/217450012-5a1647ca-dc38-465b-ad29-9ea8286e88f4.png)\r\n\r\nI have tried with other modules as well and observed the same behaviour. Thanks!\r\n\r\n", "That's great, yet I experience the lack of auto-complete with **pyright**, not **colab**. I posted the issue to see the possible solutions (either from others or the developers). \r\n", "@dburian Thanks for the clarification.\r\n\r\n@sushreebarsa Could you please look into this. Thank you.", "Hi, Thanks for opening the issue, we are aware of this issue in some of the IDE's which users have reported. \r\nWe are working on the issue, for any progress regarding the similar issue, refer the threads in the issues here https://github.com/tensorflow/tensorflow/issues/56231, https://github.com/tensorflow/tensorflow/issues/36798", "@dburian @sachinprasadhs I think the Issue here will probably solved with https://github.com/microsoft/pylance-release/issues/3937? Which has the start of https://github.com/python/typeshed/issues/7144 as an underlying reason.\r\n\r\nI mean tensorflow has other autocompletion problems, but at least the apearance of nothing working with pyright version 1.1.292 is probably caused by that.", "Thanks a lot @alkatar21. Indeed in my case, the lack of auto-completion was caused by the (now incomplete) type stubs shipped with pyright, which pyright prefers over code inspection. For anyone experiencing the same issues try following the issues linked in alkatar's comment if you like to know the whys and whats.\r\n\r\nTLDR; Try deleting 'tensorflow' directory under 'dist/typeshed-fallback/stubs'.", "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/59597\">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/59597\">No</a>\n" ]
2023-02-07T18:00:20
2023-02-13T10:24:25
2023-02-13T10:24:22
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 (v2.11.0-rc2-17-gd5b57ca93e5 ), 2.13.0-dev20230207 (v1.12.1-88998-gf03d41b6f8b) ### Custom Code No ### OS Platform and Distribution Linux Manjaro ### Mobile device _No response_ ### Python version 3.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Typing any of the following does not offer any auto-completion: import tensorflow as tf tf.keras.<no-auto-completion> tf.data.<no-auto-completion> tf.estimator.<no-auto-completion> tf.math.<no-auto-completion> tf.lite.<no-auto-completion> I would expect auto-completion to have some kind of knowledge about the submodules. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf tf.keras.<no-auto-completion> tf.data.<no-auto-completion> tf.estimator.<no-auto-completion> tf.math.<no-auto-completion> tf.lite.<no-auto-completion> ``` ### Relevant log output ```shell Using pyright version 1.1.292. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59597/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59597/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59596
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59596/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59596/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59596/events
https://github.com/tensorflow/tensorflow/pull/59596
1,574,796,021
PR_kwDOArmXAs5JdNfB
59,596
Disable broken test in TF 2.12.0 Release builds.
{ "login": "vinila21", "id": 106367904, "node_id": "U_kgDOBlcLoA", "avatar_url": "https://avatars.githubusercontent.com/u/106367904?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vinila21", "html_url": "https://github.com/vinila21", "followers_url": "https://api.github.com/users/vinila21/followers", "following_url": "https://api.github.com/users/vinila21/following{/other_user}", "gists_url": "https://api.github.com/users/vinila21/gists{/gist_id}", "starred_url": "https://api.github.com/users/vinila21/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vinila21/subscriptions", "organizations_url": "https://api.github.com/users/vinila21/orgs", "repos_url": "https://api.github.com/users/vinila21/repos", "events_url": "https://api.github.com/users/vinila21/events{/privacy}", "received_events_url": "https://api.github.com/users/vinila21/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-07T17:57:49
2023-02-07T21:30:46
2023-02-07T21:30:42
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59596", "html_url": "https://github.com/tensorflow/tensorflow/pull/59596", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59596.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59596.patch", "merged_at": "2023-02-07T21:30:42" }
b/268210520
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59596/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59596/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59595
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59595/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59595/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59595/events
https://github.com/tensorflow/tensorflow/issues/59595
1,574,728,918
I_kwDOArmXAs5d3HTW
59,595
Allow selecting enabled targets
{ "login": "RoboTux", "id": 272327, "node_id": "MDQ6VXNlcjI3MjMyNw==", "avatar_url": "https://avatars.githubusercontent.com/u/272327?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RoboTux", "html_url": "https://github.com/RoboTux", "followers_url": "https://api.github.com/users/RoboTux/followers", "following_url": "https://api.github.com/users/RoboTux/following{/other_user}", "gists_url": "https://api.github.com/users/RoboTux/gists{/gist_id}", "starred_url": "https://api.github.com/users/RoboTux/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RoboTux/subscriptions", "organizations_url": "https://api.github.com/users/RoboTux/orgs", "repos_url": "https://api.github.com/users/RoboTux/repos", "events_url": "https://api.github.com/users/RoboTux/events{/privacy}", "received_events_url": "https://api.github.com/users/RoboTux/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 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, @SuryanarayanaY \r\n\r\nCould you please look into this issue? Thank you!", "Hi @RoboTux ,\r\n\r\nCould you please confirm the sequence of commands you used for build.\r\nAlso please provide the error logs that may help us to analyse the issue. Thanks!", "1. Delete bazel cache\r\n2. Run `bazel build --config=dbg -c opt tensorflow/compiler/mlir:tf-opt`\r\n3. ls bazel-out/*-opt/bin/external/llvm-project/llvm/lib/Target\r\n\r\nWhich for me shows AArch64, AMDGPU, ARM and X86. I have a WIP patch that allow me to select the targets I want enabled and have for instance only AArch64.", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "@RoboTux ,\r\n\r\nThanks for confirmation.If this can be doable then definitely it will save some time AFAIK. Do you have plan to raise a PR to enable this feature? Our team may review and if all well may approve. Thanks!", "> @RoboTux ,\r\n> \r\n> Thanks for confirmation.If this can be doable then definitely it will save some time AFAIK. Do you have plan to raise a PR to enable this feature? Our team may review and if all well may approve. Thanks!\r\n\r\nAbsolutely, I was waiting on someone to confirm it's a desirable feature. I'll be running some tests and publish it shortly.", "@RoboTux ,\r\n\r\nI have tried to build from source on Ubuntu 20 VM and I got the Targets as `AMDGPU X86`. Please refer the attached log.\r\n\r\n```\r\n(bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ bazel build --config=dbg -c opt tensorflow/compiler/mlir:tf-opt\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 --incompatible_enforce_config_setting_visibility --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:dbg in file /home/suryanarayanay/tensorflow/.bazelrc: -c dbg --per_file_copt=+.*,-tensorflow.*@-g0 --per_file_copt=+tensorflow/core/kernels.*@-g0 --cxxopt -DTF_LITE_DISABLE_X86_NEON --copt -DDEBUG_BUILD\r\nINFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes\r\nINFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\nINFO: Analyzed target //tensorflow/compiler/mlir:tf-opt (372 packages loaded, 24423 targets configured).\r\nINFO: Found 1 target...\r\nTarget //tensorflow/compiler/mlir:tf-opt up-to-date:\r\n bazel-bin/tensorflow/compiler/mlir/tf-opt\r\nINFO: Elapsed time: 4232.262s, Critical Path: 377.67s\r\nINFO: 11031 processes: 1009 internal, 10022 local.\r\nINFO: Build completed successfully, 11031 total actions\r\n(bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ ls bazel-out/*-opt/bin/external/llvm-project/llvm/lib/Target\r\nAMDGPU X86\r\n```\r\nI am not getting AArch64 ARM for targets. Could you please cross check and confirm ? Please note I have tested on Ubuntu 20 machine.\r\n\r\nThanks!\r\n", "> @RoboTux ,\r\n> \r\n> I have tried to build from source on Ubuntu 20 VM and I got the Targets as `AMDGPU X86`. Please refer the attached log.\r\n> \r\n> ```\r\n> (bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ bazel build --config=dbg -c opt tensorflow/compiler/mlir:tf-opt\r\n> Starting local Bazel server and connecting to it...\r\n> INFO: Options provided by the client:\r\n> Inherited 'common' options: --isatty=1 --terminal_columns=100\r\n> INFO: Reading rc options for 'build' from /home/suryanarayanay/tensorflow/.bazelrc:\r\n> Inherited 'common' options: --experimental_repo_remote_exec\r\n> INFO: 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 --incompatible_enforce_config_setting_visibility --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\n> INFO: Found applicable config definition build:short_logs in file /home/suryanarayanay/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\n> INFO: Found applicable config definition build:v2 in file /home/suryanarayanay/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\n> INFO: Found applicable config definition build:dbg in file /home/suryanarayanay/tensorflow/.bazelrc: -c dbg --per_file_copt=+.*,-tensorflow.*@-g0 --per_file_copt=+tensorflow/core/kernels.*@-g0 --cxxopt -DTF_LITE_DISABLE_X86_NEON --copt -DDEBUG_BUILD\r\n> INFO: Found applicable config definition build:linux in file /home/suryanarayanay/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes\r\n> INFO: Found applicable config definition build:dynamic_kernels in file /home/suryanarayanay/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS\r\n> INFO: Analyzed target //tensorflow/compiler/mlir:tf-opt (372 packages loaded, 24423 targets configured).\r\n> INFO: Found 1 target...\r\n> Target //tensorflow/compiler/mlir:tf-opt up-to-date:\r\n> bazel-bin/tensorflow/compiler/mlir/tf-opt\r\n> INFO: Elapsed time: 4232.262s, Critical Path: 377.67s\r\n> INFO: 11031 processes: 1009 internal, 10022 local.\r\n> INFO: Build completed successfully, 11031 total actions\r\n> (bazel) suryanarayanay@surya-ubuntu20:~/tensorflow$ ls bazel-out/*-opt/bin/external/llvm-project/llvm/lib/Target\r\n> AMDGPU X86\r\n> ```\r\n> \r\n> I am not getting AArch64 ARM for targets. Could you please cross check and confirm ? Please note I have tested on Ubuntu 20 machine.\r\n> \r\n> Thanks!\r\n\r\nI can confirm when building on x86 Ubuntu 22.04. I see that utils/bazel/llvm-project-overlay/llvm/BUILD.bazel has some config_setting that check the cpu value which might explain why that is. But then it's strange to have x86 when doing an AArch64 build. I'll investigate further but that most likely means reworking the patch since with it by default it builds all CPU targets.", "Hi @RoboTux ,\r\n\r\nI would like to know whether did you changes any code in .bazelrc or any other bazel files etc which might configured Target for different platforms.I have not changed any files and got build for only one Target. Please provide all the changes you have done(if any) to enable the build for multiple targets.\r\n\r\nThank you!", "Hi @SuryanarayanaY ,\r\n\r\nSorry for the slow reply. I've found why X86 when building on AArch64 but not other LLVM targets thanks to the great bazel query allpaths feature:\r\n\r\n@llvm-project/llvm:X86CodeGen gets pulled from //tensorflow/compiler/xla/service/cpu:cpu_compiler, as well as lower down from //tensorflow/compile/xla/runtime:execution_engine and from //tensorflow/compiler/xla/mlir/runtime/transforms:jit_compiler.\r\n\r\nOther targets dependency are guarded by select around targets in //tensorflow/tsl (e.g.arm_any or linux_ppc64le) or by if_llvm_<target>_available. Now the patch contributed in PR59995 does solve that but enables all CPU targets by default because I erroneously thought it was the default. I'll rework it to only enable the host CPU target by default.\r\n\r\n> \r\n> I would like to know whether did you changes any code in .bazelrc or any other bazel files etc which might configured Target for different platforms.I have not changed any files and got build for only one Target. Please provide all the changes you have done(if any) to enable the build for multiple targets.\r\n> \r\n\r\nTo answer your question I have no .bazelrc except for the one in tensorflow and my .tf_configure.bazelrc is what comes by default when running configure:\r\n```\r\n\r\nbuild --action_env PYTHON_BIN_PATH=\"/usr/bin/python3.10\"\r\nbuild --action_env PYTHON_LIB_PATH=\"/usr/lib/python3/dist-packages\"\r\nbuild --python_path=\"/usr/bin/python3.10\"\r\nbuild:opt --copt=-Wno-sign-compare\r\nbuild:opt --host_copt=-Wno-sign-compare\r\ntest --flaky_test_attempts=3\r\ntest --test_size_filters=small,medium\r\ntest:v1 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial\r\ntest:v1 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu\r\ntest:v2 --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-oss_serial,-v1only\r\ntest:v2 --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-v1only\r\n```\r\n\r\nAs mentioned, this is on AArch64 host which is what makes the difference.", "@RoboTux ,\r\n\r\nThe build I was done was on a machine with `X86` architecture which seems building the target for that particular architecture only. Whereas as per your investigation for `AArch64` it is building for both `AArch64` as well as `X86` which might be the reason for getting different Targets for me.\r\n\r\nPlease continue working on the Patch and I hope this will be approved by dev-team.\r\n\r\nThanks!\r\n\r\n\r\n\r\n\r\n\r\n", "Patch has been merged.", "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/59595\">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/59595\">No</a>\n" ]
2023-02-07T17:14:13
2024-03-11T09:27:29
2024-03-11T09:27:25
CONTRIBUTOR
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Build/Install ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version master ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 22.04 ### Mobile device _No response_ ### Python version 3.10 ### Bazel version 5.3.0 ### GCC/Compiler version 11.3 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell Many parts of TensorFlow (e.g. TensorFlow XLA execution_engine in tensorflow/compiler/xla/runtime) build support for several targets unconditionally. This leads to a lot of extra build time when that support depends on LLVM support and thus extra backend needing to be enabled in LLVM. I'd like to work on a patch to be able to select targets to be enabled at configure or build time, keeping the current default of enabling most targets. I would also like to enable AArch64 target by default for aot and kernel_gen since ARM target is already enabled unconditionaly at the moment. ``` ### Standalone code to reproduce the issue ```shell Following the steps in tensorflow/compiler/mlir/README.md "Using local LLVM repo" with only AArch64 in targets.bzl fails to build. ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59595/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59595/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59594
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59594/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59594/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59594/events
https://github.com/tensorflow/tensorflow/pull/59594
1,574,690,408
PR_kwDOArmXAs5Jc2ce
59,594
Fix typos in the model maker object detection document
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 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
[ "Check out this pull request on&nbsp; <a href=\"https://app.reviewnb.com/tensorflow/tensorflow/pull/59594\"><img align=\"absmiddle\" alt=\"ReviewNB\" height=\"28\" class=\"BotMessageButtonImage\" src=\"https://raw.githubusercontent.com/ReviewNB/support/master/images/button_reviewnb.png\"/></a> \n\n See visual diffs & provide feedback on Jupyter Notebooks. \n\n---\n\n <i>Powered by <a href='https://www.reviewnb.com/?utm_source=gh'>ReviewNB</a></i>", "Please use better commit messages and PR titles.\r\n\r\nhttps://cbea.ms/git-commit/" ]
2023-02-07T16:56:43
2023-03-09T17:31:41
2023-03-08T18:57:55
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59594", "html_url": "https://github.com/tensorflow/tensorflow/pull/59594", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59594.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59594.patch", "merged_at": "2023-03-08T18:57:55" }
Fixed few typos in model maker object detection tutorial. If applied, this commit will update the [document](https://www.tensorflow.org/lite/models/modify/model_maker/object_detection) for better readability. Please do the needful. Thank you.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59594/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59594/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59593
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59593/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59593/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59593/events
https://github.com/tensorflow/tensorflow/issues/59593
1,574,649,470
I_kwDOArmXAs5d2z5-
59,593
Custom trianing with overriding the `fit` method single or multiple devices.
{ "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": 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": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 2012480497, "node_id": "MDU6TGFiZWwyMDEyNDgwNDk3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-feature", "name": "type:docs-feature", "color": "159b2e", "default": false, "description": "Doc issues for new feature, or clarifications about functionality" } ]
closed
false
{ "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false }
[ { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-07T16:35:06
2023-09-22T18:12:53
2023-08-04T18:37:08
NONE
null
null
null
### Current Behaviour? In the official blog post, [HERE](https://www.tensorflow.org/tutorials/distribute/custom_training), it is discussed about the process for single device and multiple device training using `Keras` API. But I've found it quite ambigous to understand the right procedue when you want to do both, [overriding the `fit` method](https://keras.io/guides/customizing_what_happens_in_fit/). It's like combination of custom training loop + using high-level API (`fit`). For example, in custom training loop, it's suggested as follows ``` train_dist_dataset = strategy.experimental_distribute_dataset(train_dataset) test_dist_dataset = strategy.experimental_distribute_dataset(test_dataset) ``` or ephasize to consider during [loss](https://www.tensorflow.org/tutorials/distribute/custom_training#define_the_loss_function) calculation. or consider the following also while custom training loop? ``` # `run` replicates the provided computation and runs it # with the distributed input. @tf.function def distributed_train_step(dataset_inputs): per_replica_losses = strategy.run(train_step, args=(dataset_inputs,)) return strategy.reduce(tf.distribute.ReduceOp.SUM, per_replica_losses, axis=None) @tf.function def distributed_test_step(dataset_inputs): return strategy.run(test_step, args=(dataset_inputs,)) ``` And it is not clear if we need to do when we combine both (cutom training + fit method). There are many, for example [this](https://github.com/keras-team/tf-keras/issues/301), that is, if mixed precision is enabled, should we use `LossScaleOptimizer` and `optimizer.get_scaled_loss(loss)` and `optimizer.get_unscaled_gradients(gradients)` in the `train_step` or `compile` method would do the job? But the [official documentation](https://www.tensorflow.org/api_docs/python/tf/keras/mixed_precision/LossScaleOptimizer) talks about normal fit and custom loop training cases. In case of custom loop, it's suggested to wrap the optimizer and scale the loss and gradient but what about the combination of fit and custom loop (overriding train_step)? Does it sill need to wrap the optimizer and scale the loss and gradient or it will be handled by the API? ### Relevant log output
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59593/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59593/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59592
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59592/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59592/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59592/events
https://github.com/tensorflow/tensorflow/issues/59592
1,574,002,682
I_kwDOArmXAs5d0V_6
59,592
ios TFLiteBenchmark compile failer
{ "login": "mengran1234", "id": 87115287, "node_id": "MDQ6VXNlcjg3MTE1Mjg3", "avatar_url": "https://avatars.githubusercontent.com/u/87115287?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mengran1234", "html_url": "https://github.com/mengran1234", "followers_url": "https://api.github.com/users/mengran1234/followers", "following_url": "https://api.github.com/users/mengran1234/following{/other_user}", "gists_url": "https://api.github.com/users/mengran1234/gists{/gist_id}", "starred_url": "https://api.github.com/users/mengran1234/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mengran1234/subscriptions", "organizations_url": "https://api.github.com/users/mengran1234/orgs", "repos_url": "https://api.github.com/users/mengran1234/repos", "events_url": "https://api.github.com/users/mengran1234/events{/privacy}", "received_events_url": "https://api.github.com/users/mengran1234/received_events", "type": "User", "site_admin": false }
[ { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" } ]
closed
false
{ "login": "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
[ "before above error, it happened\r\nERROR: --experimental_link_static_libraries_once=false :: Unrecognized option: --experimental_link_static_libraries_once=false\r\n.so I delete experimental_link_static_libraries_once option", "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/59592\">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/59592\">No</a>\n" ]
2023-02-07T09:44:10
2023-02-07T14:49:01
2023-02-07T11:27:09
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.10 or 2.11 ### Custom Code Yes ### OS Platform and Distribution ios ### Mobile device iphone ### Python version 3.7 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! I use bazel compile ios ,file is tensorflow/tensorflow/lite/tools/benchmark/ios/build_benchmark_framework.sh. ERROR: Traceback (most recent call last): File "tensorflow/tensorflow/core/platform/default/rules_cc.bzl", line 6, column 28, in <toplevel> _cc_shared_library = native.cc_shared_library Error: no native function or rule 'cc_shared_library' before this tensorflow/configure I also run it select ios. ``` ### Standalone code to reproduce the issue ```shell I want to know the reason. thank you ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59592/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59592/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59591
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59591/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59591/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59591/events
https://github.com/tensorflow/tensorflow/pull/59591
1,573,906,674
PR_kwDOArmXAs5JaNxQ
59,591
stale-pr.yaml
{ "login": "shmishra99", "id": 124146945, "node_id": "U_kgDOB2ZVAQ", "avatar_url": "https://avatars.githubusercontent.com/u/124146945?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shmishra99", "html_url": "https://github.com/shmishra99", "followers_url": "https://api.github.com/users/shmishra99/followers", "following_url": "https://api.github.com/users/shmishra99/following{/other_user}", "gists_url": "https://api.github.com/users/shmishra99/gists{/gist_id}", "starred_url": "https://api.github.com/users/shmishra99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shmishra99/subscriptions", "organizations_url": "https://api.github.com/users/shmishra99/orgs", "repos_url": "https://api.github.com/users/shmishra99/repos", "events_url": "https://api.github.com/users/shmishra99/events{/privacy}", "received_events_url": "https://api.github.com/users/shmishra99/received_events", "type": "User", "site_admin": false }
[ { "id": 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/59591/checks?check_run_id=11159740231) 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.", "This is #58285, why not use that one?" ]
2023-02-07T08:36:59
2023-02-28T22:39:14
2023-02-28T22:39:14
CONTRIBUTOR
null
true
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59591", "html_url": "https://github.com/tensorflow/tensorflow/pull/59591", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59591.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59591.patch", "merged_at": null }
I've added the workflow to replace 'stale-master' probot. It will add 'stalled' label to inactive PRs if contains 'stat:awaiting response' label in case of further inactivity it will close the PR with proper comment.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59591/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59591/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59590
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59590/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59590/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59590/events
https://github.com/tensorflow/tensorflow/pull/59590
1,573,512,182
PR_kwDOArmXAs5JY6Xi
59,590
r2.11 cherry-pick: 2648c81f05f "Check min-max values to be scalars."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-07T00:56:35
2023-03-03T23:24:16
2023-02-07T02:07:40
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59590", "html_url": "https://github.com/tensorflow/tensorflow/pull/59590", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59590.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59590.patch", "merged_at": "2023-02-07T02:07:39" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/2648c81f05f4d15e2aa48412686b5aab6507e94e
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59590/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59590/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59589
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59589/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59589/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59589/events
https://github.com/tensorflow/tensorflow/pull/59589
1,573,499,615
PR_kwDOArmXAs5JY306
59,589
Copy input tensor in a RandomShuffleOp to output directly when its nu…
{ "login": "pak-laura", "id": 15825877, "node_id": "MDQ6VXNlcjE1ODI1ODc3", "avatar_url": "https://avatars.githubusercontent.com/u/15825877?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pak-laura", "html_url": "https://github.com/pak-laura", "followers_url": "https://api.github.com/users/pak-laura/followers", "following_url": "https://api.github.com/users/pak-laura/following{/other_user}", "gists_url": "https://api.github.com/users/pak-laura/gists{/gist_id}", "starred_url": "https://api.github.com/users/pak-laura/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pak-laura/subscriptions", "organizations_url": "https://api.github.com/users/pak-laura/orgs", "repos_url": "https://api.github.com/users/pak-laura/repos", "events_url": "https://api.github.com/users/pak-laura/events{/privacy}", "received_events_url": "https://api.github.com/users/pak-laura/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-07T00:37:12
2023-02-09T00:52:39
2023-02-09T00:52:39
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59589", "html_url": "https://github.com/tensorflow/tensorflow/pull/59589", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59589.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59589.patch", "merged_at": "2023-02-09T00:52:39" }
…mber of elements is less than or equal to 1. This fixes the crash in TFXLA MLIR bridge when the input tensor has a rank of 0. This also makes its behavoir more consistent with TF core kernel. PiperOrigin-RevId: 504983211
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59589/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59589/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59588
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59588/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59588/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59588/events
https://github.com/tensorflow/tensorflow/pull/59588
1,573,468,068
PR_kwDOArmXAs5JYxCn
59,588
Fix conjugate transpose for 0/1D complex tensor
{ "login": "pak-laura", "id": 15825877, "node_id": "MDQ6VXNlcjE1ODI1ODc3", "avatar_url": "https://avatars.githubusercontent.com/u/15825877?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pak-laura", "html_url": "https://github.com/pak-laura", "followers_url": "https://api.github.com/users/pak-laura/followers", "following_url": "https://api.github.com/users/pak-laura/following{/other_user}", "gists_url": "https://api.github.com/users/pak-laura/gists{/gist_id}", "starred_url": "https://api.github.com/users/pak-laura/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pak-laura/subscriptions", "organizations_url": "https://api.github.com/users/pak-laura/orgs", "repos_url": "https://api.github.com/users/pak-laura/repos", "events_url": "https://api.github.com/users/pak-laura/events{/privacy}", "received_events_url": "https://api.github.com/users/pak-laura/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-06T23:55:06
2023-02-09T00:52:19
2023-02-09T00:52:19
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59588", "html_url": "https://github.com/tensorflow/tensorflow/pull/59588", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59588.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59588.patch", "merged_at": "2023-02-09T00:52:19" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59588/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59588/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59587
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59587/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59587/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59587/events
https://github.com/tensorflow/tensorflow/issues/59587
1,573,440,113
I_kwDOArmXAs5dyMpx
59,587
TF dataset generator memory leak?
{ "login": "dhruvsreenivas", "id": 16987782, "node_id": "MDQ6VXNlcjE2OTg3Nzgy", "avatar_url": "https://avatars.githubusercontent.com/u/16987782?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dhruvsreenivas", "html_url": "https://github.com/dhruvsreenivas", "followers_url": "https://api.github.com/users/dhruvsreenivas/followers", "following_url": "https://api.github.com/users/dhruvsreenivas/following{/other_user}", "gists_url": "https://api.github.com/users/dhruvsreenivas/gists{/gist_id}", "starred_url": "https://api.github.com/users/dhruvsreenivas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhruvsreenivas/subscriptions", "organizations_url": "https://api.github.com/users/dhruvsreenivas/orgs", "repos_url": "https://api.github.com/users/dhruvsreenivas/repos", "events_url": "https://api.github.com/users/dhruvsreenivas/events{/privacy}", "received_events_url": "https://api.github.com/users/dhruvsreenivas/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": 1114343535, "node_id": "MDU6TGFiZWwxMTE0MzQzNTM1", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data", "name": "comp:data", "color": "0052cc", "default": false, "description": "tf.data related issues" }, { "id": 1463677878, "node_id": "MDU6TGFiZWwxNDYzNjc3ODc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance", "name": "type:performance", "color": "159b2e", "default": false, "description": "Performance Issue" }, { "id": 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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "@dhruvsreenivas Thanks for reporting issue.\r\n\r\nPosting relevant issue threads [#58606](https://github.com/tensorflow/tensorflow/issues/58606), [#57690](https://github.com/tensorflow/tensorflow/issues/57690), [56624](https://github.com/tensorflow/tensorflow/issues/56624).\r\n\r\n@sushreebarsa Could you please look into this. Thank you.", "@pjpratik thank you! I'll check these out.\r\n\r\nIf you guys need any help with error reproduction in Colab, let me know and I'll be glad to help.", "Alright, so as far as I can see, there is no definite solution posted -- I think some issues haven't necessarily been resolved yet, but they are shown to be legitimate (i.e. reproduced). What is the best course of action here? I'd like to know what to do as soon as possible. Thank you so much!", "@dhruvsreenivas Sorry for the late response!\r\nCould you please share a simple standalone code to replicate this issue?\r\nThank you!", "Alright so the codebase is a bit big -- there are multiple files that generally contribute to the issue (i.e. parts from all these files go toward running the training loop, which will end in an OOM error), all generally organized in this one github [repo](https://github.com/dhruvsreenivas/byol-offline). I can give instructions on how to install everything and run the repo code if you want, but that might not be the best use of time.\r\n\r\nI'm a bit busy now with some other work, so give me some time--I'll see if I can make a colab notebook showing everything over the weekend, and get back to you. How does that sound?", "Hi, @dhruvsreenivas \r\n\r\nApologize for the delay and as you mentioned in your previous comment, you'll share one Google Colab notebook to show us TF dataset generator memory leak issue so May I know have you prepared that Google Colab notebook now ? If yes please share that notebook with us, we'll try to replicate the same issue from our end. Thank you!", "Hey everyone,\r\n\r\nSorry I've been super busy with some school work over the past few weeks -- I'll try to make the Colab by early next week, and will send upon completion. Thanks so much!\r\n\r\nBest,\r\nDhruv Sreenivas", "Alright, I think it might not be a TensorFlow problem as much as it could just be I'm loading in a LOT of data at once, so memory might be at a premium -- I've tried this with a couple other experiments and it seems that this is what is going on. Sorry for the inconvenience!\r\n\r\nFor example, I tried something simple where I would delete the batch once I finished updating with it, and that actually worked well with limited memory.", "Hi, @dhruvsreenivas \r\n\r\nNo problem at all, Good to hear that, You're able to resolve your issue, Thank you for sharing the detailed information about root cause for your issue and If you're having training data simply cannot fit in memory then I would suggest you to have look at this article [tf.data.Dataset generators with parallelization](https://medium.com/@acordier/tf-data-dataset-generators-with-parallelization-the-easy-way-b5c5f7d2a18) which may help you to solve your memory related issue.\r\n\r\nIf you need further assistance please let us know ? or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? 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/59587\">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/59587\">No</a>\n" ]
2023-02-06T23:17:50
2023-03-09T14:51:36
2023-03-09T14:47:23
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Performance ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version tf 2.9 ### Custom Code Yes ### OS Platform and Distribution Linux Ubuntu 20.04 ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory NVIDIA RTX 2080ti (1 GPU used) ### Current Behaviour? ```shell Hi everyone, Hope you are doing well! I have an issue where potentially a memory leak occurs when I create a TensorFlow sampling dataset via tf.data.Dataset.from_generator. I am currently working on some model-based RL ideas, focusing on using exploration inside a Dreamer VAE model for best results in visual continuous control. The model is written in JAX/Haiku, and I decided to try to use a TensorFlow dataset pipeline to load in the data and use it to train the model. The data is organized in trajectory format in a directory (400 trajectories, stored as .npz files, are in a directory for use). I've written code for the sampling procedure (see line 86 for the visual sequence buffer impl, line 349 for dataset/loader creation at https://github.com/dhruvsreenivas/byol-offline/blob/main/memory/replay_buffer.py for details), which I've done some preliminary tests on in line 170 of this file: https://github.com/dhruvsreenivas/byol-offline/blob/main/testing.py). The behavior I'm seeing is that the model can effectively train for around 50 epochs with 50 GB of RAM requested, but jobs ultimately die due to memory leakage after that. I want to train the model for 1000 epochs, which makes it seem like an obscene amount of memory is required, which I don't have available to me. I have a suspicion that a memory leak is occurring somewhere, which is odd given that I believe that memory should be dynamically allocated based off of the size of the batch requested (I am sampling a batch of 50 subtrajectories, each of length 10 for the initial experiments). I'm wondering how to fix this problem (the sampling is required, so the from_generator part should stay the same I think). ``` ### Standalone code to reproduce the issue ```shell The code to reproduce the experiments is here: - Replay buffer code: https://github.com/dhruvsreenivas/byol-offline/blob/main/memory/replay_buffer.py -- line 86, 349 - Testing file: https://github.com/dhruvsreenivas/byol-offline/blob/main/testing.py -- line 170 For data I'm using to run the experiments, please see https://github.com/conglu1997/v-d4rl for how to collect and organize the data. I'm using cheetah_run 64x64px, medium expert data directory, seen here: https://drive.google.com/drive/folders/1zbAqR0gYBNG2W-F5_ItweCGg6_YHpZ7o. ``` ### Relevant log output ```shell I only really have the job's code, which basically says that the out-of-memory handler was used because the job ran out of memory. Used 2 CPUs and 1 GPU, with 50 GB RAM. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59587/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59587/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59586
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59586/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59586/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59586/events
https://github.com/tensorflow/tensorflow/pull/59586
1,573,436,648
PR_kwDOArmXAs5JYqSZ
59,586
r2.11 cherry-pick: 6965f231b8b "Replace ptrdiff_t with int64_t."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-06T23:14:35
2023-02-07T04:08:47
2023-02-07T00:07:48
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59586", "html_url": "https://github.com/tensorflow/tensorflow/pull/59586", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59586.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59586.patch", "merged_at": "2023-02-07T00:07:48" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/6965f231b8b1ab37f604fcb00816d79c0cb11302
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59586/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59586/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59585
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59585/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59585/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59585/events
https://github.com/tensorflow/tensorflow/pull/59585
1,573,431,184
PR_kwDOArmXAs5JYpEK
59,585
Update tensorflow/core/kernels/image/decode_image_op.cc
{ "login": "pak-laura", "id": 15825877, "node_id": "MDQ6VXNlcjE1ODI1ODc3", "avatar_url": "https://avatars.githubusercontent.com/u/15825877?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pak-laura", "html_url": "https://github.com/pak-laura", "followers_url": "https://api.github.com/users/pak-laura/followers", "following_url": "https://api.github.com/users/pak-laura/following{/other_user}", "gists_url": "https://api.github.com/users/pak-laura/gists{/gist_id}", "starred_url": "https://api.github.com/users/pak-laura/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pak-laura/subscriptions", "organizations_url": "https://api.github.com/users/pak-laura/orgs", "repos_url": "https://api.github.com/users/pak-laura/repos", "events_url": "https://api.github.com/users/pak-laura/events{/privacy}", "received_events_url": "https://api.github.com/users/pak-laura/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-06T23:09:38
2023-02-07T00:09:17
2023-02-07T00:09:16
MEMBER
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59585", "html_url": "https://github.com/tensorflow/tensorflow/pull/59585", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59585.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59585.patch", "merged_at": "2023-02-07T00:09:16" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59585/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59585/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59584
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59584/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59584/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59584/events
https://github.com/tensorflow/tensorflow/pull/59584
1,573,409,277
PR_kwDOArmXAs5JYkRr
59,584
r2.11 cherry-pick: 728113a3be6 "[Tensorflow] Fix security vulnerability with TensorListSplitOp"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-06T22:45:31
2023-03-03T23:24:18
2023-02-06T23:32:20
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59584", "html_url": "https://github.com/tensorflow/tensorflow/pull/59584", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59584.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59584.patch", "merged_at": "2023-02-06T23:32:19" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/728113a3be690facad6ce436660a0bc1858017fa
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59584/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59584/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59583
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59583/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59583/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59583/events
https://github.com/tensorflow/tensorflow/issues/59583
1,573,306,794
I_kwDOArmXAs5dxsGq
59,583
tf.bitcast throws InternalError
{ "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": 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": 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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi, @trickiwoo \r\n\r\nI was able to replicate the issue on `Ubuntu 20.04` with `tf-nightly-2.13.0-dev20230204` with GPU and even I also replicated on Google Colab(`GPU`) with `tf-nightly-2.13.0-dev20230207` here is [gist file](https://colab.research.google.com/gist/gaikwadrahul8/548c2266dc8e4f53b60bd8617830e9f2/-59583-tf-nightly-gpu.ipynb) for your reference. I was getting the same error message which you mentioned in the above error log. I have added error screenshot below for your reference so it seems like we will have to dig more into this issue with `GPU` execution to find out root cause for it so we will update soon.\r\n\r\nI replicated the same issue with `CPU` on `Ubuntu 20.04` with `tf-nightly-2.13.0-dev20230204` and on Google Colab, here is [gist file ](https://colab.research.google.com/gist/gaikwadrahul8/733b3c800824e3edfdd7546ff5556727/-59583-tf-nightly-cpu.ipynb)and it's not throwing error message `tensorflow.python.framework.errors_impl.InternalError: Assigned device '/job:localhost/replica:0/task:0/device:GPU:0' does not have registered OpKernel support for _Arg [[{{node input}}]] [Op:Bitcast] `\r\n\r\n\r\nHere is screenshot of CPU execution :\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/217254535-1b3aa5f6-e429-4099-9818-8f361297e9e3.png)\r\n\r\nHere is screenshot of GPU execution :\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/217256211-2cf2b65d-e20e-4533-a45d-e887d8f0cbc5.png)\r\n\r\nThank you for noticing the issue and we will update you soon. Thank you!", "Internal error is a valid error message if arguments are invalid.\r\n\r\nIn this case, you are trying to run a kernel on a device that does not support it with the given types", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59583\">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/59583\">No</a>\n" ]
2023-02-06T21:21:55
2023-02-21T19:07:08
2023-02-21T19:07:05
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.dev20230204 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 20.04.4 LTS ### 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 tf.bitcast throws InternalError ``` ### Standalone code to reproduce the issue ```shell tf.bitcast(tf.cast([0,32768,65535], tf.quint16), tf.qint16) ``` ### Relevant log output ```shell tensorflow.python.framework.errors_impl.InternalError: Assigned device '/job:localhost/replica:0/task:0/device:GPU:0' does not have registered OpKernel support for _Arg [[{{node input}}]] [Op:Bitcast] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59583/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59583/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59582
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59582/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59582/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59582/events
https://github.com/tensorflow/tensorflow/issues/59582
1,573,291,359
I_kwDOArmXAs5dxoVf
59,582
tf.GradientTape throws internal error: RET_CHECK failure
{ "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": 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": 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": "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
[ "@trickiwoo \r\nI was able to reproduce the issue on Colab using tf-nightly but I was able to execute the given code on Colab using TF v2.11. tf-nightly which is unstable, Could you please try on the latest stable version which is TF v2.11 and find the gist of [TF v2.11](https://colab.research.google.com/gist/tiruk007/0c1f6cef9de20d9ad88e1d367da00c6d/59582.ipynb) and [tf-nightly](https://colab.research.google.com/gist/tiruk007/a55d40d9a3a0232ab6426ad1de08113e/59582_nightly.ipynb) for reference . Let us know if it helps.\r\n\r\nThank you!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59582\">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/59582\">No</a>\n" ]
2023-02-06T21:09:47
2023-02-22T21:07:05
2023-02-22T21:07:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.13.0.dev20230204 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 20.04.4 LTS ### Mobile device _No response_ ### Python version _No response_ ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell tf.GradientTape throws internal error: RET_CHECK failure ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np # Create a simple Keras model. with tf.device('gpu'): x = [-1, 0, 1, 2, 3, 4] y = [-3, -1, 1, 3, 5, 7] model = tf.keras.models.Sequential( [tf.keras.layers.Dense(units=1, input_shape=[1])]) model.compile(optimizer='sgd', loss='mean_squared_error') model.fit(x, y, epochs=500) ``` ### Relevant log output ```shell Node: 'StatefulPartitionedCall_1' RET_CHECK failure (tensorflow/compiler/xla/service/gpu/gpu_compiler.cc:618) dnn != nullptr [[{{node StatefulPartitionedCall_1}}]] [Op:__inference_train_function_437] ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59582/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59582/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59581
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59581/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59581/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59581/events
https://github.com/tensorflow/tensorflow/pull/59581
1,573,279,849
PR_kwDOArmXAs5JYHsp
59,581
[INTEL oneDNN][Bug Fix] Add index-validity check for min-max tensors for quantized oneDNN ops and related tests
{ "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": 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": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }
[ { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@penpornk Hi, I notice that there is a failure with \"feedback/copybara\" check but I could not access the \"Details\". \r\n\r\nPlease let me know if there is anything I need to do. Thanks!", "Hi @gzmkl,\r\n\r\nIt was failing internal Windows CPU presubmit (not sure why the github one didn't fail..)\r\nThe test that failed is `//tensorflow/core/kernels/mkl:mkl_quantized_conv_ops_test`\r\n```\r\n[ FAILED ] 11 tests, listed below:\r\n[ FAILED ] QuantizedConvTest.BiasAddFusion\r\n[ FAILED ] QuantizedConvTest.BiasAddRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.BiasAddReluRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.UnsignedInputBiasAddReluRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.DWBiasAddFusion\r\n[ FAILED ] QuantizedConvTest.DWBiasAddRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.DWBiasAddReluRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.DWUnsignedInputBiasAddReluRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.BiasAddSumReluRequantizeFusion\r\n[ FAILED ] QuantizedConvTest.BiasAddSumReluRequantizeFusionSignedSummand\r\n[ FAILED ] QuantizedConvTest.BiasAddSumReluFusionFloatSummand\r\n```\r\nTest command:\r\n```\r\n<path_to_bazel.exe> test //tensorflow/core/kernels/mkl:mkl_quantized_conv_ops_test --test_output=all\r\n```\r\n\r\nExample test failure log:\r\n```\r\n[ RUN ] QuantizedConvTest.BiasAddFusion\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (-25 not close to -39.473743438720703)\r\nExpected: true\r\ni = 0 Tx[i] = -25 Ty[i] = -39.473743438720703\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (-5 not close to 5.9996280670166016)\r\nExpected: true\r\ni = 1 Tx[i] = -5 Ty[i] = 5.9996280670166016\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (19 not close to 17.189409255981445)\r\nExpected: true\r\ni = 2 Tx[i] = 19 Ty[i] = 17.189409255981445\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (14 not close to 30.283836364746094)\r\nExpected: true\r\ni = 3 Tx[i] = 14 Ty[i] = 30.283836364746094\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (10 not close to -7.0947980880737305)\r\nExpected: true\r\ni = 4 Tx[i] = 10 Ty[i] = -7.0947980880737305\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (25 not close to 22.093868255615234)\r\nExpected: true\r\ni = 5 Tx[i] = 25 Ty[i] = 22.093868255615234\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (-8 not close to -10.99931812286377)\r\nExpected: true\r\ni = 6 Tx[i] = -8 Ty[i] = -10.99931812286377\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (0 not close to 1.9046437740325928)\r\nExpected: true\r\ni = 7 Tx[i] = 0 Ty[i] = 1.9046437740325928\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (12 not close to 34.1883544921875)\r\nExpected: true\r\ni = 9 Tx[i] = 12 Ty[i] = 34.1883544921875\r\ntensorflow/core/framework/tensor_testutil.cc(184): error: Value of: IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)\r\n Actual: false (-15 not close to -23.284269332885742)\r\nExpected: true\r\ni = 10 Tx[i] = -15 Ty[i] = -23.284269332885742\r\ntensorflow/core/framework/tensor_testutil.cc(187): error: Expected: (num_failures) < (max_failures), actual: 10 vs 10\r\n```\r\n\r\nI'm trying to get to this by tomorrow, but it would be great if you could help debug on your side too (if you could reproduce it). Thank you! ", "Hi @gzmkl,\r\n\r\nI realized that Github's [Windows Bazel presubmit](https://source.cloud.google.com/results/invocations/26083756-8c82-48e9-9d00-6ec3c1e178a8/log) on this PR didn't run any `mkl_` tests at all. So it's not surprising that it passed.\r\n\r\nWere you able to reproduce the test failure on your system? If it's helpful, the CPU we used has up to AVX2.\r\n\r\nSince it doesn't seem like some simple merging issue, but could be actual issues with the PR, I'll leave the debugging to you. If we can merge this PR by this Wednesday, I can try to cherry-pick this into TF 2.12. Otherwise, we can wait for the patch release (v2.12.1) once this PR is merged. Thank you!\r\n ", "@penpornk Thank you for the inputs. Yes, some INT8 (mkl_*quant*test*) does not run on Windows. TF Windows team (Mayank) and Ramesh also gave me the same feedback. \r\n \r\nI just made code change by adding back \" &&defined(ENABLE_MKL)\" guard in related tests and pushed the commit.\r\nThe code change has passed internal Windows UT tests. \r\n", "Exactly. This has been included in our TODO list as we want to enable some of the tests on Windows along with stock TF. \r\n\r\n" ]
2023-02-06T21:02:06
2023-02-22T18:28:52
2023-02-21T21:53:43
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59581", "html_url": "https://github.com/tensorflow/tensorflow/pull/59581", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59581.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59581.patch", "merged_at": "2023-02-21T21:53:43" }
This is a follow-up PR of the merged PR https://github.com/tensorflow/tensorflow/pull/59437 for all oneDNN quantization ops: The PR adds boundary (rank) check for min-max tensors of all oneDNN quantized ops, which will prevent NPE (null-pointer exception). With the added check, index access to an element can happen only after the "index" passes the validity check.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59581/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59581/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59580
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59580/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59580/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59580/events
https://github.com/tensorflow/tensorflow/pull/59580
1,573,252,575
PR_kwDOArmXAs5JYBlO
59,580
Runner tests
{ "login": "MichaelHudgins", "id": 30155094, "node_id": "MDQ6VXNlcjMwMTU1MDk0", "avatar_url": "https://avatars.githubusercontent.com/u/30155094?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MichaelHudgins", "html_url": "https://github.com/MichaelHudgins", "followers_url": "https://api.github.com/users/MichaelHudgins/followers", "following_url": "https://api.github.com/users/MichaelHudgins/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelHudgins/gists{/gist_id}", "starred_url": "https://api.github.com/users/MichaelHudgins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelHudgins/subscriptions", "organizations_url": "https://api.github.com/users/MichaelHudgins/orgs", "repos_url": "https://api.github.com/users/MichaelHudgins/repos", "events_url": "https://api.github.com/users/MichaelHudgins/events{/privacy}", "received_events_url": "https://api.github.com/users/MichaelHudgins/received_events", "type": "User", "site_admin": false }
[ { "id": 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
null
[]
null
[]
2023-02-06T20:46:00
2023-02-06T20:47:31
2023-02-06T20:46:26
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59580", "html_url": "https://github.com/tensorflow/tensorflow/pull/59580", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59580.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59580.patch", "merged_at": null }
Testing some runner options
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59580/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59580/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59579
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59579/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59579/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59579/events
https://github.com/tensorflow/tensorflow/pull/59579
1,572,720,199
PR_kwDOArmXAs5JWO_7
59,579
[ARM:TFMOT] Add ARM as trusted partner for TF-MOT PRs
{ "login": "rino20", "id": 13143846, "node_id": "MDQ6VXNlcjEzMTQzODQ2", "avatar_url": "https://avatars.githubusercontent.com/u/13143846?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rino20", "html_url": "https://github.com/rino20", "followers_url": "https://api.github.com/users/rino20/followers", "following_url": "https://api.github.com/users/rino20/following{/other_user}", "gists_url": "https://api.github.com/users/rino20/gists{/gist_id}", "starred_url": "https://api.github.com/users/rino20/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rino20/subscriptions", "organizations_url": "https://api.github.com/users/rino20/orgs", "repos_url": "https://api.github.com/users/rino20/repos", "events_url": "https://api.github.com/users/rino20/events{/privacy}", "received_events_url": "https://api.github.com/users/rino20/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-06T14:53:56
2023-02-07T13:54:39
2023-02-07T13:54:38
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59579", "html_url": "https://github.com/tensorflow/tensorflow/pull/59579", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59579.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59579.patch", "merged_at": "2023-02-07T13:54:38" }
null
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59579/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59579/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59578
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59578/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59578/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59578/events
https://github.com/tensorflow/tensorflow/issues/59578
1,572,607,606
I_kwDOArmXAs5dvBZ2
59,578
E tensorflow/core/grappler/optimizers/meta_optimizer.cc:954] layout failed: INVALID_ARGUMENT: Size of values 0 does not match size of permutation 4 @ fanin shape inEfficientDet-D2/model/stack_0/block_1/drop/dropout/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer
{ "login": "aurelliafirsty", "id": 91813588, "node_id": "U_kgDOBXj21A", "avatar_url": "https://avatars.githubusercontent.com/u/91813588?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aurelliafirsty", "html_url": "https://github.com/aurelliafirsty", "followers_url": "https://api.github.com/users/aurelliafirsty/followers", "following_url": "https://api.github.com/users/aurelliafirsty/following{/other_user}", "gists_url": "https://api.github.com/users/aurelliafirsty/gists{/gist_id}", "starred_url": "https://api.github.com/users/aurelliafirsty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aurelliafirsty/subscriptions", "organizations_url": "https://api.github.com/users/aurelliafirsty/orgs", "repos_url": "https://api.github.com/users/aurelliafirsty/repos", "events_url": "https://api.github.com/users/aurelliafirsty/events{/privacy}", "received_events_url": "https://api.github.com/users/aurelliafirsty/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": 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": "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 @aurelliafirsty,\r\nIn order to expedite the trouble-shooting process, we request you to share the colab link to replicate the issue reported here. Thank you!\t\r\n", "https://colab.research.google.com/drive/14Kczx0SrM_t3zvLagbqtesnfF0gieEtZ?authuser=2", "I'm facing a different error while replicating the above code in TF v2.9. Please find the gist [here](https://colab.sandbox.google.com/gist/synandi/1866e1f3216d56981e4fc1964bcfa597/efficientdet.ipynb). Thank you!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59578\">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/59578\">No</a>\n", "I encountered the same issue a few weeks ago. It was solved by reducing the batch size. I had to go from a batch size of 16 to 4 with 10gb of vram.", "> I encountered the same issue a few weeks ago. It was solved by reducing the batch size. I had to go from a batch size of 16 to 4 with 10gb of vram.\r\n\r\nI am facing the same error, but I could not solve it by reducing the batch size, even to 1. The curious thing is that this error occurs only on Linux, not on Windows. ", "Facing the same error on Colab, strangely enough with a lower batch size the error doesn't actually stop the training, so I'm managing with a batch size of 4 (8 takes up more the 16GB of VRAM in my case)", "I have the same issue here\r\n\r\ntensorflow/core/grappler/optimizers/meta_optimizer.cc:954] layout failed: INVALID_ARGUMENT: Size of values 0 does not match size of permutation 4 @ fanin shape inmodel_5/dropout_10/dropout/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer\r\n\r\nthis is my code\r\n\r\n```\r\nimport tensorflow as tf\r\nfrom tensorflow.keras.models import Model\r\nfrom tensorflow.keras.layers import *\r\n\r\n# Set the input shape of the images (adjust based on the input image size)\r\ninput_shape = (128, 128, 3) # Adjust based on the input image size\r\n\r\n# Set the number of segmentation classes \r\nn_classes = 1 # Number of segmentation classes\r\n\r\n# Define the model architecture\r\ninputs = Input(shape=input_shape) # Define the input layer with the specified input shape\r\n\r\n# Encoder\r\nconv1 = Conv2D(64, (3, 3), activation='relu', padding='same')(inputs) # First convolutional layer with 64 filters\r\nconv1 = BatchNormalization()(conv1) # Apply batch normalization to normalize the activations\r\nconv1 = Conv2D(64, (3, 3), activation='relu', padding='same')(conv1) # Second convolutional layer with 64 filters\r\nconv1 = BatchNormalization()(conv1) # Apply batch normalization to normalize the activations\r\npool1 = MaxPooling2D((2, 2))(conv1) # Max pooling layer with a pool size of (2, 2)\r\n\r\nconv2 = Conv2D(128, (3, 3), activation='relu', padding='same')(pool1) # Convolutional layer with 128 filters\r\nconv2 = BatchNormalization()(conv2) # Apply batch normalization to normalize the activations\r\nconv2 = Conv2D(128, (3, 3), activation='relu', padding='same')(conv2) # Convolutional layer with 128 filters\r\nconv2 = BatchNormalization()(conv2) # Apply batch normalization to normalize the activations\r\npool2 = MaxPooling2D((2, 2))(conv2) # Max pooling layer with a pool size of (2, 2)\r\n\r\nconv3 = Conv2D(256, (3, 3), activation='relu', padding='same')(pool2) # Convolutional layer with 256 filters\r\nconv3 = BatchNormalization()(conv3) # Apply batch normalization to normalize the activations\r\nconv3 = Conv2D(256, (3, 3), activation='relu', padding='same')(conv3) # Convolutional layer with 256 filters\r\nconv3 = BatchNormalization()(conv3) # Apply batch normalization to normalize the activations\r\npool3 = MaxPooling2D((2, 2))(conv3) # Max pooling layer with a pool size of (2, 2)\r\n\r\nconv4 = Conv2D(512, (3, 3), activation='relu', padding='same')(pool3) # Convolutional layer with 512 filters\r\nconv4 = BatchNormalization()(conv4) # Apply batch normalization to normalize the activations\r\nconv4 = Conv2D(512, (3, 3), activation='relu', padding='same')(conv4) # Convolutional layer with 512 filters\r\nconv4 = BatchNormalization()(conv4) # Apply batch normalization to normalize the activations\r\ndrop4 = Dropout(0.5)(conv4) # Apply dropout regularization with a rate of 0.5\r\npool4 = MaxPooling2D((2, 2))(drop4) # Max pooling layer with a pool size of (2, 2)\r\n\r\nconv5 = Conv2D(1024, (3, 3), activation='relu', padding='same')(pool4) # Convolutional layer with 1024 filters\r\nconv5 = BatchNormalization()(conv5) # Apply batch normalization to normalize the activations\r\nconv5 = Conv2D(1024, (3, 3), activation='relu', padding='same')(conv5) # Convolutional layer with 1024 filters\r\nconv5 = BatchNormalization()(conv5) # Apply batch normalization to normalize the activations\r\ndrop5 = Dropout(0.5)(conv5) # Apply dropout regularization with a rate of 0.5\r\n\r\n# Decoder\r\nup6 = concatenate([UpSampling2D((2, 2))(drop5), conv4], axis=-1) # Upsampling layer with a scale factor of (2, 2)\r\nconv6 = Conv2D(512, (3, 3), activation='relu', padding='same')(up6) # Convolutional layer with 512 filters\r\nconv6 = BatchNormalization()(conv6) # Apply batch normalization to normalize the activations\r\nconv6 = Conv2D(512, (3, 3), activation='relu', padding='same')(conv6) # Convolutional layer with 512 filters\r\nconv6 = BatchNormalization()(conv6) # Apply batch normalization to normalize the activations\r\n\r\nup7 = concatenate([UpSampling2D((2, 2))(conv6), conv3], axis=-1) # Upsampling layer with a scale factor of (2, 2)\r\nconv7 = Conv2D(256, (3, 3), activation='relu', padding='same')(up7) # Convolutional layer with 256 filters\r\nconv7 = BatchNormalization()(conv7) # Apply batch normalization to normalize the activations\r\nconv7 = Conv2D(256, (3, 3), activation='relu', padding='same')(conv7) # Convolutional layer with 256 filters\r\nconv7 = BatchNormalization()(conv7) # Apply batch normalization to normalize the activations\r\n\r\nup8 = concatenate([UpSampling2D((2, 2))(conv7), conv2], axis=-1) # Upsampling layer with a scale factor of (2, 2)\r\nconv8 = Conv2D(128, (3, 3), activation='relu', padding='same')(up8) # Convolutional layer with 128 filters\r\nconv8 = BatchNormalization()(conv8) # Apply batch normalization to normalize the activations\r\nconv8 = Conv2D(128, (3, 3), activation='relu', padding='same')(conv8) # Convolutional layer with 128 filters\r\nconv8 = BatchNormalization()(conv8) # Apply batch normalization to normalize the activations\r\n\r\nup9 = concatenate([UpSampling2D((2, 2))(conv8), conv1], axis=-1) # Upsampling layer with a scale factor of (2, 2)\r\nconv9 = Conv2D(64, (3, 3), activation='relu', padding='same')(up9) # Convolutional layer with 64 filters\r\nconv9 = BatchNormalization()(conv9) # Apply batch normalization to normalize the activations\r\nconv9 = Conv2D(64, (3, 3), activation='relu', padding='same')(conv9) # Convolutional layer with 64 filters\r\nconv9 = BatchNormalization()(conv9) # Apply batch normalization to normalize the activations\r\n\r\noutputs = Conv2D(n_classes, (1, 1), activation='softmax')(conv9) # Convolutional layer for output\r\n\r\n# Create the model\r\nmodel = Model(inputs=inputs, outputs=outputs)\r\n\r\n# Print the model summary\r\nmodel.summary()\r\n\r\n\r\n# Set the optimizer for the model\r\noptimizer = tf.keras.optimizers.Adam(lr=1e-4)\r\n\r\n# Compile the model with loss function and metrics\r\nmodel.compile(optimizer=optimizer, loss='binary_crossentropy', metrics=['accuracy'])\r\n\r\nimages_path = '/kaggle/input/coco-2014-dataset-for-yolov3/coco2014/images/val2014'\r\nmasks_path = '/kaggle/working/mask_val_2014'\r\nbatch_size = 8\r\n\r\nval_generator = CustomDataGenerator(images_path, masks_path, batch_size)\r\n\r\n\r\n# Fit the model with the training generator\r\ntrain_steps = len(os.listdir( \"/kaggle/working/mask_train_2014/\"))/batch_size\r\nmodel.fit(train_generator,validation_data = val_generator, steps_per_epoch = train_steps , epochs=20)\r\n```\r\n\r\nAlso to ensure that all the input and output have proper shape I run the code below\r\n\r\n```\r\ndef print_preprocessed_image_shapes(model, generator):\r\n \"\"\"\r\n Print the shapes of preprocessed images generated by the provided model and generator.\r\n\r\n Args:\r\n model (tf.keras.Model): The trained model.\r\n generator (CustomDataGenerator): Instance of the CustomDataGenerator class.\r\n \"\"\"\r\n for i in range(len(generator)):\r\n # Get a batch of preprocessed images from the generator\r\n batch_images, batch_masks = generator[i]\r\n\r\n # Print the shapes of the preprocessed images\r\n for image in batch_images:\r\n print(f\"Shape of preprocessed image: {image.shape}\")\r\n for mask in batch_maskss:\r\n\r\n print(f\"Shape of preprocessed image: {mask.shape}\")\r\n \r\n# Print the shapes of preprocessed images\r\nprint_preprocessed_image_shapes(model, val_generator)\r\n```\r\n\r\n\r\nAs a result of this error, the model was unable to undergo the training process.\r\n\r\n\r\n\r\n\r\n\r\n", "Related to https://github.com/tensorflow/tensorflow/issues/61324 and https://github.com/tensorflow/tensorflow/issues/34499", "> Facing the same error on Colab, strangely enough with a lower batch size the error doesn't actually stop the training, so I'm managing with a batch size of 4 (8 takes up more the 16GB of VRAM in my case)\r\n\r\nFor me it's the same. The training was done successfully even if the error showed up. Does it sound reasonable to continue with this error? ", "> > Facing the same error on Colab, strangely enough with a lower batch size the error doesn't actually stop the training, so I'm managing with a batch size of 4 (8 takes up more the 16GB of VRAM in my case)\n> \n> For me it's the same. The training was done successfully even if the error showed up. Does it sound reasonable to continue with this error? \n\nI've had no problem with the model after training so I think you can continue" ]
2023-02-06T13:51:44
2023-11-06T21:41:30
2023-03-01T08:07: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 2.9.2 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I want to train my dataset with model zoo, which is the EfficientDet D2 model, but I have an error E tensorflow/core/grappler/optimizers/meta_optimizer.cc:954] layout failed: INVALID_ARGUMENT: Size of values 0 does not match size of permutation 4 @ fanin shape inEfficientDet- D2/model/stack_0/block_1/drop/dropout/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer ``` ### Standalone code to reproduce the issue ```shell !python model_main_tf2.py --pipeline_config_path=/mydrive/EfficientDet/data/ssd_efficientdet_d2_768x768_coco17_tpu-8.config --model_dir=/mydrive/EfficientDet/training --alsologtostderr ``` ### Relevant log output ```shell WARNING:tensorflow:Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? W0206 13:32:47.285290 139961433057024 utils.py:82] Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? WARNING:tensorflow:Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? W0206 13:33:01.063754 139961433057024 utils.py:82] Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? WARNING:tensorflow:Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? W0206 13:33:12.740289 139961433057024 utils.py:82] Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? WARNING:tensorflow:Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? W0206 13:33:26.074406 139961433057024 utils.py:82] Gradients do not exist for variables ['stack_6/block_1/expand_bn/gamma:0', 'stack_6/block_1/expand_bn/beta:0', 'stack_6/block_1/depthwise_conv2d/depthwise_kernel:0', 'stack_6/block_1/depthwise_bn/gamma:0', 'stack_6/block_1/depthwise_bn/beta:0', 'stack_6/block_1/project_bn/gamma:0', 'stack_6/block_1/project_bn/beta:0', 'top_bn/gamma:0', 'top_bn/beta:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument? 2023-02-06 13:33:33.925763: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:954] layout failed: INVALID_ARGUMENT: Size of values 0 does not match size of permutation 4 @ fanin shape inEfficientDet-D2/model/stack_0/block_1/drop/dropout/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59578/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59578/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59577
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59577/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59577/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59577/events
https://github.com/tensorflow/tensorflow/issues/59577
1,572,452,729
I_kwDOArmXAs5dubl5
59,577
tf.keras.callbacks.ModelCheckpoint: initial_value_threshold not working, definition with a mistake
{ "login": "agoeroeg", "id": 35458815, "node_id": "MDQ6VXNlcjM1NDU4ODE1", "avatar_url": "https://avatars.githubusercontent.com/u/35458815?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agoeroeg", "html_url": "https://github.com/agoeroeg", "followers_url": "https://api.github.com/users/agoeroeg/followers", "following_url": "https://api.github.com/users/agoeroeg/following{/other_user}", "gists_url": "https://api.github.com/users/agoeroeg/gists{/gist_id}", "starred_url": "https://api.github.com/users/agoeroeg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agoeroeg/subscriptions", "organizations_url": "https://api.github.com/users/agoeroeg/orgs", "repos_url": "https://api.github.com/users/agoeroeg/repos", "events_url": "https://api.github.com/users/agoeroeg/events{/privacy}", "received_events_url": "https://api.github.com/users/agoeroeg/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": 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": 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
[ "@agoeroeg Thanks for reporting the issue.\r\n\r\nI tried to replicate the issue in TF v2.3 and and in the latest TF v2.11 using a [simple MNIST convnet](https://keras.io/examples/vision/mnist_convnet/) .\r\n\r\nI have observed the reported behaviour in TF 2.3 where as in TF 2.11 I was able to get the `initial_value_threshold` work with the given value. \r\n\r\nPlease find the gist of TF 2.3 [here](https://colab.research.google.com/gist/pjpratik/1fb72958bcf1ff03ff61634f9e3cfe03/59577_2-3.ipynb) and gist of TF 2.11 [here](https://colab.research.google.com/gist/pjpratik/6feee0f23ba7e67e1ca3b8a8868e73b5/59577_2-11.ipynb) and let us know if it helps. Thanks!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59577\">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/59577\">No</a>\n" ]
2023-02-06T12:08:28
2023-02-21T12:07:09
2023-02-21T12:07:04
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Documentation Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version '2.3.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 The manual defines initial_value_threshold as "Floating point initial "best" value of the metric to be monitored. Only applies if save_best_value=True. Only overwrites the model weights already saved if the performance of current model is better than this value. " save_best_value is not defined! If save_best_only was meant, then it is not working like the manual says. I have no other idea, how should I get initial_value_threshold work, it is still starting with -inf. ``` ### Standalone code to reproduce the issue ```shell es = EarlyStopping(monitor='val_loss', verbose=1, patience=20) tmpmodelfile = 'models/' + model_config_name + '/temp1_best_model.h5' evaluation = model.evaluate(vd[feature_cols], vd[target], batch_size=batch_size, verbose=2, return_dict=True) #3231/3231 - 2s - loss: 0.0500 - mean_squared_error: 0.0500 mc = ModelCheckpoint(tmpmodelfile, monitor='val_loss', verbose=1, save_best_only=True, initial_value_threshold=evaluation['loss'], save_best_value=True) history = model.fit(td[feature_cols], td[target], validation_data=(vd[feature_cols], vd[target]), batch_size=batch_size, epochs=epochs, verbose=2, callbacks=[es, mc]) Epoch 1/400 Epoch 00001: val_loss improved from inf to 0.04999, saving model to models ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59577/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59577/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59576
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59576/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59576/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59576/events
https://github.com/tensorflow/tensorflow/issues/59576
1,572,380,573
I_kwDOArmXAs5duJ-d
59,576
tf.math.erfinv should outputs NaN instead of inf when receiving an invalid input.
{ "login": "maybeLee", "id": 32777264, "node_id": "MDQ6VXNlcjMyNzc3MjY0", "avatar_url": "https://avatars.githubusercontent.com/u/32777264?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maybeLee", "html_url": "https://github.com/maybeLee", "followers_url": "https://api.github.com/users/maybeLee/followers", "following_url": "https://api.github.com/users/maybeLee/following{/other_user}", "gists_url": "https://api.github.com/users/maybeLee/gists{/gist_id}", "starred_url": "https://api.github.com/users/maybeLee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maybeLee/subscriptions", "organizations_url": "https://api.github.com/users/maybeLee/orgs", "repos_url": "https://api.github.com/users/maybeLee/repos", "events_url": "https://api.github.com/users/maybeLee/events{/privacy}", "received_events_url": "https://api.github.com/users/maybeLee/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 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, @maybeLee \r\n\r\nI was able to replicate the issue on Google Colab and I tried with latest stable version of Tensorflow `2.11` and also tried with `tf-nightly-2.13.0-dev20230207` but it's returning `inf` and for your reference I have added [gist file](https://colab.research.google.com/gist/gaikwadrahul8/dafdf6ccd4560cc198c313fe9ad78551/-59576.ipynb) so it seems like we have to dig more into this issue, we will update soon here and thank you for noticing the issue. Thank you!", "Hi, @gaikwadrahul8 \r\n\r\nI confirm your reproduced result. Following the MatLab's documentation: https://www.mathworks.com/help/matlab/ref/erfinv.html, PyTorch and Scipy's result, I think `tf.math.erfinv` outputs NaN instead of `inf` would be better. The reason is that: `inf` may be converted to other normal values (e.g., `tf.math.reciprocal(tf.math.erfinv(1.1))=0.0`), then the **problem (i.e., tf.math.erfinv receives an invalid input and its output should not be relied on) is hidden.** \r\n\r\nInstead, if erfinv outputs NaN, the problem will not be hidden (e.g., `tf.math.reciprocal(tf.math.erfinv(1.1)=NaN`, which is my expectation when using the tf.math.erfinv).", "Hi, @sachinprasadhs \r\n\r\nCould you please look into this issue? Thank you!", "TensorFlow's behavior with the erfinv function differs from other libraries like PyTorch and SciPy when handling invalid input values.\r\n\r\nTo work around this issue and achieve consistent behavior across libraries, you can use tf.where along with tf.math.is_finite to replace Inf values with NaN. Here's an example:\r\n```\r\nimport tensorflow as tf\r\n\r\ndef erfinv_with_nan(input_tensor):\r\n erfinv_result = tf.math.erfinv(input_tensor)\r\n return tf.where(tf.math.is_finite(erfinv_result), erfinv_result, float('nan'))\r\n\r\ninput_value = tf.Variable(1.1)\r\nresult = erfinv_with_nan(input_value)\r\nprint(result)\r\n\r\n```\r\nThis will output below\r\n`tf.Tensor(nan, shape=(), dtype=float32)`\r\n\r\nThis way, you can ensure that the output is consistent with the behavior observed in other libraries like PyTorch and SciPy.\r\n\r\nPlease note that this is a workaround and not a fix for the inconsistency in TensorFlow's implementation of erfinv. You can consider raising an issue on TensorFlow's GitHub repository to bring it to the developers' attention.", "This should now be fixed with the latest Eigen update.", "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/59576\">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/59576\">No</a>\n" ]
2023-02-06T11:15:37
2023-06-01T17:11:47
2023-06-01T17:11:45
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.9.2, 2.11.0 ### Custom Code Yes ### OS Platform and Distribution _No response_ ### Mobile device _No response_ ### Python version 3.9, 3.8 ### Bazel version N/A ### GCC/Compiler version N/A ### CUDA/cuDNN version N/A ### GPU model and memory N/A ### Current Behaviour? ```shell The valid input range of `erfinv` is [-1, 1] and inputs outside of this range are invalid inputs. For these invalid inputs, [Matlab](https://www.mathworks.com/help/matlab/ref/erfinv.html), spicy, and pytorch output NaN. The current TF version outputs Inf. Here is the colab link to reproduce: https://colab.research.google.com/drive/10J4sDIi07sQ2WILXrVnmO3eMo7Kld-XY?usp=sharing ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf print(tf.math.erfinv(tf.Variable(1.1))) ``` ### Relevant log output ```shell TF: tf.Tensor(inf, shape=(), dtype=float32) torch: tensor(nan) spicy: nan ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59576/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59576/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59575
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59575/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59575/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59575/events
https://github.com/tensorflow/tensorflow/issues/59575
1,572,281,051
I_kwDOArmXAs5dtxrb
59,575
Remove dependency on six
{ "login": "ralbertazzi", "id": 8771599, "node_id": "MDQ6VXNlcjg3NzE1OTk=", "avatar_url": "https://avatars.githubusercontent.com/u/8771599?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ralbertazzi", "html_url": "https://github.com/ralbertazzi", "followers_url": "https://api.github.com/users/ralbertazzi/followers", "following_url": "https://api.github.com/users/ralbertazzi/following{/other_user}", "gists_url": "https://api.github.com/users/ralbertazzi/gists{/gist_id}", "starred_url": "https://api.github.com/users/ralbertazzi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ralbertazzi/subscriptions", "organizations_url": "https://api.github.com/users/ralbertazzi/orgs", "repos_url": "https://api.github.com/users/ralbertazzi/repos", "events_url": "https://api.github.com/users/ralbertazzi/events{/privacy}", "received_events_url": "https://api.github.com/users/ralbertazzi/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": 3911105852, "node_id": "LA_kwDOArmXAs7pHr08", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20PR%20merge", "name": "awaiting PR merge", "color": "4080bf", "default": false, "description": "awaiting PR merge" }, { "id": 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": "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
[ "@ralbertazzi \r\nThis issue is closed when the [PR](https://github.com/tensorflow/tensorflow/pull/59617) is merged.\r\n\r\nThank you !", "I think we have some clean up to do before getting rid of six; let me get back to you on this.", "Hi, thanks for bringing this to our attention! Yeah, we should definitely get rid of six, but we have some lingering places in the codebase where it's still in use, which is my blocker for approving the merge. Feel free to add that to this PR, or we also can get rid of the usages, although no promises on the timeline for that, unfortunately." ]
2023-02-06T10:10:54
2023-02-09T21:00:33
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.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? Tensorflow [relies on six](https://github.com/tensorflow/tensorflow/blob/c746206c1a377fe8f5571511a778993701d10ecc/tensorflow/tools/pip_package/setup.py#L109) as direct dependency. Since Tensorflow [requires Python >= 3.8](https://github.com/tensorflow/tensorflow/blob/c746206c1a377fe8f5571511a778993701d10ecc/tensorflow/tools/pip_package/setup.py#L357) and `six` is a Python 2 and 3 compatibility library, I'm sure it should be possible to remove this unneeded dependency and rely on Python 3 stdlib ### Standalone code to reproduce the issue Irrelevant ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59575/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59575/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59574
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59574/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59574/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59574/events
https://github.com/tensorflow/tensorflow/pull/59574
1,572,095,337
PR_kwDOArmXAs5JUIrE
59,574
Update legalization of tf/tfl pad to the spec
{ "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": 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
[ "need to work with a counterpart change in mlir: https://reviews.llvm.org/D143312", "close this PR as discussed that the choice of using the operand type for those arguments has a better chance to support dynamic-shaped model." ]
2023-02-06T08:00:57
2023-02-23T23:20:22
2023-02-23T21:15:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59574", "html_url": "https://github.com/tensorflow/tensorflow/pull/59574", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59574.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59574.patch", "merged_at": null }
Argument `padding` and `pad_const` are operands in the implementation, but in TOSA spec they are attributes. Change-Id: I63046235597a2d0a6cc89c5178658b251862bd8b
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59574/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59574/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59573
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59573/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59573/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59573/events
https://github.com/tensorflow/tensorflow/issues/59573
1,571,748,432
I_kwDOArmXAs5drvpQ
59,573
tf.distribute.MultiWorkerMirroredStrategy: Program hangs when connecting with gRPC.
{ "login": "kasbah512", "id": 106558129, "node_id": "U_kgDOBlnysQ", "avatar_url": "https://avatars.githubusercontent.com/u/106558129?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kasbah512", "html_url": "https://github.com/kasbah512", "followers_url": "https://api.github.com/users/kasbah512/followers", "following_url": "https://api.github.com/users/kasbah512/following{/other_user}", "gists_url": "https://api.github.com/users/kasbah512/gists{/gist_id}", "starred_url": "https://api.github.com/users/kasbah512/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kasbah512/subscriptions", "organizations_url": "https://api.github.com/users/kasbah512/orgs", "repos_url": "https://api.github.com/users/kasbah512/repos", "events_url": "https://api.github.com/users/kasbah512/events{/privacy}", "received_events_url": "https://api.github.com/users/kasbah512/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": 996845227, "node_id": "MDU6TGFiZWw5OTY4NDUyMjc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat", "name": "comp:dist-strat", "color": "0052cc", "default": false, "description": "Distribution Strategy related issues" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false }
[ { "login": "synandi", "id": 98147397, "node_id": "U_kgDOBdmcRQ", "avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4", "gravatar_id": "", "url": "https://api.github.com/users/synandi", "html_url": "https://github.com/synandi", "followers_url": "https://api.github.com/users/synandi/followers", "following_url": "https://api.github.com/users/synandi/following{/other_user}", "gists_url": "https://api.github.com/users/synandi/gists{/gist_id}", "starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/synandi/subscriptions", "organizations_url": "https://api.github.com/users/synandi/orgs", "repos_url": "https://api.github.com/users/synandi/repos", "events_url": "https://api.github.com/users/synandi/events{/privacy}", "received_events_url": "https://api.github.com/users/synandi/received_events", "type": "User", "site_admin": false } ]
null
[ "I think it is related to the hostlist expansion, fix here #58033, because your nodelist is:\r\n\r\n```\r\nnode[01-04]\r\n```\r\nBut Tensorflow got:\r\n\r\n```\r\nnode1, node2, node3 and node4.\r\n```\r\n\r\nInstead of:\r\n\r\n```\r\nnode01, node02, node03 and node04.\r\n```\r\n", "> I think it is related to the hostlist expansion, fix here #58033, because your nodelist is:\r\n> \r\n> ```\r\n> node[01-04]\r\n> ```\r\n> \r\n> But Tensorflow got:\r\n> \r\n> ```\r\n> node1, node2, node3 and node4.\r\n> ```\r\n> \r\n> Instead of:\r\n> \r\n> ```\r\n> node01, node02, node03 and node04.\r\n> ```\r\n\r\nGood find! That was indeed an issue for me, so updated the file on each device for tensorflow/python/distribute/cluster_resolver/slurm_cluster_resolver.py, but the process still hangs. \r\n\r\nnew output:\r\n\r\n```shell\r\n2023-02-06 03:16:26.130945: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node01:15000\r\n2023-02-06 03:16:26.183769: I tensorflow/core/distributed_runtime/coordination/coordination_service.cc:502] /job:worker/replica:0/task:0 has connected to coordination service. Incarnation: 4221482841861972805\r\n2023-02-06 03:16:26.188286: I tensorflow/core/distributed_runtime/coordination/coordination_service_agent.cc:277] Coordination agent has successfully connected.\r\n2023-02-06 03:16:39.871488: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node02:15000\r\n2023-02-06 03:16:40.414216: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node04:15000\r\n2023-02-06 03:16:45.344939: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node03:15000\r\n```", "Fixed the issue. All host config files except the master on my machines were managed by a service, so on reboot the configurations for ip-hostname associations were removed.", "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/59573\">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/59573\">No</a>\n" ]
2023-02-06T01:49:20
2023-02-07T00:23:30
2023-02-07T00:23:27
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source binary ### Tensorflow Version tensorflow-aarch64 2.11.0 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.10 ### Mobile device _No response_ ### Python version Python 3.10.8 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell The script hangs when defining strategy, and not just for MultiWorkerMirrored, but any of the strategies from tf.distribute. ``` ### Standalone code to reproduce the issue ```shell def train_dense_model(batch_size): # limit imports oustide the call to the function, in order to launch quickly # when using dask import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers import json # model building tf.keras.backend.clear_session() # For easy reset of notebook state. slurm_resolver = tf.distribute.cluster_resolver.SlurmClusterResolver(port_base=15000) tf_config = json.dumps({'cluster' : slurm_resolver.cluster_spec().as_dict()}) os.environ['TF_CONFIG'] = tf_config communication_options = tf.distribute.experimental.CommunicationOptions(bytes_per_pack=50 * 1024 * 1024, timeout_seconds=120.0, implementation=tf.distribute.experimental.CommunicationImplementation.RING ) mirrored_strategy = tf.distribute.MultiWorkerMirroredStrategy(cluster_resolver=slurm_resolver, communication_options=communication_options) ``` ### Relevant log output ```shell 2023-02-05 19:36:27.162088: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node1:15000 2023-02-05 19:36:38.280982: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node2:15000 2023-02-05 19:36:38.691138: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node4:15000 2023-02-05 19:36:40.504698: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:447] Started server with target: grpc://node3:15000 ``` ### Accompanying script for "sbatch script.sh": ```shell #!/bin/bash #SBATCH --job-name=mnist_tf_distributed # job name #SBATCH --nodelist=node[01-04] # number of nodes #SBATCH --ntasks-per-node=1 # number of MPI task per node #SBATCH --cpus-per-task=4 # since nodes have 4 cpus #SBATCH --distribution=block:block # distribution, might be better to have contiguous blocks #SBATCH --time=00:10:00 # job length #SBATCH --exclusive # we reserve the entire node for our job #SBATCH --output=mnist_tf_distr_log_%j.out # std out #SBATCH --error=mnist_tf_distr_log_%j.out # std err unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY set -x cd ${SLURM_SUBMIT_DIR} srun --nodelist=node[01-04] python ./mnist_example.py ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59573/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59573/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59572
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59572/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59572/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59572/events
https://github.com/tensorflow/tensorflow/pull/59572
1,571,480,399
PR_kwDOArmXAs5JSHzu
59,572
R2.2
{ "login": "endeavor66", "id": 50092094, "node_id": "MDQ6VXNlcjUwMDkyMDk0", "avatar_url": "https://avatars.githubusercontent.com/u/50092094?v=4", "gravatar_id": "", "url": "https://api.github.com/users/endeavor66", "html_url": "https://github.com/endeavor66", "followers_url": "https://api.github.com/users/endeavor66/followers", "following_url": "https://api.github.com/users/endeavor66/following{/other_user}", "gists_url": "https://api.github.com/users/endeavor66/gists{/gist_id}", "starred_url": "https://api.github.com/users/endeavor66/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/endeavor66/subscriptions", "organizations_url": "https://api.github.com/users/endeavor66/orgs", "repos_url": "https://api.github.com/users/endeavor66/repos", "events_url": "https://api.github.com/users/endeavor66/events{/privacy}", "received_events_url": "https://api.github.com/users/endeavor66/received_events", "type": "User", "site_admin": false }
[ { "id": 1173072136, "node_id": "MDU6TGFiZWwxMTczMDcyMTM2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL", "name": "size:XL", "color": "adafea", "default": false, "description": "CL Change Size:Extra Large" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-05T15:33:31
2023-02-05T15:34:00
2023-02-05T15:33:57
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59572", "html_url": "https://github.com/tensorflow/tensorflow/pull/59572", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59572.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59572.patch", "merged_at": null }
test, please ignore it
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59572/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59572/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59571
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59571/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59571/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59571/events
https://github.com/tensorflow/tensorflow/issues/59571
1,571,419,279
I_kwDOArmXAs5dqfSP
59,571
cwise_op_gpu_logical_or.cu.pic.o' was not created
{ "login": "dazheyizu", "id": 2655295, "node_id": "MDQ6VXNlcjI2NTUyOTU=", "avatar_url": "https://avatars.githubusercontent.com/u/2655295?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dazheyizu", "html_url": "https://github.com/dazheyizu", "followers_url": "https://api.github.com/users/dazheyizu/followers", "following_url": "https://api.github.com/users/dazheyizu/following{/other_user}", "gists_url": "https://api.github.com/users/dazheyizu/gists{/gist_id}", "starred_url": "https://api.github.com/users/dazheyizu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dazheyizu/subscriptions", "organizations_url": "https://api.github.com/users/dazheyizu/orgs", "repos_url": "https://api.github.com/users/dazheyizu/repos", "events_url": "https://api.github.com/users/dazheyizu/events{/privacy}", "received_events_url": "https://api.github.com/users/dazheyizu/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": "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
[ "@dazheyizu We see that the issue [template]( https://github.com/tensorflow/tensorflow/issues/new?assignees=&labels=&template=tensorflow_issue_template.yaml) has not been filled.\r\n\r\nCould you please do so as it helps us analyze the issue (TF version, steps followed before you ran into this error or stand alone code/colab gist to reproduce the issue faced). Thanks!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59571\">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/59571\">No</a>\n" ]
2023-02-05T12:53:14
2023-02-20T08:07:07
2023-02-20T08:07:04
NONE
null
null
null
./tensorflow/stream_executor/stream.h(2165): warning: type qualifier on return type is meaningless ./tensorflow/stream_executor/stream.h(2168): warning: type qualifier on return type is meaningless ./tensorflow/core/kernels/topk_op_gpu.h(440): warning: integer conversion resulted in a change of sign ERROR: /sources/tensorflow/tensorflow/core/kernels/BUILD:4079:1: output 'tensorflow/core/kernels/_objs/cwise_op_gpu/cwise_op_gpu_logical_or.cu.pic.o' was not created ERROR: /sources/tensorflow/tensorflow/core/kernels/BUILD:4079:1: not all outputs were created or valid Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 2271.782s, Critical Path: 420.46s
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59571/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59571/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59570
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59570/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59570/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59570/events
https://github.com/tensorflow/tensorflow/issues/59570
1,571,217,758
I_kwDOArmXAs5dpuFe
59,570
tf.bitwise.invert throws SystemError when input is uint64 tensor
{ "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": 1097545817, "node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis", "name": "comp:apis", "color": "0052cc", "default": false, "description": "Highlevel API related issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi, @trickiwoo \r\n\r\nApologize for the delay and I was able to replicate the same issue on `Ubuntu 20.04.4 LTS` with `tf-nightly-2.13.0-dev20230206 `and even on Google Colab also, here is [gist file](https://colab.research.google.com/gist/gaikwadrahul8/cfcda98f2a4b78077ead45364fd6a2d3/-59570-tf-nightly.ipynb) for your reference and I have added screenshot below and You are sending invalid inputs to the API and the API returns a custom error back you can refer this [comment](https://github.com/tensorflow/tensorflow/issues/59350#issuecomment-1399378528) on similar error issue. Thank you!\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/217224647-86fb5042-d6d3-4523-961c-b1dfdc01d917.png)\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "@gaikwadrahul8 Thanks for your reply!", "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/59570\">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/59570\">No</a>\n" ]
2023-02-05T03:20:37
2023-02-14T17:29:28
2023-02-14T17:29:25
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.dev20230204 ### Custom Code Yes ### OS Platform and Distribution Ubuntu 20.04.4 LTS ### 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 tf.bitwise.invert throws SystemError when input is uint64 tensor ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf tf.bitwise.invert(tf.constant(-2147483648, dtype=tf.uint64)) ``` ### Relevant log output ```shell SystemError: <class 'tensorflow.python.framework.ops.EagerTensor'> returned a result with an error set ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59570/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59570/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59568
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59568/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59568/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59568/events
https://github.com/tensorflow/tensorflow/pull/59568
1,570,852,615
PR_kwDOArmXAs5JQY7a
59,568
Small refactoring in the tensorflow/python/keras/layers area
{ "login": "joesho112358", "id": 8650931, "node_id": "MDQ6VXNlcjg2NTA5MzE=", "avatar_url": "https://avatars.githubusercontent.com/u/8650931?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joesho112358", "html_url": "https://github.com/joesho112358", "followers_url": "https://api.github.com/users/joesho112358/followers", "following_url": "https://api.github.com/users/joesho112358/following{/other_user}", "gists_url": "https://api.github.com/users/joesho112358/gists{/gist_id}", "starred_url": "https://api.github.com/users/joesho112358/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joesho112358/subscriptions", "organizations_url": "https://api.github.com/users/joesho112358/orgs", "repos_url": "https://api.github.com/users/joesho112358/repos", "events_url": "https://api.github.com/users/joesho112358/events{/privacy}", "received_events_url": "https://api.github.com/users/joesho112358/received_events", "type": "User", "site_admin": false }
[ { "id": 1097546578, "node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras", "name": "comp:keras", "color": "0052cc", "default": false, "description": "Keras related issues" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @joesho112358 It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.\r\n@fchollet, @qlzh727" ]
2023-02-04T09:28:32
2023-02-06T11:59:37
2023-02-06T11:59:37
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59568", "html_url": "https://github.com/tensorflow/tensorflow/pull/59568", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59568.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59568.patch", "merged_at": null }
Noticed a few things I thought were improvements while going through and learning... or trying to! Most of the changes wound up being indents.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59568/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59568/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59567
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59567/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59567/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59567/events
https://github.com/tensorflow/tensorflow/pull/59567
1,570,781,735
PR_kwDOArmXAs5JQKUB
59,567
Add `Tensorflow Forum` as a support group
{ "login": "chunduriv", "id": 74177924, "node_id": "MDQ6VXNlcjc0MTc3OTI0", "avatar_url": "https://avatars.githubusercontent.com/u/74177924?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chunduriv", "html_url": "https://github.com/chunduriv", "followers_url": "https://api.github.com/users/chunduriv/followers", "following_url": "https://api.github.com/users/chunduriv/following{/other_user}", "gists_url": "https://api.github.com/users/chunduriv/gists{/gist_id}", "starred_url": "https://api.github.com/users/chunduriv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chunduriv/subscriptions", "organizations_url": "https://api.github.com/users/chunduriv/orgs", "repos_url": "https://api.github.com/users/chunduriv/repos", "events_url": "https://api.github.com/users/chunduriv/events{/privacy}", "received_events_url": "https://api.github.com/users/chunduriv/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @MarkDaoust Can you please review this PR ? Thank you!" ]
2023-02-04T05:53:41
2023-05-01T16:26:10
2023-03-22T17:27:13
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59567", "html_url": "https://github.com/tensorflow/tensorflow/pull/59567", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59567.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59567.patch", "merged_at": "2023-03-22T17:27:13" }
Add Tensorflow Forum to support groups in the `Contribution guidelines` section
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59567/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59567/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59566
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59566/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59566/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59566/events
https://github.com/tensorflow/tensorflow/pull/59566
1,570,711,228
PR_kwDOArmXAs5JP76y
59,566
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-02-04T02:17:56
2023-02-04T02:26:03
2023-02-04T02:25:10
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59566", "html_url": "https://github.com/tensorflow/tensorflow/pull/59566", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59566.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59566.patch", "merged_at": "2023-02-04T02:25:10" }
#59564 review missed these issues
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59566/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59566/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59565
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59565/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59565/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59565/events
https://github.com/tensorflow/tensorflow/pull/59565
1,570,704,592
PR_kwDOArmXAs5JP6gh
59,565
Update version numbers for TensorFlow 2.12.0-rc0
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-04T02:00:57
2023-02-04T02:13:18
2023-02-04T02:13:18
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59565", "html_url": "https://github.com/tensorflow/tensorflow/pull/59565", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59565.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59565.patch", "merged_at": "2023-02-04T02:13:18" }
Before merging this PR, please double check that it has correctly updated `core/public/version.h`, `tools/pip_package/setup.py`, and `tensorflow/tensorflow.bzl`. Also review the execution notes below: ``` Major: 2 -> 2 Minor: 12 -> 12 Patch: 0 -> 0 WARNING: Below are potentially instances of lingering old version string "2.12.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.12.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.12.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.12.0 tensorflow/tools/ci_build/release/requirements_mac.txt:4:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:28:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:29:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:30:2.12.0 tensorflow/tools/pip_package/setup.py:50:2.12.0 tensorflow/tools/pip_package/setup.py:127:2.12.0 tensorflow/tools/pip_package/setup.py:128:2.12.0 tensorflow/tools/pip_package/setup.py:130:2.12.0 tensorflow/tools/pip_package/redundant_tf_nightly_gpu/setup.cfg:17:2.12.0 tensorflow/tools/pip_package/redundant_tensorflow_gpu/setup.cfg:17:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:183:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:191:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:315:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:355:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:360:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:397:2.12.0 tensorflow/lite/core/c/c_api.h:115:2.12.0 tensorflow/tensorflow.bzl:73:2.12.0 WARNING: Below are potentially instances of lingering old version string "2.12.0" in source directory "tensorflow/" that are not updated by this script. Please check them manually! tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:32:2.12.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:33:2.12.0 tensorflow/tools/tf_sig_build_dockerfiles/devel.requirements.txt:34:2.12.0 tensorflow/tools/ci_build/release/requirements_mac.txt:4:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:28:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:29:2.12.0 tensorflow/tools/ci_build/release/requirements_common.txt:30:2.12.0 tensorflow/tools/pip_package/setup.py:50:2.12.0 tensorflow/tools/pip_package/setup.py:127:2.12.0 tensorflow/tools/pip_package/setup.py:128:2.12.0 tensorflow/tools/pip_package/setup.py:130:2.12.0 tensorflow/tools/pip_package/redundant_tf_nightly_gpu/setup.cfg:17:2.12.0 tensorflow/tools/pip_package/redundant_tensorflow_gpu/setup.cfg:17:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:183:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:191:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:315:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:355:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:360:2.12.0 tensorflow/lite/tools/versioning/runtime_version.cc:397:2.12.0 tensorflow/lite/core/c/c_api.h:115:2.12.0 tensorflow/tensorflow.bzl:73:2.12.0 ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59565/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59565/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59564
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59564/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59564/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59564/events
https://github.com/tensorflow/tensorflow/pull/59564
1,570,683,785
PR_kwDOArmXAs5JP2J4
59,564
Update release notes for TensorFlow 2.12.0
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-04T01:08:41
2023-02-04T01:55:03
2023-02-04T01:55:03
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59564", "html_url": "https://github.com/tensorflow/tensorflow/pull/59564", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59564.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59564.patch", "merged_at": "2023-02-04T01:55:03" }
This PR is intentionally incomplete. One of the Release Owners for 2.12.0 needs to fill in the internal release notes for this version before the PR gets submitted. Click on the :pencil2: icon in the header for `RELEASE.md` under "Files Changed" above.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59564/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59564/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59563
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59563/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59563/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59563/events
https://github.com/tensorflow/tensorflow/issues/59563
1,570,677,006
I_kwDOArmXAs5dnqEO
59,563
Unable to build TensorFlow from source with avx2 configuration.
{ "login": "ke1ding", "id": 110481367, "node_id": "U_kgDOBpXP1w", "avatar_url": "https://avatars.githubusercontent.com/u/110481367?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ke1ding", "html_url": "https://github.com/ke1ding", "followers_url": "https://api.github.com/users/ke1ding/followers", "following_url": "https://api.github.com/users/ke1ding/following{/other_user}", "gists_url": "https://api.github.com/users/ke1ding/gists{/gist_id}", "starred_url": "https://api.github.com/users/ke1ding/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ke1ding/subscriptions", "organizations_url": "https://api.github.com/users/ke1ding/orgs", "repos_url": "https://api.github.com/users/ke1ding/repos", "events_url": "https://api.github.com/users/ke1ding/events{/privacy}", "received_events_url": "https://api.github.com/users/ke1ding/received_events", "type": "User", "site_admin": false }
[ { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 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": "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
[ "Tagging @penpornk and @cantonios.", "Eigen test also breaks after eigen update.\r\n\r\nBefore:\r\nExecuted 4597 out of 4623 tests: 4050 tests pass, 26 fail to build and 547 fail locally.\r\n\r\nAfter:\r\nExecuted 2640 out of 4629 tests: 2227 tests pass, 1989 fail to build and 413 fail locally.", "@ke1ding Thanks for letting me know. Someone must be defining `EIGEN_NO_DEBUG`, and then using asserts somewhere without first including `<cassert>`.\r\n\r\nPreviously, Eigen blindly included the `<cassert>` header unconditionally. However, we found out there are ODR issues with using `assert` in header files (Eigen being a header-only library) that prevent it from compiling with C++20 modules. So Eigen now completely disable asserts if `EIGEN_NO_DEBUG` is defined, and we no longer include the header.\r\n\r\nIt seems like some files within TensorFlow use plain `assert(...)` without first including the header themselves. I'll fix these. In the meantime, you can check your build flags to remove `EIGEN_NO_DEBUG`.", "@cantonios 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/59563\">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/59563\">No</a>\n" ]
2023-02-04T00:55:46
2023-02-06T17:25:04
2023-02-06T17:25:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version master and r2.12 ### Custom Code No ### OS Platform and Distribution Linux Ubuntu 20.04.5 LTS (Focal Fossa) ### Mobile device _No response_ ### Python version Python 3.8.10 ### Bazel version bazel 5.3.0 ### GCC/Compiler version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! Unable to build TensorFlow with avx2 configuration. 6d71dc3ae89012d8c301b07d8635b41cfe6e6850 is the first bad commit Eigen build also breaks after this commit. ``` ### Standalone code to reproduce the issue ```shell python configure.py bazel --bazelrc=.bazelrc build -c opt --copt=-march=haswell tensorflow/tools/pip_package:build_pip_package ``` ### Relevant log output ```shell root@ebed50890c33:~/tensorflow# git bisect good Bisecting: 5 revisions left to test after this (roughly 3 steps) [6d71dc3ae89012d8c301b07d8635b41cfe6e6850] Update Eigen to commit:3460f3558e7b469efb8a225894e21929c8c77629 root@ebed50890c33:~/tensorflow# bazel --bazelrc=.bazelrc build -c opt --copt=-march=haswell tensorflow/tools/pip_package:build_pip_package INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=176 INFO: Reading rc options for 'build' from /root/tensorflow/.bazelrc: Inherited 'common' options: --experimental_repo_remote_exec INFO: Reading rc options for 'build' from /root/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 /root/tensorflow/.tf_configure.bazelrc: 'build' options: --action_env PYTHON_BIN_PATH=/usr/local/bin/python --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/local/bin/python INFO: Reading rc options for 'build' from /root/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: Reading rc options for 'build' from /root/.mkl.bazelrc: 'build' options: --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=0 --copt=-O3 --copt=-Wformat --copt=-Wformat-security --copt=-fstack-protector --copt=-fPIC --copt=-fpic --linkopt=-znoexecstack --linkopt=-zrelro --linkopt=-znow --linkopt=-fstack-protector --config=mkl --copt=-march=skylake-avx512 INFO: Found applicable config definition build:short_logs in file /root/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING INFO: Found applicable config definition build:v2 in file /root/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 INFO: Found applicable config definition build:mkl in file /root/tensorflow/.bazelrc: --define=build_with_mkl=true --define=enable_mkl=true --define=tensorflow_mkldnn_contraction_kernel=0 --define=build_with_openmp=true -c opt INFO: Found applicable config definition build:linux in file /root/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes INFO: Found applicable config definition build:dynamic_kernels in file /root/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (3 packages loaded, 5645 targets configured). INFO: Found 1 target... ERROR: /root/tensorflow/tensorflow/tsl/framework/contraction/BUILD:110:11: Compiling tensorflow/tsl/framework/contraction/eigen_contraction_kernel.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 60 arguments skipped) In file included from ./tensorflow/tsl/framework/fixedpoint/FixedPoint.h:34, from ./tensorflow/tsl/framework/contraction/eigen_contraction_kernel.h:37, from tensorflow/tsl/framework/contraction/eigen_contraction_kernel.cc:16: ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h: In member function 'void Eigen::internal::gemm_pack_lhs<Eigen::QInt16, Index, DataMapper, Pack1, Pack2, Eigen::QInt16, 0, Conjugate, PanelMode>::operator()(Eigen::QInt16*, const DataMapper&, Index, Index, Index, Index)': ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h:176:5: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive] 176 | assert(false && | ^~~~~~ ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h:176:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h: In member function 'void Eigen::internal::gemm_pack_rhs<Eigen::QInt16, Index, DataMapper, nr, 0, Conjugate, PanelMode>::operator()(Eigen::QInt16*, const DataMapper&, Index, Index, Index, Index)': ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h:262:5: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive] 262 | assert(false && | ^~~~~~ ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h: In member function 'void Eigen::internal::gebp_kernel<Eigen::QInt16, Eigen::QInt16, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::operator()(const DataMapper&, const Eigen::QInt16*, const Eigen::QInt16*, Index, Index, Index, Eigen::QInt32, Index, Index, Index, Index)': ./tensorflow/tsl/framework/fixedpoint/MatMatProductAVX2.h:363:5: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive] 363 | assert(false && | ^~~~~~ 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: 9.326s, Critical Path: 6.23s INFO: 179 processes: 115 internal, 64 local. FAILED: Build did NOT complete successfully ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59563/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59563/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59562
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59562/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59562/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59562/events
https://github.com/tensorflow/tensorflow/pull/59562
1,570,616,393
PR_kwDOArmXAs5JPnRx
59,562
Update setup.py on TF release branch with released version of Estimat…
{ "login": "vinila21", "id": 106367904, "node_id": "U_kgDOBlcLoA", "avatar_url": "https://avatars.githubusercontent.com/u/106367904?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vinila21", "html_url": "https://github.com/vinila21", "followers_url": "https://api.github.com/users/vinila21/followers", "following_url": "https://api.github.com/users/vinila21/following{/other_user}", "gists_url": "https://api.github.com/users/vinila21/gists{/gist_id}", "starred_url": "https://api.github.com/users/vinila21/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vinila21/subscriptions", "organizations_url": "https://api.github.com/users/vinila21/orgs", "repos_url": "https://api.github.com/users/vinila21/repos", "events_url": "https://api.github.com/users/vinila21/events{/privacy}", "received_events_url": "https://api.github.com/users/vinila21/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T23:32:07
2023-02-03T23:37:49
2023-02-03T23:37:45
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59562", "html_url": "https://github.com/tensorflow/tensorflow/pull/59562", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59562.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59562.patch", "merged_at": "2023-02-03T23:37:44" }
…or and Keras Update setup.py on TF release branch with released version of Estimator and Keras (#change-est-ver)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59562/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59562/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59561
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59561/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59561/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59561/events
https://github.com/tensorflow/tensorflow/pull/59561
1,570,608,188
PR_kwDOArmXAs5JPlh1
59,561
Update the RBE images to the latest container versions
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-03T23:17:31
2023-02-07T00:00:35
2023-02-06T19:58:03
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59561", "html_url": "https://github.com/tensorflow/tensorflow/pull/59561", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59561.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59561.patch", "merged_at": "2023-02-06T19:58:03" }
This PR was created by a GitHub Actions workflow to update all the SIG Build-based RBE containers to the most recent containers. See: - https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/toolchains/remote_config/configs.bzl - https://github.com/tensorflow/tensorflow/blob/master/.github/workflows/update-rbe.yml
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59561/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59561/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59560
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59560/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59560/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59560/events
https://github.com/tensorflow/tensorflow/issues/59560
1,570,590,555
I_kwDOArmXAs5dnU9b
59,560
conv and fused relu fails on GPUv2 delegate on OpenCL when batch size > 1
{ "login": "brtal", "id": 32280267, "node_id": "MDQ6VXNlcjMyMjgwMjY3", "avatar_url": "https://avatars.githubusercontent.com/u/32280267?v=4", "gravatar_id": "", "url": "https://api.github.com/users/brtal", "html_url": "https://github.com/brtal", "followers_url": "https://api.github.com/users/brtal/followers", "following_url": "https://api.github.com/users/brtal/following{/other_user}", "gists_url": "https://api.github.com/users/brtal/gists{/gist_id}", "starred_url": "https://api.github.com/users/brtal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brtal/subscriptions", "organizations_url": "https://api.github.com/users/brtal/orgs", "repos_url": "https://api.github.com/users/brtal/repos", "events_url": "https://api.github.com/users/brtal/events{/privacy}", "received_events_url": "https://api.github.com/users/brtal/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 2671339633, "node_id": "MDU6TGFiZWwyNjcxMzM5NjMz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate", "name": "TFLiteGpuDelegate", "color": "F71F04", "default": false, "description": "TFLite Gpu delegate issue" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "sirakiin", "id": 4479310, "node_id": "MDQ6VXNlcjQ0NzkzMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4479310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sirakiin", "html_url": "https://github.com/sirakiin", "followers_url": "https://api.github.com/users/sirakiin/followers", "following_url": "https://api.github.com/users/sirakiin/following{/other_user}", "gists_url": "https://api.github.com/users/sirakiin/gists{/gist_id}", "starred_url": "https://api.github.com/users/sirakiin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sirakiin/subscriptions", "organizations_url": "https://api.github.com/users/sirakiin/orgs", "repos_url": "https://api.github.com/users/sirakiin/repos", "events_url": "https://api.github.com/users/sirakiin/events{/privacy}", "received_events_url": "https://api.github.com/users/sirakiin/received_events", "type": "User", "site_admin": false }
[ { "login": "sirakiin", "id": 4479310, "node_id": "MDQ6VXNlcjQ0NzkzMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4479310?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sirakiin", "html_url": "https://github.com/sirakiin", "followers_url": "https://api.github.com/users/sirakiin/followers", "following_url": "https://api.github.com/users/sirakiin/following{/other_user}", "gists_url": "https://api.github.com/users/sirakiin/gists{/gist_id}", "starred_url": "https://api.github.com/users/sirakiin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sirakiin/subscriptions", "organizations_url": "https://api.github.com/users/sirakiin/orgs", "repos_url": "https://api.github.com/users/sirakiin/repos", "events_url": "https://api.github.com/users/sirakiin/events{/privacy}", "received_events_url": "https://api.github.com/users/sirakiin/received_events", "type": "User", "site_admin": false } ]
null
[ "I ran your code, and benchmarked the tflite file using tensorflow/lite/tools/benchmark:benchmark_model --use_gpu=true. It ran fine on my machine. One possible issue might be if you have not synced your runtime tensorflow to include this commit: https://github.com/tensorflow/tensorflow/commit/642ccc0828a3ff8a6187f4d61f0c727602990596", "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/59560\">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/59560\">No</a>\n" ]
2023-02-03T22:54:22
2023-06-03T02:03:30
2023-06-03T02:03:28
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution Android 13 ### Mobile device Google Pixel 5 (and others) ### Python version 3.10.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? Loading this model with the GPUv2 delegate, with OpenCL selected, causes the delegate to fail to prepare when batch = 5. When batch = 1, conv and fused relu works fine. We'd like to understand whether fusioned ops are expected to work with batch > 1. Is this a tflite bug or a known limitation? And if a limitation, what is the recommended workaround? ### Standalone code to reproduce the issue This is the code to produce the tflite model that produces a conv + fused relu, which fails on the GPUv2 delegate on OpenCL. ```python import numpy as np import tensorflow as tf input_shapes = [(5, 224, 224, 3)] def SimpleNet(): nc = 3 model = tf.keras.models.Sequential([ tf.keras.layers.Input(shape=(input_shapes[0][3],) + input_shapes[0][1:3], batch_size=input_shapes[0][0], name='input'), tf.keras.layers.Permute((2, 3, 1)), tf.keras.layers.Conv2D(nc, kernel_size=3, padding="valid", use_bias=True, activation="relu"), tf.keras.layers.Permute((3, 1, 2)), ]) return model tf_model = SimpleNet() tf_model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']) tf_model.summary() converter = tf.lite.TFLiteConverter.from_keras_model(tf_model) converter.optimizations = [tf.lite.Optimize.DEFAULT] tflite_model = converter.convert() # Save the model. with open("conv_relu_batch5.tflite", "wb") as f: f.write(tflite_model) ``` ``` ### Relevant log output ```shell [tflite] TfLiteGpuDelegate Init: Unrecognized Write selector [tflite] Created 0 GPU delegate kernels. [tflite] TfLiteGpuDelegate Prepare: delegate is not initialized [tflite] Node number 3 (TfLiteGpuDelegateV2) failed to prepare. [tflite] Restored original execution plan after delegate application failure. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59560/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59560/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59559
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59559/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59559/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59559/events
https://github.com/tensorflow/tensorflow/issues/59559
1,570,587,514
I_kwDOArmXAs5dnUN6
59,559
Tensorflow Ops for RecordRandomReader
{ "login": "mhorlacher", "id": 37439882, "node_id": "MDQ6VXNlcjM3NDM5ODgy", "avatar_url": "https://avatars.githubusercontent.com/u/37439882?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhorlacher", "html_url": "https://github.com/mhorlacher", "followers_url": "https://api.github.com/users/mhorlacher/followers", "following_url": "https://api.github.com/users/mhorlacher/following{/other_user}", "gists_url": "https://api.github.com/users/mhorlacher/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhorlacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhorlacher/subscriptions", "organizations_url": "https://api.github.com/users/mhorlacher/orgs", "repos_url": "https://api.github.com/users/mhorlacher/repos", "events_url": "https://api.github.com/users/mhorlacher/events{/privacy}", "received_events_url": "https://api.github.com/users/mhorlacher/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 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" } ]
open
false
{ "login": "aaudiber", "id": 3455177, "node_id": "MDQ6VXNlcjM0NTUxNzc=", "avatar_url": "https://avatars.githubusercontent.com/u/3455177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aaudiber", "html_url": "https://github.com/aaudiber", "followers_url": "https://api.github.com/users/aaudiber/followers", "following_url": "https://api.github.com/users/aaudiber/following{/other_user}", "gists_url": "https://api.github.com/users/aaudiber/gists{/gist_id}", "starred_url": "https://api.github.com/users/aaudiber/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aaudiber/subscriptions", "organizations_url": "https://api.github.com/users/aaudiber/orgs", "repos_url": "https://api.github.com/users/aaudiber/repos", "events_url": "https://api.github.com/users/aaudiber/events{/privacy}", "received_events_url": "https://api.github.com/users/aaudiber/received_events", "type": "User", "site_admin": false }
[ { "login": "aaudiber", "id": 3455177, "node_id": "MDQ6VXNlcjM0NTUxNzc=", "avatar_url": "https://avatars.githubusercontent.com/u/3455177?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aaudiber", "html_url": "https://github.com/aaudiber", "followers_url": "https://api.github.com/users/aaudiber/followers", "following_url": "https://api.github.com/users/aaudiber/following{/other_user}", "gists_url": "https://api.github.com/users/aaudiber/gists{/gist_id}", "starred_url": "https://api.github.com/users/aaudiber/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aaudiber/subscriptions", "organizations_url": "https://api.github.com/users/aaudiber/orgs", "repos_url": "https://api.github.com/users/aaudiber/repos", "events_url": "https://api.github.com/users/aaudiber/events{/privacy}", "received_events_url": "https://api.github.com/users/aaudiber/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 RecordRandomReader operation is part of the TensorFlow IO library, which provides support for reading data from various file formats and data sources.\r\n\r\nIf you're encountering issues with the RecordRandomReader operation, here are a few steps you can try to resolve the issue:\r\n\r\nEnsure that the data source specified in the RecordRandomReader operation is correct and accessible.\r\n\r\nCheck that the format of the data source is compatible with the RecordRandomReader operation. The RecordRandomReader operation is designed to read records from a data source, so it's important to make sure that the data source is formatted as records.\r\n\r\nIf you're encountering issues with the TensorFlow IO library, you may want to check the TensorFlow IO GitHub repository for any known issues and potential solutions.\r\n\r\nIf you're encountering an error message or unexpected behavior, try to provide a minimal, reproducible example that demonstrates the issue. This will help others to understand and diagnose the issue more effectively.\r\n\r\nNote: These steps are general and may not resolve the issue for all cases. If the issue persists, I recommend reaching out to TensorFlow support or the TensorFlow user community for further assistance.\r\n\r\n\r\n\r\n\r\n", "Hi @saurabhmj11 - thanks for looking into this. I was refering to `tensorflow.python.lib.io._pywrap_record_io.RandomRecordReader`. Using this reader as part of a graph yields the following exception, which leads me to believe that it does only work in eager mode (or wrapped as py_function). \r\n\r\n![image](https://user-images.githubusercontent.com/37439882/217034586-bddc7521-66e6-4600-826a-43b619e1c03e.png)\r\n" ]
2023-02-03T22:50:25
2023-03-02T21:35:08
null
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Feature Request ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.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? Currently, there is no option for random access reading TFRecord files. This could be extremely useful when dealing with huge (long) datasets that do not fit into memory, e.g. one could create an index of proto byte offsets and then read protos from their offsets. This would enable full shuffling of large datasets. I've discovered a RecordRandomReader class in the Git (although there's no documentation of it on the TF web page) which seems to do just that - except it's not a tf ops, so it can not be added to a tf.data pipeline without wrapping it into py_function first, severely limiting its performance. So, could we have a RecordRandomReader-like tf ops? Thanks!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59559/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59559/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59558
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59558/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59558/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59558/events
https://github.com/tensorflow/tensorflow/pull/59558
1,570,513,917
PR_kwDOArmXAs5JPRAA
59,558
Cherrypicks
{ "login": "fcoUnda", "id": 4316856, "node_id": "MDQ6VXNlcjQzMTY4NTY=", "avatar_url": "https://avatars.githubusercontent.com/u/4316856?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fcoUnda", "html_url": "https://github.com/fcoUnda", "followers_url": "https://api.github.com/users/fcoUnda/followers", "following_url": "https://api.github.com/users/fcoUnda/following{/other_user}", "gists_url": "https://api.github.com/users/fcoUnda/gists{/gist_id}", "starred_url": "https://api.github.com/users/fcoUnda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fcoUnda/subscriptions", "organizations_url": "https://api.github.com/users/fcoUnda/orgs", "repos_url": "https://api.github.com/users/fcoUnda/repos", "events_url": "https://api.github.com/users/fcoUnda/events{/privacy}", "received_events_url": "https://api.github.com/users/fcoUnda/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[ "Please don't do multiple cherrypicks in the same PR as it will be harder to bisect if the build breaks" ]
2023-02-03T21:49:30
2023-02-08T15:01:49
2023-02-04T00:05:33
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59558", "html_url": "https://github.com/tensorflow/tensorflow/pull/59558", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59558.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59558.patch", "merged_at": "2023-02-04T00:05:33" }
Cherrypicks
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59558/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59558/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59557
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59557/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59557/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59557/events
https://github.com/tensorflow/tensorflow/pull/59557
1,570,458,756
PR_kwDOArmXAs5JPEmn
59,557
r2.11 cherry-pick: d80293c5b5e "Fix memory corruption vulnerability in reverse_sequence_op."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T21:11:10
2023-02-04T00:08:51
2023-02-04T00:08:48
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59557", "html_url": "https://github.com/tensorflow/tensorflow/pull/59557", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59557.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59557.patch", "merged_at": "2023-02-04T00:08:48" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/d80293c5b5e403f52df28395a146a75dd3054bb8
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59557/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59557/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59556
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59556/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59556/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59556/events
https://github.com/tensorflow/tensorflow/pull/59556
1,570,452,529
PR_kwDOArmXAs5JPDML
59,556
r2.11 cherry-pick: ba8ae540f2f "Fixes crashes due to buzz input for ApproxTopK"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T21:07:47
2023-02-04T00:08:42
2023-02-04T00:08:39
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59556", "html_url": "https://github.com/tensorflow/tensorflow/pull/59556", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59556.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59556.patch", "merged_at": "2023-02-04T00:08:39" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/ba8ae540f2f18eca795e4cc20bfdf7276aa50bf4
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59556/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59556/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59555
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59555/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59555/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59555/events
https://github.com/tensorflow/tensorflow/pull/59555
1,570,451,286
PR_kwDOArmXAs5JPC6I
59,555
r2.11 cherry-pick: 980b22536ab "Fixes shape inference of LookupTableImportV2 to handle scalar values."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T21:06:55
2023-02-04T00:08:33
2023-02-04T00:08:30
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59555", "html_url": "https://github.com/tensorflow/tensorflow/pull/59555", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59555.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59555.patch", "merged_at": "2023-02-04T00:08:30" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/980b22536abcbbe1b4a5642fc940af33d8c19b69
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59555/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59555/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59554
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59554/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59554/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59554/events
https://github.com/tensorflow/tensorflow/pull/59554
1,570,432,935
PR_kwDOArmXAs5JO-vo
59,554
r2.11 cherry-pick: da66bc6d5ff "Check for unexpected scalars in the shape argument to ParallelConcat."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:54:40
2023-02-04T00:08:25
2023-02-04T00:08:22
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59554", "html_url": "https://github.com/tensorflow/tensorflow/pull/59554", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59554.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59554.patch", "merged_at": "2023-02-04T00:08:22" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/da66bc6d5ff466aee084f9e7397980a24890cd15
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59554/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59554/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59553
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59553/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59553/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59553/events
https://github.com/tensorflow/tensorflow/pull/59553
1,570,424,818
PR_kwDOArmXAs5JO86Z
59,553
r2.11 cherry-pick: 08b8e18643d "Fix security vulnerability in EditDistance op shape function."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:49:01
2023-02-04T00:09:06
2023-02-04T00:09:02
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59553", "html_url": "https://github.com/tensorflow/tensorflow/pull/59553", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59553.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59553.patch", "merged_at": "2023-02-04T00:09:02" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/08b8e18643d6dcde00890733b270ff8d9960c56c
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59553/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59553/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59552
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59552/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59552/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59552/events
https://github.com/tensorflow/tensorflow/pull/59552
1,570,421,126
PR_kwDOArmXAs5JO8FC
59,552
r2.11 cherry-pick: 8ae76cf085f "[Tensorflow] Fix security vulnerability with DenseBincountOp"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:46:25
2023-02-04T00:08:06
2023-02-04T00:08:03
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59552", "html_url": "https://github.com/tensorflow/tensorflow/pull/59552", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59552.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59552.patch", "merged_at": "2023-02-04T00:08:03" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/8ae76cf085f4be26295d2ecf2081e759e04b8acf
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59552/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59552/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59551
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59551/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59551/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59551/events
https://github.com/tensorflow/tensorflow/pull/59551
1,570,416,873
PR_kwDOArmXAs5JO7Hp
59,551
r2.11 cherry-pick: 239139d2ae6 "Fixing null pointer read in TensorArrayConcat when the step container is missing."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:43:12
2023-02-04T00:07:57
2023-02-04T00:07:54
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59551", "html_url": "https://github.com/tensorflow/tensorflow/pull/59551", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59551.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59551.patch", "merged_at": "2023-02-04T00:07:54" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/239139d2ae6a81ae9ba499ad78b56d9b2931538a
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59551/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59551/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59550
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59550/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59550/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59550/events
https://github.com/tensorflow/tensorflow/pull/59550
1,570,413,813
PR_kwDOArmXAs5JO6bt
59,550
r2.11 cherry-pick: 62efa487713 "[TFG] Fix index out of bound issue in TFG shape inference pass."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:41:12
2023-02-04T00:07:49
2023-02-04T00:07:46
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59550", "html_url": "https://github.com/tensorflow/tensorflow/pull/59550", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59550.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59550.patch", "merged_at": "2023-02-04T00:07:46" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/62efa487713692ef22b055f19d622f4ab6d2ab7e
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59550/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59550/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59549
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59549/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59549/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59549/events
https://github.com/tensorflow/tensorflow/pull/59549
1,570,409,373
PR_kwDOArmXAs5JO5fE
59,549
r2.11 cherry-pick: e3c92d19265 "Fix histogram overflow vulnerability."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:37:08
2023-02-04T00:09:14
2023-02-04T00:09:11
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59549", "html_url": "https://github.com/tensorflow/tensorflow/pull/59549", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59549.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59549.patch", "merged_at": "2023-02-04T00:09:11" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/e3c92d192659e140d13e1c6665894a7a045a1bf4
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59549/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59549/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59547
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59547/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59547/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59547/events
https://github.com/tensorflow/tensorflow/pull/59547
1,570,398,789
PR_kwDOArmXAs5JO3Mk
59,547
r2.11 cherry-pick: ee004b18b97 "Add out of bounds array check to dynamic_stitch_op."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:26:15
2023-02-04T00:07:33
2023-02-04T00:07:29
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59547", "html_url": "https://github.com/tensorflow/tensorflow/pull/59547", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59547.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59547.patch", "merged_at": "2023-02-04T00:07:29" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/ee004b18b976eeb5a758020af8880236cd707d05
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59547/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59547/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59546
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59546/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59546/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59546/events
https://github.com/tensorflow/tensorflow/pull/59546
1,570,396,543
PR_kwDOArmXAs5JO2sq
59,546
r2.11 cherry-pick: 8dc723fcdd1 "Fix integer overflow for multiframe gifs."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:24:18
2023-02-04T00:07:24
2023-02-04T00:07:21
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59546", "html_url": "https://github.com/tensorflow/tensorflow/pull/59546", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59546.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59546.patch", "merged_at": "2023-02-04T00:07:21" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/8dc723fcdd1a6127d6c970bd2ecb18b019a1a58d
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59546/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59546/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59545
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59545/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59545/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59545/events
https://github.com/tensorflow/tensorflow/pull/59545
1,570,394,588
PR_kwDOArmXAs5JO2Rp
59,545
r2.11 cherry-pick: 34f8368c535 "Check filter_input_channel > 0 in conv kernel."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:22:16
2023-02-04T00:09:23
2023-02-04T00:09:19
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59545", "html_url": "https://github.com/tensorflow/tensorflow/pull/59545", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59545.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59545.patch", "merged_at": "2023-02-04T00:09:19" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/34f8368c535253f5c9cb3a303297743b62442aaa
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59545/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59545/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59544
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59544/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59544/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59544/events
https://github.com/tensorflow/tensorflow/pull/59544
1,570,391,288
PR_kwDOArmXAs5JO1i-
59,544
r2.11 cherry-pick: 6d423b8bcc9 "Quick fix for a vuln in printing empty tensors."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:19:02
2023-02-04T00:07:08
2023-02-04T00:07:05
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59544", "html_url": "https://github.com/tensorflow/tensorflow/pull/59544", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59544.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59544.patch", "merged_at": "2023-02-04T00:07:05" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/6d423b8bcc9aa9f5554dc988c1c16d038b508df1
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59544/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59544/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59543
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59543/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59543/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59543/events
https://github.com/tensorflow/tensorflow/pull/59543
1,570,389,292
PR_kwDOArmXAs5JO1HB
59,543
r2.11 cherry-pick: ee50d1e00f8 "Fix security vulnerability with FractionalMax(AVG)Pool with illegal pooling_ratio"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:17:29
2023-02-04T00:09:31
2023-02-04T00:09:28
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59543", "html_url": "https://github.com/tensorflow/tensorflow/pull/59543", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59543.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59543.patch", "merged_at": "2023-02-04T00:09:28" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/ee50d1e00f81f62a4517453f721c634bbb478307
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59543/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59543/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59542
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59542/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59542/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59542/events
https://github.com/tensorflow/tensorflow/pull/59542
1,570,381,041
PR_kwDOArmXAs5JOzTW
59,542
r2.11 cherry-pick: 0bf8d115393 "Fix sparse tensor to CSR batch index OOB error."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:10:06
2023-03-03T23:24:23
2023-02-04T00:06:47
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59542", "html_url": "https://github.com/tensorflow/tensorflow/pull/59542", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59542.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59542.patch", "merged_at": "2023-02-04T00:06:47" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/0bf8d1153937a88740772f930577e123a39e1d5e
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59542/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59542/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59541
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59541/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59541/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59541/events
https://github.com/tensorflow/tensorflow/pull/59541
1,570,379,261
PR_kwDOArmXAs5JOy6x
59,541
r2.11 cherry-pick: e4d8b988581 "Add overflow test for num_results*dim to sobol_sample op"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:08:20
2023-02-04T00:09:45
2023-02-04T00:09:42
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59541", "html_url": "https://github.com/tensorflow/tensorflow/pull/59541", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59541.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59541.patch", "merged_at": "2023-02-04T00:09:42" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/e4d8b9885813f1b93386cf2a7500e6e3f706973a
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59541/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59541/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59540
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59540/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59540/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59540/events
https://github.com/tensorflow/tensorflow/pull/59540
1,570,375,295
PR_kwDOArmXAs5JOyDm
59,540
r2.11 cherry-pick: 7b174a0f2e4 "Fix asan issue with QuantizeAndDequantizeV2/V3/V4/V4Grad shape inference functions."
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:04:34
2023-02-04T00:06:19
2023-02-04T00:06:13
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59540", "html_url": "https://github.com/tensorflow/tensorflow/pull/59540", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59540.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59540.patch", "merged_at": "2023-02-04T00:06:13" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/7b174a0f2e40ff3f3aa957aecddfd5aaae35eccb
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59540/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59540/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59539
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59539/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59539/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59539/events
https://github.com/tensorflow/tensorflow/pull/59539
1,570,373,977
PR_kwDOArmXAs5JOxxG
59,539
r2.11 cherry-pick: 948fe6369a5 "Fix nn.conv3d_transpose security vulnerability with illegal input shape"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:03:23
2023-02-04T00:06:31
2023-02-04T00:06:28
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59539", "html_url": "https://github.com/tensorflow/tensorflow/pull/59539", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59539.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59539.patch", "merged_at": "2023-02-04T00:06:28" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/948fe6369a5711d4b4568ea9bbf6015c6dfb77e2
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59539/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59539/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59538
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59538/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59538/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59538/events
https://github.com/tensorflow/tensorflow/pull/59538
1,570,372,825
PR_kwDOArmXAs5JOxhs
59,538
r2.11 cherry-pick: ddaac2bdd09 "Add inputs check for AvgPoolGrad"
{ "login": "tensorflow-jenkins", "id": 16359713, "node_id": "MDQ6VXNlcjE2MzU5NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tensorflow-jenkins", "html_url": "https://github.com/tensorflow-jenkins", "followers_url": "https://api.github.com/users/tensorflow-jenkins/followers", "following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}", "gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions", "organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs", "repos_url": "https://api.github.com/users/tensorflow-jenkins/repos", "events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
[]
2023-02-03T20:02:34
2023-02-04T00:06:02
2023-02-04T00:05:57
COLLABORATOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59538", "html_url": "https://github.com/tensorflow/tensorflow/pull/59538", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59538.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59538.patch", "merged_at": "2023-02-04T00:05:57" }
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/ddaac2bdd099bec5d7923dea45276a7558217e5b
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59538/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59538/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59537
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59537/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59537/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59537/events
https://github.com/tensorflow/tensorflow/issues/59537
1,570,252,376
I_kwDOArmXAs5dmCZY
59,537
TFlite minimal example failing on latest tensorflow repo
{ "login": "nyadla-sys", "id": 26728802, "node_id": "MDQ6VXNlcjI2NzI4ODAy", "avatar_url": "https://avatars.githubusercontent.com/u/26728802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nyadla-sys", "html_url": "https://github.com/nyadla-sys", "followers_url": "https://api.github.com/users/nyadla-sys/followers", "following_url": "https://api.github.com/users/nyadla-sys/following{/other_user}", "gists_url": "https://api.github.com/users/nyadla-sys/gists{/gist_id}", "starred_url": "https://api.github.com/users/nyadla-sys/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nyadla-sys/subscriptions", "organizations_url": "https://api.github.com/users/nyadla-sys/orgs", "repos_url": "https://api.github.com/users/nyadla-sys/repos", "events_url": "https://api.github.com/users/nyadla-sys/events{/privacy}", "received_events_url": "https://api.github.com/users/nyadla-sys/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" }, { "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": 2788658540, "node_id": "MDU6TGFiZWwyNzg4NjU4NTQw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support", "name": "comp:lite-support", "color": "4A5F20", "default": false, "description": "Lite support library related issues" } ]
closed
false
{ "login": "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, @nyadla-sys \r\n\r\nApologize for the delay and I was able to replicate the issue and I'm also getting the same error which you mentioned in the above error log and before that while following the [TensorFlow Lite C++ minimal example](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal) instructions I encountered issue with `libffi7` package because since Ubuntu 20.10 comes with `libff8` instead of `libffi7` I installed `libffi7` by manually downloading the deb package from ubuntu focal (20.04) By following below steps\r\n\r\n```\r\n1. wget http://es.archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb\r\n2. sudo dpkg -i libffi7_3.3-4_amd64.deb\r\n```\r\n\r\nI have added error screenshot for your reference below and I tried on `Ubuntu 20.04`:\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/217042180-24524686-61f6-49c0-8643-81d9de2e8400.png)\r\n\r\nIt seems like we have to dig more into this issue to find out the root cause for this issue so we'll update soon here and thank you for noticing this issue, I really appreciate it. Thank you!\r\n\r\n", "Hi, @sachinprasadhs \r\n\r\nCould you please look into this issue ? Thank you!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Issue is still reproducible\r\n \r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "This is certainly frustrating, as the issue has been assigned to someone at Google, but the issue remains unresolved and the Google bot has moved it to a stalled state.", "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/59537\">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/59537\">No</a>\n", "Hi, Apologies for the delayed response and for the stale label due to bot action, I was facing session crash on colab when the process is at 92%.\r\nHowever, I can successfully able to build using my local linux instance using latest code and by following the steps mentioned here https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal\r\n<img width=\"1496\" alt=\"image\" src=\"https://user-images.githubusercontent.com/73069040/222005070-1ddd3ecb-a1c8-44c6-8a1f-b2343deab35d.png\">\r\nLet us know if you still need any further assistance. Thanks!\r\n", "Its working now.\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/59537\">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/59537\">No</a>\n", "Can this issue be re-opened? I am experiencing exactly the same error with the latest TF.\r\n\r\nI followed the minimal instructions from https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal. I got the same error on two systems, WSL with Ubuntu 22.04 and Linux system with Ubuntu 20.04.\r\n\r\n## Error on WSL with Ubuntu 22.04\r\n\r\n```\r\n[100%] Linking CXX executable minimal\r\n/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(register.cc.o): in function `tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()':\r\nregister.cc:(.text+0x99): undefined reference to `tflite::ops::builtin::Register_ABS()'\r\n/usr/bin/ld: register.cc:(.text+0xbd): undefined reference to `tflite::ops::builtin::Register_HARD_SWISH()'\r\n/usr/bin/ld: register.cc:(.text+0xdb): undefined reference to `tflite::ops::builtin::Register_RELU()'\r\n/usr/bin/ld: register.cc:(.text+0xff): undefined reference to `tflite::ops::builtin::Register_RELU_N1_TO_1()'\r\n/usr/bin/ld: register.cc:(.text+0x11d): undefined reference to `tflite::ops::builtin::Register_RELU_0_TO_1()'\r\n/usr/bin/ld: register.cc:(.text+0x13b): undefined reference to `tflite::ops::builtin::Register_RELU6()'\r\n/usr/bin/ld: register.cc:(.text+0x15f): undefined reference to `tflite::ops::builtin::Register_TANH()'\r\n/usr/bin/ld: register.cc:(.text+0x183): undefined reference to `tflite::ops::builtin::Register_LOGISTIC()'\r\n/usr/bin/ld: register.cc:(.text+0x1a7): undefined reference to `tflite::ops::builtin::Register_AVERAGE_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x1cb): undefined reference to `tflite::ops::builtin::Register_MAX_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x1ef): undefined reference to `tflite::ops::builtin::Register_L2_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x20d): undefined reference to `tflite::ops::builtin::Register_CONV_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x231): undefined reference to `tflite::ops::builtin::Register_DEPTHWISE_CONV_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x255): undefined reference to `tflite::ops::builtin::Register_SVDF()'\r\n/usr/bin/ld: register.cc:(.text+0x279): undefined reference to `tflite::ops::builtin::Register_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x29d): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x2c1): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x2e5): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP()'\r\n/usr/bin/ld: register.cc:(.text+0x309): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP_SPARSE()'\r\n/usr/bin/ld: register.cc:(.text+0x327): undefined reference to `tflite::ops::builtin::Register_FULLY_CONNECTED()'\r\n/usr/bin/ld: register.cc:(.text+0x34b): undefined reference to `tflite::ops::builtin::Register_LSH_PROJECTION()'\r\n/usr/bin/ld: register.cc:(.text+0x369): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_LOOKUP()'\r\n/usr/bin/ld: register.cc:(.text+0x387): undefined reference to `tflite::ops::builtin::Register_SOFTMAX()'\r\n/usr/bin/ld: register.cc:(.text+0x3ab): undefined reference to `tflite::ops::builtin::Register_CONCATENATION()'\r\n/usr/bin/ld: register.cc:(.text+0x3cf): undefined reference to `tflite::ops::builtin::Register_ADD()'\r\n/usr/bin/ld: register.cc:(.text+0x3f3): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_BATCH_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x417): undefined reference to `tflite::ops::builtin::Register_BATCH_TO_SPACE_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x43b): undefined reference to `tflite::ops::builtin::Register_MUL()'\r\n/usr/bin/ld: register.cc:(.text+0x45f): undefined reference to `tflite::ops::builtin::Register_L2_NORMALIZATION()'\r\n/usr/bin/ld: register.cc:(.text+0x483): undefined reference to `tflite::ops::builtin::Register_LOCAL_RESPONSE_NORMALIZATION()'\r\n/usr/bin/ld: register.cc:(.text+0x4a1): undefined reference to `tflite::ops::builtin::Register_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x4c5): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x4e9): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x50d): undefined reference to `tflite::ops::builtin::Register_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0x531): undefined reference to `tflite::ops::builtin::Register_PADV2()'\r\n/usr/bin/ld: register.cc:(.text+0x555): undefined reference to `tflite::ops::builtin::Register_RESHAPE()'\r\n/usr/bin/ld: register.cc:(.text+0x573): undefined reference to `tflite::ops::builtin::Register_RESIZE_BILINEAR()'\r\n/usr/bin/ld: register.cc:(.text+0x597): undefined reference to `tflite::ops::builtin::Register_RESIZE_NEAREST_NEIGHBOR()'\r\n/usr/bin/ld: register.cc:(.text+0x5bb): undefined reference to `tflite::ops::builtin::Register_SKIP_GRAM()'\r\n/usr/bin/ld: register.cc:(.text+0x5d9): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_DEPTH()'\r\n/usr/bin/ld: register.cc:(.text+0x5fd): undefined reference to `tflite::ops::builtin::Register_DEPTH_TO_SPACE()'\r\n/usr/bin/ld: register.cc:(.text+0x621): undefined reference to `tflite::ops::builtin::Register_GATHER()'\r\n/usr/bin/ld: register.cc:(.text+0x645): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE()'\r\n/usr/bin/ld: register.cc:(.text+0x669): undefined reference to `tflite::ops::builtin::Register_MEAN()'\r\n/usr/bin/ld: register.cc:(.text+0x68d): undefined reference to `tflite::ops::builtin::Register_DIV()'\r\n/usr/bin/ld: register.cc:(.text+0x6b1): undefined reference to `tflite::ops::builtin::Register_SUB()'\r\n/usr/bin/ld: register.cc:(.text+0x6d5): undefined reference to `tflite::ops::builtin::Register_SPLIT()'\r\n/usr/bin/ld: register.cc:(.text+0x6f9): undefined reference to `tflite::ops::builtin::Register_SPLIT_V()'\r\n/usr/bin/ld: register.cc:(.text+0x71d): undefined reference to `tflite::ops::builtin::Register_SQUEEZE()'\r\n/usr/bin/ld: register.cc:(.text+0x741): undefined reference to `tflite::ops::builtin::Register_STRIDED_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0x765): undefined reference to `tflite::ops::builtin::Register_EXP()'\r\n/usr/bin/ld: register.cc:(.text+0x789): undefined reference to `tflite::ops::builtin::Register_TOPK_V2()'\r\n/usr/bin/ld: register.cc:(.text+0x7ad): undefined reference to `tflite::ops::builtin::Register_LOG()'\r\n/usr/bin/ld: register.cc:(.text+0x7d1): undefined reference to `tflite::ops::builtin::Register_LOG_SOFTMAX()'\r\n/usr/bin/ld: register.cc:(.text+0x7f5): undefined reference to `tflite::ops::builtin::Register_CAST()'\r\n/usr/bin/ld: register.cc:(.text+0x819): undefined reference to `tflite::ops::builtin::Register_DEQUANTIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x83d): undefined reference to `tflite::ops::builtin::Register_PRELU()'\r\n/usr/bin/ld: register.cc:(.text+0x85b): undefined reference to `tflite::ops::builtin::Register_MAXIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x87f): undefined reference to `tflite::ops::builtin::Register_MINIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x8a3): undefined reference to `tflite::ops::builtin::Register_ARG_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0x8c7): undefined reference to `tflite::ops::builtin::Register_ARG_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0x8eb): undefined reference to `tflite::ops::builtin::Register_GREATER()'\r\n/usr/bin/ld: register.cc:(.text+0x90f): undefined reference to `tflite::ops::builtin::Register_GREATER_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0x933): undefined reference to `tflite::ops::builtin::Register_LESS()'\r\n/usr/bin/ld: register.cc:(.text+0x957): undefined reference to `tflite::ops::builtin::Register_LESS_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0x97b): undefined reference to `tflite::ops::builtin::Register_FLOOR()'\r\n/usr/bin/ld: register.cc:(.text+0x999): undefined reference to `tflite::ops::builtin::Register_CEIL()'\r\n/usr/bin/ld: register.cc:(.text+0x9b7): undefined reference to `tflite::ops::builtin::Register_ROUND()'\r\n/usr/bin/ld: register.cc:(.text+0x9d5): undefined reference to `tflite::ops::builtin::Register_NEG()'\r\n/usr/bin/ld: register.cc:(.text+0x9f3): undefined reference to `tflite::ops::builtin::Register_SELECT()'\r\n/usr/bin/ld: register.cc:(.text+0xa17): undefined reference to `tflite::ops::builtin::Register_SELECT_V2()'\r\n/usr/bin/ld: register.cc:(.text+0xa3b): undefined reference to `tflite::ops::builtin::Register_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0xa5f): undefined reference to `tflite::ops::builtin::Register_SIN()'\r\n/usr/bin/ld: register.cc:(.text+0xa7d): undefined reference to `tflite::ops::builtin::Register_COS()'\r\n/usr/bin/ld: register.cc:(.text+0xa9b): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE_CONV()'\r\n/usr/bin/ld: register.cc:(.text+0xabf): undefined reference to `tflite::ops::builtin::Register_TILE()'\r\n/usr/bin/ld: register.cc:(.text+0xae3): undefined reference to `tflite::ops::builtin::Register_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0xb07): undefined reference to `tflite::ops::builtin::Register_REDUCE_PROD()'\r\n/usr/bin/ld: register.cc:(.text+0xb2b): undefined reference to `tflite::ops::builtin::Register_REDUCE_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0xb4f): undefined reference to `tflite::ops::builtin::Register_REDUCE_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0xb73): undefined reference to `tflite::ops::builtin::Register_REDUCE_ANY()'\r\n/usr/bin/ld: register.cc:(.text+0xb91): undefined reference to `tflite::ops::builtin::Register_REDUCE_ALL()'\r\n/usr/bin/ld: register.cc:(.text+0xbaf): undefined reference to `tflite::ops::builtin::Register_EXPAND_DIMS()'\r\n/usr/bin/ld: register.cc:(.text+0xbcd): undefined reference to `tflite::ops::builtin::Register_SPARSE_TO_DENSE()'\r\n/usr/bin/ld: register.cc:(.text+0xbf1): undefined reference to `tflite::ops::builtin::Register_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0xc15): undefined reference to `tflite::ops::builtin::Register_NOT_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0xc39): undefined reference to `tflite::ops::builtin::Register_SQRT()'\r\n/usr/bin/ld: register.cc:(.text+0xc57): undefined reference to `tflite::ops::builtin::Register_RSQRT()'\r\n/usr/bin/ld: register.cc:(.text+0xc7b): undefined reference to `tflite::ops::builtin::Register_SHAPE()'\r\n/usr/bin/ld: register.cc:(.text+0xc99): undefined reference to `tflite::ops::builtin::Register_RANK()'\r\n/usr/bin/ld: register.cc:(.text+0xcb7): undefined reference to `tflite::ops::builtin::Register_POW()'\r\n/usr/bin/ld: register.cc:(.text+0xcd5): undefined reference to `tflite::ops::builtin::Register_FAKE_QUANT()'\r\n/usr/bin/ld: register.cc:(.text+0xcf9): undefined reference to `tflite::ops::builtin::Register_PACK()'\r\n/usr/bin/ld: register.cc:(.text+0xd1d): undefined reference to `tflite::ops::builtin::Register_ONE_HOT()'\r\n/usr/bin/ld: register.cc:(.text+0xd3b): undefined reference to `tflite::ops::builtin::Register_LOGICAL_OR()'\r\n/usr/bin/ld: register.cc:(.text+0xd59): undefined reference to `tflite::ops::builtin::Register_LOGICAL_AND()'\r\n/usr/bin/ld: register.cc:(.text+0xd77): undefined reference to `tflite::ops::builtin::Register_LOGICAL_NOT()'\r\n/usr/bin/ld: register.cc:(.text+0xd95): undefined reference to `tflite::ops::builtin::Register_UNPACK()'\r\n/usr/bin/ld: register.cc:(.text+0xdb9): undefined reference to `tflite::ops::builtin::Register_FLOOR_DIV()'\r\n/usr/bin/ld: register.cc:(.text+0xddd): undefined reference to `tflite::ops::builtin::Register_SQUARE()'\r\n/usr/bin/ld: register.cc:(.text+0xdfb): undefined reference to `tflite::ops::builtin::Register_ZEROS_LIKE()'\r\n/usr/bin/ld: register.cc:(.text+0xe19): undefined reference to `tflite::ops::builtin::Register_FLOOR_MOD()'\r\n/usr/bin/ld: register.cc:(.text+0xe3d): undefined reference to `tflite::ops::builtin::Register_RANGE()'\r\n/usr/bin/ld: register.cc:(.text+0xe61): undefined reference to `tflite::ops::builtin::Register_LEAKY_RELU()'\r\n/usr/bin/ld: register.cc:(.text+0xe85): undefined reference to `tflite::ops::builtin::Register_SQUARED_DIFFERENCE()'\r\n/usr/bin/ld: register.cc:(.text+0xea9): undefined reference to `tflite::ops::builtin::Register_FILL()'\r\n/usr/bin/ld: register.cc:(.text+0xecd): undefined reference to `tflite::ops::builtin::Register_MIRROR_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0xef1): undefined reference to `tflite::ops::builtin::Register_UNIQUE()'\r\n/usr/bin/ld: register.cc:(.text+0xf0f): undefined reference to `tflite::ops::builtin::Register_REVERSE_V2()'\r\n/usr/bin/ld: register.cc:(.text+0xf33): undefined reference to `tflite::ops::builtin::Register_ADD_N()'\r\n/usr/bin/ld: register.cc:(.text+0xf51): undefined reference to `tflite::ops::builtin::Register_GATHER_ND()'\r\n/usr/bin/ld: register.cc:(.text+0xf75): undefined reference to `tflite::ops::builtin::Register_WHERE()'\r\n/usr/bin/ld: register.cc:(.text+0xf99): undefined reference to `tflite::ops::builtin::Register_ELU()'\r\n/usr/bin/ld: register.cc:(.text+0xfb7): undefined reference to `tflite::ops::builtin::Register_REVERSE_SEQUENCE()'\r\n/usr/bin/ld: register.cc:(.text+0xfd5): undefined reference to `tflite::ops::builtin::Register_MATRIX_DIAG()'\r\n/usr/bin/ld: register.cc:(.text+0xff3): undefined reference to `tflite::ops::builtin::Register_QUANTIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x1017): undefined reference to `tflite::ops::builtin::Register_MATRIX_SET_DIAG()'\r\n/usr/bin/ld: register.cc:(.text+0x1035): undefined reference to `tflite::ops::builtin::Register_IF()'\r\n/usr/bin/ld: register.cc:(.text+0x1053): undefined reference to `tflite::ops::builtin::Register_WHILE()'\r\n/usr/bin/ld: register.cc:(.text+0x1071): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V4()'\r\n/usr/bin/ld: register.cc:(.text+0x108f): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V5()'\r\n/usr/bin/ld: register.cc:(.text+0x10ad): undefined reference to `tflite::ops::builtin::Register_SCATTER_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x10cb): undefined reference to `tflite::ops::builtin::Register_DENSIFY()'\r\n/usr/bin/ld: register.cc:(.text+0x10e9): undefined reference to `tflite::ops::builtin::Register_SEGMENT_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0x1107): undefined reference to `tflite::ops::builtin::Register_BATCH_MATMUL()'\r\n/usr/bin/ld: register.cc:(.text+0x112b): undefined reference to `tflite::ops::builtin::Register_CUMSUM()'\r\n/usr/bin/ld: register.cc:(.text+0x1149): undefined reference to `tflite::ops::builtin::Register_BROADCAST_TO()'\r\n/usr/bin/ld: register.cc:(.text+0x116d): undefined reference to `tflite::ops::builtin::Register_CALL_ONCE()'\r\n/usr/bin/ld: register.cc:(.text+0x118b): undefined reference to `tflite::ops::builtin::Register_RFFT2D()'\r\n/usr/bin/ld: register.cc:(.text+0x11a9): undefined reference to `tflite::ops::builtin::Register_CONV_3D()'\r\n/usr/bin/ld: register.cc:(.text+0x11c7): undefined reference to `tflite::ops::builtin::Register_IMAG()'\r\n/usr/bin/ld: register.cc:(.text+0x11e5): undefined reference to `tflite::ops::builtin::Register_REAL()'\r\n/usr/bin/ld: register.cc:(.text+0x1203): undefined reference to `tflite::ops::builtin::Register_COMPLEX_ABS()'\r\n/usr/bin/ld: register.cc:(.text+0x1221): undefined reference to `tflite::ops::builtin::Register_BROADCAST_ARGS()'\r\n/usr/bin/ld: register.cc:(.text+0x123f): undefined reference to `tflite::ops::builtin::Register_HASHTABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x125d): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_FIND()'\r\n/usr/bin/ld: register.cc:(.text+0x127b): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_IMPORT()'\r\n/usr/bin/ld: register.cc:(.text+0x1299): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_SIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x12b7): undefined reference to `tflite::ops::builtin::Register_CONV_3D_TRANSPOSE()'\r\n/usr/bin/ld: register.cc:(.text+0x12d5): undefined reference to `tflite::ops::builtin::Register_VAR_HANDLE()'\r\n/usr/bin/ld: register.cc:(.text+0x12f3): undefined reference to `tflite::ops::builtin::Register_READ_VARIABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x1311): undefined reference to `tflite::ops::builtin::Register_ASSIGN_VARIABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x132f): undefined reference to `tflite::ops::builtin::Register_MULTINOMIAL()'\r\n/usr/bin/ld: register.cc:(.text+0x134d): undefined reference to `tflite::ops::builtin::Register_RANDOM_STANDARD_NORMAL()'\r\n/usr/bin/ld: register.cc:(.text+0x136b): undefined reference to `tflite::ops::builtin::Register_BUCKETIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x1389): undefined reference to `tflite::ops::builtin::Register_RANDOM_UNIFORM()'\r\n/usr/bin/ld: register.cc:(.text+0x13a7): undefined reference to `tflite::ops::builtin::Register_GELU()'\r\n/usr/bin/ld: register.cc:(.text+0x13cb): undefined reference to `tflite::ops::builtin::Register_DYNAMIC_UPDATE_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0x13e9): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_PROD()'\r\n/usr/bin/ld: register.cc:(.text+0x1407): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0x1425): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0x1443): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0x1461): undefined reference to `tflite::ops::builtin::Register_ATAN2()'\r\n/usr/bin/ld: register.cc:(.text+0x147f): undefined reference to `tflite::ops::builtin::Register_SIGN()'\r\n/usr/bin/ld: register.cc:(.text+0x14a3): undefined reference to `tflite::ops::builtin::Register_BITCAST()'\r\n/usr/bin/ld: register.cc:(.text+0x14c1): undefined reference to `tflite::ops::builtin::Register_BITWISE_XOR()'\r\n/usr/bin/ld: register.cc:(.text+0x14df): undefined reference to `tflite::ops::builtin::Register_RIGHT_SHIFT()'\r\n/usr/bin/ld: register.cc:(.text+0x14fd): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_SCATTER()'\r\n/usr/bin/ld: register.cc:(.text+0x151b): undefined reference to `tflite::ops::builtin::Register_DILATE()'\r\n/usr/bin/ld: register.cc:(.text+0x1539): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_RNG_BIT_GENERATOR()'\r\n/usr/bin/ld: register.cc:(.text+0x1557): undefined reference to `tflite::ops::builtin::Register_REDUCE_WINDOW()'\r\n/usr/bin/ld: register.cc:(.text+0x1575): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_REDUCE_WINDOW()'\r\n/usr/bin/ld: register.cc:(.text+0x1593): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_GATHER()'\r\n/usr/bin/ld: register.cc:(.text+0x15b1): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_ADD()'\r\n/usr/bin/ld: register.cc:(.text+0x15cf): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MULTIPLY()'\r\n/usr/bin/ld: register.cc:(.text+0x15ed): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MAXIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x160b): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MINIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x1629): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0x1647): undefined reference to `tflite::ops::custom::Register_NUMERIC_VERIFY()'\r\n/usr/bin/ld: register.cc:(.text+0x166a): undefined reference to `tflite::ops::custom::Register_MFCC()'\r\n/usr/bin/ld: register.cc:(.text+0x168d): undefined reference to `tflite::ops::custom::Register_AUDIO_SPECTROGRAM()'\r\n/usr/bin/ld: register.cc:(.text+0x16b0): undefined reference to `tflite::ops::custom::Register_DETECTION_POSTPROCESS()'\r\n/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(xnnpack_delegate.cc.o): in function `tflite::xnnpack::(anonymous namespace)::Delegate::Delegate(TfLiteXNNPackDelegateOptions const*, xnn_workspace*, TfLiteContext*)':\r\nxnnpack_delegate.cc:(.text+0x1368): undefined reference to `tflite::CpuBackendContext::GetFromContext(TfLiteContext*)'\r\n/usr/bin/ld: xnnpack_delegate.cc:(.text+0x1370): undefined reference to `tflite::CpuBackendContext::get_xnnpack_threadpool()'\r\ncollect2: error: ld returned 1 exit status\r\ngmake[2]: *** [CMakeFiles/minimal.dir/build.make:185: minimal] Error 1\r\ngmake[1]: *** [CMakeFiles/Makefile2:1362: CMakeFiles/minimal.dir/all] Error 2\r\ngmake: *** [Makefile:136: all] Error 2\r\n```\r\n\r\n## Error on Linux system with Ubuntu 20.04\r\n\r\n```\r\n[100%] Linking CXX executable minimal\r\n/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(register.cc.o): in function `tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()':\r\nregister.cc:(.text+0x1e5): undefined reference to `tflite::ops::builtin::Register_ABS()'\r\n/usr/bin/ld: register.cc:(.text+0x205): undefined reference to `tflite::ops::builtin::Register_HARD_SWISH()'\r\n/usr/bin/ld: register.cc:(.text+0x21f): undefined reference to `tflite::ops::builtin::Register_RELU()'\r\n/usr/bin/ld: register.cc:(.text+0x23f): undefined reference to `tflite::ops::builtin::Register_RELU_N1_TO_1()'\r\n/usr/bin/ld: register.cc:(.text+0x259): undefined reference to `tflite::ops::builtin::Register_RELU_0_TO_1()'\r\n/usr/bin/ld: register.cc:(.text+0x273): undefined reference to `tflite::ops::builtin::Register_RELU6()'\r\n/usr/bin/ld: register.cc:(.text+0x293): undefined reference to `tflite::ops::builtin::Register_TANH()'\r\n/usr/bin/ld: register.cc:(.text+0x2b3): undefined reference to `tflite::ops::builtin::Register_LOGISTIC()'\r\n/usr/bin/ld: register.cc:(.text+0x2d3): undefined reference to `tflite::ops::builtin::Register_AVERAGE_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x2f3): undefined reference to `tflite::ops::builtin::Register_MAX_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x313): undefined reference to `tflite::ops::builtin::Register_L2_POOL_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x32d): undefined reference to `tflite::ops::builtin::Register_CONV_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x34d): undefined reference to `tflite::ops::builtin::Register_DEPTHWISE_CONV_2D()'\r\n/usr/bin/ld: register.cc:(.text+0x36d): undefined reference to `tflite::ops::builtin::Register_SVDF()'\r\n/usr/bin/ld: register.cc:(.text+0x38d): undefined reference to `tflite::ops::builtin::Register_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x3ad): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x3cd): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_RNN()'\r\n/usr/bin/ld: register.cc:(.text+0x3ed): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP()'\r\n/usr/bin/ld: register.cc:(.text+0x40d): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP_SPARSE()'\r\n/usr/bin/ld: register.cc:(.text+0x427): undefined reference to `tflite::ops::builtin::Register_FULLY_CONNECTED()'\r\n/usr/bin/ld: register.cc:(.text+0x447): undefined reference to `tflite::ops::builtin::Register_LSH_PROJECTION()'\r\n/usr/bin/ld: register.cc:(.text+0x461): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_LOOKUP()'\r\n/usr/bin/ld: register.cc:(.text+0x47b): undefined reference to `tflite::ops::builtin::Register_SOFTMAX()'\r\n/usr/bin/ld: register.cc:(.text+0x49b): undefined reference to `tflite::ops::builtin::Register_CONCATENATION()'\r\n/usr/bin/ld: register.cc:(.text+0x4bb): undefined reference to `tflite::ops::builtin::Register_ADD()'\r\n/usr/bin/ld: register.cc:(.text+0x4d8): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_BATCH_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x4f8): undefined reference to `tflite::ops::builtin::Register_BATCH_TO_SPACE_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x518): undefined reference to `tflite::ops::builtin::Register_MUL()'\r\n/usr/bin/ld: register.cc:(.text+0x538): undefined reference to `tflite::ops::builtin::Register_L2_NORMALIZATION()'\r\n/usr/bin/ld: register.cc:(.text+0x558): undefined reference to `tflite::ops::builtin::Register_LOCAL_RESPONSE_NORMALIZATION()'\r\n/usr/bin/ld: register.cc:(.text+0x572): undefined reference to `tflite::ops::builtin::Register_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x592): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x5b2): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_LSTM()'\r\n/usr/bin/ld: register.cc:(.text+0x5d2): undefined reference to `tflite::ops::builtin::Register_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0x5f2): undefined reference to `tflite::ops::builtin::Register_PADV2()'\r\n/usr/bin/ld: register.cc:(.text+0x612): undefined reference to `tflite::ops::builtin::Register_RESHAPE()'\r\n/usr/bin/ld: register.cc:(.text+0x62c): undefined reference to `tflite::ops::builtin::Register_RESIZE_BILINEAR()'\r\n/usr/bin/ld: register.cc:(.text+0x64c): undefined reference to `tflite::ops::builtin::Register_RESIZE_NEAREST_NEIGHBOR()'\r\n/usr/bin/ld: register.cc:(.text+0x66c): undefined reference to `tflite::ops::builtin::Register_SKIP_GRAM()'\r\n/usr/bin/ld: register.cc:(.text+0x686): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_DEPTH()'\r\n/usr/bin/ld: register.cc:(.text+0x6a6): undefined reference to `tflite::ops::builtin::Register_DEPTH_TO_SPACE()'\r\n/usr/bin/ld: register.cc:(.text+0x6c6): undefined reference to `tflite::ops::builtin::Register_GATHER()'\r\n/usr/bin/ld: register.cc:(.text+0x6e6): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE()'\r\n/usr/bin/ld: register.cc:(.text+0x706): undefined reference to `tflite::ops::builtin::Register_MEAN()'\r\n/usr/bin/ld: register.cc:(.text+0x726): undefined reference to `tflite::ops::builtin::Register_DIV()'\r\n/usr/bin/ld: register.cc:(.text+0x746): undefined reference to `tflite::ops::builtin::Register_SUB()'\r\n/usr/bin/ld: register.cc:(.text+0x766): undefined reference to `tflite::ops::builtin::Register_SPLIT()'\r\n/usr/bin/ld: register.cc:(.text+0x786): undefined reference to `tflite::ops::builtin::Register_SPLIT_V()'\r\n/usr/bin/ld: register.cc:(.text+0x7a6): undefined reference to `tflite::ops::builtin::Register_SQUEEZE()'\r\n/usr/bin/ld: register.cc:(.text+0x7c6): undefined reference to `tflite::ops::builtin::Register_STRIDED_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0x7e6): undefined reference to `tflite::ops::builtin::Register_EXP()'\r\n/usr/bin/ld: register.cc:(.text+0x806): undefined reference to `tflite::ops::builtin::Register_TOPK_V2()'\r\n/usr/bin/ld: register.cc:(.text+0x826): undefined reference to `tflite::ops::builtin::Register_LOG()'\r\n/usr/bin/ld: register.cc:(.text+0x846): undefined reference to `tflite::ops::builtin::Register_LOG_SOFTMAX()'\r\n/usr/bin/ld: register.cc:(.text+0x866): undefined reference to `tflite::ops::builtin::Register_CAST()'\r\n/usr/bin/ld: register.cc:(.text+0x886): undefined reference to `tflite::ops::builtin::Register_DEQUANTIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x8a6): undefined reference to `tflite::ops::builtin::Register_PRELU()'\r\n/usr/bin/ld: register.cc:(.text+0x8c0): undefined reference to `tflite::ops::builtin::Register_MAXIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x8e0): undefined reference to `tflite::ops::builtin::Register_MINIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x900): undefined reference to `tflite::ops::builtin::Register_ARG_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0x920): undefined reference to `tflite::ops::builtin::Register_ARG_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0x940): undefined reference to `tflite::ops::builtin::Register_GREATER()'\r\n/usr/bin/ld: register.cc:(.text+0x960): undefined reference to `tflite::ops::builtin::Register_GREATER_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0x980): undefined reference to `tflite::ops::builtin::Register_LESS()'\r\n/usr/bin/ld: register.cc:(.text+0x9a0): undefined reference to `tflite::ops::builtin::Register_LESS_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0x9c0): undefined reference to `tflite::ops::builtin::Register_FLOOR()'\r\n/usr/bin/ld: register.cc:(.text+0x9da): undefined reference to `tflite::ops::builtin::Register_CEIL()'\r\n/usr/bin/ld: register.cc:(.text+0x9f4): undefined reference to `tflite::ops::builtin::Register_ROUND()'\r\n/usr/bin/ld: register.cc:(.text+0xa0e): undefined reference to `tflite::ops::builtin::Register_NEG()'\r\n/usr/bin/ld: register.cc:(.text+0xa28): undefined reference to `tflite::ops::builtin::Register_SELECT()'\r\n/usr/bin/ld: register.cc:(.text+0xa48): undefined reference to `tflite::ops::builtin::Register_SELECT_V2()'\r\n/usr/bin/ld: register.cc:(.text+0xa68): undefined reference to `tflite::ops::builtin::Register_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0xa88): undefined reference to `tflite::ops::builtin::Register_SIN()'\r\n/usr/bin/ld: register.cc:(.text+0xaa2): undefined reference to `tflite::ops::builtin::Register_COS()'\r\n/usr/bin/ld: register.cc:(.text+0xabc): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE_CONV()'\r\n/usr/bin/ld: register.cc:(.text+0xadc): undefined reference to `tflite::ops::builtin::Register_TILE()'\r\n/usr/bin/ld: register.cc:(.text+0xafc): undefined reference to `tflite::ops::builtin::Register_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0xb1c): undefined reference to `tflite::ops::builtin::Register_REDUCE_PROD()'\r\n/usr/bin/ld: register.cc:(.text+0xb3c): undefined reference to `tflite::ops::builtin::Register_REDUCE_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0xb5c): undefined reference to `tflite::ops::builtin::Register_REDUCE_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0xb7c): undefined reference to `tflite::ops::builtin::Register_REDUCE_ANY()'\r\n/usr/bin/ld: register.cc:(.text+0xb96): undefined reference to `tflite::ops::builtin::Register_REDUCE_ALL()'\r\n/usr/bin/ld: register.cc:(.text+0xbb0): undefined reference to `tflite::ops::builtin::Register_EXPAND_DIMS()'\r\n/usr/bin/ld: register.cc:(.text+0xbca): undefined reference to `tflite::ops::builtin::Register_SPARSE_TO_DENSE()'\r\n/usr/bin/ld: register.cc:(.text+0xbea): undefined reference to `tflite::ops::builtin::Register_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0xc0a): undefined reference to `tflite::ops::builtin::Register_NOT_EQUAL()'\r\n/usr/bin/ld: register.cc:(.text+0xc2a): undefined reference to `tflite::ops::builtin::Register_SQRT()'\r\n/usr/bin/ld: register.cc:(.text+0xc44): undefined reference to `tflite::ops::builtin::Register_RSQRT()'\r\n/usr/bin/ld: register.cc:(.text+0xc64): undefined reference to `tflite::ops::builtin::Register_SHAPE()'\r\n/usr/bin/ld: register.cc:(.text+0xc7e): undefined reference to `tflite::ops::builtin::Register_RANK()'\r\n/usr/bin/ld: register.cc:(.text+0xc98): undefined reference to `tflite::ops::builtin::Register_POW()'\r\n/usr/bin/ld: register.cc:(.text+0xcb2): undefined reference to `tflite::ops::builtin::Register_FAKE_QUANT()'\r\n/usr/bin/ld: register.cc:(.text+0xcd2): undefined reference to `tflite::ops::builtin::Register_PACK()'\r\n/usr/bin/ld: register.cc:(.text+0xcf2): undefined reference to `tflite::ops::builtin::Register_ONE_HOT()'\r\n/usr/bin/ld: register.cc:(.text+0xd0c): undefined reference to `tflite::ops::builtin::Register_LOGICAL_OR()'\r\n/usr/bin/ld: register.cc:(.text+0xd26): undefined reference to `tflite::ops::builtin::Register_LOGICAL_AND()'\r\n/usr/bin/ld: register.cc:(.text+0xd40): undefined reference to `tflite::ops::builtin::Register_LOGICAL_NOT()'\r\n/usr/bin/ld: register.cc:(.text+0xd5a): undefined reference to `tflite::ops::builtin::Register_UNPACK()'\r\n/usr/bin/ld: register.cc:(.text+0xd7a): undefined reference to `tflite::ops::builtin::Register_FLOOR_DIV()'\r\n/usr/bin/ld: register.cc:(.text+0xd9a): undefined reference to `tflite::ops::builtin::Register_SQUARE()'\r\n/usr/bin/ld: register.cc:(.text+0xdb4): undefined reference to `tflite::ops::builtin::Register_ZEROS_LIKE()'\r\n/usr/bin/ld: register.cc:(.text+0xdce): undefined reference to `tflite::ops::builtin::Register_FLOOR_MOD()'\r\n/usr/bin/ld: register.cc:(.text+0xdee): undefined reference to `tflite::ops::builtin::Register_RANGE()'\r\n/usr/bin/ld: register.cc:(.text+0xe0e): undefined reference to `tflite::ops::builtin::Register_LEAKY_RELU()'\r\n/usr/bin/ld: register.cc:(.text+0xe2e): undefined reference to `tflite::ops::builtin::Register_SQUARED_DIFFERENCE()'\r\n/usr/bin/ld: register.cc:(.text+0xe4e): undefined reference to `tflite::ops::builtin::Register_FILL()'\r\n/usr/bin/ld: register.cc:(.text+0xe6e): undefined reference to `tflite::ops::builtin::Register_MIRROR_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0xe8e): undefined reference to `tflite::ops::builtin::Register_UNIQUE()'\r\n/usr/bin/ld: register.cc:(.text+0xea8): undefined reference to `tflite::ops::builtin::Register_REVERSE_V2()'\r\n/usr/bin/ld: register.cc:(.text+0xec8): undefined reference to `tflite::ops::builtin::Register_ADD_N()'\r\n/usr/bin/ld: register.cc:(.text+0xee2): undefined reference to `tflite::ops::builtin::Register_GATHER_ND()'\r\n/usr/bin/ld: register.cc:(.text+0xf02): undefined reference to `tflite::ops::builtin::Register_WHERE()'\r\n/usr/bin/ld: register.cc:(.text+0xf22): undefined reference to `tflite::ops::builtin::Register_ELU()'\r\n/usr/bin/ld: register.cc:(.text+0xf3c): undefined reference to `tflite::ops::builtin::Register_REVERSE_SEQUENCE()'\r\n/usr/bin/ld: register.cc:(.text+0xf56): undefined reference to `tflite::ops::builtin::Register_MATRIX_DIAG()'\r\n/usr/bin/ld: register.cc:(.text+0xf70): undefined reference to `tflite::ops::builtin::Register_QUANTIZE()'\r\n/usr/bin/ld: register.cc:(.text+0xf90): undefined reference to `tflite::ops::builtin::Register_MATRIX_SET_DIAG()'\r\n/usr/bin/ld: register.cc:(.text+0xfaa): undefined reference to `tflite::ops::builtin::Register_IF()'\r\n/usr/bin/ld: register.cc:(.text+0xfc4): undefined reference to `tflite::ops::builtin::Register_WHILE()'\r\n/usr/bin/ld: register.cc:(.text+0xfde): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V4()'\r\n/usr/bin/ld: register.cc:(.text+0xff8): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V5()'\r\n/usr/bin/ld: register.cc:(.text+0x1012): undefined reference to `tflite::ops::builtin::Register_SCATTER_ND()'\r\n/usr/bin/ld: register.cc:(.text+0x102c): undefined reference to `tflite::ops::builtin::Register_DENSIFY()'\r\n/usr/bin/ld: register.cc:(.text+0x1046): undefined reference to `tflite::ops::builtin::Register_SEGMENT_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0x1060): undefined reference to `tflite::ops::builtin::Register_BATCH_MATMUL()'\r\n/usr/bin/ld: register.cc:(.text+0x1080): undefined reference to `tflite::ops::builtin::Register_CUMSUM()'\r\n/usr/bin/ld: register.cc:(.text+0x109a): undefined reference to `tflite::ops::builtin::Register_BROADCAST_TO()'\r\n/usr/bin/ld: register.cc:(.text+0x10ba): undefined reference to `tflite::ops::builtin::Register_CALL_ONCE()'\r\n/usr/bin/ld: register.cc:(.text+0x10d4): undefined reference to `tflite::ops::builtin::Register_RFFT2D()'\r\n/usr/bin/ld: register.cc:(.text+0x10ee): undefined reference to `tflite::ops::builtin::Register_CONV_3D()'\r\n/usr/bin/ld: register.cc:(.text+0x1108): undefined reference to `tflite::ops::builtin::Register_IMAG()'\r\n/usr/bin/ld: register.cc:(.text+0x1122): undefined reference to `tflite::ops::builtin::Register_REAL()'\r\n/usr/bin/ld: register.cc:(.text+0x113c): undefined reference to `tflite::ops::builtin::Register_COMPLEX_ABS()'\r\n/usr/bin/ld: register.cc:(.text+0x1156): undefined reference to `tflite::ops::builtin::Register_BROADCAST_ARGS()'\r\n/usr/bin/ld: register.cc:(.text+0x1170): undefined reference to `tflite::ops::builtin::Register_HASHTABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x118a): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_FIND()'\r\n/usr/bin/ld: register.cc:(.text+0x11a4): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_IMPORT()'\r\n/usr/bin/ld: register.cc:(.text+0x11be): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_SIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x11d8): undefined reference to `tflite::ops::builtin::Register_CONV_3D_TRANSPOSE()'\r\n/usr/bin/ld: register.cc:(.text+0x11f2): undefined reference to `tflite::ops::builtin::Register_VAR_HANDLE()'\r\n/usr/bin/ld: register.cc:(.text+0x120c): undefined reference to `tflite::ops::builtin::Register_READ_VARIABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x1226): undefined reference to `tflite::ops::builtin::Register_ASSIGN_VARIABLE()'\r\n/usr/bin/ld: register.cc:(.text+0x1240): undefined reference to `tflite::ops::builtin::Register_MULTINOMIAL()'\r\n/usr/bin/ld: register.cc:(.text+0x125a): undefined reference to `tflite::ops::builtin::Register_RANDOM_STANDARD_NORMAL()'\r\n/usr/bin/ld: register.cc:(.text+0x1274): undefined reference to `tflite::ops::builtin::Register_BUCKETIZE()'\r\n/usr/bin/ld: register.cc:(.text+0x128e): undefined reference to `tflite::ops::builtin::Register_RANDOM_UNIFORM()'\r\n/usr/bin/ld: register.cc:(.text+0x12a8): undefined reference to `tflite::ops::builtin::Register_GELU()'\r\n/usr/bin/ld: register.cc:(.text+0x12c8): undefined reference to `tflite::ops::builtin::Register_DYNAMIC_UPDATE_SLICE()'\r\n/usr/bin/ld: register.cc:(.text+0x12e2): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_PROD()'\r\n/usr/bin/ld: register.cc:(.text+0x12fc): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MAX()'\r\n/usr/bin/ld: register.cc:(.text+0x1316): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MIN()'\r\n/usr/bin/ld: register.cc:(.text+0x1330): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_SUM()'\r\n/usr/bin/ld: register.cc:(.text+0x134a): undefined reference to `tflite::ops::builtin::Register_ATAN2()'\r\n/usr/bin/ld: register.cc:(.text+0x1364): undefined reference to `tflite::ops::builtin::Register_SIGN()'\r\n/usr/bin/ld: register.cc:(.text+0x1384): undefined reference to `tflite::ops::builtin::Register_BITCAST()'\r\n/usr/bin/ld: register.cc:(.text+0x139e): undefined reference to `tflite::ops::builtin::Register_BITWISE_XOR()'\r\n/usr/bin/ld: register.cc:(.text+0x13b8): undefined reference to `tflite::ops::builtin::Register_RIGHT_SHIFT()'\r\n/usr/bin/ld: register.cc:(.text+0x13d2): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_SCATTER()'\r\n/usr/bin/ld: register.cc:(.text+0x13ec): undefined reference to `tflite::ops::builtin::Register_DILATE()'\r\n/usr/bin/ld: register.cc:(.text+0x1406): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_RNG_BIT_GENERATOR()'\r\n/usr/bin/ld: register.cc:(.text+0x1420): undefined reference to `tflite::ops::builtin::Register_REDUCE_WINDOW()'\r\n/usr/bin/ld: register.cc:(.text+0x143a): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_REDUCE_WINDOW()'\r\n/usr/bin/ld: register.cc:(.text+0x1454): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_GATHER()'\r\n/usr/bin/ld: register.cc:(.text+0x146e): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_ADD()'\r\n/usr/bin/ld: register.cc:(.text+0x1488): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MULTIPLY()'\r\n/usr/bin/ld: register.cc:(.text+0x14a2): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MAXIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x14bc): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_MINIMUM()'\r\n/usr/bin/ld: register.cc:(.text+0x14d6): undefined reference to `tflite::ops::builtin::Register_STABLEHLO_PAD()'\r\n/usr/bin/ld: register.cc:(.text+0x14f0): undefined reference to `tflite::ops::custom::Register_NUMERIC_VERIFY()'\r\n/usr/bin/ld: register.cc:(.text+0x150c): undefined reference to `tflite::ops::custom::Register_MFCC()'\r\n/usr/bin/ld: register.cc:(.text+0x1528): undefined reference to `tflite::ops::custom::Register_AUDIO_SPECTROGRAM()'\r\n/usr/bin/ld: register.cc:(.text+0x1544): undefined reference to `tflite::ops::custom::Register_DETECTION_POSTPROCESS()'\r\n/usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(xnnpack_delegate.cc.o): in function `TfLiteXNNPackDelegateCreateWithThreadpool':\r\nxnnpack_delegate.cc:(.text+0xab0f): undefined reference to `tflite::CpuBackendContext::GetFromContext(TfLiteContext*)'\r\n/usr/bin/ld: xnnpack_delegate.cc:(.text+0xab17): undefined reference to `tflite::CpuBackendContext::get_xnnpack_threadpool()'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [CMakeFiles/minimal.dir/build.make:172: minimal] Error 1\r\nmake[1]: *** [CMakeFiles/Makefile2:1511: CMakeFiles/minimal.dir/all] Error 2\r\nmake: *** [Makefile:130: all] Error 2\r\n\r\n```", "@lcerman , Could you please file a new issue with the details of your findings. Thanks", "You are welcome, I made the ticket (see the link above)." ]
2023-02-03T18:10:28
2024-01-09T18:04:55
2023-03-01T02:02:54
MEMBER
null
null
null
When I run latest tensorflow lite example minimal and it is failing on Linux machine with the below error Followed steps mentioned here and ran on x86_64 GNU/Linux https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/minimal ,,, 100%] Linking CXX executable minimal /usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(register.cc.o): in function `tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()': register.cc:(.text+0x1cd): undefined reference to `tflite::ops::builtin::Register_ABS()' /usr/bin/ld: register.cc:(.text+0x1ed): undefined reference to `tflite::ops::builtin::Register_HARD_SWISH()' /usr/bin/ld: register.cc:(.text+0x207): undefined reference to `tflite::ops::builtin::Register_RELU()' /usr/bin/ld: register.cc:(.text+0x227): undefined reference to `tflite::ops::builtin::Register_RELU_N1_TO_1()' /usr/bin/ld: register.cc:(.text+0x241): undefined reference to `tflite::ops::builtin::Register_RELU_0_TO_1()' /usr/bin/ld: register.cc:(.text+0x25b): undefined reference to `tflite::ops::builtin::Register_RELU6()' /usr/bin/ld: register.cc:(.text+0x27b): undefined reference to `tflite::ops::builtin::Register_TANH()' /usr/bin/ld: register.cc:(.text+0x29b): undefined reference to `tflite::ops::builtin::Register_LOGISTIC()' /usr/bin/ld: register.cc:(.text+0x2bb): undefined reference to `tflite::ops::builtin::Register_AVERAGE_POOL_2D()' /usr/bin/ld: register.cc:(.text+0x2db): undefined reference to `tflite::ops::builtin::Register_MAX_POOL_2D()' /usr/bin/ld: register.cc:(.text+0x2fb): undefined reference to `tflite::ops::builtin::Register_L2_POOL_2D()' /usr/bin/ld: register.cc:(.text+0x315): undefined reference to `tflite::ops::builtin::Register_CONV_2D()' /usr/bin/ld: register.cc:(.text+0x335): undefined reference to `tflite::ops::builtin::Register_DEPTHWISE_CONV_2D()' /usr/bin/ld: register.cc:(.text+0x355): undefined reference to `tflite::ops::builtin::Register_SVDF()' /usr/bin/ld: register.cc:(.text+0x375): undefined reference to `tflite::ops::builtin::Register_RNN()' /usr/bin/ld: register.cc:(.text+0x395): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_RNN()' /usr/bin/ld: register.cc:(.text+0x3b5): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_RNN()' /usr/bin/ld: register.cc:(.text+0x3d5): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP()' /usr/bin/ld: register.cc:(.text+0x3f5): undefined reference to `tflite::ops::builtin::Register_EMBEDDING_LOOKUP_SPARSE()' /usr/bin/ld: register.cc:(.text+0x40f): undefined reference to `tflite::ops::builtin::Register_FULLY_CONNECTED()' /usr/bin/ld: register.cc:(.text+0x42f): undefined reference to `tflite::ops::builtin::Register_LSH_PROJECTION()' /usr/bin/ld: register.cc:(.text+0x449): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_LOOKUP()' /usr/bin/ld: register.cc:(.text+0x463): undefined reference to `tflite::ops::builtin::Register_SOFTMAX()' /usr/bin/ld: register.cc:(.text+0x483): undefined reference to `tflite::ops::builtin::Register_CONCATENATION()' /usr/bin/ld: register.cc:(.text+0x4a3): undefined reference to `tflite::ops::builtin::Register_ADD()' /usr/bin/ld: register.cc:(.text+0x4c0): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_BATCH_ND()' /usr/bin/ld: register.cc:(.text+0x4e0): undefined reference to `tflite::ops::builtin::Register_BATCH_TO_SPACE_ND()' /usr/bin/ld: register.cc:(.text+0x500): undefined reference to `tflite::ops::builtin::Register_MUL()' /usr/bin/ld: register.cc:(.text+0x520): undefined reference to `tflite::ops::builtin::Register_L2_NORMALIZATION()' /usr/bin/ld: register.cc:(.text+0x540): undefined reference to `tflite::ops::builtin::Register_LOCAL_RESPONSE_NORMALIZATION()' /usr/bin/ld: register.cc:(.text+0x55a): undefined reference to `tflite::ops::builtin::Register_LSTM()' /usr/bin/ld: register.cc:(.text+0x57a): undefined reference to `tflite::ops::builtin::Register_BIDIRECTIONAL_SEQUENCE_LSTM()' /usr/bin/ld: register.cc:(.text+0x59a): undefined reference to `tflite::ops::builtin::Register_UNIDIRECTIONAL_SEQUENCE_LSTM()' /usr/bin/ld: register.cc:(.text+0x5ba): undefined reference to `tflite::ops::builtin::Register_PAD()' /usr/bin/ld: register.cc:(.text+0x5da): undefined reference to `tflite::ops::builtin::Register_PADV2()' /usr/bin/ld: register.cc:(.text+0x5fa): undefined reference to `tflite::ops::builtin::Register_RESHAPE()' /usr/bin/ld: register.cc:(.text+0x614): undefined reference to `tflite::ops::builtin::Register_RESIZE_BILINEAR()' /usr/bin/ld: register.cc:(.text+0x634): undefined reference to `tflite::ops::builtin::Register_RESIZE_NEAREST_NEIGHBOR()' /usr/bin/ld: register.cc:(.text+0x654): undefined reference to `tflite::ops::builtin::Register_SKIP_GRAM()' /usr/bin/ld: register.cc:(.text+0x66e): undefined reference to `tflite::ops::builtin::Register_SPACE_TO_DEPTH()' /usr/bin/ld: register.cc:(.text+0x68e): undefined reference to `tflite::ops::builtin::Register_DEPTH_TO_SPACE()' /usr/bin/ld: register.cc:(.text+0x6ae): undefined reference to `tflite::ops::builtin::Register_GATHER()' /usr/bin/ld: register.cc:(.text+0x6ce): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE()' /usr/bin/ld: register.cc:(.text+0x6ee): undefined reference to `tflite::ops::builtin::Register_MEAN()' /usr/bin/ld: register.cc:(.text+0x70e): undefined reference to `tflite::ops::builtin::Register_DIV()' /usr/bin/ld: register.cc:(.text+0x72e): undefined reference to `tflite::ops::builtin::Register_SUB()' /usr/bin/ld: register.cc:(.text+0x74e): undefined reference to `tflite::ops::builtin::Register_SPLIT()' /usr/bin/ld: register.cc:(.text+0x76e): undefined reference to `tflite::ops::builtin::Register_SPLIT_V()' /usr/bin/ld: register.cc:(.text+0x78e): undefined reference to `tflite::ops::builtin::Register_SQUEEZE()' /usr/bin/ld: register.cc:(.text+0x7ae): undefined reference to `tflite::ops::builtin::Register_STRIDED_SLICE()' /usr/bin/ld: register.cc:(.text+0x7ce): undefined reference to `tflite::ops::builtin::Register_EXP()' /usr/bin/ld: register.cc:(.text+0x7e8): undefined reference to `tflite::ops::builtin::Register_TOPK_V2()' /usr/bin/ld: register.cc:(.text+0x808): undefined reference to `tflite::ops::builtin::Register_LOG()' /usr/bin/ld: register.cc:(.text+0x822): undefined reference to `tflite::ops::builtin::Register_LOG_SOFTMAX()' /usr/bin/ld: register.cc:(.text+0x842): undefined reference to `tflite::ops::builtin::Register_CAST()' /usr/bin/ld: register.cc:(.text+0x862): undefined reference to `tflite::ops::builtin::Register_DEQUANTIZE()' /usr/bin/ld: register.cc:(.text+0x882): undefined reference to `tflite::ops::builtin::Register_PRELU()' /usr/bin/ld: register.cc:(.text+0x89c): undefined reference to `tflite::ops::builtin::Register_MAXIMUM()' /usr/bin/ld: register.cc:(.text+0x8bc): undefined reference to `tflite::ops::builtin::Register_MINIMUM()' /usr/bin/ld: register.cc:(.text+0x8dc): undefined reference to `tflite::ops::builtin::Register_ARG_MAX()' /usr/bin/ld: register.cc:(.text+0x8fc): undefined reference to `tflite::ops::builtin::Register_ARG_MIN()' /usr/bin/ld: register.cc:(.text+0x91c): undefined reference to `tflite::ops::builtin::Register_GREATER()' /usr/bin/ld: register.cc:(.text+0x93c): undefined reference to `tflite::ops::builtin::Register_GREATER_EQUAL()' /usr/bin/ld: register.cc:(.text+0x95c): undefined reference to `tflite::ops::builtin::Register_LESS()' /usr/bin/ld: register.cc:(.text+0x97c): undefined reference to `tflite::ops::builtin::Register_LESS_EQUAL()' /usr/bin/ld: register.cc:(.text+0x99c): undefined reference to `tflite::ops::builtin::Register_FLOOR()' /usr/bin/ld: register.cc:(.text+0x9b6): undefined reference to `tflite::ops::builtin::Register_CEIL()' /usr/bin/ld: register.cc:(.text+0x9d0): undefined reference to `tflite::ops::builtin::Register_ROUND()' /usr/bin/ld: register.cc:(.text+0x9ea): undefined reference to `tflite::ops::builtin::Register_NEG()' /usr/bin/ld: register.cc:(.text+0xa04): undefined reference to `tflite::ops::builtin::Register_SELECT()' /usr/bin/ld: register.cc:(.text+0xa24): undefined reference to `tflite::ops::builtin::Register_SELECT_V2()' /usr/bin/ld: register.cc:(.text+0xa3e): undefined reference to `tflite::ops::builtin::Register_SLICE()' /usr/bin/ld: register.cc:(.text+0xa5e): undefined reference to `tflite::ops::builtin::Register_SIN()' /usr/bin/ld: register.cc:(.text+0xa78): undefined reference to `tflite::ops::builtin::Register_COS()' /usr/bin/ld: register.cc:(.text+0xa92): undefined reference to `tflite::ops::builtin::Register_TRANSPOSE_CONV()' /usr/bin/ld: register.cc:(.text+0xab2): undefined reference to `tflite::ops::builtin::Register_TILE()' /usr/bin/ld: register.cc:(.text+0xad2): undefined reference to `tflite::ops::builtin::Register_SUM()' /usr/bin/ld: register.cc:(.text+0xaf2): undefined reference to `tflite::ops::builtin::Register_REDUCE_PROD()' /usr/bin/ld: register.cc:(.text+0xb12): undefined reference to `tflite::ops::builtin::Register_REDUCE_MAX()' /usr/bin/ld: register.cc:(.text+0xb32): undefined reference to `tflite::ops::builtin::Register_REDUCE_MIN()' /usr/bin/ld: register.cc:(.text+0xb52): undefined reference to `tflite::ops::builtin::Register_REDUCE_ANY()' /usr/bin/ld: register.cc:(.text+0xb6c): undefined reference to `tflite::ops::builtin::Register_REDUCE_ALL()' /usr/bin/ld: register.cc:(.text+0xb86): undefined reference to `tflite::ops::builtin::Register_EXPAND_DIMS()' /usr/bin/ld: register.cc:(.text+0xba0): undefined reference to `tflite::ops::builtin::Register_SPARSE_TO_DENSE()' /usr/bin/ld: register.cc:(.text+0xbc0): undefined reference to `tflite::ops::builtin::Register_EQUAL()' /usr/bin/ld: register.cc:(.text+0xbe0): undefined reference to `tflite::ops::builtin::Register_NOT_EQUAL()' /usr/bin/ld: register.cc:(.text+0xc00): undefined reference to `tflite::ops::builtin::Register_SQRT()' /usr/bin/ld: register.cc:(.text+0xc1a): undefined reference to `tflite::ops::builtin::Register_RSQRT()' /usr/bin/ld: register.cc:(.text+0xc3a): undefined reference to `tflite::ops::builtin::Register_SHAPE()' /usr/bin/ld: register.cc:(.text+0xc54): undefined reference to `tflite::ops::builtin::Register_RANK()' /usr/bin/ld: register.cc:(.text+0xc6e): undefined reference to `tflite::ops::builtin::Register_POW()' /usr/bin/ld: register.cc:(.text+0xc88): undefined reference to `tflite::ops::builtin::Register_FAKE_QUANT()' /usr/bin/ld: register.cc:(.text+0xca8): undefined reference to `tflite::ops::builtin::Register_PACK()' /usr/bin/ld: register.cc:(.text+0xcc8): undefined reference to `tflite::ops::builtin::Register_ONE_HOT()' /usr/bin/ld: register.cc:(.text+0xce2): undefined reference to `tflite::ops::builtin::Register_LOGICAL_OR()' /usr/bin/ld: register.cc:(.text+0xcfc): undefined reference to `tflite::ops::builtin::Register_LOGICAL_AND()' /usr/bin/ld: register.cc:(.text+0xd16): undefined reference to `tflite::ops::builtin::Register_LOGICAL_NOT()' /usr/bin/ld: register.cc:(.text+0xd30): undefined reference to `tflite::ops::builtin::Register_UNPACK()' /usr/bin/ld: register.cc:(.text+0xd50): undefined reference to `tflite::ops::builtin::Register_FLOOR_DIV()' /usr/bin/ld: register.cc:(.text+0xd70): undefined reference to `tflite::ops::builtin::Register_SQUARE()' /usr/bin/ld: register.cc:(.text+0xd8a): undefined reference to `tflite::ops::builtin::Register_ZEROS_LIKE()' /usr/bin/ld: register.cc:(.text+0xda4): undefined reference to `tflite::ops::builtin::Register_FLOOR_MOD()' /usr/bin/ld: register.cc:(.text+0xdbe): undefined reference to `tflite::ops::builtin::Register_RANGE()' /usr/bin/ld: register.cc:(.text+0xdd8): undefined reference to `tflite::ops::builtin::Register_LEAKY_RELU()' /usr/bin/ld: register.cc:(.text+0xdf8): undefined reference to `tflite::ops::builtin::Register_SQUARED_DIFFERENCE()' /usr/bin/ld: register.cc:(.text+0xe18): undefined reference to `tflite::ops::builtin::Register_FILL()' /usr/bin/ld: register.cc:(.text+0xe38): undefined reference to `tflite::ops::builtin::Register_MIRROR_PAD()' /usr/bin/ld: register.cc:(.text+0xe58): undefined reference to `tflite::ops::builtin::Register_UNIQUE()' /usr/bin/ld: register.cc:(.text+0xe72): undefined reference to `tflite::ops::builtin::Register_REVERSE_V2()' /usr/bin/ld: register.cc:(.text+0xe92): undefined reference to `tflite::ops::builtin::Register_ADD_N()' /usr/bin/ld: register.cc:(.text+0xeac): undefined reference to `tflite::ops::builtin::Register_GATHER_ND()' /usr/bin/ld: register.cc:(.text+0xecc): undefined reference to `tflite::ops::builtin::Register_WHERE()' /usr/bin/ld: register.cc:(.text+0xeec): undefined reference to `tflite::ops::builtin::Register_ELU()' /usr/bin/ld: register.cc:(.text+0xf06): undefined reference to `tflite::ops::builtin::Register_REVERSE_SEQUENCE()' /usr/bin/ld: register.cc:(.text+0xf20): undefined reference to `tflite::ops::builtin::Register_MATRIX_DIAG()' /usr/bin/ld: register.cc:(.text+0xf3a): undefined reference to `tflite::ops::builtin::Register_QUANTIZE()' /usr/bin/ld: register.cc:(.text+0xf5a): undefined reference to `tflite::ops::builtin::Register_MATRIX_SET_DIAG()' /usr/bin/ld: register.cc:(.text+0xf74): undefined reference to `tflite::ops::builtin::Register_IF()' /usr/bin/ld: register.cc:(.text+0xf8e): undefined reference to `tflite::ops::builtin::Register_WHILE()' /usr/bin/ld: register.cc:(.text+0xfa8): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V4()' /usr/bin/ld: register.cc:(.text+0xfc2): undefined reference to `tflite::ops::builtin::Register_NON_MAX_SUPPRESSION_V5()' /usr/bin/ld: register.cc:(.text+0xfdc): undefined reference to `tflite::ops::builtin::Register_SCATTER_ND()' /usr/bin/ld: register.cc:(.text+0xff6): undefined reference to `tflite::ops::builtin::Register_DENSIFY()' /usr/bin/ld: register.cc:(.text+0x1010): undefined reference to `tflite::ops::builtin::Register_SEGMENT_SUM()' /usr/bin/ld: register.cc:(.text+0x102a): undefined reference to `tflite::ops::builtin::Register_BATCH_MATMUL()' /usr/bin/ld: register.cc:(.text+0x104a): undefined reference to `tflite::ops::builtin::Register_CUMSUM()' /usr/bin/ld: register.cc:(.text+0x1064): undefined reference to `tflite::ops::builtin::Register_BROADCAST_TO()' /usr/bin/ld: register.cc:(.text+0x1084): undefined reference to `tflite::ops::builtin::Register_CALL_ONCE()' /usr/bin/ld: register.cc:(.text+0x109e): undefined reference to `tflite::ops::builtin::Register_RFFT2D()' /usr/bin/ld: register.cc:(.text+0x10b8): undefined reference to `tflite::ops::builtin::Register_CONV_3D()' /usr/bin/ld: register.cc:(.text+0x10d2): undefined reference to `tflite::ops::builtin::Register_IMAG()' /usr/bin/ld: register.cc:(.text+0x10ec): undefined reference to `tflite::ops::builtin::Register_REAL()' /usr/bin/ld: register.cc:(.text+0x1106): undefined reference to `tflite::ops::builtin::Register_COMPLEX_ABS()' /usr/bin/ld: register.cc:(.text+0x1120): undefined reference to `tflite::ops::builtin::Register_BROADCAST_ARGS()' /usr/bin/ld: register.cc:(.text+0x113a): undefined reference to `tflite::ops::builtin::Register_HASHTABLE()' /usr/bin/ld: register.cc:(.text+0x1154): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_FIND()' /usr/bin/ld: register.cc:(.text+0x116e): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_IMPORT()' /usr/bin/ld: register.cc:(.text+0x1188): undefined reference to `tflite::ops::builtin::Register_HASHTABLE_SIZE()' /usr/bin/ld: register.cc:(.text+0x11a2): undefined reference to `tflite::ops::builtin::Register_CONV_3D_TRANSPOSE()' /usr/bin/ld: register.cc:(.text+0x11bc): undefined reference to `tflite::ops::builtin::Register_VAR_HANDLE()' /usr/bin/ld: register.cc:(.text+0x11d6): undefined reference to `tflite::ops::builtin::Register_READ_VARIABLE()' /usr/bin/ld: register.cc:(.text+0x11f0): undefined reference to `tflite::ops::builtin::Register_ASSIGN_VARIABLE()' /usr/bin/ld: register.cc:(.text+0x120a): undefined reference to `tflite::ops::builtin::Register_MULTINOMIAL()' /usr/bin/ld: register.cc:(.text+0x1224): undefined reference to `tflite::ops::builtin::Register_RANDOM_STANDARD_NORMAL()' /usr/bin/ld: register.cc:(.text+0x123e): undefined reference to `tflite::ops::builtin::Register_BUCKETIZE()' /usr/bin/ld: register.cc:(.text+0x1258): undefined reference to `tflite::ops::builtin::Register_RANDOM_UNIFORM()' /usr/bin/ld: register.cc:(.text+0x1272): undefined reference to `tflite::ops::builtin::Register_GELU()' /usr/bin/ld: register.cc:(.text+0x1292): undefined reference to `tflite::ops::builtin::Register_DYNAMIC_UPDATE_SLICE()' /usr/bin/ld: register.cc:(.text+0x12ac): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_PROD()' /usr/bin/ld: register.cc:(.text+0x12c6): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MAX()' /usr/bin/ld: register.cc:(.text+0x12e0): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_MIN()' /usr/bin/ld: register.cc:(.text+0x12fa): undefined reference to `tflite::ops::builtin::Register_UNSORTED_SEGMENT_SUM()' /usr/bin/ld: register.cc:(.text+0x1314): undefined reference to `tflite::ops::builtin::Register_ATAN2()' /usr/bin/ld: register.cc:(.text+0x132e): undefined reference to `tflite::ops::builtin::Register_SIGN()' /usr/bin/ld: register.cc:(.text+0x134e): undefined reference to `tflite::ops::custom::Register_NUMERIC_VERIFY()' /usr/bin/ld: register.cc:(.text+0x136a): undefined reference to `tflite::ops::custom::Register_MFCC()' /usr/bin/ld: register.cc:(.text+0x1386): undefined reference to `tflite::ops::custom::Register_AUDIO_SPECTROGRAM()' /usr/bin/ld: register.cc:(.text+0x13a2): undefined reference to `tflite::ops::custom::Register_DETECTION_POSTPROCESS()' /usr/bin/ld: tensorflow-lite/libtensorflow-lite.a(xnnpack_delegate.cc.o): in function `TfLiteXNNPackDelegateCreateWithThreadpool': xnnpack_delegate.cc:(.text+0xc74f): undefined reference to `tflite::CpuBackendContext::GetFromContext(TfLiteContext*)' /usr/bin/ld: xnnpack_delegate.cc:(.text+0xc757): undefined reference to `tflite::CpuBackendContext::get_xnnpack_threadpool()' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/minimal.dir/build.make:179: minimal] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:1251: CMakeFiles/minimal.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2 ,,,
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59537/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59537/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59536
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59536/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59536/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59536/events
https://github.com/tensorflow/tensorflow/pull/59536
1,569,708,929
PR_kwDOArmXAs5JMhn8
59,536
[BUG FIX] Fix tensor_or_memref.h build error
{ "login": "i-chaochen", "id": 913790, "node_id": "MDQ6VXNlcjkxMzc5MA==", "avatar_url": "https://avatars.githubusercontent.com/u/913790?v=4", "gravatar_id": "", "url": "https://api.github.com/users/i-chaochen", "html_url": "https://github.com/i-chaochen", "followers_url": "https://api.github.com/users/i-chaochen/followers", "following_url": "https://api.github.com/users/i-chaochen/following{/other_user}", "gists_url": "https://api.github.com/users/i-chaochen/gists{/gist_id}", "starred_url": "https://api.github.com/users/i-chaochen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/i-chaochen/subscriptions", "organizations_url": "https://api.github.com/users/i-chaochen/orgs", "repos_url": "https://api.github.com/users/i-chaochen/repos", "events_url": "https://api.github.com/users/i-chaochen/events{/privacy}", "received_events_url": "https://api.github.com/users/i-chaochen/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Unfortunately, I rolled back this PR in https://github.com/tensorflow/tensorflow/commit/b3cc51779e074da7a85f2dcc6b1f0b224079c2ec because it broke the Mac build with the error\r\n\r\n```\r\nerror: no member named 'isnan' in namespace 'std'; did you mean simply 'isnan'?\r\n```\r\n\r\nAccording to [this StackOverflow question](https://stackoverflow.com/questions/32606023/when-using-c-headers-in-c-should-we-use-functions-from-std-or-the-global-na), including `math.h` will put `isnan` in the global namespace, and optionally may also put it in the `std` namespace. Since only the Mac build was broken, presumably this means on Mac it was only put in the global namespace but on Windows/Linux, it was also put in the `std` namespace.\r\n\r\nI think just including `math.h` without adding the `std::` prefix to `isnan` will fix the issue. Can you create a new PR that just includes `math.h`?", "> Unfortunately, I rolled back this PR in [b3cc517](https://github.com/tensorflow/tensorflow/commit/b3cc51779e074da7a85f2dcc6b1f0b224079c2ec) because it broke the Mac build with the error\r\n> \r\n> ```\r\n> error: no member named 'isnan' in namespace 'std'; did you mean simply 'isnan'?\r\n> ```\r\n> \r\n> According to [this StackOverflow question](https://stackoverflow.com/questions/32606023/when-using-c-headers-in-c-should-we-use-functions-from-std-or-the-global-na), including `math.h` will put `isnan` in the global namespace, and optionally may also put it in the `std` namespace. Since only the Mac build was broken, presumably this means on Mac it was only put in the global namespace but on Windows/Linux, it was also put in the `std` namespace.\r\n> \r\n> I think just including `math.h` without adding the `std::` prefix to `isnan` will fix the issue. Can you create a new PR that just includes `math.h`?\r\n\r\nThanks a lot for this reference and explaination! \r\n\r\nI have created a new PR based on the suggestion and it does resolve the build error on my side.\r\n\r\nhttps://github.com/tensorflow/tensorflow/pull/59775" ]
2023-02-03T11:41:49
2023-02-22T12:10:10
2023-02-16T18:09:16
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59536", "html_url": "https://github.com/tensorflow/tensorflow/pull/59536", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59536.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59536.patch", "merged_at": "2023-02-16T18:09:16" }
We found the build error on tensor_or_memref as the following, this PR has fixed it. ``` opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/tensor_or_memref.h:243:29: error: 'isnan' was not declared in this scope; did you mean 'std::isnan'? 243 | bool thisnan = isnan(at(indices)); | ~~~~~^~~~~~~~~~~~~ | std::isnan In file included from /usr/include/c++/9/complex:44, from bazel-out/k8-opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/interpreter_value.h:19, from tensorflow/compiler/xla/mlir_hlo/tools/mlir_interpreter/framework/tests/interpreter_value_test.cc:16: /usr/include/c++/9/cmath:632:5: note: 'std::isnan' declared here 632 | isnan(_Tp __x) | ^~~~~ opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/interpreter_value.h:108:31: required from here bazel-out/k8-opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/tensor_or_memref.h:243:29: error: 'isnan' was not declared in this scope; did you mean 'std::isnan'? 243 | bool thisnan = isnan(at(indices)); | ~~~~~^~~~~~~~~~~~~ | std::isnan In file included from /usr/include/c++/9/complex:44, from bazel-out/k8-opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/interpreter_value.h:19, from tensorflow/compiler/xla/mlir_hlo/tools/mlir_interpreter/framework/tests/interpreter_value_test.cc:16: /usr/include/c++/9/cmath:632:5: note: 'std::isnan' declared here 632 | isnan(_Tp __x) | ^~~~~ In file included from bazel-out/k8-opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/interpreter_value.h:34, from tensorflow/compiler/xla/mlir_hlo/tools/mlir_interpreter/framework/tests/interpreter_value_test.cc:16: bazel-out/k8-opt/bin/tensorflow/compiler/xla/mlir_hlo/_virtual_includes/mlir_interpreter_framework/tools/mlir_interpreter/framework/tensor_or_memref.h:244:30: error: 'isnan' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] 244 | bool othernan = isnan(other.at(indices)); ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59536/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59536/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59535
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59535/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59535/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59535/events
https://github.com/tensorflow/tensorflow/issues/59535
1,569,546,194
I_kwDOArmXAs5djV_S
59,535
Fails to convert SplitV with quantization
{ "login": "DiXcipuli", "id": 33719470, "node_id": "MDQ6VXNlcjMzNzE5NDcw", "avatar_url": "https://avatars.githubusercontent.com/u/33719470?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DiXcipuli", "html_url": "https://github.com/DiXcipuli", "followers_url": "https://api.github.com/users/DiXcipuli/followers", "following_url": "https://api.github.com/users/DiXcipuli/following{/other_user}", "gists_url": "https://api.github.com/users/DiXcipuli/gists{/gist_id}", "starred_url": "https://api.github.com/users/DiXcipuli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DiXcipuli/subscriptions", "organizations_url": "https://api.github.com/users/DiXcipuli/orgs", "repos_url": "https://api.github.com/users/DiXcipuli/repos", "events_url": "https://api.github.com/users/DiXcipuli/events{/privacy}", "received_events_url": "https://api.github.com/users/DiXcipuli/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": 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": "zichuan-wei", "id": 10928342, "node_id": "MDQ6VXNlcjEwOTI4MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/10928342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zichuan-wei", "html_url": "https://github.com/zichuan-wei", "followers_url": "https://api.github.com/users/zichuan-wei/followers", "following_url": "https://api.github.com/users/zichuan-wei/following{/other_user}", "gists_url": "https://api.github.com/users/zichuan-wei/gists{/gist_id}", "starred_url": "https://api.github.com/users/zichuan-wei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zichuan-wei/subscriptions", "organizations_url": "https://api.github.com/users/zichuan-wei/orgs", "repos_url": "https://api.github.com/users/zichuan-wei/repos", "events_url": "https://api.github.com/users/zichuan-wei/events{/privacy}", "received_events_url": "https://api.github.com/users/zichuan-wei/received_events", "type": "User", "site_admin": false }
[ { "login": "zichuan-wei", "id": 10928342, "node_id": "MDQ6VXNlcjEwOTI4MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/10928342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zichuan-wei", "html_url": "https://github.com/zichuan-wei", "followers_url": "https://api.github.com/users/zichuan-wei/followers", "following_url": "https://api.github.com/users/zichuan-wei/following{/other_user}", "gists_url": "https://api.github.com/users/zichuan-wei/gists{/gist_id}", "starred_url": "https://api.github.com/users/zichuan-wei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zichuan-wei/subscriptions", "organizations_url": "https://api.github.com/users/zichuan-wei/orgs", "repos_url": "https://api.github.com/users/zichuan-wei/repos", "events_url": "https://api.github.com/users/zichuan-wei/events{/privacy}", "received_events_url": "https://api.github.com/users/zichuan-wei/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "This issue can be labeled with \"Ubuntu20.04\" so that it is easier for contributors to find this OS-specific issue.", "@DiXcipuli \r\nI tried to replicate the issue on Colab using TF v2.11 but facing a different error. Could you please provide the code with all dependencies(saved_model_dir & representative_dataset) to replicate the issue reported here and find the gist [here](https://colab.research.google.com/gist/tiruk007/87756d2912a44b7c4a9825cafc630579/untitled106.ipynb) for reference.\r\n\r\nThank you!\r\n", "Sorry, I may have confuse myself, to reproduce the error, I need to add the **allow_custom_ops = True**, so we have:\r\n(I am not allowed to share my code, so I have to keep it basic)\r\n\r\n```\r\nimport tensorflow as tf\r\n\r\nquant = False\r\n\r\nconverter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)\r\nconverter.allow_custom_ops = True\r\nconverter.experimental_new_converter = True\r\n\r\nif quant:\r\n converter.optimizations = [tf.lite.Optimize.DEFAULT]\r\n converter.representative_dataset = representative_dataset\r\n converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]\r\n converter.inference_input_type = tf.int8 # or tf.uint8\r\n converter.inference_output_type = tf.int8 # or tf.uint8\r\nelse:\r\n converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS]\r\n\r\ntflite_quant_model = converter.convert()\r\n```\r\nWhich works with **quant = False**, but not with **quant=True**, giving the original error:\r\n`There are unresolved custom ops: [SplitV]Encountered unresolved custom op: SplitV.`\r\n\r\nBut moreover, after some test, I realized that turning to **False** the **allow_custom_ops** , no matter the state of **quant**, gives me this error:\r\n\r\n```\r\nSome ops are not supported by the native TFLite runtime, you can enable TF kernels fallback using TF Select. See instructions: https://www.tensorflow.org/lite/guide/ops_select\r\nTF Select ops: SplitV\r\n```\r\n\r\nBut I can see on the TF website: https://www.tensorflow.org/mlir/tfl_ops#tflsplit_v_mlirtflsplitvop that **tfl.split_v** is implemented. However, I can't find out from which version of tensorflow it is available.", "@DiXcipuli The MLIR based conversion is supported and it can be enabled by adding `converter.experimental_new_converter = True` which is true by default in latest versions.\r\n\r\nCan you please try in latest version(v2.11), also try adding the aforementioned flag and let us know if it helps. Thanks!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59535\">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/59535\">No</a>\n", "@pjpratik @tiruk007 I'd like to re-open the issue because I am still meeting errors when converting models having SplitV in it.\r\n\r\nThe setup is the same as describe in the first post, but as a summary:\r\n\r\nConverting model from **Torch** to **TFlite** (**Torch** -> **Onnx** -> **Tensorflow** -> **TFlite**. The error occurs from **Tensorflow** to **TFlite**.\r\nIn the converter parameter, I only enable **tf.lite.OpsSet.TFLITE_BUILTINS_INT8** and set **allow_custom_ops** to **False,** as I want to run my model on the basic **TFlite** engine. I have been using **Tensorflow 2.8.1** and **2.11.1**, and both return this error:\r\n\r\n```\r\nSome ops are not supported by the native TFLite runtime, you can enable TF kernels fallback using TF Select. See instructions: https://www.tensorflow.org/lite/guide/ops_select\r\nTF Select ops: SplitV\r\nDetails:\r\n tf.SplitV(tensor<1x62x13x13xf32>, tensor<2xi64>, tensor<i32>) -> (tensor<1x30x13x13xf32>, tensor<1x32x13x13xf32>) : {device = \"\"}\r\n tf.SplitV(tensor<1x62x26x26xf32>, tensor<2xi64>, tensor<i32>) -> (tensor<1x30x26x26xf32>, tensor<1x32x26x26xf32>) : {device = \"\"}\r\n tf.SplitV(tensor<1x62x52x52xf32>, tensor<2xi64>, tensor<i32>) -> (tensor<1x30x52x52xf32>, tensor<1x32x52x52xf32>) : {device = \"\"}\r\n tf.SplitV(tensor<1x62x7x7xf32>, tensor<2xi64>, tensor<i32>) -> (tensor<1x30x7x7xf32>, tensor<1x32x7x7xf32>) : {device = \"\"}\r\n```\r\n\r\nFrom what I understood, there is a a **TFlite SplitV Ops**: https://www.tensorflow.org/mlir/tfl_ops#tflsplit_v_mlirtflsplitvop \r\nSo I am wondering why it is not being converted into this equivalent.\r\n\r\nI am also a bit confused by the documentation. This error refers to **tf.SplitV**, but from what I have seen, SplitV is under **tf.raw_ops.SplitV**, and not **tf.SplitV**? (https://www.tensorflow.org/versions/r2.8/api_docs/python/tf/raw_ops/SplitV)\r\nThanks!\r\n\r\n(Here is a simplified sample to reproduce:)\r\n\r\n```\r\nconverter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir=path_tf,\r\n signature_keys=None,\r\n tags=None)\r\nconverter.allow_custom_ops = False\r\nconverter.experimental_new_converter = True\r\nconverter.target_spec.supported_ops = tf.lite.OpsSet.TFLITE_BUILTINS,\r\n\r\nmodel_tflite = converter.convert()\r\n```\r\n", "Hi @DiXcipuli \r\n\r\nCould you please share the saved model dir or a toy model to reproduce the issue? That will help us to better investigate the cause.\r\n\r\nThanks.", "Here is a pre-trained model from Nanodet (**NanoDet-m** in their Zoo) that I converted to **Torch->Onnx->Tensroflow**:\r\n[NanoDet-m.zip](https://github.com/tensorflow/tensorflow/files/11661301/NanoDet-m.zip)\r\n\r\nI could replicate the error with it.\r\nThanks!", "Hi @DiXcipuli \r\n\r\nThanks for sharing.\r\n\r\nI was a able to reproduce this issue. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/f5e5dd51db7e292296596871cd128a12/59535.ipynb).\r\n\r\nThe `SplitV` is listed as builtin op as I can see\r\nhttps://github.com/tensorflow/tensorflow/blob/0eeb07804e67c12e05c954b581333bca322ebf99/tensorflow/lite/builtin_ops.h#L132\r\n\r\n@pkgoogle Can you please look into this issue?\r\n\r\nThanks.\r\n", "Hi @zichuan-wei, can you please take a look?\r\n", "Hi @pjpratik & @DiXcipuli,\r\n\r\nAlthough we have support for splitV op in TFLite, the datatype for this is not complete: for the size_split, split_dim inputs, TFLite need them to be in int32, but the source model is having int64 as input. \r\n\r\nsource:https://github.com/tensorflow/tensorflow/blob/14f08e56d46936de39a9a0e09225eebd9ad836d9/tensorflow/compiler/mlir/lite/ir/tfl_ops.td#L3728", "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/59535\">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/59535\">No</a>\n" ]
2023-02-03T09:45:49
2023-06-24T02:07:44
2023-06-24T02:07:41
NONE
null
null
null
### 1. System information - Ubuntu20.04 - TensorFlow installation : conda - TensorFlow library 2.8.1 ### 2. Code When converting a model from Tensorflow to TFlite, I run into errors (regarding SplitV, check error below) when setting the pipeline with Int8 quantization, but not when using regular conversion (without quantization). I basically follow those instructions: ``` import tensorflow as tf converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.representative_dataset = representative_dataset converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8] converter.inference_input_type = tf.int8 # or tf.uint8 converter.inference_output_type = tf.int8 # or tf.uint8 tflite_quant_model = converter.convert() ``` I get the following error: `There are unresolved custom ops: [SplitV]Encountered unresolved custom op: SplitV.` It works fine if I add the SELECT_TF_OPS, but I want to keep the interpreter as small and fast as possible. So my assumption is that the SplitV operator in TFlite is not available with the Int8 quantization? How can I know beforehand which operator is available with the Int8 quantization?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59535/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59535/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59534
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59534/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59534/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59534/events
https://github.com/tensorflow/tensorflow/pull/59534
1,569,291,635
PR_kwDOArmXAs5JLHV3
59,534
Fix LSTMBlockCell Check Fail
{ "login": "mattbahr", "id": 7873323, "node_id": "MDQ6VXNlcjc4NzMzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/7873323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mattbahr", "html_url": "https://github.com/mattbahr", "followers_url": "https://api.github.com/users/mattbahr/followers", "following_url": "https://api.github.com/users/mattbahr/following{/other_user}", "gists_url": "https://api.github.com/users/mattbahr/gists{/gist_id}", "starred_url": "https://api.github.com/users/mattbahr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mattbahr/subscriptions", "organizations_url": "https://api.github.com/users/mattbahr/orgs", "repos_url": "https://api.github.com/users/mattbahr/repos", "events_url": "https://api.github.com/users/mattbahr/events{/privacy}", "received_events_url": "https://api.github.com/users/mattbahr/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" }, { "id": 1178505529, "node_id": "MDU6TGFiZWwxMTc4NTA1NTI5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/prtype:bugfix", "name": "prtype:bugfix", "color": "159b2e", "default": false, "description": "PR to fix a bug" }, { "id": 1478826728, "node_id": "MDU6TGFiZWwxNDc4ODI2NzI4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core", "name": "comp:core", "color": "024391", "default": false, "description": "issues related to core part of tensorflow" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Forgot to include the first argument for `OP_REQUIRES_OK`. It's added now. I think that should fix the build", "@mihaimaruseac thanks for the review! I am not sure I understand the difference between what you are asking for and the original behavior where the check fail would trigger a crash. Do you mind expanding on that a little bit?", "`CHECK` fail results in a crash. `OP_REQUIRES_OK` sets `ctx->Status` to return it to client and finishes execution of current function (it is a macro that ends with `return;`).\r\n\r\nBasically the issue is\r\n\r\n```cc\r\nvoid LSTMBlockCellFpropWithCUDA(OpKernelContext* ctx,,...) {\r\n CHECK(expr);\r\n ...\r\n}\r\n\r\nvoid LSTMBlockCell::Compute(OpKernelContext* ctx,...) {\r\n // do some validation\r\n LSTMBlockCellFpropWithCUDA(ctx, ...);\r\n // assume validation passed\r\n RunSomeOtherCode(...);\r\n}\r\n```\r\n\r\nRight now, `RunSomeOtherCode` does not run because the `CHECK`-fail terminates the process. What we want is still for `RunSomeOtherCode` to not run! If you just replace it with `OP_REQUIRES`, after expanding the macros the code would be\r\n\r\n```cc\r\nvoid LSTMBlockCellFpropWithCUDA(OpKernelContext* ctx,,...) {\r\n if(expr) {\r\n ctx->Status = errors::InvalidArgument(...);\r\n return; // <----------- this line\r\n }\r\n ...\r\n}\r\n\r\nvoid LSTMBlockCell::Compute(OpKernelContext* ctx,...) {\r\n // do some validation\r\n LSTMBlockCellFpropWithCUDA(ctx, ...);\r\n // !!!!! You still need to stop executing the kernel here if ctx->Status is not Ok !!!\r\n // assume validation passed\r\n RunSomeOtherCode(...);\r\n}\r\n```\r\n\r\nNow how the `return` will just terminate `LSTMBlockCellFpropWithCUDA` but if you don't change the `Compute` call then `RunSomeOtherCode` would run when we know that validation already failed. So this causes more harm than just a process crash", "Ok, that makes sense. Thanks for your help! I didn't realize how the macro worked. I think this latest commit accomplishes what you're saying, but just let me know if you think anything needs to change", "Were you able to test your changes and see if the check fail isn't being triggered anymore? \r\nPlease also add unit tests that test your change. \r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py or\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ops/cudnn_rnn_ops_test.cc could be relevant places to add them. ", "Thanks for the pointers on the unit tests! I'll get those added soon. When I test locally against the error case from the related issue, I get the following error logs, but Python no longer crashes:\r\n``` ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.460448: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.460510: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.465759: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.465774: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.470031: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.470046: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.474474: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.474486: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.478711: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.478723: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.482907: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.482920: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.487107: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.487120: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.492341: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.492353: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.496483: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.496495: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.500759: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.500771: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.504896: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.504908: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.508996: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.509008: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.513247: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.513259: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.517478: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.517490: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.522420: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.522433: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.526810: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.526822: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.530964: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.530976: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.535143: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.535155: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.539309: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.539321: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument\r\n ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-10 06:55:35.543485: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error\r\n2023-02-10 06:55:35.543498: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at lstm_ops_gpu.cu.cc:277 : INTERNAL: invalid configuration argument", "@swachhandl My ARM CI build is failing for the `testLSTMBlockCellErrorHandling2` unit test that I added to `rnn_cell_test.py`. Do you have any suggestions for things I could try to fix it? Could it be that maybe I'm using the wrong `@test_util` annotation? When I run the unit test locally it passes.", "> @swachhandl My ARM CI build is failing for the `testLSTMBlockCellErrorHandling2` unit test that I added to `rnn_cell_test.py`. Do you have any suggestions for things I could try to fix it? Could it be that maybe I'm using the wrong `@test_util` annotation? When I run the unit test locally it passes.\r\n\r\nIt seems your test is failing on ARM/Ubuntu/Mac CPU CI but passes on Ubuntu GPU. Can you check if the CPU version is failing because it's not throwing any error (and hence, failing the assert)? \r\n\r\nIf the CPU version isn't throwing _any_ error, I think the ideal solution would be to make the GPU version also return the same result as the CPU counterpart (instead of returning an error).", "> > @swachhandl My ARM CI build is failing for the `testLSTMBlockCellErrorHandling2` unit test that I added to `rnn_cell_test.py`. Do you have any suggestions for things I could try to fix it? Could it be that maybe I'm using the wrong `@test_util` annotation? When I run the unit test locally it passes.\r\n> \r\n> It seems your test is failing on ARM/Ubuntu/Mac CPU CI but passes on Ubuntu GPU. Can you check if the CPU version is failing because it's not throwing any error (and hence, failing the assert)?\r\n> \r\n> If the CPU version isn't throwing _any_ error, I think the ideal solution would be to make the GPU version also return the same result as the CPU counterpart (instead of returning an error).\r\n\r\nSo this is the CPU variant of the code:\r\nhttps://github.com/tensorflow/tensorflow/blob/ed3e77f858fdba02e6cc402ddb9a9d722c9d158e/tensorflow/core/kernels/rnn/lstm_ops.cc#L73-L126\r\n\r\nAnd then this is the GPU code:\r\nhttps://github.com/tensorflow/tensorflow/blob/ed3e77f858fdba02e6cc402ddb9a9d722c9d158e/tensorflow/core/kernels/rnn/lstm_ops_gpu.cu.cc#L98-L194\r\n\r\nI guess one or more of the assumptions spelled out in the comment are causing the error. I can try to add some validations and see how that affects things.", "@swachhandl I confirmed that when run on the CPU, no error is thrown, but I'm having a hard time finding a way to get the GPU code to behave in same way. Would it be valid to mark this test case to run only on GPU?", "Can you pull master and see if the error for GPU still persists? A recent commit (https://github.com/tensorflow/tensorflow/commit/764eae38919b45556373a320af1079ac54e70521) might have fixed it. Even if it's been fixed, propagating the error/checking the status is still useful.", "@swachhandl I've been having issues building from source on my machine after merging master into my branch, so I figured I'd just test with the nightly build. The core is no longer being dumped, but an internal error is still being thrown when I run on GPU:\r\n```On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-02-20 02:32:30.937716: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: an unsupported value or parameter was passed to the function\r\n```\r\nNo error is thrown on CPU, just as before.", "> @swachhandl I've been having issues building from source on my machine after merging master into my branch, so I figured I'd just test with the nightly build. The core is no longer being dumped, but an internal error is still being thrown when I run on GPU:\r\n> \r\n> ```\r\n> 2023-02-20 02:32:30.937716: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: an unsupported value or parameter was passed to the function\r\n> ```\r\n> \r\n> No error is thrown on CPU, just as before.\r\n\r\nAre you getting the internal error even after your changes related to error propagation? What's the result when you run this on CPU? ", "> > @swachhandl I've been having issues building from source on my machine after merging master into my branch, so I figured I'd just test with the nightly build. The core is no longer being dumped, but an internal error is still being thrown when I run on GPU:\r\n> > ```\r\n> > 2023-02-20 02:32:30.937716: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: an unsupported value or parameter was passed to the function\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> > No error is thrown on CPU, just as before.\r\n> \r\n> Are you getting the internal error even after your changes related to error propagation? What's the result when you run this on CPU?\r\n\r\nOk, I got the build working after merging master into my branch earlier today. With my error propagation code in place it's still behaving the same way. I get the internal error when I run the on the GPU, but no error is produced when I run the same code on the CPU.\r\n` ** On entry to SGEMM_EX parameter number 8 had an illegal value\r\n2023-03-06 19:51:25.813000: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at blas_gemm.cc:52 : INTERNAL: cublas error`", "> I get the internal error when I run the on the GPU, but no error is produced when I run the same code on the CPU.\r\n\r\nDid you try investigating where the error is originating from? I'm not sure why it isn't being propagated with your changes in place. ", "> Did you try investigating where the error is originating from? I'm not sure why it isn't being propagated with your changes in place.\r\n\r\nI was on the wrong track comparing those two functions in `lstm_ops.cc` and `lstm_ops_gpu.cu.cc`. The internal error is originating here:\r\nhttps://github.com/tensorflow/tensorflow/blob/4139a2ada21479f923a850bf2708dfe077a22254/tensorflow/core/kernels/rnn/blas_gemm.cc#L52-L56", "@swachhandl I think I'm getting closer. The line of code where the internal error is being thrown is at the end of this function: \r\nhttps://github.com/tensorflow/tensorflow/blob/c99a73e9ee06d254ec5cafe4183d98342421827b/tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc#L356-L389\r\n`DoBlasInternalImpl` is being called here with `cublasSgemmEx` acting as the `cublas_func`:\r\nhttps://github.com/tensorflow/tensorflow/blob/c99a73e9ee06d254ec5cafe4183d98342421827b/tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc#L653-L658\r\nFrom the error message: `** On entry to SGEMM_EX parameter number 8 had an illegal value`, it looks like `a.opaque()` is returning an invalid value as a parameter for the function `cublasSgemmEx`", "It looks like `a.opaque()` is returning a null pointer. I tried adding the following lines of code before the call to `DoBlasInternalImpl`, and my test error was triggered.\r\n\r\n```\r\nconst void *test = a.opaque();\r\n\r\nif (!test) {\r\n return tsl::errors::Internal(\"TEST ERROR TRIGGERED\");\r\n}\r\n```\r\n\r\n@swachhandl do you have any ideas on how we might handle this better?", "The line in the `lstm_ops_gpu.cu.cc` file where the internal error is getting thrown seems to be this one:\r\nhttps://github.com/tensorflow/tensorflow/blob/b9a128ea6397f3d49211bff68563846254734d5b/tensorflow/core/kernels/rnn/lstm_ops_gpu.cu.cc#L256-L258\r\nIt used to crash a few lines beyond that:\r\nhttps://github.com/tensorflow/tensorflow/blob/b9a128ea6397f3d49211bff68563846254734d5b/tensorflow/core/kernels/rnn/lstm_ops_gpu.cu.cc#L269-L283\r\nSo that might explain why we're no longer seeing the core dump. I wonder if it has to do with this commit where `port::InternalError` was switched to `tsl::errors::Internal`: https://github.com/tensorflow/tensorflow/commit/a801af081952535b541852ad6ad96e0d536f2965#diff-9a98b7aa9b93a7357e8bbcdfc82739ef47c69251c684c6c4e58b3b1ff9cd4ac3", "Apologies for the late response. I'm not quite sure that it could be happening due to switching out `port::InternalError` with `tsl::errors::Internal`. Are you able to check why `a.opaque()` is a nullptr? And how does it (or whether it even does) map to the input arguments to the op? If we can, we might be able to put a check in the op. ", "I haven't looked into this deeply, but `nullptr`s usually come up with 0-sized inputs, and that has often been a cause of these CPU vs GPU different error behaviors, where the CPU returns a (valid) empty result, but the GPU crashes because CUDA doesn't often properly handle empty inputs.", "> Apologies for the late response. I'm not quite sure that it could be happening due to switching out `port::InternalError` with `tsl::errors::Internal`. Are you able to check why `a.opaque()` is a nullptr? And how does it (or whether it even does) map to the input arguments to the op? If we can, we might be able to put a check in the op.\r\n\r\nNo problem! I'm pretty confident `a.opaque()` is our problem parameter. It is the 11th parameter for the call to `DoBlasInternalImpl`, which has four defined parameters, and then the rest of the `args` are passed to the `cublas_func`, which has one other parameter... 11 - 4 = 8 - 1\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/c99a73e9ee06d254ec5cafe4183d98342421827b/tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc#L653-L658\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/c99a73e9ee06d254ec5cafe4183d98342421827b/tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc#L356-L358\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/c99a73e9ee06d254ec5cafe4183d98342421827b/tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc#L384\r\n\r\nWhen I add the `CHECK(a.opaque() != nullptr)` the `InternalError` no longer gets thrown, and the behavior matches what I see on CPU.", "> When I add the `CHECK(a.opaque() != nullptr)` the `InternalError` no longer gets thrown, and the behavior matches what I see on CPU.\r\n\r\nHow can it match CPU? I thought the CPU behavior _didn't_ crash.", "> > When I add the `CHECK(a.opaque() != nullptr)` the `InternalError` no longer gets thrown, and the behavior matches what I see on CPU.\r\n> \r\n> How can it match CPU? I thought the CPU behavior _didn't_ crash.\r\n\r\nHmm, I'm not sure what happened over the weekend when I tested this, but when I run it now on GPU with the check, it does crash. Must have been an issue with how I was testing. That's my mistake. I'll remove that check.\r\n\r\nAnd that's correct - it does not crash on CPU. It doesn't throw any error at all on CPU. I'm still kind of stumped as to how to get the behaviors to match.", "> And that's correct - it does not crash on CPU. It doesn't throw any error at all on CPU. I'm still kind of stumped as to how to get the behaviors to match.\r\n\r\nWhat's the output on CPU?", "> What's the output on CPU?\r\n\r\nHere's what I get when I print the result on CPU:\r\n\r\n```\r\nLSTMBlockCell(i=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, cs=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, f=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, o=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, ci=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, co=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, h=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>)\r\n```", "> ```\r\n> LSTMBlockCell(i=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, cs=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, f=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, o=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, ci=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, co=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>, h=<tf.Tensor: shape=(2, 0), dtype=float16, numpy=array([], shape=(2, 0), dtype=float16)>)\r\n> ```\r\n\r\nAs I suspected, most of those are actually _empty_ tensors. In TF, an empty tensor (e.g. one dimension has size zero) ends up having a `nullptr` for a data pointer. This is mainly because on most systems, when you try to allocate something of size 0 via `malloc`, you end up getting a `nullptr` back.\r\n\r\nThe input sizes are likely degenerate (i.e. there's an empty input). The CPU kernel correctly handles this, returning empty outputs of the correct size. The GPU kernel does not - it blindly forwards the arguments along until the CUDA GEMM call, which then crashes because one of the inputs (whatever becomes `a`) is a `nullptr`. To fix this, you need to track down which input leads to the empty tensor, and do special handling _before_ calling into CUDA.", "ROCm CI build failure appears to be due to the removal of this constructor from `status.h` in commit: https://github.com/tensorflow/tensorflow/commit/667081b1c3d84c8fee4b5965d5e151158c74d4f8#diff-2497c155e2f97993a2cea18969d80f2d414e2f1b346cf006d8a8b655a8316b1d\r\n\r\nLooks like other pull request builds are failing with the same errors.", "Just because I'm new to the project, would anybody mind filling me in on how the import/copybara works? At this point is it pending because the AMD ROCm and the MacOS CPU builds failed? I'm seeing other pull requests for which the import completed even though various builds failed", "The full process is at\r\n\r\n![image](https://user-images.githubusercontent.com/323199/229561784-0a2f5509-b731-493f-ad88-bad487688c8d.png)\r\n\r\nRight now, this is pending Gerrit review. CC @gbaned " ]
2023-02-03T06:24:59
2023-04-05T13:16:07
2023-04-04T20:07:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59534", "html_url": "https://github.com/tensorflow/tensorflow/pull/59534", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59534.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59534.patch", "merged_at": "2023-04-04T20:07:02" }
Fixes #58270
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59534/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59534/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59533
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59533/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59533/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59533/events
https://github.com/tensorflow/tensorflow/pull/59533
1,569,247,697
PR_kwDOArmXAs5JK93N
59,533
[BUG FIX] fix audio_spectrogram in multi-channel
{ "login": "gaoyiyeah", "id": 8412433, "node_id": "MDQ6VXNlcjg0MTI0MzM=", "avatar_url": "https://avatars.githubusercontent.com/u/8412433?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaoyiyeah", "html_url": "https://github.com/gaoyiyeah", "followers_url": "https://api.github.com/users/gaoyiyeah/followers", "following_url": "https://api.github.com/users/gaoyiyeah/following{/other_user}", "gists_url": "https://api.github.com/users/gaoyiyeah/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaoyiyeah/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaoyiyeah/subscriptions", "organizations_url": "https://api.github.com/users/gaoyiyeah/orgs", "repos_url": "https://api.github.com/users/gaoyiyeah/repos", "events_url": "https://api.github.com/users/gaoyiyeah/events{/privacy}", "received_events_url": "https://api.github.com/users/gaoyiyeah/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Please take some time to review. @sirakiin " ]
2023-02-03T05:31:46
2023-10-13T09:23:09
2023-10-13T09:23:08
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59533", "html_url": "https://github.com/tensorflow/tensorflow/pull/59533", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59533.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59533.patch", "merged_at": "2023-10-13T09:23:08" }
Reset samples_to_next_step_ to window_length_ in each channel
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59533/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59533/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59532
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59532/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59532/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59532/events
https://github.com/tensorflow/tensorflow/pull/59532
1,569,217,456
PR_kwDOArmXAs5JK3Nn
59,532
[XLA] Support big-endian in numpy-style type descriptor
{ "login": "kiszk", "id": 1315079, "node_id": "MDQ6VXNlcjEzMTUwNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1315079?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kiszk", "html_url": "https://github.com/kiszk", "followers_url": "https://api.github.com/users/kiszk/followers", "following_url": "https://api.github.com/users/kiszk/following{/other_user}", "gists_url": "https://api.github.com/users/kiszk/gists{/gist_id}", "starred_url": "https://api.github.com/users/kiszk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kiszk/subscriptions", "organizations_url": "https://api.github.com/users/kiszk/orgs", "repos_url": "https://api.github.com/users/kiszk/repos", "events_url": "https://api.github.com/users/kiszk/events{/privacy}", "received_events_url": "https://api.github.com/users/kiszk/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1133285679, "node_id": "MDU6TGFiZWwxMTMzMjg1Njc5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla", "name": "comp:xla", "color": "0052cc", "default": false, "description": "XLA" }, { "id": 1169364458, "node_id": "MDU6TGFiZWwxMTY5MzY0NDU4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S", "name": "size:S", "color": "adafea", "default": false, "description": "CL Change Size: Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[]
2023-02-03T04:56:05
2023-02-03T16:36:29
2023-02-03T16:36:29
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59532", "html_url": "https://github.com/tensorflow/tensorflow/pull/59532", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59532.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59532.patch", "merged_at": "2023-02-03T16:36:29" }
This PR supports [big-endian byte order](https://numpy.org/doc/stable/reference/arrays.dtypes.html#specifying-and-constructing-data-types) in numpy-style type descriptor. This order is determined by the order of a machine to build xla library.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59532/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59532/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59531
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59531/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59531/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59531/events
https://github.com/tensorflow/tensorflow/issues/59531
1,568,736,456
I_kwDOArmXAs5dgQTI
59,531
Fail to export model created with audio_classifier.create() on windows 10, Python 3.9.16
{ "login": "hakimus2k", "id": 100302232, "node_id": "U_kgDOBfp9mA", "avatar_url": "https://avatars.githubusercontent.com/u/100302232?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hakimus2k", "html_url": "https://github.com/hakimus2k", "followers_url": "https://api.github.com/users/hakimus2k/followers", "following_url": "https://api.github.com/users/hakimus2k/following{/other_user}", "gists_url": "https://api.github.com/users/hakimus2k/gists{/gist_id}", "starred_url": "https://api.github.com/users/hakimus2k/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hakimus2k/subscriptions", "organizations_url": "https://api.github.com/users/hakimus2k/orgs", "repos_url": "https://api.github.com/users/hakimus2k/repos", "events_url": "https://api.github.com/users/hakimus2k/events{/privacy}", "received_events_url": "https://api.github.com/users/hakimus2k/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 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": "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
[ "Just a correction: The installed version (by compilation) is Model Maker Version: 0.3.4.\r\nI´m have not been able to update to 0.4.2.\r\n\r\n", "Hi @hakimus2k !\r\n\r\nThe code and error log provided are not reproducible as a standalone code. Please refer to the [colab tutorial](https://colab.research.google.com/github/googlecodelabs/odml-pathways/blob/main/audio_classification/colab/model_maker_audio_colab.ipynb) for the audio classification using model maker.\r\n\r\nCould you provide a gist with 0.4.2 or nightly version which can be installed by using `pip install tflite-model-maker-nightly`. \r\n\r\nThank you!\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59531\">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/59531\">No</a>\n", "@hakimus2k In order to expedite the trouble-shooting process, please provide accessible files with colab gist/code snippet to reproduce the issue reported here. That will help better understand and investigate the issue further. \r\n\r\n\r\nAre you trying to reproduce https://www.tensorflow.org/lite/api_docs/python/tflite_model_maker/audio_classifier locally for custom data and hitting problems?\r\n\r\nIf so, can you please mention what steps have you changed?\r\n\r\n Thanks!", "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/59531\">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/59531\">No</a>\n" ]
2023-02-02T20:27:36
2023-03-28T01:58:02
2023-03-28T01:58:00
NONE
null
null
null
Hi there! Invoking the kind support of brightest minds! I´m trying to export the model created with audio_classifier.create() function, in an audio classification model using the TensorFlow Lite Model Maker library, taken from the online tutorial. The code runs ok, identefoies the audio but if fails to export the model. ### 1. System information - OS: windows 10 - TensorFlow 2.9.0 installed via PIP - Tflite-model-maker 0.4.2 installed from source : git clone https://github.com/tensorflow/examples cd examples/tensorflow_examples/lite/model_maker/pip_package pip install -e . ### 2. Code #!/usr/bin/env python # coding: utf-8 # ##### Copyright 2021 The TensorFlow Authors. import tensorflow as tf import tflite_model_maker as mm from tflite_model_maker import audio_classifier import os import numpy as np import matplotlib.pyplot as plt import seaborn as sns import itertools import glob import random from pathlib import Path from IPython.display import Audio, Image, display from scipy.io import wavfile from tensorflow.keras import models print(f"TensorFlow Version: {tf.__version__}") print(f"Model Maker Version: {mm.__version__}") data_dir = './dataset/urbanbirds' bird_code_to_name = { 'anupreto': 'Anu preto', 'bemtevi': 'Bemtevi', 'ticotico': 'Tico tico', 'corruira': 'Corruira', 'sabia': "Sabia laranjeira", } birds_images = { 'anupreto': 'http://myserver/public/img/Anupreto.jpg', 'bemtevi': 'http://myserver/public/img/Bemtevi.jpg', 'ticotico': 'http://myserver/public/img/Ticotico.jpg', 'corruira': 'http://myserver/public/img/Corruira.jpg', 'sabia': 'http://myserver/public/img/Sabia_Laranjeira.jpg', } test_files = os.path.abspath(os.path.join(data_dir, 'test/*/*.wav')) base_dir = Path().resolve() print(f'=== BASE PATH: {base_dir}') def get_random_audio_file(): test_list = glob.glob(test_files) random_audio_path = random.choice(test_list) return random_audio_path def show_bird_data(audio_path): print('PATH: ' + audio_path) sample_rate, audio_data = wavfile.read(audio_path, 'rb') #bird_code = audio_path.split('/')[-2] bird_code = Path(audio_path).stem print('Birdcode: ' + bird_code) print(f'Bird name: {bird_code_to_name[bird_code]}') print(f'Bird code: {bird_code}') display(Image(birds_images[bird_code])) plttitle = f'{bird_code_to_name[bird_code]} ({bird_code})' plt.title(plttitle) plt.plot(audio_data) display(Audio(audio_data, rate=sample_rate)) print('functions and data structures created') spec = audio_classifier.YamNetSpec( keep_yamnet_and_custom_heads=True, frame_step=3 * audio_classifier.YamNetSpec.EXPECTED_WAVEFORM_LENGTH, frame_length=6 * audio_classifier.YamNetSpec.EXPECTED_WAVEFORM_LENGTH) train_data = audio_classifier.DataLoader.from_folder( spec, os.path.join(data_dir, 'train'), cache=True) train_data, validation_data = train_data.split(0.8) test_data = audio_classifier.DataLoader.from_folder( spec, os.path.join(data_dir, 'test'), cache=True) batch_size = 4 #epochs = 100 epochs = 50 print('Training the model') model = audio_classifier.create( train_data, spec, validation_data, batch_size=batch_size, epochs=epochs) print('Evaluating the model') model.evaluate(test_data) def show_confusion_matrix(confusion, test_labels): """Compute confusion matrix and normalize.""" confusion_normalized = confusion.astype("float") / confusion.sum(axis=1) axis_labels = test_labels ax = sns.heatmap( confusion_normalized, xticklabels=axis_labels, yticklabels=axis_labels, cmap='Blues', annot=True, fmt='.2f', square=True) plt.title("Confusion matrix") plt.ylabel("True label") plt.xlabel("Predicted label") confusion_matrix = model.confusion_matrix(test_data) show_confusion_matrix(confusion_matrix.numpy(), test_data.index_to_label) serving_model = model.create_serving_model() print(f'------->>> Model\'s input shape and type: {serving_model.inputs}') print(f'------->>> Model\'s output shape and type: {serving_model.outputs}') #random_audio = get_random_audio_file() random_audio = 'C:/ONEDRIVE/WEBDEV/Phyton/SOUND MNGT/BirdFinder_TFmodelMaker/dataset/urbanbirds/test/sabia/sabia.wav' show_bird_data(random_audio) sample_rate, audio_data = wavfile.read(random_audio, 'rb') audio_data = np.array(audio_data) / tf.int16.max input_size = serving_model.input_shape[1] splitted_audio_data = tf.signal.frame(audio_data, input_size, input_size, pad_end=True, pad_value=0) print(f'Test audio path: {random_audio}') print(f'Original size of the audio data: {len(audio_data)}') print(f'Number of windows for inference: {len(splitted_audio_data)}') print(random_audio) results = [] print('Result of the window ith: your model class -> score, (spec class -> score)') for i, data in enumerate(splitted_audio_data): yamnet_output, inference = serving_model(data) results.append(inference[0].numpy()) result_index = tf.argmax(inference[0]) spec_result_index = tf.argmax(yamnet_output[0]) t = spec._yamnet_labels()[spec_result_index] result_str = f'Result of the window {i}: ' f'\t{test_data.index_to_label[result_index]} -> {inference[0][result_index].numpy():.3f}, ' f'\t({spec._yamnet_labels()[spec_result_index]} -> {yamnet_output[0][spec_result_index]:.3f})' print(result_str) results_np = np.array(results) mean_results = results_np.mean(axis=0) result_index = mean_results.argmax() print(f'======= Mean result: {test_data.index_to_label[result_index]} -> {mean_results[result_index]}') print(f'======= EXPROTING MODEL ==========') # ##>>>>>>>>>>>> Exporting the model models_path = './birds_models' print(f'>>>>>>>Exporting the TFLite model to {models_path}') model.export(models_path, tflite_filename='my_birds_model.tflite') ### 3. Failure after conversion Follows the output messages: ======= EXPROTING MODEL ========== Exporing the TFLite model to ./birds_models INFO:tensorflow:Assets written to: C:\Users\cacer\AppData\Local\Temp\tmpgfe99jhn\assets INFO:tensorflow:Assets written to: C:\Users\cacer\AppData\Local\Temp\tmpgfe99jhn\assets 2023-02-02 15:59:51.915885: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2023-02-02 15:59:51.916566: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2023-02-02 15:59:52.180655: I tensorflow/core/util/util.cc:169] 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-02-02 16:00:22.148077: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found 2023-02-02 16:00:22.148617: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303) 2023-02-02 16:00:22.151299: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: BEOWULFII 2023-02-02 16:00:22.151513: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: BEOWULFII 2023-02-02 16:00:22.154293: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-02-02 16:01:34.292489: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 16:01:34.296911: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 16:01:35.435869: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 16:01:35.435906: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. 2023-02-02 16:01:36.112261: I tensorflow/compiler/mlir/lite/flatbuffer_export.cc:1972] Estimated count of arithmetic ops: 142.195 M ops, equivalently 71.097 M MACs 2023-02-02 16:20:46.025719: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 16:20:46.029231: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 16:20:48.424157: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 16:20:48.424274: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. 2023-02-02 16:20:50.006278: I tensorflow/compiler/mlir/lite/flatbuffer_export.cc:1972] Estimated count of arithmetic ops: 142.195 M ops, equivalently 71.097 M MACs 2023-02-02 17:16:12.217821: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 17:16:12.221225: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 15:59:51.915885: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2023-02-02 15:59:51.916566: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2023-02-02 15:59:52.180655: I tensorflow/core/util/util.cc:169] 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-02-02 16:00:22.148077: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found 2023-02-02 16:00:22.148617: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303) 2023-02-02 16:00:22.151299: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: BEOWULFII 2023-02-02 16:00:22.151513: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: BEOWULFII 2023-02-02 16:00:22.154293: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-02-02 16:01:34.292489: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 16:01:34.296911: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 16:01:35.435869: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 16:01:35.435906: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. 2023-02-02 16:01:36.112261: I tensorflow/compiler/mlir/lite/flatbuffer_export.cc:1972] Estimated count of arithmetic ops: 142.195 M ops, equivalently 71.097 M MACs 2023-02-02 16:20:46.025719: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 16:20:46.029231: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 16:20:48.424157: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 16:20:48.424274: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. 2023-02-02 16:20:50.006278: I tensorflow/compiler/mlir/lite/flatbuffer_export.cc:1972] Estimated count of arithmetic ops: 142.195 M ops, equivalently 71.097 M MACs 2023-02-02 17:16:12.217821: I tensorflow/core/grappler/devices.cc:66] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2023-02-02 17:16:12.221225: I tensorflow/core/grappler/clusters/single_machine.cc:358] Starting new session 2023-02-02 17:16:13.721493: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 17:16:13.721548: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. WARNING:absl:Buffer deduplication procedure will be skipped when flatbuffer library is not properly loaded Traceback (most recent call last): Cell In[4], line 1 runfile('C:/ONEDRIVE/WEBDEV/Phyton/SOUND MNGT/BirdFinder_TFmodelMaker/BirdModelMakerv2.py', wdir='C:/ONEDRIVE/WEBDEV/Phyton/SOUND MNGT/BirdFinder_TFmodelMaker') File C:\DEV\Anaconda3\envs\P39\lib\site-packages\debugpy\_vendored\pydevd\_pydev_bundle\pydev_umd.py:167 in runfile execfile(filename, namespace) File C:\DEV\Anaconda3\envs\P39\lib\site-packages\debugpy\_vendored\pydevd\_pydev_imps\_pydev_execfile.py:25 in execfile exec(compile(contents + "\n", file, 'exec'), glob, loc) File C:/ONEDRIVE/WEBDEV/Phyton/SOUND MNGT/BirdFinder_TFmodelMaker/BirdModelMakerv2.py:167 model.export(models_path, tflite_filename='my_birds_model.tflite') File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\custom_model.py:132 in export self._export_tflite(tflite_filepath, **export_tflite_kwargs) File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\audio_classifier.py:82 in _export_tflite self.model_spec.export_tflite(self.model, tflite_filepath, with_metadata, File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\model_spec\audio_spec.py:630 in export_tflite model_util.export_tflite( File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\model_util.py:166 in export_tflite tflite_model = converter.convert() File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow\lite\python\lite.py:929 in wrapper return self._convert_and_export_metrics(convert_func, *args, **kwargs) File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow\lite\python\lite.py:921 in _convert_and_export_metrics return flatbuffer_utils.convert_object_to_bytearray(model_object) File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow\lite\tools\flatbuffer_utils.py:84 in convert_object_to_bytearray model_offset = model_object.Pack(builder) File C:\DEV\Anaconda3\envs\P39\lib\site-packages\tensorflow\lite\python\schema_py_generated.py:5951 in Pack operatorCodes = builder.EndVector(len(self.operatorCodes)) TypeError: EndVector() takes 1 positional argument but 2 were given --- from here, follows some warnings about cuda (which doestn makes sense because I´m using a laptop) Thanks in advance for any light on this!
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59531/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59531/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59530
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59530/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59530/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59530/events
https://github.com/tensorflow/tensorflow/issues/59530
1,568,686,237
I_kwDOArmXAs5dgECd
59,530
Status of int8 dot/conv with XLA+CUDA
{ "login": "jmc128", "id": 120413283, "node_id": "U_kgDOBy1cYw", "avatar_url": "https://avatars.githubusercontent.com/u/120413283?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jmc128", "html_url": "https://github.com/jmc128", "followers_url": "https://api.github.com/users/jmc128/followers", "following_url": "https://api.github.com/users/jmc128/following{/other_user}", "gists_url": "https://api.github.com/users/jmc128/gists{/gist_id}", "starred_url": "https://api.github.com/users/jmc128/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jmc128/subscriptions", "organizations_url": "https://api.github.com/users/jmc128/orgs", "repos_url": "https://api.github.com/users/jmc128/repos", "events_url": "https://api.github.com/users/jmc128/events{/privacy}", "received_events_url": "https://api.github.com/users/jmc128/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1097547538, "node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu", "name": "comp:gpu", "color": "0052cc", "default": false, "description": "GPU related issues" }, { "id": 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": 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" } ]
open
false
{ "login": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }
[ { "login": "cheshire", "id": 348959, "node_id": "MDQ6VXNlcjM0ODk1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cheshire", "html_url": "https://github.com/cheshire", "followers_url": "https://api.github.com/users/cheshire/followers", "following_url": "https://api.github.com/users/cheshire/following{/other_user}", "gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}", "starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cheshire/subscriptions", "organizations_url": "https://api.github.com/users/cheshire/orgs", "repos_url": "https://api.github.com/users/cheshire/repos", "events_url": "https://api.github.com/users/cheshire/events{/privacy}", "received_events_url": "https://api.github.com/users/cheshire/received_events", "type": "User", "site_admin": false }, { "login": "sachinprasadhs", "id": 73069040, "node_id": "MDQ6VXNlcjczMDY5MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sachinprasadhs", "html_url": "https://github.com/sachinprasadhs", "followers_url": "https://api.github.com/users/sachinprasadhs/followers", "following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}", "gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}", "starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions", "organizations_url": "https://api.github.com/users/sachinprasadhs/orgs", "repos_url": "https://api.github.com/users/sachinprasadhs/repos", "events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}", "received_events_url": "https://api.github.com/users/sachinprasadhs/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi,\r\nI would like to contribute to this organization. But, I don't know how to. Can you suggest me what to learn ?. I have learnt about deep learning. And I have tried reading as many as issue's. Even though I have not been able to understand how to solve these issue's. So please let me know what I should learn first. ", "Hi @SuryanarayanaY, can you please look into this? Thanks.", "Hi @jmc128 ,\r\n\r\nThe issue [49140](https://github.com/tensorflow/tensorflow/issues/49140) still open in our internal ticket also.I will check and let you know if there is any update.\r\n\r\nI would like to know how you have implemented the dot product with XLA. Is it annotated with `@tf.function(jit_compile=True) `? \r\n\r\nAlso request you to please submit your issue in the standard format attached [here](https://github.com/tensorflow/tensorflow/issues/new?assignees=&labels=&template=tensorflow_issue_template.yaml).\r\n\r\nThanks!", "Hi @SuryanarayanaY, I've updated the post with a code example and system information.", "@jmc128 , \r\n\r\nThanks for the implementation code. I have tested the same in colab and it seems the dot(tf.matmul) is success but tf.nn.Conv2D still not supported as per [gist](https://colab.research.google.com/gist/SuryanarayanaY/5431db781950603aa2995ad8612a1b2b/59530.ipynb).\r\n\r\nCould you please submit minimal code snippet for performance comparison as you observed on tf.matmul?", "I've attached a script which I've been using to benchmark the throughput of linear layers using int8 and fp16 precision. \r\n\r\nOn an A100, it produces the following results :\r\n```\r\nTOPS/TFLOPS\r\n==========================\r\ndim | int8 fp16\r\n--------------------------\r\n256 | 0.29 0.34\r\n512 | 2.33 2.79\r\n1024 | 16.51 19.47\r\n2048 | 96.75 102.14\r\n4096 | 261.43 205.79\r\n8192 | 354.98 263.79\r\n16384 | 367.82 272.62\r\n==========================\r\n```\r\nMy issue regarding performance is that int8 throughput should be approaching 2x the throughput of fp16. In my experiments with TensorRT, int8 attains 2x throughput vs fp16 for dims >= 2048, and for dims between 256 and 2048 throughput is still at least 1.7x. I was hoping someone familiar with the internals of XLA could comment on whether this level of performance can be attained with XLA. Is there a particular way to express this computation in TensorFlow which enables XLA to output better-optimized kernels, or is this simply not possible at all with XLA at the moment?\r\n\r\n```python\r\nimport time\r\nimport tensorflow as tf\r\n\r\n\r\ndef int8_linear_layer(x, params):\r\n # read in x and w as pre-quantized int8 tensors\r\n y = tf.matmul(x, params[\"w\"], output_type=tf.int32)\r\n\r\n # add bias and apply activation in fp32\r\n y = tf.cast(y, tf.float32)\r\n y = y + params[\"b\"]\r\n y = tf.nn.relu(y)\r\n\r\n # quantize and store output as int8\r\n y = tf.round(y / params[\"s\"])\r\n y = tf.clip_by_value(y, -128, 127)\r\n y = tf.cast(y, tf.int8)\r\n return y\r\n\r\n\r\ndef fp_linear_layer(x, params):\r\n return tf.nn.relu(tf.matmul(x, params[\"w\"]) + params[\"b\"])\r\n\r\n\r\ndef linear_layer(x, params):\r\n if params[\"w\"].dtype == tf.int8:\r\n return int8_linear_layer(x, params)\r\n else:\r\n return fp_linear_layer(x, params)\r\n\r\n\r\[email protected](jit_compile=True)\r\ndef network(x, network_params):\r\n for layer_params in network_params:\r\n x = linear_layer(x, layer_params)\r\n return x[0, 0]\r\n\r\n\r\ndef benchmark(dim, dtype, n_layers=32, iters=200):\r\n \"\"\"\r\n Benchmarks the throughput of a linear layer (matmul + bias + act (+ quantization))\r\n\r\n To drown out data transfer costs and other overheads, each run performs a\r\n forward pass of a network consisting of `n_layers` of linear layers in series\r\n\r\n The full network is run for `iters` iterations, and the last 10% of iterations are\r\n used to compute the throughput in TFLOPS/TOPS\r\n \"\"\"\r\n\r\n # create input tensor for network\r\n if dtype == tf.int8:\r\n x = tf.random.uniform([dim, dim], minval=-127, maxval=127, dtype=tf.int32)\r\n x = tf.cast(x, tf.int8)\r\n else:\r\n x = tf.random.uniform([dim, dim], dtype=dtype)\r\n\r\n # create weight + bias (+ quant scale) tensors for each layer\r\n network_params = []\r\n for i in range(n_layers):\r\n if dtype == tf.int8:\r\n w = tf.random.uniform([dim, dim], minval=-127, maxval=127, dtype=tf.int32)\r\n w = tf.cast(w, tf.int8)\r\n b = tf.random.normal([dim], dtype=tf.float32)\r\n s = tf.random.normal([], dtype=tf.float32)\r\n layer_params = {\"w\": w, \"b\": b, \"s\": s}\r\n else:\r\n w = tf.random.uniform([dim, dim], dtype=dtype)\r\n b = tf.random.uniform([dim], dtype=dtype)\r\n layer_params = {\"w\": w, \"b\": b}\r\n network_params.append(layer_params)\r\n\r\n times = []\r\n for i in range(iters):\r\n t0 = time.time()\r\n y = network(x, network_params).numpy()\r\n elapsed_time = time.time() - t0 # in ms\r\n times.append(elapsed_time)\r\n\r\n times = times[-(iters // 10) :] # discard warmup iters\r\n avg_time = sum(times) / len(times)\r\n tflops = (n_layers * 2 * dim ** 3) / avg_time * 1e-12\r\n return tflops\r\n\r\n\r\nif __name__ == \"__main__\":\r\n benchmark(256, tf.float16) # not used, just triggers tensorflow/xla initial log dump\r\n\r\n print(\"\\nTOPS/TFLOPS\")\r\n cols = f\"{'dim':<6} | {'int8':>8} {'fp16':>8}\"\r\n print(\"=\" * len(cols) + \"\\n\" + cols + \"\\n\" + \"-\" * len(cols))\r\n for dim in [256, 512, 1024, 2048, 4096, 8192]:\r\n int8_time = benchmark(dim, tf.int8)\r\n fp16_time = benchmark(dim, tf.float16)\r\n print(f\"{dim:<6} | {int8_time:>8.2f} {fp16_time:>8.2f}\")\r\n print(\"=\" * len(cols))\r\n```", "I have replicated the reported behaviour and attached the [gist](https://colab.research.google.com/gist/SuryanarayanaY/d8c1fdccc447aed3eac72a8af37c47cb/59530_r1.ipynb) here.\r\n\r\n@sachinprasadhs Could you please have a look into this? Thanks!", "@Reed Wanderman-Milne ***@***.***> could you take a look?\n\nOn Thu, Feb 16, 2023 at 1:01 AM Sachin Prasad ***@***.***>\nwrote:\n\n> Assigned #59530 <https://github.com/tensorflow/tensorflow/issues/59530>\n> to @cheshire <https://github.com/cheshire>.\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/59530#event-8531672393>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/AACVGH4Y6JCZ6EMSU3XNYZTWXVU4TANCNFSM6AAAAAAUPOBSFM>\n> .\n> You are receiving this because you were assigned.Message ID:\n> ***@***.***>\n>\n" ]
2023-02-02T19:47:49
2023-02-16T08:43:46
null
NONE
null
null
null
Are tensorcore-accelerated int8 dot/convs with XLA accessible via tensorflow APIs? https://github.com/tensorflow/tensorflow/pull/30771 suggests that int8 convs are supported, and https://github.com/tensorflow/tensorflow/issues/49140 also suggest that this functionality exists. However, the tensorflow convolution operations don't allow int8 arguments. The matmul operator allows int8 x int8 -> int32 via the output_type argument, and I've successfully compiled with XLA using this option. However, when doing this, I'm not getting the throughput that I'd expect with int8 tensorcores. I was expecting something approaching 2x throughput compared to fp16 for large matmuls ([8192, 8192] inputs). Admittedly my benchmarking is not very rigorous, but I'd be curious to know if my expectation of ~2x throughput is reasonable and whether XLA has the functionality to facilitate it. Here's a minimal implementation of an XLA-compiled int8 matmul: ```python @tf.function(jit_compile=True) def int8_matmul(x, w): return tf.matmul(x, w, output_type=tf.int32) x = tf.cast(tf.random.uniform([2048, 2048], minval=-127, maxval=127, dtype=tf.int32), tf.int8) w = tf.cast(tf.random.uniform([2048, 2048], minval=-127, maxval=127, dtype=tf.int32), tf.int8) y = int8_matmul(x, w) print(int8_matmul.experimental_get_compiler_ir(x, w)(stage="optimized_hlo")) # HloModule a_inference_int8_matmul_17__.10, alias_passthrough_params=true, entry_computation_layout={(s8[2048,2048]{1,0},s8[2048,2048]{1,0})->s32[2048,2048]{1,0}} # ENTRY %a_inference_int8_matmul_17__.10 (arg0.1: s8[2048,2048], arg1.2: s8[2048,2048]) -> s32[2048,2048] { # %arg0.1 = s8[2048,2048]{1,0} parameter(0), parameter_replication={false}, metadata={op_name="XLA_Args"} # %arg1.2 = s8[2048,2048]{1,0} parameter(1), parameter_replication={false}, metadata={op_name="XLA_Args"} # %copy = s8[2048,2048]{0,1} copy(s8[2048,2048]{1,0} %arg1.2), metadata={op_name="XLA_Args"} # ROOT %cublas-gemm.1 = s32[2048,2048]{1,0} custom-call(s8[2048,2048]{1,0} %arg0.1, s8[2048,2048]{0,1} %copy), custom_call_target="__cublas$gemm", metadata={op_type="BatchMatMulV3" op_name="MatMul" source_file="int8_xla.py" source_line=22}, backend_config="{\"alpha_real\":1,\"alpha_imag\":0,\"beta\":0,\"dot_dimension_numbers\":{\"lhs_contracting_dimensions\":[\"1\"],\"rhs_contracting_dimensions\":[\"0\"],\"lhs_batch_dimensions\":[],\"rhs_batch_dimensions\":[]},\"precision_config\":{\"operand_precision\":[\"DEFAULT\",\"DEFAULT\"]},\"epilogue\":\"DEFAULT\"}" # } ``` And here's my attempt at implementing a 'canonical' quantized linear layer. I think this is a fairly standard sequence of operations for a quantized layer, and I believe TensorRT would be able to fuse this entire operation. ```python @tf.function(jit_compile=True) def int8_linear_layer(x, w, b, s): # read in x and w as pre-quantized int8 tensors y = tf.matmul(x, w, output_type=tf.int32) # add bias and apply activation in fp32 y = tf.cast(y, tf.float32) y = y + b y = tf.nn.relu(y) # quantize and store output as int8 y = tf.round(y / s) y = tf.clip_by_value(y, -128, 127) y = tf.cast(y, tf.int8) return y x = tf.cast(tf.random.uniform([2048, 2048], minval=-127, maxval=127, dtype=tf.int32), tf.int8) w = tf.cast(tf.random.uniform([2048, 2048], minval=-127, maxval=127, dtype=tf.int32), tf.int8) b = tf.random.normal([2048], dtype=tf.float32) # bias s = tf.random.normal([], dtype=tf.float32) # per-tensor quantization scale for output activation y = int8_linear_layer(x, w, b, s) print(int8_linear_layer.experimental_get_compiler_ir(x, w, b, s)(stage="optimized_hlo")) # HloModule a_inference_int8_linear_layer_65__.32, alias_passthrough_params=true, entry_computation_layout={(s8[2048,2048]{1,0},s8[2048,2048]{1,0},f32[2048]{0},f32[])->s8[2048,2048]{1,0}} # %fused_computation (param_0.2: f32[], param_1.4: f32[2048], param_2.7: s32[2048,2048]) -> s8[2048,2048] { # %constant_2 = f32[] constant(-128), metadata={op_type="Maximum" op_name="clip_by_value" source_file="int8_xla.py" source_line=52} # %broadcast.4 = f32[2048,2048]{1,0} broadcast(f32[] %constant_2), dimensions={}, metadata={op_type="Maximum" op_name="clip_by_value" source_file="int8_xla.py" source_line=52} # %param_2.7 = s32[2048,2048]{1,0} parameter(2) # %convert.1 = f32[2048,2048]{1,0} convert(s32[2048,2048]{1,0} %param_2.7), metadata={op_type="Cast" op_name="Cast" source_file="int8_xla.py" source_line=46} # %param_1.4 = f32[2048]{0} parameter(1) # %broadcast.3 = f32[2048,2048]{1,0} broadcast(f32[2048]{0} %param_1.4), dimensions={1}, metadata={op_type="AddV2" op_name="add" source_file="int8_xla.py" source_line=47} # %add.0 = f32[2048,2048]{1,0} add(f32[2048,2048]{1,0} %convert.1, f32[2048,2048]{1,0} %broadcast.3), metadata={op_type="AddV2" op_name="add" source_file="int8_xla.py" source_line=47} # %constant_1 = f32[] constant(0), metadata={op_type="Relu" op_name="Relu" source_file="int8_xla.py" source_line=48} # %broadcast.2 = f32[2048,2048]{1,0} broadcast(f32[] %constant_1), dimensions={}, metadata={op_type="Relu" op_name="Relu"} # %maximum.0 = f32[2048,2048]{1,0} maximum(f32[2048,2048]{1,0} %add.0, f32[2048,2048]{1,0} %broadcast.2), metadata={op_type="Relu" op_name="Relu"} # %param_0.2 = f32[] parameter(0) # %broadcast.1 = f32[2048,2048]{1,0} broadcast(f32[] %param_0.2), dimensions={}, metadata={op_type="RealDiv" op_name="truediv" source_file="int8_xla.py" source_line=51} # %divide.0 = f32[2048,2048]{1,0} divide(f32[2048,2048]{1,0} %maximum.0, f32[2048,2048]{1,0} %broadcast.1), metadata={op_type="RealDiv" op_name="truediv" source_file="int8_xla.py" source_line=51} # %round-nearest-even.0 = f32[2048,2048]{1,0} round-nearest-even(f32[2048,2048]{1,0} %divide.0), metadata={op_type="Round" op_name="Round" source_file="int8_xla.py" source_line=51} # %constant_0 = f32[] constant(127), metadata={op_type="Minimum" op_name="clip_by_value/Minimum" source_file="int8_xla.py" source_line=52} # %broadcast.0 = f32[2048,2048]{1,0} broadcast(f32[] %constant_0), dimensions={}, metadata={op_type="Minimum" op_name="clip_by_value/Minimum" source_file="int8_xla.py" source_line=52} # %clamp.1 = f32[2048,2048]{1,0} clamp(f32[2048,2048]{1,0} %broadcast.4, f32[2048,2048]{1,0} %round-nearest-even.0, f32[2048,2048]{1,0} %broadcast.0), metadata={op_type="Maximum" op_name="clip_by_value" source_file="int8_xla.py" source_line=52} # ROOT %convert.0 = s8[2048,2048]{1,0} convert(f32[2048,2048]{1,0} %clamp.1), metadata={op_type="Cast" op_name="Cast_1" source_file="int8_xla.py" source_line=53} # } # ENTRY %a_inference_int8_linear_layer_65__.32 (arg0.1: s8[2048,2048], arg1.2: s8[2048,2048], arg2.3: f32[2048], arg3.4: f32[]) -> s8[2048,2048] { # %arg3.4 = f32[] parameter(3), parameter_replication={false}, metadata={op_name="XLA_Args"} # %arg2.3 = f32[2048]{0} parameter(2), parameter_replication={false}, metadata={op_name="XLA_Args"} # %arg0.1 = s8[2048,2048]{1,0} parameter(0), parameter_replication={false}, metadata={op_name="XLA_Args"} # %arg1.2 = s8[2048,2048]{1,0} parameter(1), parameter_replication={false}, metadata={op_name="XLA_Args"} # %copy = s8[2048,2048]{0,1} copy(s8[2048,2048]{1,0} %arg1.2), metadata={op_name="XLA_Args"} # %cublas-gemm.1 = s32[2048,2048]{1,0} custom-call(s8[2048,2048]{1,0} %arg0.1, s8[2048,2048]{0,1} %copy), custom_call_target="__cublas$gemm", metadata={op_type="BatchMatMulV3" op_name="MatMul" source_file="int8_xla.py" source_line=43}, backend_config="{\"alpha_real\":1,\"alpha_imag\":0,\"beta\":0,\"dot_dimension_numbers\":{\"lhs_contracting_dimensions\":[\"1\"],\"rhs_contracting_dimensions\":[\"0\"],\"lhs_batch_dimensions\":[],\"rhs_batch_dimensions\":[]},\"precision_config\":{\"operand_precision\":[\"DEFAULT\",\"DEFAULT\"]},\"epilogue\":\"DEFAULT\"}" # ROOT %fusion = s8[2048,2048]{1,0} fusion(f32[] %arg3.4, f32[2048]{0} %arg2.3, s32[2048,2048]{1,0} %cublas-gemm.1), kind=kLoop, calls=%fused_computation, metadata={op_type="Cast" op_name="Cast_1" source_file="int8_xla.py" source_line=53} # } ``` System info: Ubuntu 20.04.5 LTS, TF 2.11.0 via pip, A100 GPU, CUDA Version 12.0
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59530/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59530/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59529
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59529/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59529/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59529/events
https://github.com/tensorflow/tensorflow/pull/59529
1,568,519,825
PR_kwDOArmXAs5JIoPE
59,529
[oneDNN] [tfg] [remapper] Add AsString + StringToHasBucketFast fusion in MLIR
{ "login": "kanvi-nervana", "id": 42224278, "node_id": "MDQ6VXNlcjQyMjI0Mjc4", "avatar_url": "https://avatars.githubusercontent.com/u/42224278?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kanvi-nervana", "html_url": "https://github.com/kanvi-nervana", "followers_url": "https://api.github.com/users/kanvi-nervana/followers", "following_url": "https://api.github.com/users/kanvi-nervana/following{/other_user}", "gists_url": "https://api.github.com/users/kanvi-nervana/gists{/gist_id}", "starred_url": "https://api.github.com/users/kanvi-nervana/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kanvi-nervana/subscriptions", "organizations_url": "https://api.github.com/users/kanvi-nervana/orgs", "repos_url": "https://api.github.com/users/kanvi-nervana/repos", "events_url": "https://api.github.com/users/kanvi-nervana/events{/privacy}", "received_events_url": "https://api.github.com/users/kanvi-nervana/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": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }
[ { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @rdzhabarov Can you please review this PR ? Thank you!", "@rdzhabarov Thanks for the review, I have addressed the comments.", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!" ]
2023-02-02T17:58:57
2023-06-21T03:54:02
2023-06-21T03:54:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59529", "html_url": "https://github.com/tensorflow/tensorflow/pull/59529", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59529.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59529.patch", "merged_at": "2023-06-21T03:54:02" }
This PR enables the following fusion and test in MLIR: - AsString + StringToHashBucketFast -> _TensorToHashBucketFast
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59529/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59529/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59528
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59528/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59528/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59528/events
https://github.com/tensorflow/tensorflow/pull/59528
1,568,503,258
PR_kwDOArmXAs5JIko2
59,528
[oneDNN] [tfg] [remapper] Add Conv2D + BiasAdd fusion in MLIR
{ "login": "kanvi-nervana", "id": 42224278, "node_id": "MDQ6VXNlcjQyMjI0Mjc4", "avatar_url": "https://avatars.githubusercontent.com/u/42224278?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kanvi-nervana", "html_url": "https://github.com/kanvi-nervana", "followers_url": "https://api.github.com/users/kanvi-nervana/followers", "following_url": "https://api.github.com/users/kanvi-nervana/following{/other_user}", "gists_url": "https://api.github.com/users/kanvi-nervana/gists{/gist_id}", "starred_url": "https://api.github.com/users/kanvi-nervana/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kanvi-nervana/subscriptions", "organizations_url": "https://api.github.com/users/kanvi-nervana/orgs", "repos_url": "https://api.github.com/users/kanvi-nervana/repos", "events_url": "https://api.github.com/users/kanvi-nervana/events{/privacy}", "received_events_url": "https://api.github.com/users/kanvi-nervana/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 1169365494, "node_id": "MDU6TGFiZWwxMTY5MzY1NDk0", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M", "name": "size:M", "color": "adafea", "default": false, "description": "CL Change Size: Medium" }, { "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" } ]
open
false
{ "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }
[ { "login": "penpornk", "id": 38085909, "node_id": "MDQ6VXNlcjM4MDg1OTA5", "avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/penpornk", "html_url": "https://github.com/penpornk", "followers_url": "https://api.github.com/users/penpornk/followers", "following_url": "https://api.github.com/users/penpornk/following{/other_user}", "gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}", "starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/penpornk/subscriptions", "organizations_url": "https://api.github.com/users/penpornk/orgs", "repos_url": "https://api.github.com/users/penpornk/repos", "events_url": "https://api.github.com/users/penpornk/events{/privacy}", "received_events_url": "https://api.github.com/users/penpornk/received_events", "type": "User", "site_admin": false }, { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @rdzhabarov Can you please review this PR ? Thank you!", "@rdzhabarov Thanks for the review. I have addressed the comment and resolved conflicts.", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @kanvi-nervana Can you please rebase and resolve conflicts? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @rdzhabarov Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!", "Hi @penpornk Can you please review this PR ? Thank you!" ]
2023-02-02T17:46:33
2024-06-05T08:26:35
null
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59528", "html_url": "https://github.com/tensorflow/tensorflow/pull/59528", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59528.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59528.patch", "merged_at": null }
This PR enables the fusion of Conv2D and BiasAdd moving Squeeze node after BiasAdd. - Pattern before fusion Conv2D -> Squeeze -> BiasAdd - Pattern after fusion _FusedConv2D -> Squeeze
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59528/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59528/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59526
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59526/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59526/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59526/events
https://github.com/tensorflow/tensorflow/pull/59526
1,567,931,842
PR_kwDOArmXAs5JGouJ
59,526
Add support for int16 dtype regardless of 16x8 quantization usage
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "id": 390482148, "node_id": "MDU6TGFiZWwzOTA0ODIxNDg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review", "name": "awaiting review", "color": "bc3869", "default": false, "description": "Pull request awaiting review" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "https://cbea.ms/git-commit/", "Hi @pjpratik Can you please resolve conflicts? Thank you!", "Hi @gbaned , I have updated from my side. Can you please check?\r\n\r\nThanks.", "Hi @sirakiin Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!", "Hi @vamsimanchala Can you please review this PR ? Thank you!" ]
2023-02-02T12:11:13
2023-11-14T17:55:36
2023-11-14T17:55:35
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59526", "html_url": "https://github.com/tensorflow/tensorflow/pull/59526", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59526.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59526.patch", "merged_at": "2023-11-14T17:55:35" }
As a feature request #56615, the _dtypes.int16 to be allowed even when 16x8 quantization is not used so that the custom ops returning int16 outputs can be benefitted.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59526/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59526/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59525
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59525/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59525/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59525/events
https://github.com/tensorflow/tensorflow/issues/59525
1,567,852,899
I_kwDOArmXAs5dc4lj
59,525
ConvertFusedBatchNorm returns uninitialized value when data_format = "NDHWC"
{ "login": "froody", "id": 241317, "node_id": "MDQ6VXNlcjI0MTMxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/241317?v=4", "gravatar_id": "", "url": "https://api.github.com/users/froody", "html_url": "https://github.com/froody", "followers_url": "https://api.github.com/users/froody/followers", "following_url": "https://api.github.com/users/froody/following{/other_user}", "gists_url": "https://api.github.com/users/froody/gists{/gist_id}", "starred_url": "https://api.github.com/users/froody/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/froody/subscriptions", "organizations_url": "https://api.github.com/users/froody/orgs", "repos_url": "https://api.github.com/users/froody/repos", "events_url": "https://api.github.com/users/froody/events{/privacy}", "received_events_url": "https://api.github.com/users/froody/received_events", "type": "User", "site_admin": false }
[ { "id": 404586594, "node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower", "name": "stat:awaiting tensorflower", "color": "f4b400", "default": false, "description": "Status - Awaiting response from tensorflower" }, { "id": 473172988, "node_id": "MDU6TGFiZWw0NzMxNzI5ODg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug", "name": "type:bug", "color": "159b2e", "default": false, "description": "Bug" }, { "id": 1205615612, "node_id": "MDU6TGFiZWwxMjA1NjE1NjEy", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux", "name": "subtype: ubuntu/linux", "color": "b619ea", "default": false, "description": "Ubuntu/Linux Build/Installation Issues" }, { "id": 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" }, { "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": "bixia1", "id": 35820639, "node_id": "MDQ6VXNlcjM1ODIwNjM5", "avatar_url": "https://avatars.githubusercontent.com/u/35820639?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bixia1", "html_url": "https://github.com/bixia1", "followers_url": "https://api.github.com/users/bixia1/followers", "following_url": "https://api.github.com/users/bixia1/following{/other_user}", "gists_url": "https://api.github.com/users/bixia1/gists{/gist_id}", "starred_url": "https://api.github.com/users/bixia1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bixia1/subscriptions", "organizations_url": "https://api.github.com/users/bixia1/orgs", "repos_url": "https://api.github.com/users/bixia1/repos", "events_url": "https://api.github.com/users/bixia1/events{/privacy}", "received_events_url": "https://api.github.com/users/bixia1/received_events", "type": "User", "site_admin": false }
[ { "login": "bixia1", "id": 35820639, "node_id": "MDQ6VXNlcjM1ODIwNjM5", "avatar_url": "https://avatars.githubusercontent.com/u/35820639?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bixia1", "html_url": "https://github.com/bixia1", "followers_url": "https://api.github.com/users/bixia1/followers", "following_url": "https://api.github.com/users/bixia1/following{/other_user}", "gists_url": "https://api.github.com/users/bixia1/gists{/gist_id}", "starred_url": "https://api.github.com/users/bixia1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bixia1/subscriptions", "organizations_url": "https://api.github.com/users/bixia1/orgs", "repos_url": "https://api.github.com/users/bixia1/repos", "events_url": "https://api.github.com/users/bixia1/events{/privacy}", "received_events_url": "https://api.github.com/users/bixia1/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, @froody \r\n\r\nApologize for the delay and I think you're trying to convert input tensor of data format `NHWC` to `NDHWC` so I'm not sure whether is it possible to do it or not but what I think input tensor of data format should be equal to output tensor of data format so `NHWC` converts to `NCHW` and `NDHWC` converts to `NCDHW ` and even in log output it's saying clearly `INVALID_ARGUMENT: Rank of perm for transpose does not match with that of the input.`\r\n\r\nYou can refer this [official documentation](https://www.tensorflow.org/api_docs/python/tf/nn/conv3d) with [source code](https://github.com/tensorflow/tensorflow/blob/d5b57ca93e506df258271ea00fc29cf98383a374/tensorflow/python/ops/nn_ops.py#L5078-L5118) and Here are some references [Ref-1](https://oneapi-src.github.io/oneDNN/dev_guide_understanding_memory_formats.html), [Ref-2](https://forums.developer.nvidia.com/t/how-to-feed-a-3-channel-image-to-tensorrt/54502), [Ref-3](https://stackoverflow.com/questions/37689423/convert-between-nhwc-and-nchw-in-tensorflow) which may help you to resolve your issue \r\n\r\n\r\nThe meaning of each letter might help to understand:\r\n\r\n```\r\nN: number of images in the batch\r\nH: height of the image\r\nW: width of the image\r\nC: number of channels of the image (ex: 3 for RGB, 1 for grayscale)\r\nD: Depth \r\n```\r\nPlease let me know if I've missed out anything here ? Thank you!\r\n\r\n", "@gaikwadrahul8 please look at my sample code provided. On which line do you think I'm creating an NHWC tensor? Or asking for a conversion from NHWC to NDHWC?\r\n\r\nMy point is that `ConvertFusedBatchNorm` in `convert_nodes.cc` has a bug. The code looks like\r\n\r\n```\r\n ITensorProxyPtr output_tensor;\r\n\r\n if (data_format == \"NCHW\") {\r\n ...\r\n }\r\n if (data_format == \"NHWC\") {\r\n ...\r\n }\r\n params->outputs->push_back(TRT_TensorOrWeights(output_tensor));\r\n```\r\n\r\nIf you instrument it to print out the value of `data_format` and then run the sample python code I provided above, you will see at one point `data_format = \"NDHWC\"`, which causes the code to skip both conversion blocks and assign the uninitialized value of `output_tensor` to `params->outputs`. \r\n\r\nIf you instrument [this code](https://github.com/tensorflow/tensorflow/blob/4aec415b3f06b19c380d1a0ca92cc2de0d74cc21/tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc#L1508) to print out the values of `order_size` and `dims.nbDims` in the case where they aren't equal, you should see `order_size = 4` and `dims.nbDims` having some unreasonably large value, slightly less than `0xffff`, due to the uninitialized value introduced by the code segment above.", "Hi, @sachinprasadhs \r\n\r\nCould you please look into this issue ? Thank you!", "@froody , Does the recent commit here to the above function which you have pointed https://github.com/tensorflow/tensorflow/commit/1377c6e2574122a540153aff220c09c69dbec8a8 helps you in any way? ", "@sachinprasadhs which recent commit? Looking at master I still see code in the format below, which leaves output_tensor uninitialized when `data_format == \"NDHWC\"`\r\n\r\n```\r\nITensorProxyPtr output_tensor;\r\n\r\nif (data_format == \"NCHW\") {\r\n...\r\n}\r\nif (data_format == \"NHWC\") {\r\n...\r\n}\r\nparams->outputs->push_back(TRT_TensorOrWeights(output_tensor));\r\n```" ]
2023-02-02T11:20:23
2023-03-06T06:17: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 v1.12.1-88697-g620bee79ab3 2.12.0-dev20230201 ### Custom Code No ### OS Platform and Distribution Ubuntu 22.04 ### Mobile device _No response_ ### Python version Python 3.10 ### Bazel version 5.3.0 ### GCC/Compiler version gcc-11 ### CUDA/cuDNN version CUDA-11.8/cudnn-8.7.0/TensorRT-8.5.3 ### GPU model and memory RTX3090 ### Current Behaviour? ```shell See code snippet: https://github.com/tensorflow/tensorflow/blob/4aec415b3f06b19c380d1a0ca92cc2de0d74cc21/tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc#L4399-L4436 In the case of NDHWC layout (triggered by the code below) an uninitialized value is returned from ConvertFusedBatchNorm which causes an exception to be raised. I would expect it to build correctly. Changing ConvertFusedBatchNorm to do the same thing for NDHWC as for NHWC gets rid of the crash, but I don't know if this is correct. ``` ### Standalone code to reproduce the issue ```shell import tensorflow as tf import numpy as np from tensorflow.keras.layers import ( BatchNormalization, Conv3D, Dense, Flatten, Input, ) from tensorflow.keras.models import Model from tensorflow.python.compiler.tensorrt import trt_convert as trt inputs = Input(shape=(24, 24, 64, 1), name="x") x = inputs x = Conv3D(16, (3, 3, 3), activation="relu", padding="same")(x) x = BatchNormalization()(x) x = Flatten()(x) x = Dense(128, activation="relu")(x) x = Dense(128)(x) m = Model(inputs=[inputs], outputs=[x]) m.compile( optimizer=tf.keras.optimizers.Adam(learning_rate=0.001), loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True), metrics=[tf.keras.metrics.SparseCategoricalAccuracy()], ) model_dir = "/tmp/model" tf.keras.models.save_model(m, model_dir) converter = trt.TrtGraphConverterV2(input_saved_model_dir=model_dir, precision_mode=trt.TrtPrecisionMode.FP16) trt_func = converter.convert() def input_fn(): a = np.random.rand(1024, 24, 24, 64, 1).astype(np.float32) yield [a] converter.build(input_fn=input_fn) ``` ### Relevant log output ```shell 2023-02-02 11:32:14.336729: W tensorflow/compiler/tf2tensorrt/kernels/trt_engine_op.cc:1104] TF-TRT Warning: Engine creation for TRTEngineOp_000_000 failed. The native segment will be used instead. Reason: INVALID_ARGUMENT: Rank of perm for transpose does not match with that of the input. ``` </details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59525/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59525/timeline
null
null
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59523
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59523/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59523/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59523/events
https://github.com/tensorflow/tensorflow/pull/59523
1,567,620,877
PR_kwDOArmXAs5JFl3B
59,523
Update hsplit in np_array_ops.py
{ "login": "xoiga123", "id": 57395545, "node_id": "MDQ6VXNlcjU3Mzk1NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/57395545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xoiga123", "html_url": "https://github.com/xoiga123", "followers_url": "https://api.github.com/users/xoiga123/followers", "following_url": "https://api.github.com/users/xoiga123/following{/other_user}", "gists_url": "https://api.github.com/users/xoiga123/gists{/gist_id}", "starred_url": "https://api.github.com/users/xoiga123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xoiga123/subscriptions", "organizations_url": "https://api.github.com/users/xoiga123/orgs", "repos_url": "https://api.github.com/users/xoiga123/repos", "events_url": "https://api.github.com/users/xoiga123/events{/privacy}", "received_events_url": "https://api.github.com/users/xoiga123/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": 1097547147, "node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops", "name": "comp:ops", "color": "0052cc", "default": false, "description": "OPs related issues" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "@JW1992 I passed the test you wrote, but may I ask where to put that test in? I don't think `np_array_ops_test.py` has any dynamic shape test.", "I wrote `testHVDSplit` like [jax's implementation](https://github.com/google/jax/blob/f337c00ed517d1ab012ac204d9974e167b33550c/tests/lax_numpy_test.py#L2757)" ]
2023-02-02T09:08:25
2023-02-27T22:32:33
2023-02-27T22:32:32
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59523", "html_url": "https://github.com/tensorflow/tensorflow/pull/59523", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59523.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59523.patch", "merged_at": "2023-02-27T22:32:32" }
[numpy docs](https://numpy.org/doc/stable/reference/generated/numpy.hsplit.html): > hsplit is equivalent to split with axis=1, the array is always split along the second axis except for 1-D arrays, where it is split at axis=0. As there is no testVsplit or testHsplit in `np_array_ops_test.py`, this fix doesn't need any test modification (and prob why the bug exists)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59523/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59523/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59522
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59522/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59522/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59522/events
https://github.com/tensorflow/tensorflow/issues/59522
1,567,539,346
I_kwDOArmXAs5dbsCS
59,522
Closing this as spam. Will be reopened once the template is updated.
{ "login": "Aiden2022123", "id": 116644308, "node_id": "U_kgDOBvPZ1A", "avatar_url": "https://avatars.githubusercontent.com/u/116644308?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Aiden2022123", "html_url": "https://github.com/Aiden2022123", "followers_url": "https://api.github.com/users/Aiden2022123/followers", "following_url": "https://api.github.com/users/Aiden2022123/following{/other_user}", "gists_url": "https://api.github.com/users/Aiden2022123/gists{/gist_id}", "starred_url": "https://api.github.com/users/Aiden2022123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Aiden2022123/subscriptions", "organizations_url": "https://api.github.com/users/Aiden2022123/orgs", "repos_url": "https://api.github.com/users/Aiden2022123/repos", "events_url": "https://api.github.com/users/Aiden2022123/events{/privacy}", "received_events_url": "https://api.github.com/users/Aiden2022123/received_events", "type": "User", "site_admin": false }
[]
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
[ "Spam. Please stop spamming or we might need to ban you" ]
2023-02-02T08:12:05
2023-02-03T18:44:10
2023-02-03T18:44:09
NONE
spam
null
null
Closing this as spam. Will be reopened once the template is updated. _Originally posted by @pjpratik in https://github.com/tensorflow/tensorflow/issues/59263#issuecomment-1383962053_
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59522/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59522/timeline
null
not_planned
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59521
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59521/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59521/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59521/events
https://github.com/tensorflow/tensorflow/issues/59521
1,567,353,258
I_kwDOArmXAs5da-mq
59,521
Tensor flow lite wheel file for ARM9 32-bit architecture
{ "login": "saimanohar1999", "id": 42181654, "node_id": "MDQ6VXNlcjQyMTgxNjU0", "avatar_url": "https://avatars.githubusercontent.com/u/42181654?v=4", "gravatar_id": "", "url": "https://api.github.com/users/saimanohar1999", "html_url": "https://github.com/saimanohar1999", "followers_url": "https://api.github.com/users/saimanohar1999/followers", "following_url": "https://api.github.com/users/saimanohar1999/following{/other_user}", "gists_url": "https://api.github.com/users/saimanohar1999/gists{/gist_id}", "starred_url": "https://api.github.com/users/saimanohar1999/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/saimanohar1999/subscriptions", "organizations_url": "https://api.github.com/users/saimanohar1999/orgs", "repos_url": "https://api.github.com/users/saimanohar1999/repos", "events_url": "https://api.github.com/users/saimanohar1999/events{/privacy}", "received_events_url": "https://api.github.com/users/saimanohar1999/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 474725938, "node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale", "name": "stale", "color": "d4c5f9", "default": false, "description": "This label marks the issue/pr stale - to be closed automatically if no activity" }, { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 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": "terryheo", "id": 2908505, "node_id": "MDQ6VXNlcjI5MDg1MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4", "gravatar_id": "", "url": "https://api.github.com/users/terryheo", "html_url": "https://github.com/terryheo", "followers_url": "https://api.github.com/users/terryheo/followers", "following_url": "https://api.github.com/users/terryheo/following{/other_user}", "gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}", "starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/terryheo/subscriptions", "organizations_url": "https://api.github.com/users/terryheo/orgs", "repos_url": "https://api.github.com/users/terryheo/repos", "events_url": "https://api.github.com/users/terryheo/events{/privacy}", "received_events_url": "https://api.github.com/users/terryheo/received_events", "type": "User", "site_admin": false }
[ { "login": "terryheo", "id": 2908505, "node_id": "MDQ6VXNlcjI5MDg1MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4", "gravatar_id": "", "url": "https://api.github.com/users/terryheo", "html_url": "https://github.com/terryheo", "followers_url": "https://api.github.com/users/terryheo/followers", "following_url": "https://api.github.com/users/terryheo/following{/other_user}", "gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}", "starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/terryheo/subscriptions", "organizations_url": "https://api.github.com/users/terryheo/orgs", "repos_url": "https://api.github.com/users/terryheo/repos", "events_url": "https://api.github.com/users/terryheo/events{/privacy}", "received_events_url": "https://api.github.com/users/terryheo/received_events", "type": "User", "site_admin": false }, { "login": "pkgoogle", "id": 132095473, "node_id": "U_kgDOB9-d8Q", "avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pkgoogle", "html_url": "https://github.com/pkgoogle", "followers_url": "https://api.github.com/users/pkgoogle/followers", "following_url": "https://api.github.com/users/pkgoogle/following{/other_user}", "gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}", "starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions", "organizations_url": "https://api.github.com/users/pkgoogle/orgs", "repos_url": "https://api.github.com/users/pkgoogle/repos", "events_url": "https://api.github.com/users/pkgoogle/events{/privacy}", "received_events_url": "https://api.github.com/users/pkgoogle/received_events", "type": "User", "site_admin": false } ]
null
[ "any reference which help me getting tflite dependencies for ARM9 architecture 32-bit.", "Hi @saimanohar1999 !\r\nCould you check with below bazel command (Bazel 5.3.0 ) . Attached [relevant document ](https://www.tensorflow.org/lite/guide/build_arm)for arm32 cross-compile \r\n\r\n`bazel build --config=elinux_armhf -c opt //tensorflow/lite/c:libtensorflowlite_c.so`\r\n\r\nYou can also Opt for [CMake ](https://www.tensorflow.org/lite/guide/build_cmake_arm)which offers a wide variety of cross-compiling .\r\n\r\nThank you!", "thanks for the response. i was able to generate .so file but i need .whl file\r\n", "Hi @saimanohar1999 !\r\nTo get .whl file , Pleas refer [build_cmake_pip](https://www.tensorflow.org/lite/guide/build_cmake_pip) documentation.\r\nThank you!", "i tried the above but unable to see .whl file may i know in which path we can see .whl file.\r\n\r\nThank you\r\n", "tflite_runtime-2.12.0-cp38-cp38-linux_x86_64.whl i found this file /tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist in this path.\r\n\r\n but i am looking for 32-bit architecture.", "Hi @saimanohar1999 !\r\nThanks for the update. You can check for other python wheels here in [Pinto's repo](https://github.com/PINTO0309/Tensorflow-bin).\r\n\r\n@sachinprasadhs !\r\nCould you look at this issue.\r\n\r\nThank you!", "the Pintos repo mentioned above dosent have any .whl file for ARM9 32-bit architecture.", "any reference related to my issue , can be shared.\r\nwaiting for the next response.\r\n\r\nThank You", "Let me know whether it is possible to generate .whl file or not through this process. ", "any update??", "I was able to find few references regarding .whl file location for Tensorflow( not specific to TFLite or any architecture).\r\nIn the below link, it explains about creating the .whl package with `bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg`\r\nhttps://stackoverflow.com/questions/45855487/\r\nAlso, refer the guide [here](https://medium.com/@amsokol.com/update-1-how-to-build-and-install-tensorflow-gpu-cpu-for-windows-from-source-code-using-bazel-and-c2e86fec9ef2), which explains about building package using bazel, common issues and references.\r\nLe me know if this is of any help for you, Thank you! ", "thank you @sachinprasadhs i already gone through the references which you shared, but the issue is tflite_runtime-2.13.0-cp38-cp38-linux_x86_64.whl is the file i am getting but its seems to be 64-bit , even i gave armhf while building its giving 64-bit\r\n\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "You need to cross compile to get ARM 32 bit binary.\r\n\r\nhttps://www.tensorflow.org/lite/guide/build_cmake_pip#arm_cross_compilation", "Thank you...but I tried doing that still i was unable get the expected file... @terryheo ", "@terryheo i was able to complete the build process able to generate \".whl\" file but it is generating for 64-bit.", "Could you share the command you used?", "sorry for the misunderstanding , i was able to figure out\r\n\r\n i was able to get 32-bit file \".whl\" with the following command \r\nmake -C tensorflow/lite/tools/pip_package docker-build \\ TENSORFLOW_TARGET=armhf PYTHON_VERSION=3.8\r\n\r\nwith the above command i was able to get \"tflite_runtime-2.13.0-cp38-cp38-linux_armv7l.whl\" file\r\n\r\ni guess its for arm7 architecture, i want for arm9 architecture.\r\n\r\nlater upto my understanding i figured out that the issue is because of toolchain used, can u help me changing the toolchain ....since in the make file \"download_toolchain.sh\" it is downloading toolchain for arm7 architecture but i need for arm926, to be specific for SAM9X60 Board.\r\n\r\nThank you @terryheo ", "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/59521\">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/59521\">No</a>\n", "@terryheo still i am facing issues in generating file for sam9x60 which is ARM926 based board , help me in solving this.", "cd /tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.10/cmake_build/_deps/flatbuffers-build && /opt/cmake/bin/cmake -P CMakeFiles/flatbuffers.dir/cmake_clean_target.cmake\r\ncd /tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.10/cmake_build/_deps/flatbuffers-build && /opt/cmake/bin/cmake -E cmake_link_script CMakeFiles/flatbuffers.dir/link.txt --verbose=1\r\n/usr/bin/ar qc libflatbuffers.a CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o CMakeFiles/flatbuffers.dir/src/reflection.cpp.o CMakeFiles/flatbuffers.dir/src/util.cpp.o\r\n/usr/bin/ranlib libflatbuffers.a\r\nmake[3]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.10/cmake_build'\r\n[ 16%] Built target flatbuffers\r\nmake[2]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.10/cmake_build'\r\nmake[1]: *** [CMakeFiles/Makefile2:1393: CMakeFiles/_pywrap_tensorflow_interpreter_wrapper.dir/rule] Error 2\r\nmake[1]: Leaving directory '/tensorflow/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3.10/cmake_build'\r\nmake: *** [Makefile:193: _pywrap_tensorflow_interpreter_wrapper] Error 2\r\nmake: *** [Makefile:72: docker-build] Error 2\r\nmake: Leaving directory '/home/administrator/manohar/tensorflow_src/tensorflow/lite/tools/pip_package\r\n\r\n\r\nthis is the error i am getting........ but when i am building with toolchain supporting armv7 build was successful, now when i am using arm-none-eabi toolchain for sam9x60 board i am getting this build error. i hope i am clear ", "Hi @terryheo \r\n\r\n[https://docs.google.com/document/d/1Q2f-uC4xMusDsDwCHrxMP78efhneFJeYuG9x7oAPSJw/edit](url)\r\n\r\nI have attached the link where i explained clearly about the current issue with all the flags i used during build process. please go through it and le me know if you still need any details to get better understanding of the problem.", "Hi @terryheo can you help me in getting the toolchain for armv5te to build ....may be there might be issue with the toolchain i am using...\r\n\r\nThank you.", "Hi @saimanohar1999, it appears your link is broken can you please provide a working link? 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.", "Hi pkgoogle, what link are you referring to.", "@saimanohar1999 This one: [https://docs.google.com/document/d/1Q2f-uC4xMusDsDwCHrxMP78efhneFJeYuG9x7oAPSJw/edit](https://github.com/tensorflow/tensorflow/issues/url) from Mar 1", "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-02-02T05:34:25
2023-06-28T02:09:04
2023-06-28T02:09:02
NONE
null
null
null
i am trying to build .whl file for ARM9 32-bit architecture using Bazel, but fortuanetly there is no tool to build for 32-bit. can someone help me in getting my work done.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59521/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59521/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59520
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59520/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59520/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59520/events
https://github.com/tensorflow/tensorflow/pull/59520
1,567,296,732
PR_kwDOArmXAs5JEf2Q
59,520
Typo Error
{ "login": "DonghakPark", "id": 44962038, "node_id": "MDQ6VXNlcjQ0OTYyMDM4", "avatar_url": "https://avatars.githubusercontent.com/u/44962038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DonghakPark", "html_url": "https://github.com/DonghakPark", "followers_url": "https://api.github.com/users/DonghakPark/followers", "following_url": "https://api.github.com/users/DonghakPark/following{/other_user}", "gists_url": "https://api.github.com/users/DonghakPark/gists{/gist_id}", "starred_url": "https://api.github.com/users/DonghakPark/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DonghakPark/subscriptions", "organizations_url": "https://api.github.com/users/DonghakPark/orgs", "repos_url": "https://api.github.com/users/DonghakPark/repos", "events_url": "https://api.github.com/users/DonghakPark/events{/privacy}", "received_events_url": "https://api.github.com/users/DonghakPark/received_events", "type": "User", "site_admin": false }
[ { "id": 750616506, "node_id": "MDU6TGFiZWw3NTA2MTY1MDY=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite", "name": "comp:lite", "color": "0052cc", "default": false, "description": "TF Lite related issues" }, { "id": 987666414, "node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull", "name": "ready to pull", "color": "2cd643", "default": false, "description": "PR ready for merge process" }, { "id": 1169364259, "node_id": "MDU6TGFiZWwxMTY5MzY0MjU5", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS", "name": "size:XS", "color": "adafea", "default": false, "description": "CL Change Size: Extra Small" } ]
closed
false
{ "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false }
[ { "login": "gbaned", "id": 48215717, "node_id": "MDQ6VXNlcjQ4MjE1NzE3", "avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gbaned", "html_url": "https://github.com/gbaned", "followers_url": "https://api.github.com/users/gbaned/followers", "following_url": "https://api.github.com/users/gbaned/following{/other_user}", "gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}", "starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gbaned/subscriptions", "organizations_url": "https://api.github.com/users/gbaned/orgs", "repos_url": "https://api.github.com/users/gbaned/repos", "events_url": "https://api.github.com/users/gbaned/events{/privacy}", "received_events_url": "https://api.github.com/users/gbaned/received_events", "type": "User", "site_admin": false } ]
null
[ "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/59520/checks?check_run_id=11052419093) 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.", "Check out this pull request on&nbsp; <a href=\"https://app.reviewnb.com/tensorflow/tensorflow/pull/59520\"><img align=\"absmiddle\" alt=\"ReviewNB\" height=\"28\" class=\"BotMessageButtonImage\" src=\"https://raw.githubusercontent.com/ReviewNB/support/master/images/button_reviewnb.png\"/></a> \n\n See visual diffs & provide feedback on Jupyter Notebooks. \n\n---\n\n <i>Powered by <a href='https://www.reviewnb.com/?utm_source=gh'>ReviewNB</a></i>", "@gbaned there was failed ci.\nIs there anything to do?\n", "> @gbaned there was failed ci. Is there anything to do?\r\n\r\nHi @DonghakPark Sorry for the delay. This PR is waiting for the internal approval. No action required from your end. Thank you!", "Hi @DonghakPark Can you please resolve conflicts? Thank you!", "> Hi @DonghakPark Can you please resolve conflicts? Thank you!\r\n\r\nHi @gbaned I just resolve and rebase \r\n\r\n" ]
2023-02-02T04:22:36
2023-11-15T06:58:02
2023-10-04T07:18:02
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59520", "html_url": "https://github.com/tensorflow/tensorflow/pull/59520", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59520.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59520.patch", "merged_at": "2023-10-04T07:18:02" }
in tensorflow/lite/schema/schema_utils.cc in tensorflow/lite/python/lite.py in tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc There is typo error (trivial)
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59520/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59520/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59519
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59519/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59519/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59519/events
https://github.com/tensorflow/tensorflow/issues/59519
1,567,251,919
I_kwDOArmXAs5dal3P
59,519
On MTK platforms, tflite calls the GPU with clGetPlatformIDs return -1001
{ "login": "Ijustakid", "id": 25544580, "node_id": "MDQ6VXNlcjI1NTQ0NTgw", "avatar_url": "https://avatars.githubusercontent.com/u/25544580?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ijustakid", "html_url": "https://github.com/Ijustakid", "followers_url": "https://api.github.com/users/Ijustakid/followers", "following_url": "https://api.github.com/users/Ijustakid/following{/other_user}", "gists_url": "https://api.github.com/users/Ijustakid/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ijustakid/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ijustakid/subscriptions", "organizations_url": "https://api.github.com/users/Ijustakid/orgs", "repos_url": "https://api.github.com/users/Ijustakid/repos", "events_url": "https://api.github.com/users/Ijustakid/events{/privacy}", "received_events_url": "https://api.github.com/users/Ijustakid/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": 2671339633, "node_id": "MDU6TGFiZWwyNjcxMzM5NjMz", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate", "name": "TFLiteGpuDelegate", "color": "F71F04", "default": false, "description": "TFLite Gpu delegate issue" } ]
closed
false
{ "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false }
[ { "login": "pjpratik", "id": 118897289, "node_id": "U_kgDOBxY6iQ", "avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pjpratik", "html_url": "https://github.com/pjpratik", "followers_url": "https://api.github.com/users/pjpratik/followers", "following_url": "https://api.github.com/users/pjpratik/following{/other_user}", "gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}", "starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions", "organizations_url": "https://api.github.com/users/pjpratik/orgs", "repos_url": "https://api.github.com/users/pjpratik/repos", "events_url": "https://api.github.com/users/pjpratik/events{/privacy}", "received_events_url": "https://api.github.com/users/pjpratik/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi @Ijustakid !\r\n\r\nSorry for the late response.\r\n\r\n'clGetPlatformIDs returned -1001' indicates that you have not included opencl header files properly or Gpu drivers have not configured properly. [Ref](https://stackoverflow.com/a/24336429/11530462).\r\n\r\nIf you are trying to use GPU acceleration through Google play service, [Recommended practice](https://www.tensorflow.org/lite/android/play_services#gpu_with_interpreter_apis) for using interpreter is to update the dependencies and then enable GPU delegate. The GPU delegate option can then be set by calling `addDelegateFactory()`.\r\n\r\nPlease refer to this [document](https://www.tensorflow.org/lite/android/play_services#gpu_with_interpreter_apis), to understand using interpreter with GPU delegate for Google Play Services.\r\n\r\nBut if you are trying to use C++ runtime to use GPU delegate , Please refer this [document](https://www.tensorflow.org/lite/android/delegates/gpu#cc_api_for_android) to properly include and add the gpu delegate header files.\r\n\r\nThank you!\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59519\">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/59519\">No</a>\n" ]
2023-02-02T03:19:29
2023-02-27T10:07:05
2023-02-27T10:07:02
NONE
null
null
null
**System information** - Android Device information (use `adb shell getprop ro.build.fingerprint` if possible): Redmi/rembrandt/rembrandt:13/TP1A.220624.014/23.1.31:user/release-keys - TensorFlow Lite in Play Services SDK version (found in `build.gradle`): 29 - Google Play Services version (`Settings` > `Apps` > `Google Play Services` > `App details`): **Standalone code to reproduce the issue** on MTK platforms code: if (interpreter->ModifyGraphWithDelegate(delegate) != kTfLiteOk) { LOGE("delegate init failed!"); exit(-1); } get: clGetPlatformIDs returned -1001 or clGetPlatformIDs returned -30 **Any other info / logs** This MTK platform has a GPU device.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59519/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59519/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59518
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59518/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59518/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59518/events
https://github.com/tensorflow/tensorflow/issues/59518
1,567,179,315
I_kwDOArmXAs5daUIz
59,518
ConvertFusedBatchNorm returns uninitialized value when data_format = "NDHWC"
{ "login": "froody", "id": 241317, "node_id": "MDQ6VXNlcjI0MTMxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/241317?v=4", "gravatar_id": "", "url": "https://api.github.com/users/froody", "html_url": "https://github.com/froody", "followers_url": "https://api.github.com/users/froody/followers", "following_url": "https://api.github.com/users/froody/following{/other_user}", "gists_url": "https://api.github.com/users/froody/gists{/gist_id}", "starred_url": "https://api.github.com/users/froody/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/froody/subscriptions", "organizations_url": "https://api.github.com/users/froody/orgs", "repos_url": "https://api.github.com/users/froody/repos", "events_url": "https://api.github.com/users/froody/events{/privacy}", "received_events_url": "https://api.github.com/users/froody/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": 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": 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" }, { "id": 4829271983, "node_id": "LA_kwDOArmXAs8AAAABH9jXrw", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11", "name": "TF 2.11", "color": "46B4D7", "default": false, "description": "Issues related to TF 2.11" } ]
closed
false
{ "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "Hi, @froody \r\n\r\nWe see that the issue [template](https://github.com/tensorflow/tensorflow/issues/new/choose) has not been filled, could you please do so as it helps us analyze the issue [tf version, steps followed before you ran into this error or stand alone code/colab gist to reproduce the issue faced. Thank you!", "#59525", "Hi, @froody \r\n\r\nThank you for submitting the issue by following the Tensorflow issue template [#59525](https://github.com/tensorflow/tensorflow/issues/59525 ) so this will become duplicate issue so could you please close this issue because it is being tracked in [#59525](https://github.com/tensorflow/tensorflow/issues/59525 ). Thank you!" ]
2023-02-02T01:55:43
2023-02-13T13:12:42
2023-02-13T13:12:42
NONE
null
null
null
https://github.com/tensorflow/tensorflow/blob/4aec415b3f06b19c380d1a0ca92cc2de0d74cc21/tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc#L4399-L4436 I was trying to optimize my model with tensorrt following this guide: https://docs.nvidia.com/deeplearning/frameworks/tf-trt-user-guide/index.html but I was getting an error in the log: `2023-02-02 11:32:14.336729: W tensorflow/compiler/tf2tensorrt/kernels/trt_engine_op.cc:1104] TF-TRT Warning: Engine creation for TRTEngineOp_000_000 failed. The native segment will be used instead. Reason: INVALID_ARGUMENT: Rank of perm for transpose does not match with that of the input.` I added some print statements and recompiled tensorflow leading me to ConvertFusedBatchNorm which clearly returns an uninitialized value when invoked with NDHWC input
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59518/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59518/timeline
null
not_planned
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59517
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59517/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59517/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59517/events
https://github.com/tensorflow/tensorflow/issues/59517
1,567,099,447
I_kwDOArmXAs5daAo3
59,517
TF to TFLite conversion of model gives error op is neither a custom op nor a flex op
{ "login": "gsirocco", "id": 112350229, "node_id": "U_kgDOBrJUFQ", "avatar_url": "https://avatars.githubusercontent.com/u/112350229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gsirocco", "html_url": "https://github.com/gsirocco", "followers_url": "https://api.github.com/users/gsirocco/followers", "following_url": "https://api.github.com/users/gsirocco/following{/other_user}", "gists_url": "https://api.github.com/users/gsirocco/gists{/gist_id}", "starred_url": "https://api.github.com/users/gsirocco/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gsirocco/subscriptions", "organizations_url": "https://api.github.com/users/gsirocco/orgs", "repos_url": "https://api.github.com/users/gsirocco/repos", "events_url": "https://api.github.com/users/gsirocco/events{/privacy}", "received_events_url": "https://api.github.com/users/gsirocco/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": 1589976566, "node_id": "MDU6TGFiZWwxNTg5OTc2NTY2", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:micro", "name": "comp:micro", "color": "3e2eea", "default": false, "description": "Related to TensorFlow Lite Microcontrollers" }, { "id": 1661751498, "node_id": "MDU6TGFiZWwxNjYxNzUxNDk4", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter", "name": "TFLiteConverter", "color": "bfdadc", "default": false, "description": "For issues related to TFLite converter" }, { "id": 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": "mohantym", "id": 86464649, "node_id": "MDQ6VXNlcjg2NDY0NjQ5", "avatar_url": "https://avatars.githubusercontent.com/u/86464649?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mohantym", "html_url": "https://github.com/mohantym", "followers_url": "https://api.github.com/users/mohantym/followers", "following_url": "https://api.github.com/users/mohantym/following{/other_user}", "gists_url": "https://api.github.com/users/mohantym/gists{/gist_id}", "starred_url": "https://api.github.com/users/mohantym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mohantym/subscriptions", "organizations_url": "https://api.github.com/users/mohantym/orgs", "repos_url": "https://api.github.com/users/mohantym/repos", "events_url": "https://api.github.com/users/mohantym/events{/privacy}", "received_events_url": "https://api.github.com/users/mohantym/received_events", "type": "User", "site_admin": false }
[ { "login": "mohantym", "id": 86464649, "node_id": "MDQ6VXNlcjg2NDY0NjQ5", "avatar_url": "https://avatars.githubusercontent.com/u/86464649?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mohantym", "html_url": "https://github.com/mohantym", "followers_url": "https://api.github.com/users/mohantym/followers", "following_url": "https://api.github.com/users/mohantym/following{/other_user}", "gists_url": "https://api.github.com/users/mohantym/gists{/gist_id}", "starred_url": "https://api.github.com/users/mohantym/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mohantym/subscriptions", "organizations_url": "https://api.github.com/users/mohantym/orgs", "repos_url": "https://api.github.com/users/mohantym/repos", "events_url": "https://api.github.com/users/mohantym/events{/privacy}", "received_events_url": "https://api.github.com/users/mohantym/received_events", "type": "User", "site_admin": false } ]
null
[ "Attaching the saved model zip file again, as I don't think it got attached above.\r\n[qam_modulator.zip](https://github.com/tensorflow/tensorflow/files/10563521/qam_modulator.zip)\r\n", "@mohantym \r\nI was able to reproduce the issue on Colab using Tf v2.11. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/2d9bc72f24872557112cdec4c797a16d/untitled102.ipynb) for reference.\r\n\r\nThank you!", "Hi @tiruk007 and @mohantym, thanks for reproducing the issue. Do you have any suggestions for fixing? Thanks!", "Hi @gsirocco !\r\nSorry for the late response.\r\nI am able to replicate this issue in [2.10](https://colab.sandbox.google.com/gist/mohantym/4470c1459ef06fa867f593cc6c8977b9/git_59517.ipynb#scrollTo=Bnbpcg4ad8Iy), [2.11](https://colab.sandbox.google.com/gist/mohantym/103ed63717558cd1fb53ded5ab20dab8/git_59517.ipynb) and [nightly](https://colab.sandbox.google.com/gist/mohantym/398d6ff37e8fe070543c8210f5260672/git_59517.ipynb#scrollTo=G8h2VdKoYSWk) .\r\n\r\nFor custom ops issues, Please register the customs ops in lite kernels and follow [custom_ops documentation](https://www.tensorflow.org/lite/guide/ops_custom) for reference.\r\n\r\nThank you!", "Hi @mohantym \r\nThanks for the information. My ultimate goal after conversion to TFLite is to be able to run this model entirely on Edge TPU.\r\nI just want to confirm if going through this procedure will allow this to happen or if I will ultimately need to rewrite some portion of the model for TPU integer compatibility. Thanks!!\r\n\r\nAlso, do all these operators need to be registered and converted?\r\n```\r\nSome ops are not supported by the native TFLite runtime, you can enable TF kernels fallback using TF Select. See instructions: https://www.tensorflow.org/lite/guide/ops_select\r\nTF Select ops: AsString, FloorDiv, FloorMod, HashTableV2, LookupTableFindV2, LookupTableImportV2, ReduceJoin\r\nDetails:\r\n tf.AsString(tensor<2025x4xi8>) -> (tensor<2025x4x!tf_type.string>) : {device = \"\", fill = \"\", precision = -1 : i64, scientific = false, shortest = false, width = -1 : i64}\r\n tf.FloorDiv(tensor<2025x1x1xui8>, tensor<8xui8>) -> (tensor<2025x1x8xui8>) : {device = \"\"}\r\n tf.FloorMod(tensor<2025x1x8xi8>, tensor<i8>) -> (tensor<2025x1x8xi8>) : {device = \"\"}\r\n tf.HashTableV2() -> (tensor<!tf_type.resource>) : {container = \"\", device = \"\", key_dtype = !tf_type.string, shared_name = \"61254\", use_node_name_sharing = false, value_dtype = i32}\r\n tf.LookupTableFindV2(tensor<!tf_type.resource>, tensor<2025x!tf_type.string>, tensor<i32>) -> (tensor<*xi32>) : {device = \"\"}\r\n tf.LookupTableImportV2(tensor<!tf_type.resource>, tensor<16x!tf_type.string>, tensor<16xi32>) -> () : {device = \"\"}\r\n tf.ReduceJoin(tensor<2025x4x!tf_type.string>, tensor<i32>) -> (tensor<2025x!tf_type.string>) : {device = \"\", keep_dims = false, separator = \"\"}\r\n```", "@gsirocco !\r\nFor edge_tpu specific optimization, Could you route it to[ Google/coral ](https://github.com/google-coral/edgetpu)repo /[TF-forum ](https://discuss.tensorflow.org/)for further assistance .\r\nThank you!", "As suspected, the TPU will not run any custom ops above, so the QAM Modulator model must be rewritten so the ops above use the ones in this [list](https://coral.ai/docs/edgetpu/models-intro/#supported-operations)", "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/59517\">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/59517\">No</a>\n" ]
2023-02-02T00:30:03
2023-02-08T15:11:24
2023-02-08T15:10:58
NONE
null
null
null
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04.4 - TensorFlow installation (pip package or built from source): pip package - TensorFlow library (version, if pip package or github SHA, if built from source): 2.11.0 ### 2. Code Provide code to help us reproduce your issues using one of the following options: #### Option B: Paste your code here or provide a link to a custom end-to-end colab ``` import tensorflow as tf from tensorflow import keras import pickle import numpy as np import sys print(tf.__version__) root_dir = "~/" saved_model_dir = root_dir+"updatetf/softphy/src/qam_modulator" def representative_dataset(): for _ in range(100): data = np.random.randint(0, 2, (16200,)) yield [data.astype(np.float32)] converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) converter.optimizations = [tf.lite.Optimize.DEFAULT] converter.representative_dataset = representative_dataset converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8] converter.target_spec.supported_types = [tf.int8] converter.inference_input_type = tf.int8 # or tf.uint8 converter.inference_output_type = tf.int8 # or tf.uint8 tflite_quant_model = converter.convert() fileName = 'qammodmodel.tflite' with open(fileName, 'wb') as f: f.write(tflite_quant_model) ``` ### 3. Failure after conversion The conversion fails as below, saved model dir is attached a zip file. I'm not sure what needs to be changed to fix this. Eventually, I'd like to convert the TFLite model to run on TPU. Thanks! ### 5. (optional) Any other info / logs ``` 2023-02-02 00:04:34.283275: 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 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-02-02 00:04:35.515897: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2023-02-02 00:04:35.515975: I tensorflow/compiler/xla/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2023-02-02 00:04:39.225887: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: li [qam_modulator.zip](https://github.com/tensorflow/tensorflow/files/10563501/qam_modulator.zip) bnvinfer.so.7: cannot open shared object file: No such file or directory 2023-02-02 00:04:39.226056: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory 2023-02-02 00:04:39.226075: 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. 2.11.0 2023-02-02 00:04:43.533858: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory 2023-02-02 00:04:43.539556: W tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:265] failed call to cuInit: UNKNOWN ERROR (303) 2023-02-02 00:04:43.539649: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (ubuntugsosnow): /proc/driver/nvidia/version does not exist 2023-02-02 00:04:43.541318: 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 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-02-02 00:04:44.421918: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:362] Ignored output_format. 2023-02-02 00:04:44.421999: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:365] Ignored drop_control_dependency. 2023-02-02 00:04:44.427118: I tensorflow/cc/saved_model/reader.cc:45] Reading SavedModel from: /home/gsosnow/doc/updatetf/softphy/src/qam_modulator 2023-02-02 00:04:44.430879: I tensorflow/cc/saved_model/reader.cc:89] Reading meta graph with tags { serve } 2023-02-02 00:04:44.430967: I tensorflow/cc/saved_model/reader.cc:130] Reading SavedModel debug info (if present) from: /home/gsosnow/doc/updatetf/softphy/src/qam_modulator 2023-02-02 00:04:44.447508: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:357] MLIR V1 optimization pass is not enabled 2023-02-02 00:04:44.448994: I tensorflow/cc/saved_model/loader.cc:229] Restoring SavedModel bundle. 2023-02-02 00:04:44.494916: I tensorflow/cc/saved_model/loader.cc:213] Running initialization op on SavedModel bundle at path: /home/gsosnow/doc/updatetf/softphy/src/qam_modulator 2023-02-02 00:04:44.535778: I tensorflow/cc/saved_model/loader.cc:305] SavedModel load for tags { serve }; Status: success: OK. Took 111428 microseconds. 2023-02-02 00:04:44.619260: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:268] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable. loc(fused["HashTableV2:", "qam_table"]): error: 'tf.HashTableV2' op is neither a custom op nor a flex op loc(callsite(callsite(fused["FloorDiv:", "model_2/qam_mod_11/floordiv@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.FloorDiv' op is neither a custom op nor a flex op loc(callsite(callsite(fused["FloorMod:", "model_2/qam_mod_11/FloorMod@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.FloorMod' op is neither a custom op nor a flex op loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.AsString' op is neither a custom op nor a flex op loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.ReduceJoin' op is neither a custom op nor a flex op loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.LookupTableFindV2' op is neither a custom op nor a flex op loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString_1@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.AsString' op is neither a custom op nor a flex op loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin_1/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.ReduceJoin' op is neither a custom op nor a flex op loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup_1/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): error: 'tf.LookupTableFindV2' op is neither a custom op nor a flex op loc(fused["HashTableV2:", "qam_table"]): error: 'tf.HashTableV2' op is neither a custom op nor a flex op loc(callsite(fused["LookupTableImportV2:", "key_value_init61252/LookupTableImportV2@__inference_<lambda>_81959"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall"])): error: 'tf.LookupTableImportV2' op is neither a custom op nor a flex op 2023-02-02 00:04:44.806180: W tensorflow/compiler/mlir/lite/flatbuffer_export.cc:2035] Graph contains the following resource op(s), that use(s) resource type. Currently, the resource type is not natively supported in TFLite. Please consider not using the resource type if there are issues with either TFLite converter or TFLite runtime: Resource ops: HashTableV2, LookupTableFindV2, LookupTableImportV2 Details: tf.HashTableV2() -> (tensor<!tf_type.resource>) : {container = "", device = "", key_dtype = !tf_type.string, shared_name = "61254", use_node_name_sharing = false, value_dtype = i32} tf.LookupTableFindV2(tensor<!tf_type.resource>, tensor<2025x!tf_type.string>, tensor<i32>) -> (tensor<*xi32>) : {device = ""} tf.LookupTableImportV2(tensor<!tf_type.resource>, tensor<16x!tf_type.string>, tensor<16xi32>) -> () : {device = ""} error: failed while converting: 'main': Some ops are not supported by the native TFLite runtime, you can enable TF kernels fallback using TF Select. See instructions: https://www.tensorflow.org/lite/guide/ops_select TF Select ops: AsString, FloorDiv, FloorMod, HashTableV2, LookupTableFindV2, LookupTableImportV2, ReduceJoin Details: tf.AsString(tensor<2025x4xi8>) -> (tensor<2025x4x!tf_type.string>) : {device = "", fill = "", precision = -1 : i64, scientific = false, shortest = false, width = -1 : i64} tf.FloorDiv(tensor<2025x1x1xui8>, tensor<8xui8>) -> (tensor<2025x1x8xui8>) : {device = ""} tf.FloorMod(tensor<2025x1x8xi8>, tensor<i8>) -> (tensor<2025x1x8xi8>) : {device = ""} tf.HashTableV2() -> (tensor<!tf_type.resource>) : {container = "", device = "", key_dtype = !tf_type.string, shared_name = "61254", use_node_name_sharing = false, value_dtype = i32} tf.LookupTableFindV2(tensor<!tf_type.resource>, tensor<2025x!tf_type.string>, tensor<i32>) -> (tensor<*xi32>) : {device = ""} tf.LookupTableImportV2(tensor<!tf_type.resource>, tensor<16x!tf_type.string>, tensor<16xi32>) -> () : {device = ""} tf.ReduceJoin(tensor<2025x4x!tf_type.string>, tensor<i32>) -> (tensor<2025x!tf_type.string>) : {device = "", keep_dims = false, separator = ""} Traceback (most recent call last): File "/home/gsosnow/doc/qammodt2tf.py", line 38, in <module> tflite_quant_model = converter.convert() File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/lite.py", line 933, in wrapper return self._convert_and_export_metrics(convert_func, *args, **kwargs) File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/lite.py", line 911, in _convert_and_export_metrics result = convert_func(self, *args, **kwargs) File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/lite.py", line 1216, in convert return self._convert_from_saved_model(graph_def) File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/lite.py", line 1099, in _convert_from_saved_model result = _convert_saved_model(**converter_kwargs) File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/convert_phase.py", line 212, in wrapper raise converter_error from None # Re-throws the exception. File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/convert_phase.py", line 205, in wrapper return func(*args, **kwargs) File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/convert.py", line 808, in convert_saved_model data = convert( File "/home/gsosnow/anaconda3/lib/python3.9/site-packages/tensorflow/lite/python/convert.py", line 310, in convert raise converter_error tensorflow.lite.python.convert_phase.ConverterError: <unknown>:0: error: loc(fused["HashTableV2:", "qam_table"]): 'tf.HashTableV2' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["HashTableV2:", "qam_table"]): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["FloorDiv:", "model_2/qam_mod_11/floordiv@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.FloorDiv' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["FloorDiv:", "model_2/qam_mod_11/floordiv@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["FloorMod:", "model_2/qam_mod_11/FloorMod@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.FloorMod' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["FloorMod:", "model_2/qam_mod_11/FloorMod@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.AsString' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.ReduceJoin' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.LookupTableFindV2' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString_1@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.AsString' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["AsString:", "model_2/qam_mod_11/AsString_1@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin_1/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.ReduceJoin' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["ReduceJoin:", "model_2/qam_mod_11/ReduceJoin_1/ReduceJoin@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup_1/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): 'tf.LookupTableFindV2' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"]): called from <unknown>:0: note: loc(callsite(callsite(fused["LookupTableFindV2:", "model_2/qam_mod_11/None_Lookup_1/LookupTableFindV2@__inference__wrapped_model_81624"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall@__inference_signature_wrapper_81882"]) at fused["StatefulPartitionedCall:", "StatefulPartitionedCall_1"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(fused["HashTableV2:", "qam_table"]): 'tf.HashTableV2' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["HashTableV2:", "qam_table"]): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: loc(callsite(fused["LookupTableImportV2:", "key_value_init61252/LookupTableImportV2@__inference_<lambda>_81959"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall"])): 'tf.LookupTableImportV2' op is neither a custom op nor a flex op <unknown>:0: note: loc(fused["StatefulPartitionedCall:", "StatefulPartitionedCall"]): called from <unknown>:0: note: loc(callsite(fused["LookupTableImportV2:", "key_value_init61252/LookupTableImportV2@__inference_<lambda>_81959"] at fused["StatefulPartitionedCall:", "StatefulPartitionedCall"])): Error code: ERROR_NEEDS_FLEX_OPS <unknown>:0: error: failed while converting: 'main': Some ops are not supported by the native TFLite runtime, you can enable TF kernels fallback using TF Select. See instructions: https://www.tensorflow.org/lite/guide/ops_select TF Select ops: AsString, FloorDiv, FloorMod, HashTableV2, LookupTableFindV2, LookupTableImportV2, ReduceJoin Details: tf.AsString(tensor<2025x4xi8>) -> (tensor<2025x4x!tf_type.string>) : {device = "", fill = "", precision = -1 : i64, scientific = false, shortest = false, width = -1 : i64} tf.FloorDiv(tensor<2025x1x1xui8>, tensor<8xui8>) -> (tensor<2025x1x8xui8>) : {device = ""} tf.FloorMod(tensor<2025x1x8xi8>, tensor<i8>) -> (tensor<2025x1x8xi8>) : {device = ""} tf.HashTableV2() -> (tensor<!tf_type.resource>) : {container = "", device = "", key_dtype = !tf_type.string, shared_name = "61254", use_node_name_sharing = false, value_dtype = i32} tf.LookupTableFindV2(tensor<!tf_type.resource>, tensor<2025x!tf_type.string>, tensor<i32>) -> (tensor<*xi32>) : {device = ""} tf.LookupTableImportV2(tensor<!tf_type.resource>, tensor<16x!tf_type.string>, tensor<16xi32>) -> () : {device = ""} tf.ReduceJoin(tensor<2025x4x!tf_type.string>, tensor<i32>) -> (tensor<2025x!tf_type.string>) : {device = "", keep_dims = false, separator = ""} ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59517/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59517/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59515
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59515/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59515/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59515/events
https://github.com/tensorflow/tensorflow/pull/59515
1,566,852,938
PR_kwDOArmXAs5JDA_P
59,515
[XLA] Cublaslt fp8 matmul restriction work-around
{ "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
[ "/CC @philipphack ", "@reedwm This is largely independent of the requirement of transposing A but not B. The column-major/row-major layout returned by GemmConfig::For doesn’t fully describe the configuration of a GEMM. Not considering batch dimensions, A and B each can have two possible contracting dimensions (0, 1) and two possible minor-to-major orders ({0,1}, {1,0}).\r\n \r\nThe idea is to bitcast/transpose the operands into the configuration supported by cuBLASLt (A and B have contracting dimensions 1 and 0 and both have {1, 0} orders). Since this only affects FP8 GEMMs, I think it can make sense to introduce this here without changing the general logic.", "> @reedwm This is largely independent of the requirement of transposing A but not B. The column-major/row-major layout returned by GemmConfig::For doesn’t fully describe the configuration of a GEMM. Not considering batch dimensions, A and B each can have two possible contracting dimensions (0, 1) and two possible minor-to-major orders ({0,1}, {1,0}).\r\n> \r\n> The idea is to bitcast/transpose the operands into the configuration supported by cuBLASLt (A and B have contracting dimensions 1 and 0 and both have {1, 0} orders). Since this only affects FP8 GEMMs, I think it can make sense to introduce this here without changing the general logic.\r\n\r\n@philipphack @wenscarl @reedwm what is the next step here?\r\n- reedwm was going to give the non-TN invocation of cuBLAS lt a try\r\n- wenscarl/philipphack were to look into reedwm's suggestion about moving some of the transposing logic to the matmul_util\r\n\r\nIs that still the plan?", "I confirmed the non-TN invocation works (the NN invocation, where neither input is transposed).\r\n\r\nI'm working on modifying this PR to run with NN, then I'll share it and ask if you think it's clearer.\r\n\r\n@philipphack @wenscarl do you plan on adding more test cases? If not I can also add some.", "Eventually can we please streamline and shorten the tests by perhaps parametrizing them? This would also help with readability. https://google.github.io/googletest/reference/testing.html#TEST_P", "Thanks for the comments. The monotonic layout is not necessary but only serves as a means to simplify the logic thereafter. This will be fixed. This HLO is a batched matmul and the batch dim being the first dim which falls in to the cases currently supported. But if batch dim is not first dim, e.g. [16,2,32], no matter fp8 gemm rewrite succeed or not, this case is not supported anyway. So in this PR, we don't plan to check for batch dim being first dim. ", "Can you resolve branch conflicts?" ]
2023-02-01T21:22:57
2023-02-27T20:06:04
2023-02-27T13:28:13
CONTRIBUTOR
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59515", "html_url": "https://github.com/tensorflow/tensorflow/pull/59515", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59515.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59515.patch", "merged_at": "2023-02-27T13:28:13" }
As of 2/1/2023, cublasLt f8 matmul only support col major input(default to cublas). But calling from TF/XLA, input can be in all kinds of storage type. This PR aims to "canonicalize" fp8 matmuls by having lrs/rhs_contracting_dim={1,0} and adding necessary transposes to inputs. A reproducer of this bug restriction is located at [here](https://github.com/wenscarl/fp8_gemm_test/blob/main/fp8_gemm_backward_fail.py). A remaining restriction is the batch dimension still needs to be a leading dimension.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59515/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/59515/timeline
null
null
true
https://api.github.com/repos/tensorflow/tensorflow/issues/59514
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59514/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59514/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59514/events
https://github.com/tensorflow/tensorflow/issues/59514
1,566,797,301
I_kwDOArmXAs5dY231
59,514
Proto file missing in nightly wheels
{ "login": "maggie1059", "id": 34173352, "node_id": "MDQ6VXNlcjM0MTczMzUy", "avatar_url": "https://avatars.githubusercontent.com/u/34173352?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maggie1059", "html_url": "https://github.com/maggie1059", "followers_url": "https://api.github.com/users/maggie1059/followers", "following_url": "https://api.github.com/users/maggie1059/following{/other_user}", "gists_url": "https://api.github.com/users/maggie1059/gists{/gist_id}", "starred_url": "https://api.github.com/users/maggie1059/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maggie1059/subscriptions", "organizations_url": "https://api.github.com/users/maggie1059/orgs", "repos_url": "https://api.github.com/users/maggie1059/repos", "events_url": "https://api.github.com/users/maggie1059/events{/privacy}", "received_events_url": "https://api.github.com/users/maggie1059/received_events", "type": "User", "site_admin": false }
[ { "id": 386191887, "node_id": "MDU6TGFiZWwzODYxOTE4ODc=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response", "name": "stat:awaiting response", "color": "f4b400", "default": false, "description": "Status - Awaiting response from author" }, { "id": 473173272, "node_id": "MDU6TGFiZWw0NzMxNzMyNzI=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature", "name": "type:feature", "color": "159b2e", "default": false, "description": "Feature requests" }, { "id": 473173351, "node_id": "MDU6TGFiZWw0NzMxNzMzNTE=", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install", "name": "type:build/install", "color": "159b2e", "default": false, "description": "Build and install issues" }, { "id": 3911105852, "node_id": "LA_kwDOArmXAs7pHr08", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20PR%20merge", "name": "awaiting PR merge", "color": "4080bf", "default": false, "description": "awaiting PR merge" }, { "id": 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 @maggie1059 ,\r\n\r\nAre you referring to the file in below? This is available in Master branch at below path. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tsl/profiler/protobuf/xplane.proto\r\n\r\nI downloaded the nightly wheel in colab and found all `.pb` files available at same location but converted into `.py` files.Please refer attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/708d83a387d54cb2138ff05da0efcff7/59514.ipynb). Is that what you are looking for ? Please confirm your exact requirement. Thanks!", "Hi @SuryanarayanaY, I was hoping that the original .proto file could be included in the wheel, because we need the .proto file to generate the .pb.cc file with our own protobuf compiler in order to statically link against it. Would it be possible to get that file in the wheel (similar to the tensorflow/core/profiler/protobuf/xplane.proto file)?", "Hi @maggie1059 ,\r\n\r\nI have checked with TF2.11v and found that [.proto files in TF2.11](https://github.com/tensorflow/tensorflow/blob/r2.11/tensorflow/tsl/protobuf/error_codes.proto) also converted into .py files when build into wheels. Please refer the [gist](https://colab.research.google.com/gist/SuryanarayanaY/77cbb3308e3ae0f39187c3946a88eedb/59514-2-11.ipynb#scrollTo=7urvpXGEkpTv). This may be the way it is packaged since way back.\r\n\r\nCan you confirm whether you observed .proto files as it is in any older TF wheels?\r\n\r\nI would like to know whether this is a `Regression issue` or `Feature request` so that way it can be handled.Please confirm.\r\nThanks!\r\n", "Apologies for not being more specific -- the original .proto files are within the `tensorflow/include/tensorflow` folder, and I was hoping to have xplane.proto included in `tensorflow/include/tensorflow/tsl/profiler/protobuf`, similarly to `tensorflow/include/tensorflow/core/profiler/protobuf/xplane.proto`. I've updated [the gist](https://colab.research.google.com/gist/SuryanarayanaY/77cbb3308e3ae0f39187c3946a88eedb/59514-2-11.ipynb#scrollTo=7urvpXGEkpTv) you sent to show the xplane.proto file under core/profiler/protobuf.", "@maggie1059 ,\r\n\r\nWith 2.11v the path of the file `xplane.proto` is: https://github.com/tensorflow/tensorflow/blob/r2.11/tensorflow/core/profiler/protobuf/xplane.proto\r\n\r\nWith tf-nightly(master) the path is: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/profiler/protobuf/xplane.proto . But inside the file its routed to the path `tensorflow/tsl/profiler/protobuf/xplane.proto` .\r\n\r\nIam assuming that in TF2.11v you want the file `xplane.proto` to be at `tensorflow/tsl/profiler/protobuf/xplane.proto` whereas currently it is at `tensorflow/core/profiler/protobuf/xplane.proto`. Correct me if Iam wrong. \r\n\r\nI can see in tf-nightly(master) we have two paths for the `xplane.proto` file. You need same for TF2.11 also. If so any specific reason for this path ? Please confirm.", "I would want the `xplane.proto` file in `tensorflow/tsl/profiler/protobuf` to be included in the wheel, as well as the one that is already included in `tensorflow/core/profiler/protobuf` (i.e. I'm not asking for it to be moved, just for it to be included in addition). Also, this would be for the upcoming 2.12 release, as we are working on having our plugin depend on TF 2.12 when it is released. \r\n\r\nThe latest tf-nightly wheel only includes the `xplane.proto` file under the `tensorflow/core/profiler/protobuf` folder. We need both of the files as our plugin requires the pb.cc files for both.", "@sachinprasadhs , Do you have anything to say here ?", "CC @learning-to-play @rishikasinha-tf ", "@maggie1059, the solution to this problem looks simple: I just needed to add a TSL directory search to the list of files that we include when generating the pip package. I'm working on submitting the change now, and then I'll need to get it approved for a cherry-pick. Can you check and see if [this sample package](https://storage.googleapis.com/tensorflow-nightly/prod/tensorflow/rel/docker/critique_optional/cpu_any/282/20230207-145433/pkg/tf_nightly_cpu-2.13.0.dev20230207-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl) builds correctly? I've verified that it contains the missing xplane.proto. ", "Thanks @angerson for the fix, @maggie1059 this change https://github.com/tensorflow/tensorflow/commit/46cdedf47c1f547d3c4ff9e3f63c12b7e7ec5a22 will be available in the upcoming Nightly release.\r\n", "@maggie1059 , Hope your issue resolved and please feel free to close the issue if Ok to you.", "Commit needs to be cherrypicked to 2.12 branch first", "Thank you @angerson! I see it in the sample wheel and the plugin is building as expected with it.", "@maggie1059 Great. It's too late to merge this into TF 2.12 rc0, so rc0 will probably still be broken for you. It will arrive in the version after that (rc1 or final, depending on the release schedule).", "@maggie1059 ,\r\nAs the PR already merged your requirement can be properly full-filled in next release. Do you wish to Open this issue till then? Thanks!", "Yeah, the PR was merged early into rc0, so rc0 should build for you.", "Yes, the tests on rc0 look good. I'll close 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/59514\">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/59514\">No</a>\n" ]
2023-02-01T20:42:46
2023-02-23T19:40:59
2023-02-23T19:40:56
NONE
null
null
null
### Have you reproduced the bug with TF nightly? Yes ### Tensorflow Version tf 2.12 ### Current Behaviour? I work on the TensorFlow-DirectML plugin, and we use the .proto files included in the TF wheel to generate pb.cc/pb.h files needed by the plugin. One of the files needed is the tensorflow/tsl/profiler/protobuf/xplane.proto file, which has not been included in the nightly wheels so far. Would it be possible to make sure that it's included for TF 2.12?
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59514/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59514/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59513
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59513/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59513/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59513/events
https://github.com/tensorflow/tensorflow/issues/59513
1,566,400,113
I_kwDOArmXAs5dXV5x
59,513
module 'numpy' has no attribute 'typeDict'
{ "login": "hulagerushikesh", "id": 101899401, "node_id": "U_kgDOBhLciQ", "avatar_url": "https://avatars.githubusercontent.com/u/101899401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hulagerushikesh", "html_url": "https://github.com/hulagerushikesh", "followers_url": "https://api.github.com/users/hulagerushikesh/followers", "following_url": "https://api.github.com/users/hulagerushikesh/following{/other_user}", "gists_url": "https://api.github.com/users/hulagerushikesh/gists{/gist_id}", "starred_url": "https://api.github.com/users/hulagerushikesh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hulagerushikesh/subscriptions", "organizations_url": "https://api.github.com/users/hulagerushikesh/orgs", "repos_url": "https://api.github.com/users/hulagerushikesh/repos", "events_url": "https://api.github.com/users/hulagerushikesh/events{/privacy}", "received_events_url": "https://api.github.com/users/hulagerushikesh/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": 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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "it has been added in tensorflow 2.11.0", "Hi, @hulagerushikesh \r\n\r\nApologize for the delay and as per the [NumPy 1.21.0 Release Notes](https://github.com/numpy/numpy/releases/tag/v1.21.0#:~:text=np.typeDict%20has%20been%20formally%20deprecated) `np.typeDict` has been formally deprecated so This means you are using a NumPy version that removed the deprecated `np.typeDict` ( you can use `np.sctypeDict` instead of `np.typeDict`). I checked while using the `np.typeDict ` we're getting proper warning as below :\r\n\r\n```\r\n\"<ipython-input-5-f1e601fc314f>:1: DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`.\r\n 'float16' in numpy.typeDict and 'float128' in numpy.typeDict and 'complex256' in numpy.typeDict \"\r\n```\r\n\r\nFor your reference I have added [gist file](https://colab.research.google.com/gist/gaikwadrahul8/07a22f3ac14c9269fd1bc2d3ed38f09f/-59513.ipynb) with some sample code with latest version of `Tensorflow==2.11` it's working fine with `np.sctypeDict` and with `np.typeDict` (with DeprecationWarning) so I would suggest you to either go with latest `Tensorflow version 2.11` or Use an older version of `numpy` (one before it started to issue the deprecation warning)\r\n\r\nIf Issue still persists please let us know? or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59513\">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/59513\">No</a>\n", "Having the latest version of tensorflow didn't solve the issue for me. I had to manually update `h5py` to 3.8.0 (latest as of writing this) and that solved the issue." ]
2023-02-01T16:12:28
2023-03-07T01:29:37
2023-02-17T21:07:02
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 tf 2.9.1 ### Custom Code No ### OS Platform and Distribution Windows 11 ### Mobile device _No response_ ### Python version 3.10.5 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell While importing the tensorflow ``` ### Standalone code to reproduce the issue ```shell The issue is occured when i was trying to import the tensorflow module ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59513/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59513/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59512
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59512/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59512/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59512/events
https://github.com/tensorflow/tensorflow/issues/59512
1,566,067,976
I_kwDOArmXAs5dWE0I
59,512
How to create `tf.keras.layers.Input` without batch_size dimension?
{ "login": "baoachun", "id": 22114318, "node_id": "MDQ6VXNlcjIyMTE0MzE4", "avatar_url": "https://avatars.githubusercontent.com/u/22114318?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baoachun", "html_url": "https://github.com/baoachun", "followers_url": "https://api.github.com/users/baoachun/followers", "following_url": "https://api.github.com/users/baoachun/following{/other_user}", "gists_url": "https://api.github.com/users/baoachun/gists{/gist_id}", "starred_url": "https://api.github.com/users/baoachun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baoachun/subscriptions", "organizations_url": "https://api.github.com/users/baoachun/orgs", "repos_url": "https://api.github.com/users/baoachun/repos", "events_url": "https://api.github.com/users/baoachun/events{/privacy}", "received_events_url": "https://api.github.com/users/baoachun/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": 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": 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": "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
[ "@baoachun \r\nThis issue seems to be keras issue.Please post this issue on [keras-team/keras repo.](https://github.com/keras-team/keras/issues)\r\nTo know more see;\r\n[https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999](https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999).\r\n\r\nThank you!", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Closing as stale. Please reopen if you'd like to work on this further.\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/59512\">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/59512\">No</a>\n" ]
2023-02-01T12:58:33
2023-02-17T02:07:05
2023-02-17T02:07:02
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Support ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.9.1 ### Custom Code No ### OS Platform and Distribution centos7 ### Mobile device _No response_ ### Python version 3.8.14 ### Bazel version 5.0 ### GCC/Compiler version 10.2 ### CUDA/cuDNN version 11.4 ### GPU model and memory A30 ### Current Behaviour? One input of my model has nothing to do with batch_size, for example, its shape is [1,2,3], how to avoid automatically adding 1 dimension when creating `tf.keras.layers.Input` ? If I manually slice it, the slice operator will be introduced, resulting in a decrease in inference performance. ### Standalone code to reproduce the issue ```shell import tensorflow as tf x = tf.keras.layers.Input(shape=(32,64)) # x.shape: (None, 32, 64) x = x[0, :, :] # x.shape: (32, 64) ```
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59512/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59512/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59511
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59511/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59511/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59511/events
https://github.com/tensorflow/tensorflow/issues/59511
1,565,981,795
I_kwDOArmXAs5dVvxj
59,511
InvalidArgumentError: Dst node should be assigned to an allowed device. [TPU]
{ "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": 2477739347, "node_id": "MDU6TGFiZWwyNDc3NzM5MzQ3", "url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.4", "name": "TF 2.4", "color": "5319e7", "default": false, "description": "for issues related to TF 2.4" } ]
closed
false
{ "login": "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
[ "Any update? This program works fine on single and mult-gpu devices. But it raises issue for running on TPU node (perhaps due to unknown shape initiated in init!!). ", "This program exhibits two behaviors presently unsupported by TPUs:\r\n\r\n1) Variables with unknown shapes.\r\n a) \"TPUs do not have registered OpKernel support for [tf.raw_ops.]Shape.\"\r\n2) Variables whose shapes change over time.\r\n\r\nThis error is appearing due to the first behavior, but resolving that will induce the second.\r\n\r\nMy guidance would be to rewrite this program to avoid these behaviors, if possible. For example, you could place these variables on the host CPU.", "Set it true but still gives error.\n\n```\ntf.config.set_soft_device_placement(\n    enabled\n)\n```\n\nHow to place on CPU devices (colab or kaggle)? \n\n```\ntf.config.list_logical_devices('TPU')\n```\n\nOnly returns the available tpu node. I also tried `tf.device('CPU'):`, but no luck. ", "The simplest way to place them on the host device is to move the `tf.Variable` statements outside of the distribution strategy scope. That would require a little bit of rearranging here.\r\n\r\nThis assumes that you cannot make the variables fixed shape and maintain the TPU placement. There are various ways to achieve that, like pre-allocating them to be the largest possible size (after all the `tf.concat` ops) or using another aggregation method (e.g., the difference between concat-sum-divide and moving averages). You may be able to use a `tf.TensorArray` if you know an upper-bound for the number of concatenations; however, I'm unsure whether that would apply here.", "> The simplest way to place them on the host device is to move the tf.Variable statements outside of the distribution strategy scope. That would require a little bit of rearranging here.\r\n\r\nEven though I place variable outside the scope, it complains the same. Any catch?\r\n\r\nhttps://colab.research.google.com/drive/18O9M6kiD-1kyrodS5_PsCshgW08xsKst?usp=sharing", "Ah, I see. There's also some trickiness here because these are distributed/per-device values being sent to a single device. I'll dig into this further and see what I can turn up. A workaround might involve writing a [custom training loop](https://www.tensorflow.org/tutorials/distribute/custom_training) that reduces the per-device values ([link](https://www.tensorflow.org/api_docs/python/tf/distribute/Strategy#reduce)), and stores them host-side.\r\n\r\nA broader question--are per-batch, per-device values necessary? If they can be averaged or, otherwise, aggregated that would save a lot of memory and fit into the existing patterns (Keras metrics).", "> A broader question--are per-batch, per-device values necessary? If they can be averaged or, otherwise, aggregated that would save a lot of memory and fit into the existing patterns (Keras metrics).\r\n\r\nMy goal here is to get the `y`, `y_pred` of validation data set inside the callback API (`on_epoch_end`) to perform some post-processing stuff. Originally posted [here](https://github.com/keras-team/tf-keras/issues/330). It is [suggested](https://github.com/keras-team/tf-keras/issues/330) to use the way I'm doing (above colab). So, yes, per-batch, per-device data is necessary. ", "Apologies for the delayed response.\r\n\r\nOne potential solution may be to use an all-gather to collect the per-device values and then write a summary file via outside compilation. Writing a summary file could consume less memory during training, but comes at the cost of having to load the data back later. Here is a loose example of what that could look like: [link](https://gist.github.com/jszaday/ca0d3eb05c487bd3e2a74b697b22c3f0).\r\n\r\nA couple things to note:\r\n- TPU workers cannot access a Colab's local storage, only GCS buckets (in case of `File system scheme '[local]' not implemented...`).\r\n- This example does not enable \"soft device placement\" since it uses the TF1 equivalent (outside compilation).\r\n- One could increment `step` in a Keras callback like `on_train_batch_begin`.\r\n\r\nI hope this example illustrates a potential way forward for your issue; at the very least, its pattern could be adapted to store the per-batch, per-device values another way.", "@jszaday Thanks for the update with details explanations. It looks interesting, let me check and get back to 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.", "@jszaday \r\nSorry for the delay. Though the provided gist looks a great starting point, I would like to have more simplified APIs for this. Changing the end user code for the target results (batch/epoch level output) on TPU looks heavy though it should be run as it is without any hacks. I wonder how pytorch-lightening (pl) does this things in back. In pl, the callback APIs does output data step/epoch wise and pl code can be run on gpu/tpu devices with ease. \r\n\r\nRecently this FR is reoccurred in this PR https://github.com/keras-team/keras-io/pull/1314\r\n\r\n```python\r\nclass EvaluateCOCOMetricsCallback(keras.callbacks.Callback):\r\n def __init__(self, data):\r\n super().__init__()\r\n self.data = data\r\n self.metrics = keras_cv.metrics.BoxCOCOMetrics(\r\n bounding_box_format=\"xywh\",\r\n # passing 1e9 ensures we never evaluate until\r\n # `metrics.result(force=True)` is\r\n # called.\r\n evaluate_freq=1e9,\r\n )\r\n\r\n def on_epoch_end(self, epoch, logs):\r\n self.metrics.reset_state()\r\n for batch in tqdm.tqdm(self.data):\r\n images, y_true = batch[0], batch[1]\r\n y_pred = self.model.predict(images, verbose=0)\r\n self.metrics.update_state(y_true, y_pred)\r\n\r\n metrics = self.metrics.result(force=True)\r\n logs.update(metrics)\r\n return logs\r\n\r\nmodel.fit(\r\n train_ds.take(20),\r\n validation_data=eval_ds.take(20),\r\n # Run for 10-35~ epochs to achieve good scores.\r\n epochs=1,\r\n callbacks=[EvaluateCOCOMetricsCallback(eval_ds.take(20))],\r\n)\r\n```\r\n\r\nFor TPU, it's written as follows, where the same validation data set (`eval_ds` is passed to the model again via callback, even though it's already processed via `validation_data`).\r\n\r\ncc. @LukeWood ", "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/59511\">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/59511\">No</a>\n" ]
2023-02-01T11:59:16
2023-09-22T18:13:41
2023-08-04T18:37:17
NONE
null
null
null
### Issue Type Bug ### Have you reproduced the bug with TF nightly? Yes ### Source source ### Tensorflow Version 2.4.1 ### Custom Code Yes ### OS Platform and Distribution Kaggle ### 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? > InvalidArgumentError: Dst node should be assigned to an allowed device. Found an edge from node concat_variable_140022353296720_handle_inputs_0/shape/_4 assigned to /job:localhost/replica:0/task:0/device:COMPOSITE:0 to node TPUReplicate/_compile/_7103042970398181355/_7 assigned to /job:worker/replica:0/task:0/device:CPU:0 ### Standalone code to reproduce the issue ```python import tensorflow as tf from tensorflow import keras from tensorflow.experimental import numpy as tnp import numpy as np def set_tpu(mixed_precision=True): tpu = tf.distribute.cluster_resolver.TPUClusterResolver.connect() if mixed_precision: keras.mixed_precision.set_global_policy("mixed_bfloat16") tf.config.set_soft_device_placement(False) strategy = tf.distribute.TPUStrategy(tpu) physical_devices = tf.config.list_logical_devices('TPU') return (strategy, physical_devices) mxp = False jit = False strategy, physical_devices = set_tpu(mixed_precision=mxp) physical_devices, tf.__version__ ``` ```python class CustomModel(keras.Model): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.val_x = tf.Variable(( tnp.empty((0, 32), dtype=tf.float32)), shape=[None, 32] ) self.val_gt = tf.Variable( tnp.empty((0), dtype=tf.float32), shape=[None] ) self.val_pred = tf.Variable( tnp.empty((0, 1), dtype=tf.float32), shape=[None, 1] ) def test_step(self, data): x, y = data y_pred = self(x, training=False) self.compiled_loss(y, y_pred, regularization_losses=self.losses) self.compiled_metrics.update_state(y, y_pred) # ATTENTION # Main Cause !!! self.val_x.assign( tf.concat([self.val_x, x], axis=0) ) self.val_gt.assign( tf.concat([self.val_gt, y], axis=0) ) self.val_pred.assign( tf.concat([self.val_pred, y_pred], axis=0) ) return {m.name: m.result() for m in self.metrics} ``` ```python with strategy.scope(): inputs = keras.Input(shape=(32,)) outputs = keras.layers.Dense(1, dtype='float32')(inputs) model = CustomModel(inputs, outputs) model.compile( optimizer="adam", loss="mse", metrics=["mae"], ) x = np.random.random((1000, 32)) y = np.random.random((1000)) x_test = np.random.random((10, 32)) y_test = np.random.random((10)) model.fit( x, y, epochs=5, validation_data=(x_test, y_test), verbose=2, batch_size=4, ) ``` ### Relevant log output > 2023-02-01 11:55:11.789825: W ./tensorflow/core/distributed_runtime/eager/destroy_tensor_handle_node.h:57] Ignoring an error encountered when deleting remote tensors handles: Invalid argument: Unable to find the relevant tensor remote_handle: Op ID: 1206, Output num: 0 Additional GRPC error information from remote target /job:worker/replica:0/task:0: :{"created":"@1675252511.789496486","description":"Error received from peer ipv4:10.0.0.2:8470","file":"external/com_github_grpc_grpc/src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Unable to find the relevant tensor remote_handle: Op ID: 1206, Output num: 0","grpc_status":3} Epoch 1/5 2023-02-01 11:55:15.394719: W tensorflow/core/distributed_runtime/eager/remote_tensor_handle_data.cc:76] Unable to destroy remote tensor handles. If you are running a tf.function, it usually indicates some op in the graph gets an error: Dst node should be assigned to an allowed device. Found an edge from node concat_variable_140022353296720_handle_inputs_0/shape/_4 assigned to /job:localhost/replica:0/task:0/device:COMPOSITE:0 to node TPUReplicate/_compile/_7103042970398181355/_7 assigned to /job:worker/replica:0/task:0/device:CPU:0 ## Others - Program works fine in GPU / CPU - Relevant ticket. https://github.com/keras-team/tf-keras/issues/330
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59511/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59511/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59510
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59510/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59510/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59510/events
https://github.com/tensorflow/tensorflow/issues/59510
1,565,827,184
I_kwDOArmXAs5dVKBw
59,510
OperatorNotAllowedInGraphError: Iterating over a symbolic `tf.Tensor` is not allowed when using a dataset with tuples
{ "login": "mihail-vladov", "id": 11956739, "node_id": "MDQ6VXNlcjExOTU2NzM5", "avatar_url": "https://avatars.githubusercontent.com/u/11956739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihail-vladov", "html_url": "https://github.com/mihail-vladov", "followers_url": "https://api.github.com/users/mihail-vladov/followers", "following_url": "https://api.github.com/users/mihail-vladov/following{/other_user}", "gists_url": "https://api.github.com/users/mihail-vladov/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihail-vladov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihail-vladov/subscriptions", "organizations_url": "https://api.github.com/users/mihail-vladov/orgs", "repos_url": "https://api.github.com/users/mihail-vladov/repos", "events_url": "https://api.github.com/users/mihail-vladov/events{/privacy}", "received_events_url": "https://api.github.com/users/mihail-vladov/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
[ "The bug in the code is that you are using the `fit` method of the `tf.keras.Model` with the `train_data` dataset, but `train_data` is not defined anywhere in the code.\r\n\r\nSolution:\r\n```\r\nmodel.fit(dataset, batch_size=1, epochs=1)\r\n```\r\n\r\nAdditionally, the `call` method of your custom `MyTransformer` model is not returning the labels `lable` which is required for the training process. You'll need to return both the features and the labels from the `call` method in order for the model to be trained properly:\r\n```\r\ndef call(self, inputs, training):\r\n feature, lable = inputs\r\n return feature, lable\r\n```\r\nFinally, the loss function that you are using, `tf.keras.losses.BinaryCrossentropy` is designed for binary classification problems, but the labels in your dataset are categorical. To handle this, you should use a different loss function, such as `tf.keras.losses.CategoricalCrossentropy`, which is designed for categorical classification problems.", "Let me know if it helps ?", "Hi @DURGESH716, and thank you for the reply.\r\n\r\nusing the wrong variable was a mistake that I made when pasting the example here. Even if a not defined variable was used I would've expected \"NameError: name 'train_data' is not defined\" error and not one for a symbolic tensor. The link that was provided with the description of the issue points out to google colab example where the correct variable was used. So the original question still stands. \r\nI've now modified the example according to your suggestions to return feature and label, plus using the CategoricalCrossentropy and nothing changes. Here is a link to the example in google colab:\r\n**https://colab.research.google.com/drive/1mn6iseJLnJwTmwakYa2XuxszKtR6sV9G#scrollTo=Cj9g0bGN1Fo3**\r\n\r\nCan you help me to understand what the real issue is?", "@mihail-vladov Thanks for reporting issue.\r\n\r\n@sushreebarsa I was able to reproduce this issue. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/11bc8b59d3a76c5a3619e6091e35f295/59510.ipynb). \r\n\r\nThe model works as expected when features and labels are given as forward pass but fail when `tf.data.Dataset` is passed to the `model.fit`.", "Proceeding with the @pjpratik points, I think it is important to ensure that the data is correctly formatted and preprocessed before being passed to the model. Some common issues include incorrect tensor shapes, data types, and normalization. To resolve the issue, you may need to inspect and debug the data preprocessing steps, including any data augmentation or batching operations that are applied to the data before passing it to the model. Additionally, it may be helpful to compare the data and preprocessing steps used when passing features and labels directly to the model versus when using a tf.data.Dataset.\r\n\r\nRest everything logic and code is syntactically correct, please check the dataset properly and pre-process it carefully. ", "Hi, @mihail-vladov \r\n\r\nApologize for the delay and It seems like you haven't done pre-processing with your dataset, your `batched_labels` should be in `numerical values` but it was in `string` type so you'll have to do some pre-processing with `batched_labels` with one hot encoding approach so that `batched_labels` will convert into numerical values so you can refer this [official documentation ](https://www.tensorflow.org/api_docs/python/tf/one_hot)\r\n\r\nWhen you pass dataset from `tf.data.Dataset()` to model.fit() it is expected that it will directly generate batches, not individual examples. You just need to batch your dataset before training as shown below and please refer [tf.data.Dataset()](https://www.tensorflow.org/api_docs/python/tf/data/Dataset):\r\n\r\n```\r\nbatch_size=32\r\ndataset = dataset.batch(batch_size)\r\nmodel.fit(x=dataset)\r\n```\r\nI have added sample code example for your reference, How to use `tf.data.dataset` with `model.fit()` so please refer this [gist-file](https://colab.research.google.com/gist/gaikwadrahul8/d29fb5cebf247c702d6d36ae34bd2859/-59510.ipynb) and also refer our official documentation for [Customize what happens in Model.fit](https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit) \r\n\r\nI hope it will help you to resolve your issue and if issue still persists please let us know ? or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!", "Hi @gaikwadrahul8,\r\n\r\nI'm a bit confused by your response, as the code in your gist-file appears to differ significantly from the code I provided, except for the use of TensorFlow and a dataset. Additionally, @pjpratik has confirmed that there is a bug, so I was hoping to receive an update on when the bug will be fixed.\r\n\r\nRegarding your previous comment about the data preprocessing and batches, I understand your point and you would be typically right if there was no issue and I was actually able to use the data. However, this is not the case. Nevertheless, I've reworked the example to reflect your comments. Here is the updated [example](https://colab.research.google.com/drive/1OO4PvlDNSyNKKVyvXwOLneDdMm2oY8ho). As you can verify yourself, the exception is still there.\r\n\r\nI would like to reiterate the issue I am encountering. According to the [TensorFlow documentation](https://www.tensorflow.org/api_docs/python/tf/keras/Model#call), I should be able to use a dataset as the **x** argument for the model.fit() function and receive a tuple as **inputs** parameter in the model.call() function. Then, I would decide how to process and what operation to execute on the data in that function. However, I'm encountering an exception and can't obtain the data in the tuple format from the inputs parameter in the call function. This leaves me with the impression that the documentation is not accurate! Meaning there is a bug. Here is once again the exception: \r\n\r\n`File \"<ipython-input-7-a0afc8cfb653>\", line 8, in call \r\n(feature, label) = inputs`\r\n`OperatorNotAllowedInGraphError: Iterating over a symbolic tf.Tensor is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature.`\r\n\r\nIf you decide to provide an example of how to overcome the exception please use the code I've provided with the specified model and a dataset containing a tuple. Thank you for your time and consideration.\r\n", "This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.\n", "Hi @gaikwadrahul8,\r\nis there any update on this?", "Hi, @mihail-vladov \r\n\r\nApologize for the delay and It seems like you're trying to use operation which does not support by `autograph` because of that reason you're getting that error and even error itself is saying the same thing but there is some workaround and I found similar issue over [stack-overflow](https://stackoverflow.com/questions/68636916/operatornotallowedingrapherror-iterating-over-tf-tensor-is-not-allowed-autog). and it seems like you'll have to use `tf.shape(x)`, please refer this [official documentation](https://www.tensorflow.org/api_docs/python/tf/shape), please try with `tf.shape(x)` and check whether your issue is resolving or not ? I tried from my end and I'm getting different error `AttributeError: 'NoneType' object has no attribute 'dtype'` and I have added [gist-file](https://colab.research.google.com/gist/gaikwadrahul8/4f3a16cd77901db790666fffd16d64ff/-59510-test.ipynb) for your reference. I hope it will help you to resolve your issue.\r\n\r\n`tf.shape(x) and x.shape should be identical in eager mode. Within tf.function, not all dimensions may be known until execution time. Hence when defining custom layers and models for graph mode, prefer the dynamic tf.shape(x) over the static x.shape.`\r\n\r\nIf issue still persists please let us know ? Thank you!", "Hi, @gaikwadrahul8,\r\n\r\npjpratik already confirmed that this is a **bug**. Why are you trying to convince me that I am doing something incorrectly?\r\n\r\nYou said that I am trying to use an operation that is not supported. **Could you please point out exactly which is that operation?**\r\n\r\nRegarding your comment on the different error you are getting, you have changed the code in the model, which is why the error is different.\r\n\r\nI will repeat myself again. According to the TensorFlow documentation, I can use the dataset as input data. This data can be packed as a tuple. Please extract the data from the tuple in the model call function in a way that won't throw an error.", "Hi, @mihail-vladov \r\n\r\nApologize for the delayed response and I see @pjpratik did not say explicitly it's bug, He only replicated that issue from his end and he said code execution is failing with `tf.data.Dataset` is passed to the `model.fit()` and I was referring there are similar issues with same error message while using `Autograph` mode like [#32546](https://github.com/tensorflow/tensorflow/issues/32546), [#51472](https://github.com/tensorflow/tensorflow/issues/51472) and users found some workaround for those issues.\r\n\r\nI'm waiting for response from concerned team for this issue whether is there any workaround to handle this issue till then could you please have look into this [Autograph reference guide](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/index.md) which may help you to solve this issue and I'll update you soon here. Thank you!", "Hi, @SuryanarayanaY \r\n\r\nCould you please look into this issue ? Thank you!", "Hi @mihail-vladov ,\r\n\r\nThe problem not seems to related to Autograph. The problem seems the code trying to get Two values(feature, lable) from a Tensor (`model.fit` converts the given `input` to `Tensor` that is internal details can be checked from the `model.fit` API code) and Tensor can't be unpacked to Two values and Please note that Tensor is immutable in Tensorflow.\r\n\r\nYou can check the behaviour clearly when you enable Eager mode using `model.compile(...,run_eagerly=True)` where you can see the error below.\r\n\r\n`not enough values to unpack (expected 2, got 1)`\r\n\r\nI have added `print(inputs)` in `call()` to understand what actually is `inputs`. Please refer attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/86c052333f39f95c63e3e194c7292c60/59510.ipynb).\r\n\r\nHope this will clear your doubts on root cause of this error. Thanks!", "Hi @SuryanarayanaY, Thank you for the answer.\r\n\r\nAccording to the [TensorFlow documentation ](https://www.tensorflow.org/api_docs/python/tf/keras/Model#call)using tuple (feature, label) as inputs argument is allowed. Here is the quote: \r\n\r\n> inputs:\tInput tensor, or dict/list/tuple of input tensors.\r\n\r\nI am using a tuple. Here are my questions:\r\n\r\n1. Why the model.fit function does not call the model.call function according to the documentation?\r\n2. What is the correct way to obtain the feature and label data in the model.call function when I pass a dataset to the model.fit function?\r\n\r\n\r\n\r\n", "Hi @mihail-vladov ,\r\n\r\n> 1. Why the model.fit function does not call the model.call function according to the documentation?\r\n\r\nThe model.fit function called the call() function. You can check by adding print() to confirm same. But here when we pass a dataset as an argument to model.fit, the API converts it into Tensors internally.Outside the model.fit() the dataset might be a tuple but within model.fit the tuple is converting into Tensors which is default behaviour.\r\n\r\n\r\n\r\n\r\n> 2\\. What is the correct way to obtain the feature and label data in the model.call function when I pass a dataset to the model.fit function?\r\n\r\nTo get the custom behaviour as per individuals requirement you need to override the `train_step` . Please refer to attached [tutorials](https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit#a_first_simple_example) for more details.\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/59510\">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/59510\">No</a>\n", "I am facing the same issue and I am confused why the example in [Neural Machine Translation](https://www.tensorflow.org/text/tutorials/nmt_with_attention) doesn't run into the same issue but here we run into this issue? Basically they are using the same type of code:\r\n```\r\nclass Translator(tf.keras.Model):\r\n @classmethod\r\n def add_method(cls, fun):\r\n setattr(cls, fun.__name__, fun)\r\n return fun\r\n\r\n def __init__(self, units,\r\n context_text_processor,\r\n target_text_processor):\r\n super().__init__()\r\n # Build the encoder and decoder\r\n encoder = Encoder(context_text_processor, units)\r\n decoder = Decoder(target_text_processor, units)\r\n\r\n self.encoder = encoder\r\n self.decoder = decoder\r\n\r\n def call(self, inputs):\r\n context, x = inputs\r\n context = self.encoder(context)\r\n logits = self.decoder(context, x)\r\n\r\n #TODO(b/250038731): remove this\r\n try:\r\n # Delete the keras mask, so keras doesn't scale the loss+accuracy. \r\n del logits._keras_mask\r\n except AttributeError:\r\n pass\r\n\r\n return logits\r\n```", "@kiskani This was one of the issues that made me switch to PyTorch. Misleading documentation and bad support from the developers here. I do not regret my decision." ]
2023-02-01T10:11:45
2024-05-31T14:54:39
2023-04-25T01:54:52
NONE
null
null
null
<details><summary>Click to expand!</summary> ### Issue Type Bug ### Have you reproduced the bug with TF nightly? No ### Source source ### Tensorflow Version 2.11 ### Custom Code Yes ### OS Platform and Distribution Windows ### Mobile device _No response_ ### Python version 3.9 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell I am trying to create my own transformer and train it. For this purpose, I use dataset to handle my data. The data is created by a code snippet from the tensorflow dataset.from_tensor_slices() method [documentation article](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#from_tensor_slices) . Nevertheless, tensorflow is giving me the following error when I call the fit() method: > "OperatorNotAllowedInGraphError: Iterating over a symbolic tf.Tensor is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature." The used code is reduced significantly just for the purpose of reproducing the issue. I've also tried passing the data as a dictionary instead of a tuple in the dataset and a couple more things but nothing worked. It seems that I am missing something. Here is a link to [google colab example](https://colab.research.google.com/drive/1mn6iseJLnJwTmwakYa2XuxszKtR6sV9G#scrollTo=Cj9g0bGN1Fo3) ``` ### Standalone code to reproduce the issue ```shell import numpy as np import tensorflow as tf batched_features = tf.constant([[[1, 3], [2, 3]], [[2, 1], [1, 2]], [[3, 3], [3, 2]]], shape=(3, 2, 2)) batched_labels = tf.constant([['A', 'A'], ['B', 'B'], ['A', 'B']], shape=(3, 2, 1)) dataset = tf.data.Dataset.from_tensor_slices((batched_features, batched_labels)) dataset = dataset.batch(1) for element in dataset.as_numpy_iterator(): print(element) class MyTransformer(tf.keras.Model): def __init__(self): super().__init__() def call(self, inputs, training): print(type(inputs)) feature, lable = inputs return feature model = MyTransformer() model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3), loss=tf.keras.losses.BinaryCrossentropy(), metrics=[tf.keras.metrics.BinaryAccuracy(), tf.keras.metrics.FalseNegatives()]) model.fit(dataset , batch_size = 1, epochs = 1) ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59510/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59510/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59509
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59509/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59509/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59509/events
https://github.com/tensorflow/tensorflow/issues/59509
1,565,590,668
I_kwDOArmXAs5dUQSM
59,509
list index out of range
{ "login": "smarthmaster", "id": 97522456, "node_id": "U_kgDOBdATGA", "avatar_url": "https://avatars.githubusercontent.com/u/97522456?v=4", "gravatar_id": "", "url": "https://api.github.com/users/smarthmaster", "html_url": "https://github.com/smarthmaster", "followers_url": "https://api.github.com/users/smarthmaster/followers", "following_url": "https://api.github.com/users/smarthmaster/following{/other_user}", "gists_url": "https://api.github.com/users/smarthmaster/gists{/gist_id}", "starred_url": "https://api.github.com/users/smarthmaster/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smarthmaster/subscriptions", "organizations_url": "https://api.github.com/users/smarthmaster/orgs", "repos_url": "https://api.github.com/users/smarthmaster/repos", "events_url": "https://api.github.com/users/smarthmaster/events{/privacy}", "received_events_url": "https://api.github.com/users/smarthmaster/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": 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": 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": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false }
[ { "login": "gaikwadrahul8", "id": 115997457, "node_id": "U_kgDOBun7EQ", "avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gaikwadrahul8", "html_url": "https://github.com/gaikwadrahul8", "followers_url": "https://api.github.com/users/gaikwadrahul8/followers", "following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}", "gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}", "starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions", "organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs", "repos_url": "https://api.github.com/users/gaikwadrahul8/repos", "events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}", "received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events", "type": "User", "site_admin": false } ]
null
[ "@gaikwadrahul8 please respond to this", "Hello @smarthmaster \r\nThis error message is indicating an issue with a TensorFlow script, specifically with the line `col = ag__.ld(fen)[1].` The message says that the list index is out of range, which means that the code is trying to access an element of a list that does not exist. This could be because the list is empty, or because the index being accessed is too large for the size of the list. To resolve this issue, you may want to check the input `fen` to ensure it is not empty and that it is being passed the correct value. Additionally, you may want to verify that the index `[1]` is the appropriate index for the list returned by `ag__.ld(fen).`", "Let me know if it helps ? ", "the problem is arising in model.fit\r\ndef preprocess(inp):\r\n def helper(inp):\r\n fen, moved_from, moved_to = inp.numpy().decode().split(' ')\r\n print(fen,'done')\r\n moved_from = int(moved_from) \r\n moved_to = int(moved_to) \r\n\r\n fen = fen.split()\r\n print(fen)\r\n col = fen[1]\r\n fen = fen[0]\r\n\r\n if col == 'b':\r\n fen = invert_fen(fen)\r\n moved_from = 63 - moved_from\r\n moved_to = 63 - moved_to\r\n\r\n if TRAIN_MOVE_FROM:\r\n moved_from_board = number_to_board(num=moved_from)\r\n else:\r\n moved_to_board = number_to_board(num=moved_to)\r\n\r\n board = fen_to_matrix(fen=fen)\r\n\r\n if col == 'b':\r\n if TRAIN_MOVE_FROM:\r\n moved_from_board = np.flip(moved_from_board, axis=1)\r\n else:\r\n moved_to_board = np.flip(moved_to_board, axis=1)\r\n\r\n if TRAIN_MOVE_FROM:\r\n return board, moved_from_board\r\n else:\r\n return board, moved_to_board\r\n \r\n # return tf.random.normal((8, 8))\r\n return tf.py_function(func=helper, inp=[inp], Tout=[tf.int32, tf.int32])\r\n\r\nds = tf.data.TextLineDataset('out.txt').repeat()\r\nds = ds.shuffle(buffer_size=1000)\r\n# ds = ds.batch(BATCH_SIZE)\r\nds = ds.map(preprocess, num_parallel_calls=tf.data.AUTOTUNE)\r\n\r\ntrain = ds.skip(VAL_SIZE).batch(BATCH_SIZE).prefetch(tf.data.AUTOTUNE)\r\nval = ds.take(VAL_SIZE).batch(BATCH_SIZE)\r\n\r\nclass SaveModel(tf.keras.callbacks.Callback):\r\n def on_epoch_end(self, epoch, logs=None):\r\n name = 'gm_from/model{}.h5'.format(epoch + 1)\r\n self.model.save(name, overwrite=True,)\r\n\r\ncbk = SaveModel()\r\n\r\ntensorboard_callback = tf.keras.callbacks.TensorBoard(\r\n log_dir='logs/callback',\r\n profile_batch='10,14',\r\n)\r\n\r\n# print('Fitting...')\r\n\r\n# model.load_weights('checkpoints/ckpt')\r\n\r\nmodel.fit(\r\n train,\r\n epochs=EPOCHS, \r\n steps_per_epoch=STEPS_PER_EPOCH, \r\n validation_data=val,\r\n callbacks=[tensorboard_callback],\r\n verbose=0,\r\n)\r\n\r\n\r\nthis is the code\r\n\r\nand out.txt is a file with data like\r\n4r2k/3q2pp/6p1/1p2R3/3n1BPb/3P3P/PP6/3Q1RK1 4 5\r\n5r1k/3q2pp/6p1/1p2R3/3n1BPb/3P3P/PP6/3Q1RK1 37 44\r\n5r1k/3q2pp/6p1/1p2R3/3n2Pb/3PB2P/PP6/3Q1RK1 5 2\r\n2r4k/3q2pp/6p1/1p2R3/3n2Pb/3PB2P/PP6/3Q1RK1 28 36\r\n2r4k/3q2pp/6p1/1p6/3nR1Pb/3PB2P/PP6/3Q1RK1 35 20\r\n2r4k/3q2pp/4n1p1/1p6/4R1Pb/3PB2P/PP6/3Q1RK1 43 35\r\n2r4k/3q2pp/4n1p1/1p6/3PR1Pb/4B2P/PP6/3Q1RK1 15 31\r\n2r4k/3q2p1/4n1p1/1p5p/3PR1Pb/4B2P/PP6/3Q1RK1 35 27\r\n2r4k/3q2p1/4n1p1/1p1P3p/4R1Pb/4B2P/PP6/3Q1RK1 20 30\r\n2r4k/3q2p1/6p1/1p1P2np/4R1Pb/4B2P/PP6/3Q1RK1 44 30\r\n2r4k/3q2p1/6p1/1p1P2Bp/4R1Pb/7P/PP6/3Q1RK1 30 0\r\n2r4k/3q2p1/6p1/1p1P2bp/4R1P1/7P/PP6/3Q1RK1 38 31\r\n2r4k/3q2p1/6p1/1p1P2bP/4R3/7P/PP6/3Q1RK1 11 0\r\n2r4k/6p1/6p1/1p1P2bP/4R3/7q/PP6/3Q1RK1 59 38\r\n2r4k/6p1/6p1/1p1P2bP/4R1Q1/7q/PP6/5RK1 30 44\r\n2r4k/6p1/6p1/1p1P3P/4R1Q1/4b2q/PP6/5RK1 36 44\r\n2r4k/6p1/6p1/1p1P3P/6Q1/4R2q/PP6/5RK1 38 0\r\n2r4k/6p1/6p1/1p1P3P/6q1/4R3/PP6/5RK1 44 60\r\nrnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR 10 26\r\nrnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR 57 42\r\nrnbqkbnr/pp1ppppp/8/2p5/4P3/2N5/PPPP1PPP/R1BQKBNR 1 18\r\nr1bqkbnr/pp1ppppp/2n5/2p5/4P3/2N5/PPPP1PPP/R1BQKBNR 51 43\r\nr1bqkbnr/pp1ppppp/2n5/2p5/4P3/2NP4/PPP2PPP/R1BQKBNR 8 16\r\nr1bqkbnr/1p1ppppp/p1n5/2p5/4P3/2NP4/PPP2PPP/R1BQKBNR 58 51\r\nr1bqkbnr/1p1ppppp/p1n5/2p5/4P3/2NP4/PPPB1PPP/R2QKBNR 12 20\r\nr1bqkbnr/1p1p1ppp/p1n1p3/2p5/4P3/2NP4/PPPB1PPP/R2QKBNR 55 47\r\nr1bqkbnr/1p1p1ppp/p1n1p3/2p5/4P3/2NP3P/PPPB1PP1/R2QKBNR 11 27\r\nr1bqkbnr/1p3ppp/p1n1p3/2pp4/4P3/2NP3P/PPPB1PP1/R2QKBNR 36 27\r\nr1bqkbnr/1p3ppp/p1n1p3/2pP4/8/2NP3P/PPPB1PP1/R2QKBNR 27 0\r\nr1bqkbnr/1p3ppp/p1n5/2pp4/8/2NP3P/PPPB1PP1/R2QKBNR 42 27\r\nr1bqkbnr/1p3ppp/p1n5/2pN4/8/3P3P/PPPB1PP1/R2QKBNR 3 0\r\nr1b1kbnr/1p3ppp/p1n5/2pq4/8/3P3P/PPPB1PP1/R2QKBNR 48 40\r\nr1b1kbnr/1p3ppp/p1n5/2pq4/8/P2P3P/1PPB1PP1/R2QKBNR 6 21\r\nr1b1kb1r/1p3ppp/p1n2n2/2pq4/8/P2P3P/1PPB1PP1/R2QKBNR 50 42\r\nr1b1kb1r/1p3ppp/p1n2n2/2pq4/8/P1PP3P/1P1B1PP1/R2QKBNR 18 28\r\nr1b1kb1r/1p3ppp/p4n2/2pqn3/8/P1PP3P/1P1B1PP1/R2QKBNR 59 32\r\nr1b1kb1r/1p3ppp/p4n2/2pqn3/Q7/P1PP3P/1P1B1PP1/R3KBNR 9 25\r\nr1b1kb1r/5ppp/p4n2/1ppqn3/Q7/P1PP3P/1P1B1PP1/R3KBNR 32 24\r\nr1b1kb1r/5ppp/p4n2/Qppqn3/8/P1PP3P/1P1B1PP1/R3KBNR 43 0\r\nr1b1kb1r/5ppp/p4n2/Qppq4/8/P1Pn3P/1P1B1PP1/R3KBNR 60 59\r\nr1b1kb1r/5ppp/p4n2/Qppq4/8/P1Pn3P/1P1B1PP1/R2K1BNR 53 0\r\nr1b1kb1r/5ppp/p4n2/Qppq4/8/P1P4P/1P1B1nP1/R2K1BNR 59 50\r\nr1b1kb1r/5ppp/p4n2/Qppq4/8/P1P4P/1PKB1nP1/R4BNR 63 0\r\nr1b1kb1r/5ppp/p4n2/Qppq4/8/P1P4P/1PKB2P1/R4BNn 61 25\r\nr1b1kb1r/5ppp/p4n2/QBpq4/8/P1P4P/1PKB2P1/R5Nn 2 11\r\nr3kb1r/3b1ppp/p4n2/QBpq4/8/P1P4P/1PKB2P1/R5Nn 25 11\r\nr3kb1r/3B1ppp/p4n2/Q1pq4/8/P1P4P/1PKB2P1/R5Nn 27 0\r\nr3kb1r/3q1ppp/p4n2/Q1p5/8/P1P4P/1PKB2P1/R5Nn 62 45\r\nr3kb1r/3q1ppp/p4n2/Q1p5/8/P1P2N1P/1PKB2P1/R6n 63 53\r\nr3kb1r/3q1ppp/p4n2/Q1p5/8/P1P2N1P/1PKB1nP1/R7 45 28\r\nr3kb1r/3q1ppp/p4n2/Q1p1N3/8/P1P4P/1PKB1nP1/R7 11 29\r\nr3kb1r/5ppp/p4n2/Q1p1Nq2/8/P1P4P/1PKB1nP1/R7 50 58\r\nr3kb1r/5ppp/p4n2/Q1p1Nq2/8/P1P4P/1P1B1nP1/R1K5 29 36\r\nr3kb1r/5ppp/p4n2/Q1p1N3/4q3/P1P4P/1P1B1nP1/R1K5 28 13\r\nr3kb1r/5Npp/p4n2/Q1p5/4q3/P1P4P/1P1B1nP1/R1K5 4 0\r\nr4b1r/5kpp/p4n2/Q1p5/4q3/P1P4P/1P1B1nP1/R1K5 24 10\r\nr4b1r/2Q2kpp/p4n2/2p5/4q3/P1P4P/1P1B1nP1/R1K5 36 12\r\nr4b1r/2Q1qkpp/p4n2/2p5/8/P1P4P/1P1B1nP1/R1K5 10 12\r\nr4b1r/4Qkpp/p4n2/2p5/8/P1P4P/1P1B1nP1/R1K5 12 0\r\nr6r/4bkpp/p4n2/2p5/8/P1P4P/1P1B1nP1/R1K5 51 60\r\nrnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR 14 22\r\nrnbqkbnr/pppppp1p/6p1/8/3P4/8/PPP1PPPP/RNBQKBNR 52 44\r\nrnbqkbnr/pppppp1p/6p1/8/3P4/4P3/PPP2PPP/RNBQKBNR 5 14\r\nrnbqk1nr/ppppppbp/6p1/8/3P4/4P3/PPP2PPP/RNBQKBNR 62 45\r\nrnbqk1nr/ppppppbp/6p1/8/3P4/4PN2/PPP2PPP/RNBQKB1R 12 20\r\nrnbqk1nr/pppp1pbp/4p1p1/8/3P4/4PN2/PPP2PPP/RNBQKB1R 57 42\r\nrnbqk1nr/pppp1pbp/4p1p1/8/3P4/2N1PN2/PPP2PPP/R1BQKB1R 6 12\r\nrnbqk2r/ppppnpbp/4p1p1/8/3P4/2N1PN2/PPP2PPP/R1BQKB1R 42 36\r\nrnbqk2r/ppppnpbp/4p1p1/8/3PN3/4PN2/PPP2PPP/R1BQKB1R 4 6\r\n\r\nplease see and check \r\n\r\nalso thank you @DURGESH716 for your help but it doesn't work for me in this case\r\n", "Ok !!! For specifically `model.fit` try the below steps:\r\n1) Make sure that the data in the `out.txt` file is properly formatted and contains the correct information that you expect.\r\n2) Check that the hyperparameters such as `EPOCHS` and `STEPS_PER_EPOCH` are set to appropriate values.\r\n3) Print out the shapes of the data inputs and outputs to make sure they are correct.\r\n4) If you are encountering an error, look at the error message and traceback to try to identify what the problem is.\r\n5) You may also want to consider using TensorBoard to visualize the model's performance and check for any signs of overfitting or underfitting.", "Try these and update me ", "yeah, actually the dataset was not in correct format also can you help because it takes hours for 500000lines of data to be processed on my laptop with intel i5 with average speed of 2.12ghz. is there a workaround for this", "Definitely you can use Google Colab for the same", "it is also slow\r\n", "Hi, @DURGESH716 Thank you for your pointers \r\n\r\nHi, @smarthmaster \r\nApologize for the delay and as you confirmed there was issue with dataset format and sometimes `IndexError: list index out of range`error occurs due to training and testing dataset shapes are not in correct format so sometimes you have to do reshape operation to make those in correct format and also sometimes it happens due to `model.fit()` hyperparameters like `epochs` and `steps_per_epoch` values and you can refer our official documentation for `model.fit()` arguments with expected values [here](https://www.tensorflow.org/api_docs/python/tf/keras/Model#fit)\r\n\r\nIf you're looking to train your 5,00,000 lines of data then you can train on Google Colab with GPU setting by changing runtime to GPU and even you can go with Google Cloud platform option where you'll get $300 credit with new account but you'll have to add billing account details(Credit card) and make sure that you don't cross Free $300 limit or else it will deducted from your credit card. For your reference I have added one good [reference](https://medium.com/google-cloud/how-to-run-deep-learning-models-on-google-cloud-platform-in-6-steps-4950a57acfa5) which will help to do training on GCP if you wish \r\n\r\nIf you need any further assistance please let us know or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!\r\n\r\n", "no 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/59509\">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/59509\">No</a>\n" ]
2023-02-01T07:33:17
2023-02-07T04:09:43
2023-02-07T04:09:41
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 windows 11 ### Mobile device _No response_ ### Python version 3.10 ### Bazel version _No response_ ### GCC/Compiler version _No response_ ### CUDA/cuDNN version _No response_ ### GPU model and memory _No response_ ### Current Behaviour? ```shell A bug happened! I am getting the error that the list index is out of range in the provided code. 2023-02-01 12:50:34.742912: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.792828: W t50ensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\pyth42on\lib\site-packages\tensorflow\python\ops\script_ops.py", lin e 147rn2k2r/ppp1n1bp/4p1p1/4N3/5B2/8/PPP2PPP/RN3RK1, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.826137: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.853068: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.879556: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.909811: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.936740: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:34.975022: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:35.014221: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): 56 60 6k1/ppp2p1p/5q2/5P2/5r2/2PQ1N1P/PP3PK1/R7File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range 2023-02-01 12:50:35.059909: W tensorflow/core/framework/op_kernel.cc:1818] UNKNOWN: IndexError: list index out of range Traceback (most recent call last): File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 269, in __call__ return func(device, token, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 147, in __call__ outputs = self._call(device, args) File "D:\python\lib\site-packages\tensorflow\python\ops\script_ops.py", line 154, in _call ret = self._func(*args) File "D:\python\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper return func(*args, **kwargs) File "C:\Users\cavir\AppData\Local\Temp\__autograph_generated_file9w2jtgyr.py", line 23, in helper col = ag__.ld(fen)[1] IndexError: list index out of range ``` ### Standalone code to reproduce the issue ```shell https://github.com/smarthmaster/issue it is the code and the basic in.txt is this r3r1k1/1p3ppp/p2q4/3b4/3p4/P2P4/1P1Q1PPP/R3R1K1 0 2 2r1r1k1/1p3ppp/p2q4/3b4/3p4/P2P4/1P1Q1PPP/R3R1K1 56 58 2r1r1k1/1p3ppp/p2q4/3b4/3p4/P2P4/1P1Q1PPP/2R1R1K1 27 18 2r1r1k1/1p3ppp/p1bq4/8/3p4/P2P4/1P1Q1PPP/2R1R1K1 55 47 2r1r1k1/1p3ppp/p1bq4/8/3p4/P2P3P/1P1Q1PP1/2R1R1K1 19 27 2r1r1k1/1p3ppp/p1b5/3q4/3p4/P2P3P/1P1Q1PP1/2R1R1K1 53 45 2r1r1k1/1p3ppp/p1b5/3q4/3p4/P2P1P1P/1P1Q2P1/2R1R1K1 27 19 2r1r1k1/1p3ppp/p1bq4/8/3p4/P2P1P1P/1P1Q2P1/2R1R1K1 49 33 2r1r1k1/1p3ppp/p1bq4/8/1P1p4/P2P1P1P/3Q2P1/2R1R1K1 19 22 2r1r1k1/1p3ppp/p1b3q1/8/1P1p4/P2P1P1P/3Q2P1/2R1R1K1 58 34 2r1r1k1/1p3ppp/p1b3q1/8/1PRp4/P2P1P1P/3Q2P1/4R1K1 2 3 3rr1k1/1p3ppp/p1b3q1/8/1PRp4/P2P1P1P/3Q2P1/4R1K1 62 53 3rr1k1/1p3ppp/p1b3q1/8/1PRp4/P2P1P1P/3Q1KP1/4R3 18 25 3rr1k1/1p3ppp/p5q1/1b6/1PRp4/P2P1P1P/3Q1KP1/4R3 34 10 3rr1k1/1pR2ppp/p5q1/1b6/1P1p4/P2P1P1P/3Q1KP1/4R3 25 18 3rr1k1/1pR2ppp/p1b3q1/8/1P1p4/P2P1P1P/3Q1KP1/4R3 60 59 3rr1k1/1pR2ppp/p1b3q1/8/1P1p4/P2P1P1P/3Q1KP1/3R4 22 19 3rr1k1/1pR2ppp/p1bq4/8/1P1p4/P2P1P1P/3Q1KP1/3R4 10 13 3rr1k1/1p3Rpp/p1bq4/8/1P1p4/P2P1P1P/3Q1KP1/3R4 6 0 3rr3/1p3kpp/p1bq4/8/1P1p4/P2P1P1P/3Q1KP1/3R4 51 30 3rr3/1p3kpp/p1bq4/6Q1/1P1p4/P2P1P1P/5KP1/3R4 13 6 3rr1k1/1p4pp/p1bq4/6Q1/1P1p4/P2P1P1P/5KP1/3R4 30 60 rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR 11 27 rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR 36 27 rnbqkbnr/ppp1pppp/8/3P4/8/8/PPPP1PPP/RNBQKBNR 3 0 rnb1kbnr/ppp1pppp/8/3q4/8/8/PPPP1PPP/RNBQKBNR 51 35 rnb1kbnr/ppp1pppp/8/3q4/3P4/8/PPP2PPP/RNBQKBNR 27 20 rnb1kbnr/ppp1pppp/4q3/8/3P4/8/PPP2PPP/RNBQKBNR 61 52 rnb1kbnr/ppp1pppp/4q3/8/3P4/8/PPP1BPPP/RNBQK1NR 10 18 rnb1kbnr/pp2pppp/2p1q3/8/3P4/8/PPP1BPPP/RNBQK1NR 57 42 rnb1kbnr/pp2pppp/2p1q3/8/3P4/2N5/PPP1BPPP/R1BQK1NR 20 22 rnb1kbnr/pp2pppp/2p3q1/8/3P4/2N5/PPP1BPPP/R1BQK1NR 54 46 rnb1kbnr/pp2pppp/2p3q1/8/3P4/2N3P1/PPP1BP1P/R1BQK1NR 2 29 rn2kbnr/pp2pppp/2p3q1/5b2/3P4/2N3P1/PPP1BP1P/R1BQK1NR 62 45 rn2kbnr/pp2pppp/2p3q1/5b2/3P4/2N2NP1/PPP1BP1P/R1BQK2R 50 0 rn2kbnr/pp2pppp/2p3q1/8/3P4/2N2NP1/PPb1BP1P/R1BQK2R 59 51 rn2kbnr/pp2pppp/2p3q1/8/3P4/2N2NP1/PPbQBP1P/R1B1K2R 50 29 rn2kbnr/pp2pppp/2p3q1/5b2/3P4/2N2NP1/PP1QBP1P/R1B1K2R 60 62 rn2kbnr/pp2pppp/2p3q1/5b2/3P4/2N2NP1/PP1QBP1P/R1B2RK1 29 47 rn2kbnr/pp2pppp/2p3q1/8/3P4/2N2NPb/PP1QBP1P/R1B2RK1 45 39 rn2kbnr/pp2pppp/2p3q1/8/3P3N/2N3Pb/PP1QBP1P/R1B2RK1 22 20 rn2kbnr/pp2pppp/2p1q3/8/3P3N/2N3Pb/PP1QBP1P/R1B2RK1 61 60 rn2kbnr/pp2pppp/2p1q3/8/3P3N/2N3Pb/PP1QBP1P/R1B1R1K1 20 11 rn2kbnr/pp1qpppp/2p5/8/3P3N/2N3Pb/PP1QBP1P/R1B1R1K1 52 45 rn2kbnr/pp1qpppp/2p5/8/3P3N/2N2BPb/PP1Q1P1P/R1B1R1K1 47 38 rn2kbnr/pp1qpppp/2p5/8/3P2bN/2N2BP1/PP1Q1P1P/R1B1R1K1 51 37 rn2kbnr/pp1qpppp/2p5/8/3P1QbN/2N2BP1/PP3P1P/R1B1R1K1 45 0 rn2kbnr/pp1qpppp/2p5/8/3P1Q1N/2N2bP1/PP3P1P/R1B1R1K1 39 45 rn2kbnr/pp1qpppp/2p5/8/3P1Q2/2N2NP1/PP3P1P/R1B1R1K1 12 20 rn2kbnr/pp1q1ppp/2p1p3/8/3P1Q2/2N2NP1/PP3P1P/R1B1R1K1 35 27 rn2kbnr/pp1q1ppp/2p1p3/3P4/5Q2/2N2NP1/PP3P1P/R1B1R1K1 27 0 rn2kbnr/pp1q1ppp/4p3/3p4/5Q2/2N2NP1/PP3P1P/R1B1R1K1 58 44 rn2kbnr/pp1q1ppp/4p3/3p4/5Q2/2N1BNP1/PP3P1P/R3R1K1 5 19 rn2k1nr/pp1q1ppp/3bp3/3p4/5Q2/2N1BNP1/PP3P1P/R3R1K1 45 28 rn2k1nr/pp1q1ppp/3bp3/3pN3/5Q2/2N1B1P1/PP3P1P/R3R1K1 11 12 rn2k1nr/pp2qppp/3bp3/3pN3/5Q2/2N1B1P1/PP3P1P/R3R1K1 42 25 rn2k1nr/pp2qppp/3bp3/1N1pN3/5Q2/4B1P1/PP3P1P/R3R1K1 1 11 r3k1nr/pp1nqppp/3bp3/1N1pN3/5Q2/4B1P1/PP3P1P/R3R1K1 25 10 r3k1nr/ppNnqppp/3bp3/3pN3/5Q2/4B1P1/PP3P1P/R3R1K1 10 0 r3k1nr/ppbnqppp/4p3/3pN3/5Q2/4B1P1/PP3P1P/R3R1K1 44 35 r3k1nr/ppbnqppp/4p3/3pN3/3B1Q2/6P1/PP3P1P/R3R1K1 28 0 r3k1nr/ppb1qppp/4p3/3pn3/3B1Q2/6P1/PP3P1P/R3R1K1 35 28 r3k1nr/ppb1qppp/4p3/3pB3/5Q2/6P1/PP3P1P/R3R1K1 28 0 r3k1nr/pp2qppp/4p3/3pb3/5Q2/6P1/PP3P1P/R3R1K1 37 28 r3k1nr/pp2qppp/4p3/3pQ3/8/6P1/PP3P1P/R3R1K1 13 21 r3k1nr/pp2q1pp/4pp2/3pQ3/8/6P1/PP3P1P/R3R1K1 28 42 r3k1nr/pp2q1pp/4pp2/3p4/8/2Q3P1/PP3P1P/R3R1K1 20 28 r3k1nr/pp2q1pp/5p2/3pp3/8/2Q3P1/PP3P1P/R3R1K1 42 24 r3k1nr/pp2q1pp/5p2/Q2pp3/8/6P1/PP3P1P/R3R1K1 9 17 r3k1nr/p3q1pp/1p3p2/Q2pp3/8/6P1/PP3P1P/R3R1K1 24 59 rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR 12 20 rnbqkbnr/pppp1ppp/4p3/8/4P3/8/PPPP1PPP/RNBQKBNR 57 42 rnbqkbnr/pppp1ppp/4p3/8/4P3/2N5/PPPP1PPP/R1BQKBNR 10 18 rnbqkbnr/pp1p1ppp/2p1p3/8/4P3/2N5/PPPP1PPP/R1BQKBNR 62 45 rnbqkbnr/pp1p1ppp/2p1p3/8/4P3/2N2N2/PPPP1PPP/R1BQKB1R 11 19 rnbqkbnr/pp3ppp/2ppp3/8/4P3/2N2N2/PPPP1PPP/R1BQKB1R 51 35 rnbqkbnr/pp3ppp/2ppp3/8/3PP3/2N2N2/PPP2PPP/R1BQKB1R 6 21 rnbqkb1r/pp3ppp/2pppn2/8/3PP3/2N2N2/PPP2PPP/R1BQKB1R 58 44 rnbqkb1r/pp3ppp/2pppn2/8/3PP3/2N1BN2/PPP2PPP/R2QKB1R 5 12 rnbqk2r/pp2bppp/2pppn2/8/3PP3/2N1BN2/PPP2PPP/R2QKB1R 61 43 rnbqk2r/pp2bppp/2pppn2/8/3PP3/2NBBN2/PPP2PPP/R2QK2R 4 6 rnbq1rk1/pp2bppp/2pppn2/8/3PP3/2NBBN2/PPP2PPP/R2QK2R 59 51 rnbq1rk1/pp2bppp/2pppn2/8/3PP3/2NBBN2/PPPQ1PPP/R3K2R 20 28 rnbq1rk1/pp2bppp/2pp1n2/4p3/3PP3/2NBBN2/PPPQ1PPP/R3K2R 35 28 rnbq1rk1/pp2bppp/2pp1n2/4P3/4P3/2NBBN2/PPPQ1PPP/R3K2R 28 0 rnbq1rk1/pp2bppp/2p2n2/4p3/4P3/2NBBN2/PPPQ1PPP/R3K2R 48 40 rnbq1rk1/pp2bppp/2p2n2/4p3/4P3/P1NBBN2/1PPQ1PPP/R3K2R 3 10 rnb2rk1/ppq1bppp/2p2n2/4p3/4P3/P1NBBN2/1PPQ1PPP/R3K2R 55 47 rnb2rk1/ppq1bppp/2p2n2/4p3/4P3/P1NBBN1P/1PPQ1PP1/R3K2R 2 20 ``` ### Relevant log output _No response_</details>
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59509/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59509/timeline
null
completed
false
https://api.github.com/repos/tensorflow/tensorflow/issues/59508
https://api.github.com/repos/tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow/issues/59508/labels{/name}
https://api.github.com/repos/tensorflow/tensorflow/issues/59508/comments
https://api.github.com/repos/tensorflow/tensorflow/issues/59508/events
https://github.com/tensorflow/tensorflow/pull/59508
1,565,504,137
PR_kwDOArmXAs5I-e5C
59,508
Allow RowPartition to cache row_lengths and value_rowids
{ "login": "vysarge", "id": 10239441, "node_id": "MDQ6VXNlcjEwMjM5NDQx", "avatar_url": "https://avatars.githubusercontent.com/u/10239441?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vysarge", "html_url": "https://github.com/vysarge", "followers_url": "https://api.github.com/users/vysarge/followers", "following_url": "https://api.github.com/users/vysarge/following{/other_user}", "gists_url": "https://api.github.com/users/vysarge/gists{/gist_id}", "starred_url": "https://api.github.com/users/vysarge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vysarge/subscriptions", "organizations_url": "https://api.github.com/users/vysarge/orgs", "repos_url": "https://api.github.com/users/vysarge/repos", "events_url": "https://api.github.com/users/vysarge/events{/privacy}", "received_events_url": "https://api.github.com/users/vysarge/received_events", "type": "User", "site_admin": false }
[ { "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": 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/59508/checks?check_run_id=11024627164) 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.", "Tacking on a tiny commit with a one-line pylint correction elsewhere in row_partition.py.", "Hi @JXRiver Can you please review this PR ? Thank you!", "Hi @JXRiver Can you please review this PR ? Thank you!", "Hi @JXRiver Can you please review this PR ? Thank you!", "Hi @JXRiver Can you please review this PR ? Thank you!", "Due to concern of out of graph errors caused by cached graph tensor, I am going to close this PR now." ]
2023-02-01T06:16:43
2023-11-01T18:20:07
2023-11-01T18:20:04
NONE
null
false
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59508", "html_url": "https://github.com/tensorflow/tensorflow/pull/59508", "diff_url": "https://github.com/tensorflow/tensorflow/pull/59508.diff", "patch_url": "https://github.com/tensorflow/tensorflow/pull/59508.patch", "merged_at": null }
Modifies `row_lengths()` and `value_rowids()` methods of the RowPartition class to store their outputs by default when first called if they have not already been precomputed; the stored value will be returned instead of re-computing when called again (~9x speedup for `row_lengths()` and ~37x speedup for `value_rowids()` in a quick test). This behavior can be suppressed by passing `cache=False`. This change improves consistency between performance when using RowPartitions (and RaggedTensors) created with different methods. The `from_value_rowids` and `from_row_lengths` methods already cache whichever of row_lengths and value_rowids are available. With this change, repeated calls to `row_lengths()` and `value_rowids()` are equally fast for RowPartitions / RaggedTensors created with `from_row_splits` and other methods.
{ "url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59508/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/tensorflow/tensorflow/issues/59508/timeline
null
null
true