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/62182 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62182/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62182/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62182/events | https://github.com/tensorflow/tensorflow/issues/62182 | 1,953,872,965 | I_kwDOArmXAs50dbxF | 62,182 | import keras_cv results in import error for keras_utils | {
"login": "ajayaraman",
"id": 6549485,
"node_id": "MDQ6VXNlcjY1NDk0ODU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6549485?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ajayaraman",
"html_url": "https://github.com/ajayaraman",
"followers_url": "https://api.github.com/users/ajayaraman/followers",
"following_url": "https://api.github.com/users/ajayaraman/following{/other_user}",
"gists_url": "https://api.github.com/users/ajayaraman/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ajayaraman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ajayaraman/subscriptions",
"organizations_url": "https://api.github.com/users/ajayaraman/orgs",
"repos_url": "https://api.github.com/users/ajayaraman/repos",
"events_url": "https://api.github.com/users/ajayaraman/events{/privacy}",
"received_events_url": "https://api.github.com/users/ajayaraman/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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "Varsha-anjanappa",
"id": 137163810,
"node_id": "U_kgDOCCz0Ig",
"avatar_url": "https://avatars.githubusercontent.com/u/137163810?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varsha-anjanappa",
"html_url": "https://github.com/Varsha-anjanappa",
"followers_url": "https://api.github.com/users/Varsha-anjanappa/followers",
"following_url": "https://api.github.com/users/Varsha-anjanappa/following{/other_user}",
"gists_url": "https://api.github.com/users/Varsha-anjanappa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varsha-anjanappa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varsha-anjanappa/subscriptions",
"organizations_url": "https://api.github.com/users/Varsha-anjanappa/orgs",
"repos_url": "https://api.github.com/users/Varsha-anjanappa/repos",
"events_url": "https://api.github.com/users/Varsha-anjanappa/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varsha-anjanappa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello, @ajayaraman!\r\nSorry for the late response!\r\nPlease ensure that the version of 'keras_cv' you're using is compatible with your Keras version. If you're using an older version of 'keras_cv', consider upgrading to a newer version. Also please check the Python you're using as it requires Python version 3.6 or higher. 'keras_cv' is not compatible with Python 2.7. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62182\">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/62182\">No</a>\n"
] | 2023-10-20T09:15:01 | 2023-12-13T01:49:47 | 2023-12-13T01:49:43 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
tf 2.14
### Custom code
No
### OS platform and distribution
Linux
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Running StableDiffusion Finetuning colab example throws the error
https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/generative/ipynb/finetune_stable_diffusion.ipynb
### Standalone code to reproduce the issue
```shell
import keras_cv
from keras_cv.models.stable_diffusion.clip_tokenizer import SimpleTokenizer
```
### Relevant log output
```shell
ImportError Traceback (most recent call last)
[<ipython-input-2-1a02c2e511a0>](https://localhost:8080/#) in <cell line: 4>()
2 import os
3
----> 4 import keras_cv
5 import matplotlib.pyplot as plt
6 import numpy as np
3 frames
[/usr/local/lib/python3.10/dist-packages/keras_cv/models/weights.py](https://localhost:8080/#) in <module>
12 # See the License for the specific language governing permissions and
13 import tensorflow as tf
---> 14 from keras.utils import data_utils
15
16
ImportError: cannot import name 'data_utils' from 'keras.utils' (/usr/local/lib/python3.10/dist-packages/keras/utils/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62182/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62182/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62181 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62181/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62181/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62181/events | https://github.com/tensorflow/tensorflow/issues/62181 | 1,953,832,273 | I_kwDOArmXAs50dR1R | 62,181 | Group Deconvolution | {
"login": "BmanClark",
"id": 55798725,
"node_id": "MDQ6VXNlcjU1Nzk4NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/55798725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/BmanClark",
"html_url": "https://github.com/BmanClark",
"followers_url": "https://api.github.com/users/BmanClark/followers",
"following_url": "https://api.github.com/users/BmanClark/following{/other_user}",
"gists_url": "https://api.github.com/users/BmanClark/gists{/gist_id}",
"starred_url": "https://api.github.com/users/BmanClark/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BmanClark/subscriptions",
"organizations_url": "https://api.github.com/users/BmanClark/orgs",
"repos_url": "https://api.github.com/users/BmanClark/repos",
"events_url": "https://api.github.com/users/BmanClark/events{/privacy}",
"received_events_url": "https://api.github.com/users/BmanClark/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 299643928,
"node_id": "MDU6TGFiZWwyOTk2NDM5Mjg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:contribution%20welcome",
"name": "stat:contribution welcome",
"color": "f4b400",
"default": false,
"description": "Status - Contributions welcome"
},
{
"id": 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": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 2726299159,
"node_id": "MDU6TGFiZWwyNzI2Mjk5MTU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-xnnpack",
"name": "comp:lite-xnnpack",
"color": "97F7B2",
"default": false,
"description": "TensorFlow Lite XNNPack related issues"
},
{
"id": 3797168204,
"node_id": "LA_kwDOArmXAs7iVDBM",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8",
"name": "TF 2.8",
"color": "5DC9D0",
"default": false,
"description": ""
}
] | open | false | {
"login": "haozha111",
"id": 6316921,
"node_id": "MDQ6VXNlcjYzMTY5MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/6316921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/haozha111",
"html_url": "https://github.com/haozha111",
"followers_url": "https://api.github.com/users/haozha111/followers",
"following_url": "https://api.github.com/users/haozha111/following{/other_user}",
"gists_url": "https://api.github.com/users/haozha111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/haozha111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haozha111/subscriptions",
"organizations_url": "https://api.github.com/users/haozha111/orgs",
"repos_url": "https://api.github.com/users/haozha111/repos",
"events_url": "https://api.github.com/users/haozha111/events{/privacy}",
"received_events_url": "https://api.github.com/users/haozha111/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "haozha111",
"id": 6316921,
"node_id": "MDQ6VXNlcjYzMTY5MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/6316921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/haozha111",
"html_url": "https://github.com/haozha111",
"followers_url": "https://api.github.com/users/haozha111/followers",
"following_url": "https://api.github.com/users/haozha111/following{/other_user}",
"gists_url": "https://api.github.com/users/haozha111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/haozha111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haozha111/subscriptions",
"organizations_url": "https://api.github.com/users/haozha111/orgs",
"repos_url": "https://api.github.com/users/haozha111/repos",
"events_url": "https://api.github.com/users/haozha111/events{/privacy}",
"received_events_url": "https://api.github.com/users/haozha111/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @BmanClark \r\n\r\nCould you please provide the steps you have followed for TFLite conversion inorder to reproduce the issue?\r\n\r\nThanks.\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Sorry, I've been busy with my workaround... The issue still exists generally, but https://github.com/Picsart-AI-Research/MI-GAN/ has kindly added a new commit to replace the group deconvolutions in the network and avoid the issue. So to reproduce you need the previous commit of MI-GAN: 29807312b6d881b51246d83e8b6fa9b9e4f97978\r\n\r\nWith that network / github project I converted with [TinyNN](https://github.com/alibaba/TinyNeuralNetwork).\r\n\r\nSpecifically, once the TinyNN & MI-GAN projects were installed on python following their respective standard instructions, I used the following to convert the network and hit the issue.\r\n\r\n```python\r\nfrom tinynn.converter import TFLiteConverter\r\nimport torch\r\nimport sys\r\nimport argparse\r\nimport os\r\nimport numpy as np\r\nfrom lib.model_zoo.migan_inference import Generator as MIGAN\r\n\r\nmodel = MIGAN(resolution=512)\r\nmodel.load_state_dict(torch.load('./models/migan_512_places2.pt'))\r\ndummy_input = torch.randn(1, 4, res, res)\r\n\r\nwith torch.no_grad():\r\n model.cpu()\r\n model.eval()\r\n \r\n converter = TFLiteConverter(model, dummy_input, 'migan512.tflite')\r\n # converter.group_conv_rewrite = True # line to blow up network to thousands of nodes, but make conversion work by de-grouping\r\n converter.convert()\r\n``` \r\n\r\n",
"Hi, this is the author of TinyNN, which is a tool to convert PyTorch models to TFLite. I've skimmed the conversation above. Actually, it is rather a feature request, not a bug. As group convolution is already supported in TFLite, it seems reasonable to get grouped transpose_convolution supported too. Internally, we have a fork of TFLite that maps the group deconvolution to a single op and then maps that to the underlying XNNPack implementation. Ideally, it could be supported here, as well.",
"Hi @BmanClark @peterjc123 \r\n\r\nThanks for the information. \r\n\r\nI am just trying with a toy model to reproduce the issue and observed that TFLite is able to convert the transpose convolutions with groups without any error.\r\n\r\nPlease find this [gist](https://colab.research.google.com/gist/pjpratik/135971b72d0efec138e452f1b8fed66f/62181.ipynb). \r\n\r\nIf you could provide a similar toy model, that would help us investigate the bug or feature request better.\r\n\r\nThanks.\r\n",
"@pjpratik Yes, it doesn't fail during conversion and evaluation, but if you inspect the generated TFLite model using Netron, you can see that it is translated to a full conv_transpose node rather than a grouped one. (The number of the input channels and the output channels of the weights are equal to 32) So there is no speedup and memory savings compared with full transposed convolutions during inference, making grouped deconvolutions meaningless.\r\n\r\n\r\n",
"To make it clear, we need the following enhancements:\r\n1. Update the TFLite schema to enable grouped deconvolutions so that we can have grouped weights (which is smaller)\r\n2. Implement grouped deconvolution kernels to speedup inference",
"Hi @peterjc123, would you be willing to make a contribution for this feature? That'll probably get it integrated the fastest.",
"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.",
"@pkgoogle Will take a look and work on this if I have time.",
"@haozha111, can you please take a look? Thanks.",
"This issue is stale because it has been open for 180 days with no activity. It will be closed if no further activity occurs. Thank you."
] | 2023-10-20T08:51:01 | 2024-05-14T01:48:46 | null | NONE | null | null | null | **System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): On Windows 10 / WSL2, but targeting but Android
- TensorFlow installed from (source or binary): (using PyTorch and converting to tflite from there)
- TensorFlow version (or github SHA if from source):
Using TFLite 2.8.0, but there's not been significant changes to relevant code in latest (and I'd be happy to upgrade if there were...).
**Provide the text output from tflite_convert**
I'm using TinyNN to convert to direct from PyTorch. it says:
> UserWarning: Group transposed conv is not supported if official tflite interpreter is used.
and
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc#L6213
has groups=1 hard-coded
```
Converting this network:
https://github.com/Picsart-AI-Research/MI-GAN/
Specifically, the function creating the Transpose Convolutions / Deconvolutions is at:
https://github.com/Picsart-AI-Research/MI-GAN/blob/main/lib/model_zoo/migan_inference.py#L79
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62181/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62181/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62180 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62180/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62180/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62180/events | https://github.com/tensorflow/tensorflow/issues/62180 | 1,953,183,688 | I_kwDOArmXAs50azfI | 62,180 | TypeError (Missing required positional argument) when using py_function | {
"login": "antoche",
"id": 1627384,
"node_id": "MDQ6VXNlcjE2MjczODQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1627384?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/antoche",
"html_url": "https://github.com/antoche",
"followers_url": "https://api.github.com/users/antoche/followers",
"following_url": "https://api.github.com/users/antoche/following{/other_user}",
"gists_url": "https://api.github.com/users/antoche/gists{/gist_id}",
"starred_url": "https://api.github.com/users/antoche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/antoche/subscriptions",
"organizations_url": "https://api.github.com/users/antoche/orgs",
"repos_url": "https://api.github.com/users/antoche/repos",
"events_url": "https://api.github.com/users/antoche/events{/privacy}",
"received_events_url": "https://api.github.com/users/antoche/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": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @antoche ,\r\n\r\nThanks for reporting. The issue exists in TF2.13v and got fixed in Tf2.14V onwards. Please refer to attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/1701a420793980bbda384b6a05815bcc/62180.ipynb).\r\n\r\nThank you!",
"I'm getting the issue in 2.12.0 as well. When was it introduced? Is there a workaround?",
"Hi @antoche ,\r\n\r\nAs per this [commit](https://github.com/tensorflow/tensorflow/commit/d765c6c264d1372a36e2da5b22621f0381f66930), `py_function` was made to use as decorator from Tf2.14 onwards.Not sure this is a feature implemented in Tf2.14 onwards.\r\n\r\nPlease use TF>=2.14 versions to avoid this error. ",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62180\">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/62180\">No</a>\n"
] | 2023-10-19T23:01:28 | 2023-12-21T01:48:57 | 2023-12-21T01:48:53 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
v2.13.0-rc2-7-g1cb1a030a62
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Simply running the example from the py_function docs (https://www.tensorflow.org/api_docs/python/tf/py_function) results in a TypeError.
I am seeing this on my local install but also in a fresh colab notebook, so I don't think it's anything to do with my installation.
I am seeing similar behaviour with `numpy_function`, and when trying to use `py_function` in the other ways described in the docs
I would expect the snippet to run without exceptions.
I can't find any way of using `py_function`, or any workarounds.
### Standalone code to reproduce the issue
```shell
https://colab.research.google.com/drive/1o-VtzDgEm6kNm9mOqojHSd03FlIMg9AL?usp=sharing
@tf.py_function(Tout=tf.float32)
def py_log_huber(x, m):
print('Running with eager execution.')
if tf.abs(x) <= m:
return x**2
else:
return m**2 * (1 - 2 * tf.math.log(m) + tf.math.log(x**2))
```
### Relevant log output
```shell
Traceback (most recent call last)
[<ipython-input-2-aea281a2ba70>](https://localhost:8080/#) in <cell line: 2>()
1 import tensorflow as tf
----> 2 @tf.py_function(Tout=tf.float32)
3 def py_log_huber(x, m):
4 print('Running with eager execution.')
5 if tf.abs(x) <= m:
1 frames
[/usr/local/lib/python3.10/dist-packages/tensorflow/python/util/dispatch.py](https://localhost:8080/#) in op_dispatch_handler(*args, **kwargs)
1168 if iterable_params is not None:
1169 args, kwargs = replace_iterable_params(args, kwargs, iterable_params)
-> 1170 result = api_dispatcher.Dispatch(args, kwargs)
1171 if result is not NotImplemented:
1172 return result
TypeError: Missing required positional argument
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62180/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62180/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62179 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62179/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62179/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62179/events | https://github.com/tensorflow/tensorflow/pull/62179 | 1,953,153,210 | PR_kwDOArmXAs5dUnMN | 62,179 | Update BUILD files with released PyPI versions | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-10-19T22:27:53 | 2023-10-19T23:06:05 | 2023-10-19T23:06:05 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62179",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62179",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62179.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62179.patch",
"merged_at": "2023-10-19T23:06:05"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62179/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62179/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62178 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62178/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62178/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62178/events | https://github.com/tensorflow/tensorflow/pull/62178 | 1,953,048,450 | PR_kwDOArmXAs5dUP8b | 62,178 | Update lock files | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [
{
"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-10-19T21:00:36 | 2023-10-19T23:19:37 | 2023-10-19T23:19:34 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62178",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62178",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62178.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62178.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62178/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62178/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62177 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62177/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62177/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62177/events | https://github.com/tensorflow/tensorflow/pull/62177 | 1,953,011,137 | PR_kwDOArmXAs5dUHvg | 62,177 | release_updater.sh with stable keras, tensorboard, tensorflow-estimator | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-10-19T20:32:34 | 2023-10-19T22:01:35 | 2023-10-19T22:01:35 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62177",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62177",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62177.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62177.patch",
"merged_at": "2023-10-19T22:01:35"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62177/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62177/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62176 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62176/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62176/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62176/events | https://github.com/tensorflow/tensorflow/pull/62176 | 1,952,527,545 | PR_kwDOArmXAs5dSe4H | 62,176 | r2.15 cherry-pick: f37fad4c3ca "Fix high memory usage when running eager ops as a 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 | [
"@learning-to-play Intel wants this to make it into 2.15 to address a memory-leak issue blocking several of their clients. The corresponding issue is #58676."
] | 2023-10-19T15:25:47 | 2023-10-26T03:41:32 | 2023-10-19T16:30:20 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62176",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62176",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62176.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62176.patch",
"merged_at": "2023-10-19T16:30:20"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/f37fad4 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62176/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62176/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62175 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62175/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62175/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62175/events | https://github.com/tensorflow/tensorflow/issues/62175 | 1,952,403,968 | I_kwDOArmXAs50X1IA | 62,175 | Output tensor inconsistencies across different TF versions | {
"login": "DLumi",
"id": 69116001,
"node_id": "MDQ6VXNlcjY5MTE2MDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/69116001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DLumi",
"html_url": "https://github.com/DLumi",
"followers_url": "https://api.github.com/users/DLumi/followers",
"following_url": "https://api.github.com/users/DLumi/following{/other_user}",
"gists_url": "https://api.github.com/users/DLumi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DLumi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DLumi/subscriptions",
"organizations_url": "https://api.github.com/users/DLumi/orgs",
"repos_url": "https://api.github.com/users/DLumi/repos",
"events_url": "https://api.github.com/users/DLumi/events{/privacy}",
"received_events_url": "https://api.github.com/users/DLumi/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": 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": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@DLumi Could you please check whether you are using the same TF version for training and inference?\r\nPlease provide a simple standalone code to replicate the issue reported here. \r\nThank you!",
"@sushreebarsa I'm sorry, but did you even read what I wrote in the issue template? \r\nThere you can find as simple (and standalone) code as it can get. But you will have to switch environments to replicate that, given that the bug occurs on different TF versions.\r\n\r\nThe model in question was indeed saved (and later inferenced) on the same TF version. But I believe, it should also work if you save the model on another version, like 2.10. Did not check this one, as even nailing this down + filing the issue took quite a lot of time. So hope you can look into that.",
"As per the result which is observed in the comparison, \r\n\r\n```\r\nMax absolute difference: 5.9604645e-08\r\nMax relative difference: 2.3390216e-07 \r\n```\r\n\r\nIt is in the range of` 1e-07`, which should be fine, considering the floating point precision errors. Thank you!",
"@sachinprasadhs for the attached tensors the error is indeed _relatively_ low. \r\nBut depending on the inputs and the model, the error can get up to 1e-5, which is a bit too much to write it off as FP precision error.",
"Hi @DLumi, could you try saving with .npz instead of pickle? Pickle saving is known to be different across python version and can lead to inconsistencies. Could you try using a CPU environment instead of a GPU environment? That might also reduce inconsistencies. We also suggest that you do not switch python versions for this test so we can isolate the potential issue to Tensorflow. Thank you! ",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62175\">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/62175\">No</a>\n"
] | 2023-10-19T14:29:06 | 2023-11-25T01:48:10 | 2023-11-25T01:48:05 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.12.1 / 2.14.0
### Custom code
No
### OS platform and distribution
Win 10 22H2
### Mobile device
_No response_
### Python version
3.8.0 / 3.11.5
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
0) Save some simple model (does not really matter which one)
1) Activate Py 3.8 + TF 2.12.1 environment
2) Run inference on some random tensor with predetermined seed
3) Save the output tensor to a pickle file
4) Activate Py 3.11.5 + TF 2.14 environment
5) Run inference on the same random tensor with predetermined seed
6) Load previous output tensor which we pickled earlier
7) Compare two outputs with `np.testing.assert_allclose` with default `rtol` of `1e-07`
8) Get an error that the tensors mismatch
9) ???
10) PROFIT
For your convenience, I will attach the model and the pickled tensors. The code I used to produce it all will be down below.
https://drive.google.com/drive/folders/1LWeotexKYGlzu2TtqbwN7ErgW_X_4C_4
### Standalone code to reproduce the issue
#### On Py 3.8 + TF 2.12.1 environment:
```python
out_dir = Path(r'')
image_input = tf.keras.Input(shape=[224, 224, 3])
conv1 = tf.keras.layers.SeparableConv2D(32, (3, 3))(image_input)
conv1 = tf.keras.layers.BatchNormalization()(conv1)
conv1 = tf.keras.layers.ReLU()(conv1)
pool1 = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(conv1)
conv2 = tf.keras.layers.SeparableConv2D(64, (3, 3))(pool1)
conv2 = tf.keras.layers.BatchNormalization()(conv2)
conv2 = tf.keras.layers.ReLU()(conv2)
pool2 = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(conv2)
out = tf.keras.layers.Dense(4, activation='softmax')(pool2)
model = tf.keras.Model(image_input, out)
model.compile(loss='categorical_crossentropy',
optimizer=tf.keras.optimizers.Adam(),
metrics=['categorical_accuracy'])
model.save(out_dir / 'model_tf_12_1')
```
Then load the saved_model, and save the prediction
```python
model_1 = tf.saved_model.load(out_dir / 'model_tf_12_1')
np.random.seed(123) # predetermined seed
random_tensor = np.random.random([1, 224, 224, 3]).astype('float32')
pred_1 = model_1(random_tensor)
with open(out_dir / 'pred_1', mode='wb') as f:
pickle.dump(pred_1, f)
```
#### On Py 3.11.5 + TF 2.14.0 environment:
```python
model_1 = tf.saved_model.load(out_dir / 'model_tf_12_1')
np.random.seed(123) # predetermined seed
random_tensor = np.random.random([1, 224, 224, 3]).astype('float32')
pred_2 = model_1(random_tensor)
with open(out_dir / 'pred_1', mode='rb') as f:
pred_1 = pickle.load(f)
np.testing.assert_allclose(pred_1, pred_2)
```
See the output of `np.testing.assert_allclose` below
### Relevant log output
```shell
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 753 / 11664 (6.46%)
Max absolute difference: 5.9604645e-08
Max relative difference: 2.3390216e-07
x: array([[[[0.259732, 0.241168, 0.242284, 0.256816],
[0.25886 , 0.242881, 0.243037, 0.255222],
[0.256769, 0.243074, 0.243309, 0.256848],...
y: array([[[[0.259732, 0.241168, 0.242284, 0.256816],
[0.25886 , 0.242881, 0.243037, 0.255222],
[0.256769, 0.243074, 0.243309, 0.256848],...
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62175/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62175/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62174 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62174/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62174/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62174/events | https://github.com/tensorflow/tensorflow/issues/62174 | 1,952,145,842 | I_kwDOArmXAs50W2Gy | 62,174 | tf.map_fn and TensorArray do not seem to support backpropagation | {
"login": "ujjwalnur",
"id": 130743548,
"node_id": "U_kgDOB8r8_A",
"avatar_url": "https://avatars.githubusercontent.com/u/130743548?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ujjwalnur",
"html_url": "https://github.com/ujjwalnur",
"followers_url": "https://api.github.com/users/ujjwalnur/followers",
"following_url": "https://api.github.com/users/ujjwalnur/following{/other_user}",
"gists_url": "https://api.github.com/users/ujjwalnur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ujjwalnur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ujjwalnur/subscriptions",
"organizations_url": "https://api.github.com/users/ujjwalnur/orgs",
"repos_url": "https://api.github.com/users/ujjwalnur/repos",
"events_url": "https://api.github.com/users/ujjwalnur/events{/privacy}",
"received_events_url": "https://api.github.com/users/ujjwalnur/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello @ujjwalnur ! As per the documentation [here](https://www.tensorflow.org/api_docs/python/tf/map_fn), some arguments are deprecated in this api **tf.map_fn** which will be removed in the future versions. Please use **fn_output_signature** instead. \r\nThank you!\r\n",
"@sushreebarsa Your response does not help at all with respect to the actual problem. I am aware of the deprecated arguments and I have used `fn_output_signature` here in this function",
"@ujjwalnur \r\nIn order to expedite the trouble-shooting process, please provide a complete code snippet to reproduce the issue reported here. Thank you!",
"Here you go. \r\nPlease read through the code carefully to see the problem.\r\n\r\nIn the code I just simulate gradient backpropagation with respect to a fictional randomly simulated image classification dataset\r\n\r\nI have implemented three versions of the loss computation and there seems to be nothing out of place that could break gradient backpropagation.\r\n\r\nIn the past, #19897 and #37512 have mentioned issues with respect to gradient backpropgation with `tf.map_fn` and `tf.TensorArray`\r\n\r\n```\r\nimport tensorflow as tf\r\n\r\n\r\n# Let's create a model first\r\nclass MyModel(tf.keras.Model):\r\n def __init__(self):\r\n super(MyModel, self).__init__()\r\n self._l1 = tf.keras.layers.Conv2D(\r\n filters=64, kernel_size=3\r\n )\r\n self._l1 = tf.keras.Sequential(\r\n [\r\n tf.keras.layers.Conv2D(\r\n filters=64, kernel_size=3\r\n ),\r\n tf.keras.layers.GlobalAveragePooling2D(keepdims=False),\r\n tf.keras.layers.Dense(units=10)\r\n ]\r\n )\r\n self._l2 = tf.keras.Sequential(\r\n [\r\n tf.keras.layers.Conv2D(\r\n filters=64, kernel_size=3\r\n ),\r\n tf.keras.layers.GlobalAveragePooling2D(keepdims=False),\r\n tf.keras.layers.Dense(units=10)\r\n ]\r\n )\r\n self._l3 = tf.keras.Sequential(\r\n [\r\n tf.keras.layers.Conv2D(\r\n filters=64, kernel_size=3\r\n ),\r\n tf.keras.layers.GlobalAveragePooling2D(keepdims=False),\r\n tf.keras.layers.Dense(units=10)\r\n ]\r\n )\r\n\r\n def call(self, inputs, training=None, mask=None):\r\n y1 = self._l1(inputs)\r\n y2 = self._l2(inputs)\r\n y3 = self._l3(inputs)\r\n out = tf.stack([y1, y2, y3])\r\n # Output shape is (3, batch_size, 10)\r\n\r\n return out\r\n\r\n\r\nmodel = MyModel()\r\n\r\n\r\n# just a random image classification dataset\r\ndef get_dataset():\r\n db = tf.data.Dataset.range(100)\r\n db = db.map(\r\n lambda x: (tf.random.uniform(shape=(224, 224, 3), dtype=tf.float32),\r\n tf.one_hot(tf.random.uniform(shape=(), minval=0, maxval=9, dtype=tf.int64), depth=10)\r\n )\r\n )\r\n db = db.batch(5)\r\n return db\r\n\r\n\r\ndataset = get_dataset()\r\n\r\n\r\n# Computes the loss. But gradient backpropagation fails.\r\n# Here tf.map_fn is used to compute the loss of the output of l1, l2 and l3 ( See Model ) with respect to GT labeles.\r\ndef get_loss_v1(logits, labels):\r\n loss = tf.map_fn(\r\n fn=lambda x: tf.reduce_mean(\r\n tf.keras.losses.categorical_crossentropy(\r\n from_logits=True,\r\n y_pred=tf.gather(logits, x),\r\n y_true=labels\r\n )\r\n ),\r\n elems=tf.range(3),\r\n fn_output_signature=tf.float32\r\n )\r\n return loss\r\n\r\n\r\n# Computes the loss. But gradient backpropagation fails.\r\n# Here appending to a list is used to compute the loss of the output of l1, l2 and l3 ( See Model ) with respect to GT labeles.\r\n# This method should be avoided as it makes use of python list. TensorArray is recommended to be used here.\r\n\r\n# Check out https://github.com/tensorflow/tensorflow/issues/37512\r\ndef get_loss_v2(logits, labels):\r\n losses = list()\r\n for i in tf.range(3):\r\n y_pred = tf.gather(logits, i)\r\n losses.append(\r\n tf.reduce_mean(\r\n tf.keras.losses.categorical_crossentropy(\r\n from_logits=True,\r\n y_pred=y_pred,\r\n y_true=labels\r\n )\r\n )\r\n )\r\n return losses\r\n\r\n\r\n# Computes the loss. But gradient backpropagation fails.\r\n# Here tf.TensorArray with tf.while_loop is used to compute the loss of the output of l1, l2 and l3 ( See Model ) with respect to GT labeles.\r\ndef get_loss_v3(logits, labels):\r\n losses = tf.TensorArray(dtype=tf.float32,\r\n size=0, dynamic_size=True, clear_after_read=False, element_shape=()\r\n )\r\n index = tf.constant(0)\r\n\r\n def body(counter_var, log, lbl, l):\r\n l = l.write(l.size(), tf.reduce_mean(\r\n tf.keras.losses.categorical_crossentropy(\r\n from_logits=True,\r\n y_pred=tf.gather(log, counter_var),\r\n y_true=lbl\r\n )\r\n ))\r\n return counter_var + 1, log, lbl, l\r\n\r\n output = tf.while_loop(\r\n cond=lambda i, *_: tf.less(i, 3),\r\n loop_vars=(index, logits, labels, losses),\r\n body=body,\r\n parallel_iterations=1\r\n )\r\n loss_val = output[-1].stack()\r\n return loss_val\r\n\r\n\r\ndef train_step(images, labels):\r\n with tf.GradientTape(persistent=True) as tape:\r\n logits = model(images, training=True)\r\n loss_val = get_loss_v1(logits, labels)\r\n # loss_val = get_loss_v2(logits, labels)\r\n # loss_val = get_loss_v3(logits, labels)\r\n print(loss_val) # This prints the forward losses properly\r\n grads = list()\r\n for i in tf.range(3):\r\n tgt = tf.gather(loss_val, i)\r\n grads.append(\r\n tape.gradient(\r\n target=tgt,\r\n sources=model.trainable_variables\r\n )\r\n )\r\n print(grads) # This always prints None\r\n\r\n\r\nfor data in dataset:\r\n images, labels = data\r\n train_step(images, labels)\r\n```\r\n\r\n",
"This issue has been pending for such long time \r\n\r\nhttps://github.com/tensorflow/tensorflow/issues/3972 (since 2016)\r\n\r\nway to go tf team!",
"@ujjwalnur I tried to replicate the issue with the provided code above, could you please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/afd079e1e243168e512be789fca68149/62174.ipynb) and confirm the same?\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"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/62174\">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/62174\">No</a>\n",
"@ujjwalnur Reopening the issue as the issue still persists. \r\n@SuryanarayanaY Could you please have a look at this ticket?\r\nThank you!"
] | 2023-10-19T12:34:32 | 2023-11-29T15:20:10 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
tf2.14
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
****
I provide three different snippet implementation of a function. I am calculating multiple losses with respect to different networks.
The first and third implementation gives `gradients=None` in both graph and eager mode.
The second implementation works in eager mode but not in graph mode.
It seems that tf.map_fn does not support backpropagation #19897 and this issue could be related to that.
### Standalone code to reproduce the issue
```shell
First snippet ( Gradients are None in both graph and eager mode )
def _compute_unadjusted_ce(self, label_batch, logits):
ce = tf.map_fn(
lambda x: tf.reduce_mean(
tf.keras.losses.categorical_crossentropy(
from_logits=True,
y_pred=logits[x, ...],
y_true=label_batch
)
),
elems=tf.range(self.num_learners),
fn_output_signature=tf.float32,
parallel_iterations=1,
back_prop=True
)
return ce
# The following function does the work but fails in graph mode (`tf.function`) ( similar to #37512
def _compute_unadjusted_ce(self, label_batch, logits):
ce = list()
for i in range(self.num_learners):
ce.append(
tf.reduce_mean(
tf.keras.losses.categorical_crossentropy(
from_logits=True,
y_pred=logits[i, ...],
y_true=label_batch
)
)
)
return ce
# The following function causes gradients as None ( in both eager and graph mode )
def _compute_unadjusted_ce(self, label_batch, logits):
ce = tf.TensorArray(dtype=tf.float32, size=0, dynamic_size=True, clear_after_read=True)
for i in range(self.num_learners):
ce = ce.write(
ce.size(),
tf.reduce_mean(
tf.keras.losses.categorical_crossentropy(
from_logits=True,
y_pred=logits[i, ...],
y_true=label_batch
)
)
)
return ce.stack()
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62174/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62174/timeline | null | reopened | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62173 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62173/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62173/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62173/events | https://github.com/tensorflow/tensorflow/issues/62173 | 1,951,970,701 | I_kwDOArmXAs50WLWN | 62,173 | UnsatisfiedLinkError: Failed to load native TensorFlow Lite methods | {
"login": "nijat-ahmadli",
"id": 8284418,
"node_id": "MDQ6VXNlcjgyODQ0MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/8284418?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nijat-ahmadli",
"html_url": "https://github.com/nijat-ahmadli",
"followers_url": "https://api.github.com/users/nijat-ahmadli/followers",
"following_url": "https://api.github.com/users/nijat-ahmadli/following{/other_user}",
"gists_url": "https://api.github.com/users/nijat-ahmadli/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nijat-ahmadli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nijat-ahmadli/subscriptions",
"organizations_url": "https://api.github.com/users/nijat-ahmadli/orgs",
"repos_url": "https://api.github.com/users/nijat-ahmadli/repos",
"events_url": "https://api.github.com/users/nijat-ahmadli/events{/privacy}",
"received_events_url": "https://api.github.com/users/nijat-ahmadli/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "miaout17",
"id": 22063,
"node_id": "MDQ6VXNlcjIyMDYz",
"avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/miaout17",
"html_url": "https://github.com/miaout17",
"followers_url": "https://api.github.com/users/miaout17/followers",
"following_url": "https://api.github.com/users/miaout17/following{/other_user}",
"gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/miaout17/subscriptions",
"organizations_url": "https://api.github.com/users/miaout17/orgs",
"repos_url": "https://api.github.com/users/miaout17/repos",
"events_url": "https://api.github.com/users/miaout17/events{/privacy}",
"received_events_url": "https://api.github.com/users/miaout17/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "miaout17",
"id": 22063,
"node_id": "MDQ6VXNlcjIyMDYz",
"avatar_url": "https://avatars.githubusercontent.com/u/22063?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/miaout17",
"html_url": "https://github.com/miaout17",
"followers_url": "https://api.github.com/users/miaout17/followers",
"following_url": "https://api.github.com/users/miaout17/following{/other_user}",
"gists_url": "https://api.github.com/users/miaout17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/miaout17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/miaout17/subscriptions",
"organizations_url": "https://api.github.com/users/miaout17/orgs",
"repos_url": "https://api.github.com/users/miaout17/repos",
"events_url": "https://api.github.com/users/miaout17/events{/privacy}",
"received_events_url": "https://api.github.com/users/miaout17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @nijat-ahmadli \r\n\r\nThis seems to be an issue with Android < 8 compatibility with latest TF Versions. Can you please provide the Android version you are using?\r\n\r\nPlease check this relevant issue #61951 \r\n\r\nThanks.",
"Hi @pjpratik Thanks for your reply.\r\nI am using following versions for the project:\r\n```\r\n minSdkVersion 21\r\n targetSdkVersion 33\r\n compileSdkVersion 33\r\n```",
"Hi @nijat-ahmadli, let's follow the progress on https://github.com/tensorflow/tensorflow/issues/61951 as this looks basically the same.",
"Duplicate of #61951"
] | 2023-10-19T11:27:34 | 2023-11-02T18:40:25 | null | NONE | null | null | null | ### Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
- TensorFlow Lite initialisation crashes when using versions 2.12 and above on any Android Emulator with API level between 21 and 25 included.
### 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. Create a new Android project.
2. Add TensorFlow Lite dependencies:
```
implementation("org.tensorflow:tensorflow-lite:2.14.0")
implementation("org.tensorflow:tensorflow-lite-support:0.4.3")
```
3. [Download](https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/latest/blaze_face_short_range.tflite) BlazeFace tflite model and add to src/main/assets folder
4. Initialise Tensorflow Lite Interpreter in `onCreate()` of MainActivity:
```
val model = FileUtil.loadMappedFile(this, "blaze_face_short_range.tflite")
val options = Interpreter.Options()
options.numThreads = 4
val interpreter = Interpreter(model, options)
```
5. Run the app on any Android Emulator using API Level between 21 and 25 included.
6. App crashes with the following error:
```
E FATAL EXCEPTION: main
Process: com.example.myapplication, PID: 8645
java.lang.UnsatisfiedLinkError: Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary():
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strtod_l" referenced by "/data/app/com.example.myapplication-2/base.apk!/lib/arm64-v8a/libtensorflowlite_jni.so"...
at org.tensorflow.lite.TensorFlowLite.init(TensorFlowLite.java:137)
at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:62)
at org.tensorflow.lite.NativeInterpreterWrapperExperimental.<init>(NativeInterpreterWrapperExperimental.java:36)
at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:232)
at com.example.myapplication.MainActivity.onCreate(MainActivity.kt:35)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for void org.tensorflow.lite.TensorFlowLite.nativeDoNothing() (tried Java_org_tensorflow_lite_TensorFlowLite_nativeDoNothing and Java_org_tensorflow_lite_TensorFlowLite_nativeDoNothing__)
at org.tensorflow.lite.TensorFlowLite.nativeDoNothing(Native Method)
at org.tensorflow.lite.TensorFlowLite.init(TensorFlowLite.java:132)
at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:62)
at org.tensorflow.lite.NativeInterpreterWrapperExperimental.<init>(NativeInterpreterWrapperExperimental.java:36)
at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:232)
at com.example.myapplication.MainActivity.onCreate(MainActivity.kt:35)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62173/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62173/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62172 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62172/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62172/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62172/events | https://github.com/tensorflow/tensorflow/issues/62172 | 1,951,813,129 | I_kwDOArmXAs50Vk4J | 62,172 | Set reshuffle_each_iteration option of shuffle as True by default instead of None | {
"login": "gab48",
"id": 34136256,
"node_id": "MDQ6VXNlcjM0MTM2MjU2",
"avatar_url": "https://avatars.githubusercontent.com/u/34136256?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gab48",
"html_url": "https://github.com/gab48",
"followers_url": "https://api.github.com/users/gab48/followers",
"following_url": "https://api.github.com/users/gab48/following{/other_user}",
"gists_url": "https://api.github.com/users/gab48/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gab48/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gab48/subscriptions",
"organizations_url": "https://api.github.com/users/gab48/orgs",
"repos_url": "https://api.github.com/users/gab48/repos",
"events_url": "https://api.github.com/users/gab48/events{/privacy}",
"received_events_url": "https://api.github.com/users/gab48/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 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"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @gab48 ,\r\n\r\nThough the argument `reshuffle_each_iteration=None` in the function, it defaults to `True` only which is documented in the argument description of this function. Please refer to argument description below as per document source [link](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shuffle:~:text=(Optional.)%20A%20boolean%2C%20which%20if%20true%20indicates%20that%20the%20dataset%20should%20be%20pseudorandomly%20reshuffled%20each%20time%20it%20is%20iterated%20over.%20(Defaults%20to%20True.)).\r\n\r\n\r\n\r\nreshuffle_each_iteration | (Optional.) A boolean, which if true indicates that the dataset should be pseudorandomly reshuffled each time it is iterated over. (Defaults to True.)\r\n-- | --\r\n\r\n\r\n",
"@gab48 It actually makes it more sense to set it as `None`.\r\n\r\n`None` makes it easier for someone to change the options using configuration files.",
"@gab48 ,\r\n\r\nI agree to above comment. I think that's individual preference. But the default behaviour is properly documented and code also handled it as it is documented. I think there is no need to change anything here as there is no conflicts in documentation wrt code.\r\n\r\nThanks!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-10-19T10:17:57 | 2023-11-10T01:48:12 | 2023-11-10T01:48:12 | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.14.0
### Custom code
Yes
### OS platform and distribution
Windows 11
### Mobile device
_No response_
### Python version
3.11.4
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
When shuffling a dataset, the option reshuffle_each_iteration is None by default. But, when we look closer at the documentation, the default behavior is to reshuffle each iteration.
It would be better to set the default value of reshuffle_each_iteration to 'True' instead of None which is ambiguous.
Please find attached the code of the function at : https://github.com/tensorflow/tensorflow/blame/8c25f8252175c6a4f9614797e953fcbfb93c3aed/tensorflow/python/data/ops/shuffle_op.py#L49C12-L49C12
### Standalone code to reproduce the issue
```shell
# Code in tensorflow/tensorflow/python/data/ops/shuffle_op.py
class _ShuffleDataset(dataset_ops.UnaryUnchangedStructureDataset):
"""A `Dataset` that randomly shuffles the elements of its input."""
def __init__(self,
input_dataset,
buffer_size,
seed=None,
reshuffle_each_iteration=None,
name=None):
"""See `Dataset.shuffle()` for details."""
self._input_dataset = input_dataset
self._buffer_size = ops.convert_to_tensor(
buffer_size, dtype=dtypes.int64, name="buffer_size")
self._seed, self._seed2 = random_seed.get_seed(seed)
if reshuffle_each_iteration is None:
reshuffle_each_iteration = True
self._reshuffle_each_iteration = reshuffle_each_iteration
self._name = name
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62172/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62172/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62171 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62171/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62171/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62171/events | https://github.com/tensorflow/tensorflow/issues/62171 | 1,951,740,151 | I_kwDOArmXAs50VTD3 | 62,171 | TFLite CNN model quantization error | {
"login": "Marouan-st",
"id": 145130870,
"node_id": "U_kgDOCKaFdg",
"avatar_url": "https://avatars.githubusercontent.com/u/145130870?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Marouan-st",
"html_url": "https://github.com/Marouan-st",
"followers_url": "https://api.github.com/users/Marouan-st/followers",
"following_url": "https://api.github.com/users/Marouan-st/following{/other_user}",
"gists_url": "https://api.github.com/users/Marouan-st/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Marouan-st/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Marouan-st/subscriptions",
"organizations_url": "https://api.github.com/users/Marouan-st/orgs",
"repos_url": "https://api.github.com/users/Marouan-st/repos",
"events_url": "https://api.github.com/users/Marouan-st/events{/privacy}",
"received_events_url": "https://api.github.com/users/Marouan-st/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
},
{
"login": "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 | [
"+1 \r\nI was having the same issue last week with CONV_2D op after quantization, any hints on the issue are appreciated. @sushreebarsa \r\nThank you,",
"Hello, @Marouan-st! The provided drive link is not accessible to me. Could you please provide the access or share the colab gist to replicate the issue reported here. \r\nThank you! ",
"> Hello, @Marouan-st! The provided drive link is not accessible to me. Could you please provide the access or share the colab gist to replicate the issue reported here. Thank you!\r\n\r\nOh I'm sorry... Access should be provided now.",
"Hi, I have the same issue and can produce it with only a few lines of code.\r\n\r\n```\r\nimport tensorflow as tf\r\n\r\ninput_data = tf.random.normal([1, 1088, 1])\r\nfilters = tf.random.uniform([65, 1, 1])\r\n\r\[email protected]\r\ndef my_conv1d(input, filters):\r\n print(\"Tracing!\")\r\n output = tf.nn.conv1d(input, filters, 1, 'VALID')\r\n return output\r\n\r\ndef representative_dataset():\r\n for _ in range(5000):\r\n yield [tf.random.normal([1, 1088, 1]), tf.random.uniform([65, 1, 1])]\r\n\r\nconcrete_func = my_conv1d.get_concrete_function(input_data, filters)\r\n\r\nconverter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func],\r\n my_conv1d)\r\n\r\nconverter.optimizations = [tf.lite.Optimize.DEFAULT]\r\nconverter.representative_dataset = representative_dataset\r\nconverter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]\r\n\r\ntflite_model = converter.convert()\r\n\r\ninterpreter = tf.lite.Interpreter(model_content=tflite_model)\r\ninterpreter.allocate_tensors()\r\n```\r\nThe call `interpreter.allocate_tensors()` produces:\r\n`RuntimeError: tensorflow/lite/kernels/conv.cc:374 affine_quantization->zero_point->data[i] != 0 (-128 != 0)Node number 4 (CONV_2D) failed to prepare.Failed to apply the default TensorFlow Lite delegate indexed at 0.`\r\n\r\nWhen I don't use\r\n```\r\nconverter.representative_dataset = representative_dataset\r\nconverter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]\r\n```\r\nno error occours. Any ideas what to do?",
"I was able to reproduce the issue. Please find this [gist](https://colab.research.google.com/gist/pjpratik/e601014213966dfdfdfdd31c5b805594/62171.ipynb).\r\n\r\nThe zero point calibration for the filters seems to be an issue here.\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"I was able to reproduce w/ the same gist above.\r\n\r\n@arfaian can you please take a look? Thanks."
] | 2023-10-19T09:39:50 | 2023-11-02T18:18:19 | null | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution : Ubuntu 22.04.3 LTS
- TensorFlow installation: pip install tensorflow (virtual env: venv)
- TensorFlow library: pip package -> tensorflow 2.14.0
### 2. Code
Colab to build the models and reproduce the issue:
[Reproduce the issue](https://colab.research.google.com/drive/1sx7qmXfP5RA1ituF5Fmh8X-cy0-M7Xol?usp=sharing)
### 3. Failure after conversion
Hi, I'm having an issue when trying to use signatures of quantized tflite CNN model.
The conversion and quantization go well, but when I try to use infer or fine_tune signatures, I get the following error which seems to be related to the quantization process:
RuntimeError: tensorflow/lite/kernels/conv.cc:374 affine_quantization->zero_point->data[i] != 0 (-24 != 0)Node number 21 (CONV_2D) failed to prepare.tensorflow/lite/kernels/conv.cc:374 affine_quantization->zero_point->data[i] != 0 (-24 != 0)Node number 41 (CONV_2D) failed to prepare.
**Note**: I don't get this error with the exact same code using linear model instead of CNN.
Thanks for your help | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62171/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/62171/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62170 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62170/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62170/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62170/events | https://github.com/tensorflow/tensorflow/issues/62170 | 1,951,732,545 | I_kwDOArmXAs50VRNB | 62,170 | Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10175 MB memory) -> physical GPU (device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5) | {
"login": "9527-csroad",
"id": 52602255,
"node_id": "MDQ6VXNlcjUyNjAyMjU1",
"avatar_url": "https://avatars.githubusercontent.com/u/52602255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/9527-csroad",
"html_url": "https://github.com/9527-csroad",
"followers_url": "https://api.github.com/users/9527-csroad/followers",
"following_url": "https://api.github.com/users/9527-csroad/following{/other_user}",
"gists_url": "https://api.github.com/users/9527-csroad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/9527-csroad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/9527-csroad/subscriptions",
"organizations_url": "https://api.github.com/users/9527-csroad/orgs",
"repos_url": "https://api.github.com/users/9527-csroad/repos",
"events_url": "https://api.github.com/users/9527-csroad/events{/privacy}",
"received_events_url": "https://api.github.com/users/9527-csroad/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": 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": 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": "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 | [
"Hello, @9527-csroad!\r\nTo use the Tesla T4 GPU in TensorFlow, please specify the `device:GPU device` type when creating a model or running a session with latest TF version as you are using an older version which is not actively supported. \r\nThank you!",
"Thanks for your reply, @sushreebarsa . Which version should I install? You can see that no matter which version I installed, tensorflow always take so much GPU memory.\r\n```python\r\n(noya-mat) root@iZbp1b192y9va5podaabh6Z:/noya/matting# python3 optimize.py\r\n2023-11-06 15:31:45,263 - modelscope - INFO - PyTorch version 1.11.0+cu113 Found.\r\n2023-11-06 15:31:45,265 - modelscope - INFO - TensorFlow version 2.6.0 Found.\r\n2023-11-06 15:31:45,266 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer\r\n2023-11-06 15:31:45,303 - modelscope - INFO - Loading done! Current index file version is 1.9.4, with md5 6fd956e57d818f09de7f4c4f31828009 and a total number of 945 components indexed\r\n2023-11-06 15:31:46,762 - modelscope - WARNING - Model revision not specified, use revision: v1.1.0\r\n2023-11-06 15:31:47,362 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:31:47,362 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo.\r\n2023-11-06 15:31:47,364 - modelscope - INFO - initialize model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:31:48,284 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:31:48,284 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'train': {'mosaic_mixup': {'mosaic_prob': 1.0, 'mosaic_scale': [0.1, 2.0], 'mosaic_size': [640, 640], 'mixup_prob': 0.15, 'mixup_scale': [0.5, 1.5], 'degrees': 10.0, 'translate': 0.2, 'shear': 2.0}, 'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.5, 'autoaug_dict': {'box_prob': 0.3, 'num_subpolicies': 5, 'scale_splits': [2048, 10240, 51200], 'autoaug_params': [6, 9, 5, 3, 3, 4, 2, 4, 4, 4, 5, 2, 4, 1, 4, 2, 6, 4, 2, 2, 2, 6, 2, 2, 2, 0, 5, 1, 3, 0, 8, 5, 2, 8, 7, 5, 1, 3, 3, 3]}}}, 'evaluation': {'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.0}}, 'model_dir': '/root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo'}. trying to build by task and model information.\r\n2023-11-06 15:31:49,116 - modelscope - WARNING - Model revision not specified, use revision: v1.0.0\r\n2023-11-06 15:31:50,585 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_unet_image-matting\r\n2023-11-06 15:31:50,585 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_unet_image-matting.\r\n2023-11-06 15:31:50,587 - modelscope - WARNING - No preprocessor field found in cfg.\r\n2023-11-06 15:31:50,587 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:31:50,587 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_unet_image-matting'}. trying to build by task and model information.\r\n2023-11-06 15:31:50,587 - modelscope - WARNING - Find task: portrait-matting, model type: None. Insufficient information to build preprocessor, skip building preprocessor\r\nWARNING:tensorflow:From /root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/modelscope/utils/device.py:60: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `tf.config.list_physical_devices('GPU')` instead.\r\n2023-11-06 15:31:50.589019: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA\r\nTo enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-11-06 15:31:50.590884: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:50.598626: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:50.599297: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:55.306670: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:55.307388: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:55.307976: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:31:55.308559: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /device:GPU:0 with 11456 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5\r\n```\r\n\r\n```bash\r\npython3 optimize.py\r\n2023-11-06 15:40:24,458 - modelscope - INFO - PyTorch version 1.11.0+cu113 Found.\r\n2023-11-06 15:40:24,460 - modelscope - INFO - TensorFlow version 2.13.1 Found.\r\n2023-11-06 15:40:24,461 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer\r\n2023-11-06 15:40:24,498 - modelscope - INFO - Loading done! Current index file version is 1.9.4, with md5 6fd956e57d818f09de7f4c4f31828009 and a total number of 945 components indexed\r\n2023-11-06 15:40:25,950 - modelscope - WARNING - Model revision not specified, use revision: v1.1.0\r\n2023-11-06 15:40:26,489 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:40:26,489 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo.\r\n2023-11-06 15:40:26,490 - modelscope - INFO - initialize model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:40:27,396 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:40:27,397 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'train': {'mosaic_mixup': {'mosaic_prob': 1.0, 'mosaic_scale': [0.1, 2.0], 'mosaic_size': [640, 640], 'mixup_prob': 0.15, 'mixup_scale': [0.5, 1.5], 'degrees': 10.0, 'translate': 0.2, 'shear': 2.0}, 'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.5, 'autoaug_dict': {'box_prob': 0.3, 'num_subpolicies': 5, 'scale_splits': [2048, 10240, 51200], 'autoaug_params': [6, 9, 5, 3, 3, 4, 2, 4, 4, 4, 5, 2, 4, 1, 4, 2, 6, 4, 2, 2, 2, 6, 2, 2, 2, 0, 5, 1, 3, 0, 8, 5, 2, 8, 7, 5, 1, 3, 3, 3]}}}, 'evaluation': {'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.0}}, 'model_dir': '/root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo'}. trying to build by task and model information.\r\n2023-11-06 15:40:28,238 - modelscope - WARNING - Model revision not specified, use revision: v1.0.0\r\n2023-11-06 15:40:28.780384: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-11-06 15:40:29.588528: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-11-06 15:40:30,385 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_unet_image-matting\r\n2023-11-06 15:40:30,385 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_unet_image-matting.\r\n2023-11-06 15:40:30,387 - modelscope - WARNING - No preprocessor field found in cfg.\r\n2023-11-06 15:40:30,387 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:40:30,387 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_unet_image-matting'}. trying to build by task and model information.\r\n2023-11-06 15:40:30,387 - modelscope - WARNING - Find task: portrait-matting, model type: None. Insufficient information to build preprocessor, skip building preprocessor\r\nWARNING:tensorflow:From /root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/modelscope/utils/device.py:60: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `tf.config.list_physical_devices('GPU')` instead.\r\n2023-11-06 15:40:30.390254: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:30.397435: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:30.398099: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:35.308779: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:35.309475: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:35.310045: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:995] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\r\n2023-11-06 15:40:35.310599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Created device /device:GPU:0 with 11426 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5\r\n2023-11-06 15:40:36.160844: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:375] MLIR V1 optimization pass is not enabled\r\n2023-11-06 15:40:38.756156: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:425] Loaded runtime CuDNN library: 8.1.1 but source was compiled with: 8.6.0. CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.\r\n2023-11-06 15:40:38.756592: W tensorflow/core/framework/op_kernel.cc:1828] OP_REQUIRES failed at conv_ops_impl.h:770 : UNIMPLEMENTED: DNN library is not found.\r\n2023-11-06 15:40:38.756662: I tensorflow/core/framework/local_rendezvous.cc:405] Local rendezvous recv item cancelled. Key hash: 17908648775275799695\r\nTraceback (most recent call last):\r\n File \"/root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/tensorflow/python/client/session.py\", line 1379, in _do_call\r\n return fn(*args)\r\n File \"/root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/tensorflow/python/client/session.py\", line 1362, in _run_fn\r\n return self._call_tf_sessionrun(options, feed_dict, fetch_list,\r\n File \"/root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/tensorflow/python/client/session.py\", line 1455, in _call_tf_sessionrun\r\n return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,\r\ntensorflow.python.framework.errors_impl.UnimplementedError: 2 root error(s) found.\r\n (0) UNIMPLEMENTED: DNN library is not found.\r\n [[{{node coarse/Conv/Conv2D}}]]\r\n [[output_png/_3]]\r\n (1) UNIMPLEMENTED: DNN library is not found.\r\n [[{{node coarse/Conv/Conv2D}}]]\r\n0 successful operations.\r\n0 derived errors ignored.\r\n```\r\n\r\n```bash\r\n(noya-mat) root@iZbp1b192y9va5podaabh6Z:/noya/matting# python3 optimize.py\r\n2023-11-06 15:44:22,216 - modelscope - INFO - PyTorch version 1.11.0+cu113 Found.\r\n2023-11-06 15:44:22,219 - modelscope - INFO - TensorFlow version 2.11.0 Found.\r\n2023-11-06 15:44:22,219 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer\r\n2023-11-06 15:44:22,260 - modelscope - INFO - Loading done! Current index file version is 1.9.4, with md5 6fd956e57d818f09de7f4c4f31828009 and a total number of 945 components indexed\r\n2023-11-06 15:44:23,739 - modelscope - WARNING - Model revision not specified, use revision: v1.1.0\r\n2023-11-06 15:44:24,284 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:44:24,284 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo.\r\n2023-11-06 15:44:24,285 - modelscope - INFO - initialize model from /root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo\r\n2023-11-06 15:44:25,196 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:44:25,196 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'train': {'mosaic_mixup': {'mosaic_prob': 1.0, 'mosaic_scale': [0.1, 2.0], 'mosaic_size': [640, 640], 'mixup_prob': 0.15, 'mixup_scale': [0.5, 1.5], 'degrees': 10.0, 'translate': 0.2, 'shear': 2.0}, 'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.5, 'autoaug_dict': {'box_prob': 0.3, 'num_subpolicies': 5, 'scale_splits': [2048, 10240, 51200], 'autoaug_params': [6, 9, 5, 3, 3, 4, 2, 4, 4, 4, 5, 2, 4, 1, 4, 2, 6, 4, 2, 2, 2, 6, 2, 2, 2, 0, 5, 1, 3, 0, 8, 5, 2, 8, 7, 5, 1, 3, 3, 3]}}}, 'evaluation': {'transform': {'image_mean': [0.0, 0.0, 0.0], 'image_std': [1.0, 1.0, 1.0], 'image_max_range': [640, 640], 'flip_prob': 0.0}}, 'model_dir': '/root/.cache/modelscope/hub/damo/cv_tinynas_human-detection_damoyolo'}. trying to build by task and model information.\r\n2023-11-06 15:44:25,910 - modelscope - WARNING - Model revision not specified, use revision: v1.0.0\r\n2023-11-06 15:44:26.202622: 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 AVX512F FMA\r\nTo enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-11-06 15:44:27.097726: 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: /root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/cv2/../../lib64:/usr/local/cuda-11.2/lib64:\r\n2023-11-06 15:44:27.097846: 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: /root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/cv2/../../lib64:/usr/local/cuda-11.2/lib64:\r\n2023-11-06 15:44:27.097860: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.\r\n2023-11-06 15:44:27,877 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_unet_image-matting\r\n2023-11-06 15:44:27,877 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_unet_image-matting.\r\n2023-11-06 15:44:27,881 - modelscope - WARNING - No preprocessor field found in cfg.\r\n2023-11-06 15:44:27,881 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.\r\n2023-11-06 15:44:27,881 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_unet_image-matting'}. trying to build by task and model information.\r\n2023-11-06 15:44:27,881 - modelscope - WARNING - Find task: portrait-matting, model type: None. Insufficient information to build preprocessor, skip building preprocessor\r\nWARNING:tensorflow:From /root/anaconda3/envs/noya-mat/lib/python3.8/site-packages/modelscope/utils/device.py:60: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse `tf.config.list_physical_devices('GPU')` instead.\r\n2023-11-06 15:44:27.882293: 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 AVX512F FMA\r\nTo enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-11-06 15:44:27.883792: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:27.890937: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:27.891624: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:32.758004: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:32.758740: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:32.759339: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2023-11-06 15:44:32.759909: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1613] Created device /device:GPU:0 with 11432 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5\r\n```\r\n\r\n",
"Hi @9527-csroad ,\r\n\r\nCould you please confirm the exact problem? As per my understanding here you have a 15 GB GPU but while code execution you find that only 10.175GB is visible. Is that what you want report?\r\n\r\nI can also see Pytorch version also indeed installed here.It seems your environment has too many dependencies that is taking more memory resources ?\r\n",
"Hello @SuryanarayanaY ,\r\nMy question is why it allocated so much GPU memory? You can find it take around 10GB while it not need so much memory(I'm not train a model but deploy a model). I deployed some models and they usually use 3GB - 6GB cuda memory, but now, the procedure take all of the rest of the cuda memory.",
"> ```python\r\n> ```python\r\n> 2023-11-06 15:31:55.308559: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /device:GPU:0 with 11456 MB memory: -> device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5\r\n> ```\r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> \r\n> ```\r\n\r\nHi @9527-csroad , If you are referring to this log then its just printing the GPU device and its available memory for process. It's not locking the memory though.",
"If so, I'm sorry to waste your time. I have end this project long time, and I will pay attention to this next time. Thanks for your patience reply.\r\nBest regard.",
"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/62170\">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/62170\">No</a>\n"
] | 2023-10-19T09:36:17 | 2024-02-05T01:14:26 | 2024-02-05T01:14:23 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf-gpu 2.4.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04
### Mobile device
Ubuntu 18.04
### Python version
3.8
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.0 8.0
### GPU model and memory
T4 15G
### Current behavior?
I deploment an u-net like model and use it to matting, why it take so much memory
### Standalone code to reproduce the issue
```shell
As the above description
```
### Relevant log output
```shell
python'''
2023-10-19 17:12:05,653 - modelscope - INFO - PyTorch version 2.0.1 Found.
2023-10-19 17:12:05,654 - modelscope - INFO - TensorFlow version 2.4.0 Found.
2023-10-19 17:12:05,654 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2023-10-19 17:12:05,764 - modelscope - INFO - Updating the files for the changes of local files, first time updating will take longer time! Please wait till updating done!
2023-10-19 17:12:05,765 - modelscope - INFO - AST-Scanning the path "/root/miniconda/envs/modelscope/lib/python3.8/site-packages/modelscope" with the following sub folders ['models', 'metrics', 'pipelines', 'preprocessors', 'trainers', 'msdatasets', 'exporters']
2023-10-19 17:12:05,769 - modelscope - INFO - Scanning done! A number of 2 components indexed or updated! Time consumed 0.0038497447967529297s
2023-10-19 17:12:05,809 - modelscope - INFO - Loading done! Current index file version is 1.9.2, with md5 e5b1c859add8b0dd7419f7819a63c9a0 and a total number of 941 components indexed
2023-10-19 17:12:06,946 - modelscope - INFO - Model revision not specified, use revision: v1.0.0
2023-10-19 17:12:07.433075: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-10-19 17:12:08,529 - modelscope - INFO - initiate model from /root/.cache/modelscope/hub/damo/cv_unet_universal-matting
2023-10-19 17:12:08,529 - modelscope - INFO - initiate model from location /root/.cache/modelscope/hub/damo/cv_unet_universal-matting.
2023-10-19 17:12:08,532 - modelscope - WARNING - No preprocessor field found in cfg.
2023-10-19 17:12:08,532 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
2023-10-19 17:12:08,532 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/root/.cache/modelscope/hub/damo/cv_unet_universal-matting'}. trying to build by task and model information.
2023-10-19 17:12:08,532 - modelscope - WARNING - Find task: universal-matting, model type: None. Insufficient information to build preprocessor, skip building preprocessor
WARNING:tensorflow:From /root/miniconda/envs/modelscope/lib/python3.8/site-packages/modelscope/utils/device.py:60: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.
2023-10-19 17:12:08.533865: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX512F
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-10-19 17:12:08.534257: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-10-19 17:12:08.534330: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcuda.so.1
2023-10-19 17:12:08.545027: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:08.545636: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:00:07.0 name: Tesla T4 computeCapability: 7.5
coreClock: 1.59GHz coreCount: 40 deviceMemorySize: 14.75GiB deviceMemoryBandwidth: 298.08GiB/s
2023-10-19 17:12:08.545678: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-10-19 17:12:08.545736: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-10-19 17:12:08.545821: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-10-19 17:12:08.545859: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-10-19 17:12:08.545897: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-10-19 17:12:08.549506: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-10-19 17:12:08.549600: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-10-19 17:12:08.549652: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-10-19 17:12:08.549761: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:08.550454: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:08.551001: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2023-10-19 17:12:10.620467: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-10-19 17:12:10.620510: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0
2023-10-19 17:12:10.620518: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N
2023-10-19 17:12:10.620749: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.621411: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.622007: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.622561: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/device:GPU:0 with 10175 MB memory) -> physical GPU (device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5)
2023-10-19 17:12:10.623148: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-10-19 17:12:10.623261: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.623834: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:00:07.0 name: Tesla T4 computeCapability: 7.5
coreClock: 1.59GHz coreCount: 40 deviceMemorySize: 14.75GiB deviceMemoryBandwidth: 298.08GiB/s
2023-10-19 17:12:10.623921: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-10-19 17:12:10.623944: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-10-19 17:12:10.623960: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-10-19 17:12:10.624018: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-10-19 17:12:10.624068: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-10-19 17:12:10.624169: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-10-19 17:12:10.624189: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-10-19 17:12:10.624208: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-10-19 17:12:10.624284: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.624888: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.625400: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2023-10-19 17:12:10.625769: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-10-19 17:12:10.625880: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.626610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:00:07.0 name: Tesla T4 computeCapability: 7.5
coreClock: 1.59GHz coreCount: 40 deviceMemorySize: 14.75GiB deviceMemoryBandwidth: 298.08GiB/s
2023-10-19 17:12:10.626686: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-10-19 17:12:10.626737: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-10-19 17:12:10.626769: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-10-19 17:12:10.626816: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-10-19 17:12:10.626863: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-10-19 17:12:10.626962: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-10-19 17:12:10.626986: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-10-19 17:12:10.627003: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-10-19 17:12:10.627074: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.627931: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.628514: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2023-10-19 17:12:10.628550: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-10-19 17:12:10.628561: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0
2023-10-19 17:12:10.628569: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N
2023-10-19 17:12:10.628681: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.629268: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.629781: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10175 MB memory) -> physical GPU (device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5)
2023-10-19 17:12:10.630834: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-10-19 17:12:10.630927: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.631480: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:00:07.0 name: Tesla T4 computeCapability: 7.5
coreClock: 1.59GHz coreCount: 40 deviceMemorySize: 14.75GiB deviceMemoryBandwidth: 298.08GiB/s
2023-10-19 17:12:10.631536: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-10-19 17:12:10.631553: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-10-19 17:12:10.631570: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-10-19 17:12:10.631586: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-10-19 17:12:10.631604: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-10-19 17:12:10.631645: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-10-19 17:12:10.631709: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-10-19 17:12:10.631755: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-10-19 17:12:10.631851: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.632539: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.633141: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0
2023-10-19 17:12:10.633167: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-10-19 17:12:10.633175: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0
2023-10-19 17:12:10.633183: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N
2023-10-19 17:12:10.633288: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.633865: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:941] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-10-19 17:12:10.634366: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10175 MB memory) -> physical GPU (device: 0, name: Tesla T4, pci bus id: 0000:00:07.0, compute capability: 7.5)
2023-10-19 17:12:10,634 - modelscope - INFO - loading model from /root/.cache/modelscope/hub/damo/cv_unet_universal-matting/tf_graph.pb
WARNING:tensorflow:From /root/miniconda/envs/modelscope/lib/python3.8/site-packages/modelscope/pipelines/cv/image_matting_pipeline.py:47: FastGFile.__init__ (from tensorflow.python.platform.gfile) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.gfile.GFile.
2023-10-19 17:12:14,106 - modelscope - INFO - load model done
INFO: Started server process [26718]
'''
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62170/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62170/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62169 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62169/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62169/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62169/events | https://github.com/tensorflow/tensorflow/issues/62169 | 1,951,387,552 | I_kwDOArmXAs50T8-g | 62,169 | null pointer dereference in split_v | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I am able to reproduce\r\n\r\n```sh\r\n./benchmark_model --graph=split_v.tflite\r\nINFO: STARTING!\r\nWARN: Duplicate flags: num_threads\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [split_v.tflite]\r\nINFO: Loaded model split_v.tflite\r\nINFO: Initialized TensorFlow Lite runtime.\r\nINFO: Applying 1 TensorFlow Lite delegate(s) lazily.\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\nHi @alankelly, can you please take a look?"
] | 2023-10-19T06:26:51 | 2023-10-19T21:40:58 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `split_v` operator model leads to `op_context.input` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// maximum_minimum.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 3);
OpContext op_context(context, node);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), op_context.params->num_splits);
auto input_type = op_context.input->type; // op_context.input is nullptr
```
[split_v.zip](https://github.com/tensorflow/tensorflow/files/13038752/split_v.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/split_v.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/split_v.tflite]
INFO: Loaded model ../poc/split_v.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 13162 segmentation fault (core dumped) ./benchmark_model --graph=../poc/split_v.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62169/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62169/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62168 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62168/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62168/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62168/events | https://github.com/tensorflow/tensorflow/issues/62168 | 1,951,382,365 | I_kwDOArmXAs50T7td | 62,168 | null pointer dereference in reduce_prod | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce this issue in 2.14.\r\n\r\n<img width=\"746\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/acd98354-bf15-4b1f-85d0-873ec21a243b\">\r\n\r\n\r\n@pkgoogle Could you please look into this?\r\n\r\nThanks.",
"I was able to reproduce off of nightly:\r\n\r\n```\r\n./benchmark_model --graph=reduce_prod.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [reduce_prod.tflite]\r\nINFO: Loaded model reduce_prod.tflite\r\nERROR: Invalid tensor index 10 in inputs. The subgraph has 3 tensors\r\n\r\nERROR: Invalid tensor index 24 in outputs. The subgraph has 3 tensors\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly, can you please take a look?"
] | 2023-10-19T06:23:32 | 2023-10-27T18:40:22 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `reduce_prod` operator model leads to `op_context.axis` being empty, causing a null pointer dereference in the `PrepareSimple` function.
```c
// reduce.cc
TfLiteStatus PrepareSimple(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 2);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OpContext op_context(context, node);
TF_LITE_ENSURE_TYPES_EQ(context, op_context.axis->type, kTfLiteInt32); // op_context.axis is nullptr
```
[reduce_prod.zip](https://github.com/tensorflow/tensorflow/files/13038718/reduce_prod.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/reduce_prod.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/reduce_prod.tflite]
INFO: Loaded model ../poc/reduce_prod.tflite
ERROR: Invalid tensor index 10 in inputs. The subgraph has 3 tensors
ERROR: Invalid tensor index 24 in outputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 9785 segmentation fault (core dumped) ./benchmark_model --graph=../poc/reduce_prod.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62168/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62168/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62167 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62167/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62167/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62167/events | https://github.com/tensorflow/tensorflow/issues/62167 | 1,951,375,314 | I_kwDOArmXAs50T5_S | 62,167 | null pointer dereference in pad | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce this issue in 2.14.\r\n\r\n<img width=\"746\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/f99130a9-f836-4dc5-85cd-c30f8e6b8088\">\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"I was able to reproduce on nightly:\r\n\r\n```\r\n./benchmark_model --graph=pad.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [pad.tflite]\r\nINFO: Loaded model pad.tflite\r\nERROR: Invalid tensor index 4098 in outputs. The subgraph has 3 tensors\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly can you please take a look? Thanks."
] | 2023-10-19T06:20:18 | 2023-10-27T18:46:49 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `pad` operator model leads to `op_context.output` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// pad.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE(context, NumInputs(node) == 2 || NumInputs(node) == 3);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
PadContext op_context(context, node);
if (IsConstantTensor(op_context.paddings)) {
TF_LITE_ENSURE_MSG(context, !CheckPaddingOverflow(&op_context),
"INT64 padding overflow. Only support value between "
"INT32_MIN and INT32_MAX.");
}
TF_LITE_ENSURE_TYPES_EQ(context, op_context.input->type,
op_context.output->type); // op_context.output is nullptr
```
[pad.zip](https://github.com/tensorflow/tensorflow/files/13038679/pad.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/pad.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/pad.tflite]
INFO: Loaded model ../poc/pad.tflite
ERROR: Invalid tensor index 4098 in outputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 7087 segmentation fault (core dumped) ./benchmark_model --graph=../poc/pad.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62167/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62167/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62166 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62166/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62166/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62166/events | https://github.com/tensorflow/tensorflow/issues/62166 | 1,951,370,370 | I_kwDOArmXAs50T4yC | 62,166 | null pointer dereference in onehot | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/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": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "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 | [
"@SiriusHsh Thank you for raising this issue!\r\nCould you please check the following things;\r\na. Using the latest TF version\r\nb. Try using different benchmark tools of other TFlite versions and\r\nc. Switching to GPU instead of CPU\r\nPlease let us know if it helps?\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62166\">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/62166\">No</a>\n",
"I am able to reproduce:\r\n\r\n```\r\n./benchmark_model --graph=onehot.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [onehot.tflite]\r\nINFO: Loaded model onehot.tflite\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\nHi @alankelly, can you please take a look? Thanks."
] | 2023-10-19T06:16:31 | 2023-11-27T18:41:49 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `onehot` operator model leads to `op_context.output` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// one_hot.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 4);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OneHotContext op_context{context, node};
switch (op_context.dtype) {
// TODO(b/111744875): Support uint8 and quantization.
case kTfLiteFloat32:
case kTfLiteInt16:
case kTfLiteInt32:
case kTfLiteInt64:
case kTfLiteInt8:
case kTfLiteUInt8:
case kTfLiteBool:
op_context.output->type = op_context.dtype; // op_context.output is nullptr
```
[onehot.zip](https://github.com/tensorflow/tensorflow/files/13038648/onehot.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/onehot.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/onehot.tflite]
INFO: Loaded model ../poc/onehot.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 3686 segmentation fault (core dumped) ./benchmark_model --graph=../poc/onehot.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62166/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62166/timeline | null | reopened | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62165 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62165/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62165/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62165/events | https://github.com/tensorflow/tensorflow/issues/62165 | 1,951,126,846 | I_kwDOArmXAs50S9U- | 62,165 | null pointer dereference in maximum | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I am able to reproduce:\r\n\r\n```sh\r\n./benchmark_model --graph=maximum.tflite\r\nINFO: STARTING!\r\nWARN: Duplicate flags: num_threads\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [maximum.tflite]\r\nINFO: Loaded model maximum.tflite\r\nINFO: Initialized TensorFlow Lite runtime.\r\nERROR: Invalid tensor index 65536 in inputs. The subgraph has 3 tensors\r\n\r\nINFO: Applying 1 TensorFlow Lite delegate(s) lazily.\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\nHi @alankelly, can you please take a look? Thanks."
] | 2023-10-19T03:28:57 | 2023-10-19T21:39:42 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `maximum` operator model leads to `op_context.input1` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// maximum_minimum.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 2);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OpContext op_context(context, node);
TF_LITE_ENSURE_TYPES_EQ(context, op_context.input1->type, // op_context.input1 is nullptr
```
[maximum.zip](https://github.com/tensorflow/tensorflow/files/13037309/maximum.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/maximum.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/maximum.tflite]
INFO: Loaded model ../poc/maximum.tflite
ERROR: Invalid tensor index 65536 in inputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 16244 segmentation fault (core dumped) ./benchmark_model --graph=../poc/maximum.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62165/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62165/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62164 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62164/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62164/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62164/events | https://github.com/tensorflow/tensorflow/issues/62164 | 1,951,121,250 | I_kwDOArmXAs50S79i | 62,164 | null pointer dereference in reshape | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce this on 2.14.\r\n\r\n<img width=\"746\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/217679ae-139d-4bfe-9c08-19a98ef007a8\">\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"I was able to reproduce on nightly:\r\n\r\n```\r\n./benchmark_model --graph=reshape.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [reshape.tflite]\r\nINFO: Loaded model reshape.tflite\r\nERROR: Invalid tensor index 32 in inputs. The subgraph has 3 tensors\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly, can you please take a look? Thanks."
] | 2023-10-19T03:23:05 | 2023-10-27T18:49:53 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `reshape` operator model leads to `input` being empty, causing a null pointer dereference in the `IsConstantTensor` function.
```c
// reshape.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE(context, NumInputs(node) == 1 || NumInputs(node) == 2);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OpData* op_data = reinterpret_cast<OpData*>(node->user_data);
op_data->output_ptr = nullptr;
TfLiteTensor* output;
TF_LITE_ENSURE_OK(context,
GetOutputSafe(context, node, kOutputTensor, &output));
if (output->type != kTfLiteString) {
const TfLiteTensor* input = GetInput(context, node, kInputTensor);
const TfLiteTensor* shape = GetInput(context, node, kShapeTensor);
if (NumInputs(node) == 1 || IsConstantOrPersistentTensor(shape)) {
if (IsConstantOrPersistentTensor(input)) { // input is nullptr
SetTensorToPersistentRo(output);
```
```c
// kernel_util.h
inline bool IsConstantOrPersistentTensor(const TfLiteTensor* tensor) {
return IsConstantTensor(tensor) ||
(tensor->allocation_type == kTfLitePersistentRo);
}
inline bool IsConstantTensor(const TfLiteTensor* tensor) {
return tensor->allocation_type == kTfLiteMmapRo; // tensor is nullptr
}
```
[reshape.zip](https://github.com/tensorflow/tensorflow/files/13037278/reshape.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/reshape.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/reshape.tflite]
INFO: Loaded model ../poc/reshape.tflite
ERROR: Invalid tensor index 32 in inputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 10805 segmentation fault (core dumped) ./benchmark_model --graph=../poc/reshape.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62164/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62164/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62163 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62163/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62163/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62163/events | https://github.com/tensorflow/tensorflow/issues/62163 | 1,951,117,595 | I_kwDOArmXAs50S7Eb | 62,163 | null pointer dereference in exp | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce this issue on r2.14.\r\n\r\n<img width=\"746\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/e1956661-acb0-463a-aa8c-36f6dc1f1d94\">\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"I was able to reproduce on nightly:\r\n\r\n```\r\n./benchmark_model --graph=exp.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [exp.tflite]\r\nINFO: Loaded model exp.tflite\r\nERROR: Invalid tensor index 1025 in inputs. The subgraph has 3 tensors\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly, can you please take a look. Thanks."
] | 2023-10-19T03:18:32 | 2023-10-27T18:42:18 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `exp` operator model leads to `op_context.input` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// exp.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
OpData* data = static_cast<OpData*>(node->user_data);
TF_LITE_ENSURE_EQ(context, NumInputs(node), 1);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
ExpContext op_context(context, node);
const TfLiteTensor* input = op_context.input;
TfLiteTensor* output = op_context.output;
TfLiteIntArray* output_dims = TfLiteIntArrayCopy(input->dims);
output->type = input->type; // input is nullptr
```
[exp.zip](https://github.com/tensorflow/tensorflow/files/13037247/exp.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/exp.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/exp.tflite]
INFO: Loaded model ../poc/exp.tflite
ERROR: Invalid tensor index 1025 in inputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 6687 segmentation fault (core dumped) ./benchmark_model --graph=../poc/exp.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62163/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62163/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62162 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62162/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62162/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62162/events | https://github.com/tensorflow/tensorflow/issues/62162 | 1,951,112,790 | I_kwDOArmXAs50S55W | 62,162 | null pointer dereference in dequantize | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce this on 2.14.\r\n\r\n<img width=\"746\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/e7d720df-37f9-4a95-b47e-8b90b829ccd0\">\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.\r\n",
"I was able to reproduce on nightly:\r\n\r\n```\r\n./benchmark_model --graph=dequantize.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [dequantize.tflite]\r\nINFO: Loaded model dequantize.tflite\r\nERROR: Invalid tensor index 256 in outputs. The subgraph has 3 tensors\r\n\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly, can you please take a look? Thanks."
] | 2023-10-19T03:12:22 | 2023-10-27T18:44:23 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `dequantize` operator model leads to `op_context.input` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// dequantize.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 1);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OpContext op_context(context, node);
TF_LITE_ENSURE(context, op_context.input->type == kTfLiteUInt8 || // op_context.input is nullptr
```
[dequantize.zip](https://github.com/tensorflow/tensorflow/files/13037224/dequantize.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/dequantize.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/dequantize.tflite]
INFO: Loaded model ../poc/dequantize.tflite
ERROR: Invalid tensor index 256 in outputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 1062 segmentation fault (core dumped) ./benchmark_model --graph=../poc/dequantize.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62162/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62162/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62161 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62161/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62161/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62161/events | https://github.com/tensorflow/tensorflow/issues/62161 | 1,951,109,377 | I_kwDOArmXAs50S5EB | 62,161 | null pointer dereference in densify | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I am able to reproduce:\r\n\r\n```sh\r\n./benchmark_model --graph=densify.tflite\r\nINFO: STARTING!\r\nWARN: Duplicate flags: num_threads\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [densify.tflite]\r\nINFO: Loaded model densify.tflite\r\nINFO: Initialized TensorFlow Lite runtime.\r\nERROR: Invalid tensor index 8193 in inputs. The subgraph has 3 tensors\r\n\r\nINFO: Applying 1 TensorFlow Lite delegate(s) lazily.\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nSegmentation fault\r\n```\r\n\r\nHi @alankelly, I'm going to consolidate these to you for efficiency purposes. Can you please take a look? Thanks."
] | 2023-10-19T03:08:24 | 2023-10-19T21:38:19 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed densify operator model leads to `op_context.input` being empty, causing a null pointer dereference in the `Prepare` function.
```c
// densify.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
TF_LITE_ENSURE_EQ(context, NumInputs(node), 1);
TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
OpContext op_context(context, node);
TF_LITE_ENSURE(context, op_context.input->type != kTfLiteString); // op_context.input is nullptr
```
[densify.zip](https://github.com/tensorflow/tensorflow/files/13037207/densify.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/densify.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/densify.tflite]
INFO: Loaded model ../poc/densify.tflite
ERROR: Invalid tensor index 8193 in inputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 30027 segmentation fault (core dumped) ./benchmark_model --graph=../poc/densify.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62161/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62161/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62160 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62160/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62160/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62160/events | https://github.com/tensorflow/tensorflow/issues/62160 | 1,951,105,443 | I_kwDOArmXAs50S4Gj | 62,160 | null pointer dereference in squeeze | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce as noted above, @alankelly, can you please take a look? Thanks."
] | 2023-10-19T03:03:34 | 2023-10-24T17:43:53 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
Python 3.8.3
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `squeeze` operator model leads to `op_context.output` being empty, causing a null pointer dereference in the `ResizeTensor` function.
```c
// squeeze.cc
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
SqueezeContext op_context(context, node);
...
return context->ResizeTensor(context, op_context.output, output_dims); // op_context.output is null
}
```
```c
// subgraph.cc
TfLiteStatus Subgraph::ResizeTensor(TfLiteContext* context,
TfLiteTensor* tensor,
TfLiteIntArray* new_size) {
if (tensor->data.raw != nullptr && // tensor is nullptr
EqualArrayAndTfLiteIntArray(tensor->dims, new_size->size,
new_size->data)) {
```
[squeeze.zip](https://github.com/tensorflow/tensorflow/files/13037193/squeeze.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build && cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/squeeze.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/squeeze.tflite]
INFO: Loaded model ../poc/squeeze.tflite
ERROR: Invalid tensor index 1025 in inputs. The subgraph has 3 tensors
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[1] 25682 segmentation fault (core dumped) ./benchmark_model --graph=../poc/squeeze.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62160/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62160/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62159 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62159/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62159/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62159/events | https://github.com/tensorflow/tensorflow/issues/62159 | 1,951,091,549 | I_kwDOArmXAs50S0td | 62,159 | OOB write in relu6 | {
"login": "SiriusHsh",
"id": 20510239,
"node_id": "MDQ6VXNlcjIwNTEwMjM5",
"avatar_url": "https://avatars.githubusercontent.com/u/20510239?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SiriusHsh",
"html_url": "https://github.com/SiriusHsh",
"followers_url": "https://api.github.com/users/SiriusHsh/followers",
"following_url": "https://api.github.com/users/SiriusHsh/following{/other_user}",
"gists_url": "https://api.github.com/users/SiriusHsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SiriusHsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SiriusHsh/subscriptions",
"organizations_url": "https://api.github.com/users/SiriusHsh/orgs",
"repos_url": "https://api.github.com/users/SiriusHsh/repos",
"events_url": "https://api.github.com/users/SiriusHsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/SiriusHsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "alankelly",
"id": 5112267,
"node_id": "MDQ6VXNlcjUxMTIyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5112267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alankelly",
"html_url": "https://github.com/alankelly",
"followers_url": "https://api.github.com/users/alankelly/followers",
"following_url": "https://api.github.com/users/alankelly/following{/other_user}",
"gists_url": "https://api.github.com/users/alankelly/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alankelly/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alankelly/subscriptions",
"organizations_url": "https://api.github.com/users/alankelly/orgs",
"repos_url": "https://api.github.com/users/alankelly/repos",
"events_url": "https://api.github.com/users/alankelly/events{/privacy}",
"received_events_url": "https://api.github.com/users/alankelly/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I was able to reproduce in both 2.14 and nightly as well.\r\n\r\n<img width=\"995\" alt=\"image\" src=\"https://github.com/tensorflow/tensorflow/assets/118897289/3923ff7e-e267-46ba-91d2-c671cc682eac\">\r\n\r\n@pkgoogle Could you please look at this issue?\r\n\r\nThanks.\r\n",
"I was able to reproduce on nightly as well:\r\n\r\n```\r\n./benchmark_model --graph=relu6.tflite\r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [relu6.tflite]\r\nINFO: Loaded model relu6.tflite\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nERROR: failed to delegate RELU node #0\r\nERROR: Node number 2 (TfLiteXNNPackDelegate) failed to prepare.\r\nERROR: Restored original execution plan after delegate application failure.\r\nINFO: The input model file size (MB): 0.00062\r\nINFO: Initialized session in 1.422ms.\r\nINFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.\r\nSegmentation fault\r\n```\r\n\r\n@alankelly, can you please take a look? Thanks."
] | 2023-10-19T02:49:08 | 2023-10-30T16:47:14 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Ubuntu 18.04.6
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
bazel 5.3.0
### GCC/compiler version
gcc 7.5.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
A maliciously constructed `Relu6` operator model may lead to an out-of-bounds write in the `Relu6Eval` function, resulting in denial of service due to accessing an illegal address.
```c
// activations.cc
TfLiteStatus Relu6Eval(TfLiteContext* context, TfLiteNode* node) {
const TfLiteTensor* input;
TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, 0, &input));
TfLiteTensor* output;
TF_LITE_ENSURE_OK(context, GetOutputSafe(context, node, 0, &output));
ReluOpData* data = reinterpret_cast<ReluOpData*>(node->user_data);
switch (input->type) {
case kTfLiteFloat32: {
size_t elements = input->bytes / sizeof(float);
const float* in = GetTensorData<float>(input);
const float* in_end = in + elements;
float* out = GetTensorData<float>(output);
for (; in < in_end; in++, out++) *out = std::min(std::max(0.f, *in), 6.f); // this line
```
[relu6.zip](https://github.com/tensorflow/tensorflow/files/13037007/relu6.zip)
### Standalone code to reproduce the issue
```shell
I use the benchmark tool built according to [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build
cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model
The benchmark is in the tools directory
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS(coredump).
❯ ./benchmark_model --graph=../poc/relu6.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/relu6.tflite]
INFO: Loaded model ../poc/relu6.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
ERROR: failed to delegate RELU node #0
ERROR: Node number 2 (TfLiteXNNPackDelegate) failed to prepare.
ERROR: Restored original execution plan after delegate application failure.
INFO: The input model file size (MB): 0.00062
INFO: Initialized session in 181.67ms.
INFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.
[1] 12443 segmentation fault (core dumped) ./benchmark_model --graph=../poc/relu6.tflite
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62159/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62159/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62158 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62158/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62158/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62158/events | https://github.com/tensorflow/tensorflow/pull/62158 | 1,950,601,389 | PR_kwDOArmXAs5dL--N | 62,158 | Update setup.py on TF release branch with released version of Estimat… | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-10-18T20:32:41 | 2023-10-18T23:51:35 | 2023-10-18T23:51:34 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62158",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62158",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62158.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62158.patch",
"merged_at": "2023-10-18T23:51:34"
} | …or, Keras and Tensorboard | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62158/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62158/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62157 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62157/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62157/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62157/events | https://github.com/tensorflow/tensorflow/pull/62157 | 1,950,305,903 | PR_kwDOArmXAs5dK9tj | 62,157 | Update mlir.py | {
"login": "gautam1858",
"id": 4949778,
"node_id": "MDQ6VXNlcjQ5NDk3Nzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4949778?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gautam1858",
"html_url": "https://github.com/gautam1858",
"followers_url": "https://api.github.com/users/gautam1858/followers",
"following_url": "https://api.github.com/users/gautam1858/following{/other_user}",
"gists_url": "https://api.github.com/users/gautam1858/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gautam1858/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gautam1858/subscriptions",
"organizations_url": "https://api.github.com/users/gautam1858/orgs",
"repos_url": "https://api.github.com/users/gautam1858/repos",
"events_url": "https://api.github.com/users/gautam1858/events{/privacy}",
"received_events_url": "https://api.github.com/users/gautam1858/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
},
{
"id": 1593512946,
"node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid",
"name": "invalid",
"color": "db6f57",
"default": true,
"description": "Hacktoberfest spam PR"
}
] | closed | true | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Please don't use \"add file\"/\"update file\"/\"fix file\"/etc. commit messages. These are hard to reason about when looking at the history of the file/repository. Instead, please write explanatory git commit messages.\r\n\r\nThe commit message is also the title of the PR if the PR has only one commit. It is thus twice important to have commit messages that are relevant, as PRs would be easier to understand and easier to analyze in search results.\r\n\r\nFor how to write good quality git commit messages, please consult https://cbea.ms/git-commit/ "
] | 2023-10-18T17:39:26 | 2023-10-22T20:27:28 | 2023-10-22T20:27:25 | CONTRIBUTOR | spam | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62157",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62157",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62157.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62157.patch",
"merged_at": null
} | Break up the code into smaller functions.
Split the convert_graph_def() function into functions for importing the GraphDef, running the pass pipeline, and converting the MLIR module to text. Add unit tests.
Add unit tests for the convert_graph_def() function to ensure that it is working as expected. Add docstrings to the functions.
Add docstrings to the convert_graph_def(), _import_graph_def(), _run_pass_pipeline(), and _convert_mlir_module_to_text() functions to explain what they do and how to use them. Improve the type hints.
Update the type hint for the convert_graph_def() function to make it more informative. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62157/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62157/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62156 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62156/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62156/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62156/events | https://github.com/tensorflow/tensorflow/pull/62156 | 1,950,255,795 | PR_kwDOArmXAs5dKyj0 | 62,156 | Change libtpu.so path in tpu_api_dlsym_initializer.cc | {
"login": "rtg0795",
"id": 36429068,
"node_id": "MDQ6VXNlcjM2NDI5MDY4",
"avatar_url": "https://avatars.githubusercontent.com/u/36429068?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rtg0795",
"html_url": "https://github.com/rtg0795",
"followers_url": "https://api.github.com/users/rtg0795/followers",
"following_url": "https://api.github.com/users/rtg0795/following{/other_user}",
"gists_url": "https://api.github.com/users/rtg0795/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rtg0795/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rtg0795/subscriptions",
"organizations_url": "https://api.github.com/users/rtg0795/orgs",
"repos_url": "https://api.github.com/users/rtg0795/repos",
"events_url": "https://api.github.com/users/rtg0795/events{/privacy}",
"received_events_url": "https://api.github.com/users/rtg0795/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-10-18T17:11:41 | 2023-10-18T23:28:18 | 2023-10-18T23:28:17 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62156",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62156",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62156.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62156.patch",
"merged_at": "2023-10-18T23:28:17"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62156/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62156/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62155 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62155/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62155/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62155/events | https://github.com/tensorflow/tensorflow/pull/62155 | 1,950,219,844 | PR_kwDOArmXAs5dKqoZ | 62,155 | Python 3.12 tooling / CI support | {
"login": "SamuelMarks",
"id": 807580,
"node_id": "MDQ6VXNlcjgwNzU4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/807580?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SamuelMarks",
"html_url": "https://github.com/SamuelMarks",
"followers_url": "https://api.github.com/users/SamuelMarks/followers",
"following_url": "https://api.github.com/users/SamuelMarks/following{/other_user}",
"gists_url": "https://api.github.com/users/SamuelMarks/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SamuelMarks/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SamuelMarks/subscriptions",
"organizations_url": "https://api.github.com/users/SamuelMarks/orgs",
"repos_url": "https://api.github.com/users/SamuelMarks/repos",
"events_url": "https://api.github.com/users/SamuelMarks/events{/privacy}",
"received_events_url": "https://api.github.com/users/SamuelMarks/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | [
"@vladbelit could you PTAL ",
"We have a similar change going out soon (nightly jobs), though there are still a couple of details being hashed out with regards to CI",
"Hi @SamuelMarks Can you please rebase your branch and resolve conflicts? Thank you!",
"This could probably be closed - the Linux x86/ARM 3.12 nightlies are up. They should soon be set to upload, once a few superficial test failures are resolved.\r\nMacOS should be added soon as well.",
"Thanks for the PR @SamuelMarks but the internal effort landed and our continued development of the official directory would have needed this PR to change multiple times. "
] | 2023-10-18T16:51:40 | 2023-11-03T13:18:09 | 2023-11-03T13:18:09 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62155",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62155",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62155.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62155.patch",
"merged_at": null
} | I saw 5f7f05a so I guess we're close to Python 3.12 support. Committing this up so I can see what passes/fails and fix accordingly. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62155/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62155/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62154 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62154/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62154/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62154/events | https://github.com/tensorflow/tensorflow/pull/62154 | 1,950,203,877 | PR_kwDOArmXAs5dKnFH | 62,154 | [oneDNN]: Fix high memory usage when running eager ops as a function. | {
"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": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
},
{
"id": 1478826728,
"node_id": "MDU6TGFiZWwxNDc4ODI2NzI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core",
"name": "comp:core",
"color": "024391",
"default": false,
"description": "issues related to core part of tensorflow"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-18T16:42:41 | 2023-10-18T18:23:52 | 2023-10-18T18:23:52 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62154",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62154",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62154.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62154.patch",
"merged_at": "2023-10-18T18:23:51"
} | Fixes https://github.com/tensorflow/tensorflow/issues/58676.
When running eager op as a function, `tf.data` ops are getting repeatedly cached leading to high memory usage as reported in the above issue. The fix is to recognize such ops and prevent them from getting cached again. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62154/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62154/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62153 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62153/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62153/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62153/events | https://github.com/tensorflow/tensorflow/pull/62153 | 1,950,038,761 | PR_kwDOArmXAs5dKDfC | 62,153 | [tosa] fix legalization of mul op for unequal ranks | {
"login": "Tai78641",
"id": 6504206,
"node_id": "MDQ6VXNlcjY1MDQyMDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6504206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tai78641",
"html_url": "https://github.com/Tai78641",
"followers_url": "https://api.github.com/users/Tai78641/followers",
"following_url": "https://api.github.com/users/Tai78641/following{/other_user}",
"gists_url": "https://api.github.com/users/Tai78641/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tai78641/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tai78641/subscriptions",
"organizations_url": "https://api.github.com/users/Tai78641/orgs",
"repos_url": "https://api.github.com/users/Tai78641/repos",
"events_url": "https://api.github.com/users/Tai78641/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tai78641/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | open | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rsuderman, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!",
"@NatashaKnk would you review this please?\r\nthis is another patch that tries to head off issues when TOSA upstreams changes that require operands have equal ranks.",
"Hi @NatashaKnk, Can you please review this PR ? Thank you!",
"Hi @NatashaKnk, Can you please review this PR ? Thank you!"
] | 2023-10-18T15:32:09 | 2024-06-07T16:30:45 | null | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62153",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62153",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62153.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62153.patch",
"merged_at": null
} | This patch adds EqualizeRanks of muliply inputs in case their ranks are different. A lit test is added to test for this case.
Change-Id: Icef0a591126c42d7bb269eab630725440fd69643 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62153/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62153/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62152 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62152/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62152/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62152/events | https://github.com/tensorflow/tensorflow/pull/62152 | 1,950,004,776 | PR_kwDOArmXAs5dJ8BS | 62,152 | Add threadpool threadcap for AArch64 builds | {
"login": "davsva01",
"id": 117736650,
"node_id": "U_kgDOBwSEyg",
"avatar_url": "https://avatars.githubusercontent.com/u/117736650?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/davsva01",
"html_url": "https://github.com/davsva01",
"followers_url": "https://api.github.com/users/davsva01/followers",
"following_url": "https://api.github.com/users/davsva01/following{/other_user}",
"gists_url": "https://api.github.com/users/davsva01/gists{/gist_id}",
"starred_url": "https://api.github.com/users/davsva01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davsva01/subscriptions",
"organizations_url": "https://api.github.com/users/davsva01/orgs",
"repos_url": "https://api.github.com/users/davsva01/repos",
"events_url": "https://api.github.com/users/davsva01/events{/privacy}",
"received_events_url": "https://api.github.com/users/davsva01/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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 | [
"@penpornk ",
"Hi @penpornk, Can you please review this PR ? Thank you!",
"Hi @penpornk, would you mind taking a look at this PR and let me know if any changes are needed? Thank you :) ",
"> Thank you for the PR and sorry for the delay! Could you please paste some microbenchmarks/end-to-end model performance results before and after the changes?\r\n> \r\n> cc: @cantonios\r\n\r\nPlease find attached benchmarks on image classification models before and after this PR. It improves performance up to 8% with an average of a 4.5% improvement.\r\n\r\n\r\n",
"Hi @penpornk are there any other changes required on my end to get this PR merged? Thanks.",
"Hi @penpornk and @cantonios. Would it be possible to get this merged in soon so that it makes it for the next release? Thank you.",
"@davsva01 Sorry for the delay! Our auto-import tool failed with TSL-only changes. I'll try to manually import the changes."
] | 2023-10-18T15:15:44 | 2024-02-01T20:20:40 | 2024-02-01T20:20:39 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62152",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62152",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62152.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62152.patch",
"merged_at": "2024-02-01T20:20:39"
} | Runs thread pool with one thread less when number of cores == num_threads and num_threads >= 16. This fixes a performance degradation issue on AArch64 builds when using max threads on systems with a large amount of cores. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62152/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62152/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62151 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62151/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62151/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62151/events | https://github.com/tensorflow/tensorflow/issues/62151 | 1,949,863,599 | I_kwDOArmXAs50OI6v | 62,151 | Building failure of libtensorflowlite_gpu_delegate.so | {
"login": "wqy123456",
"id": 101915578,
"node_id": "U_kgDOBhMbug",
"avatar_url": "https://avatars.githubusercontent.com/u/101915578?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wqy123456",
"html_url": "https://github.com/wqy123456",
"followers_url": "https://api.github.com/users/wqy123456/followers",
"following_url": "https://api.github.com/users/wqy123456/following{/other_user}",
"gists_url": "https://api.github.com/users/wqy123456/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wqy123456/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wqy123456/subscriptions",
"organizations_url": "https://api.github.com/users/wqy123456/orgs",
"repos_url": "https://api.github.com/users/wqy123456/repos",
"events_url": "https://api.github.com/users/wqy123456/events{/privacy}",
"received_events_url": "https://api.github.com/users/wqy123456/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": 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"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I really need your help to solve this problem!\r\n",
"It is the final linkage step that raise an error stating can't find -lnativewindow",
"Hi @wqy123456 ,\r\n\r\nCould you please try adding `--copt=-DMESA_EGL_NO_X11_HEADERS=1` to the command and let us know if it helps. For more details please refer similar issue #52155 .\r\n\r\nThanks!",
"Hi,@SuryanarayanaY,I have solved this question by modifying build_defs.bzl.\r\n\r\nBelow are my modifications:\r\n\r\n#def nativewindow_linkopts():\r\n # copybara:uncomment_begin(google-only)\r\n # return min_supported_ndk_api(\"26\", [\"-lnativewindow\"])\r\n # copybara:uncomment_end\r\n # copybara:comment_begin(oss-only)\r\n # return [\"-lnativewindow\"]\r\n # copybara:comment_end\r\n\r\ndef gpu_delegate_linkopts():\r\n \"\"\"Additional link options needed when linking in the GPU Delegate.\"\"\"\r\n return select({\r\n \"//tensorflow:android\": [\r\n \"-lEGL\",\r\n # We don't need to link libGLESv3, because if it exists,\r\n # it is a symlink to libGLESv2.\r\n # See Compatibility Definition Document:\r\n # https://source.android.com/compatibility/10/android-10-cdd#7_1_4_1_opengl_es\r\n \"-lGLESv2\",\r\n ],\r\n \"//conditions:default\": [],\r\n }) \r\n #+ nativewindow_linkopts()",
"Hi @wqy123456 ,\r\n\r\nI can see the file [here](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/delegates/gpu/build_defs.bzl) at master branch. It seems you have commented `nativewindow_linkopts` to make it workable for you right?\r\n\r\nI think this modification might be applicable for your own optimization and compiler options you have chosen. \r\n\r\nCould we mark it as resolved now? \r\n\r\nThank you!\r\n\r\n\r\n",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62151\">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/62151\">No</a>\n"
] | 2023-10-18T14:13:31 | 2023-10-20T07:46:07 | 2023-10-20T07:46:05 | NONE | null | null | null | System information
OS Platform and Distribution: Ubuntu 20.04
TensorFlow installed from (source or binary): source
TensorFlow version: 2.12.0
Bazel version (if compiling from source): 5.3.0
GCC/Compiler version (if compiling from source): 9.4.0
Describe the problem
Building libtensorflowlite_gpu_delegate.so fails
------------------------
Provide the exact sequence of commands / steps that you executed before running into the problem
bazel build -c opt tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so --copt -DEGL_NO_X11=1
Any other info / logs
ERROR: /home/sstc/tensorflow/tensorflow/lite/delegates/gpu/BUILD:134:10: Linking tensorflow/lite/delegates/gpu/libtensorflowlite_gpu_delegate.so failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/tensorflow/lite/delegates/gpu/libtensorflowlite_gpu_delegate.so-2.params
/usr/bin/ld: cannot find -lnativewindow
/usr/bin/ld: cannot find -lnativewindow
collect2: error: ld returned 1 exit status
Target //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 123.625s, Critical Path: 46.21s
INFO: 804 processes: 190 internal, 614 local.
FAILED: Build did NOT complete successfully | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62151/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62151/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62150 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62150/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62150/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62150/events | https://github.com/tensorflow/tensorflow/issues/62150 | 1,949,673,101 | I_kwDOArmXAs50NaaN | 62,150 | Cross compilation TensorFlow Lite with CMake mat error | {
"login": "hfwanguanghui",
"id": 19664594,
"node_id": "MDQ6VXNlcjE5NjY0NTk0",
"avatar_url": "https://avatars.githubusercontent.com/u/19664594?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hfwanguanghui",
"html_url": "https://github.com/hfwanguanghui",
"followers_url": "https://api.github.com/users/hfwanguanghui/followers",
"following_url": "https://api.github.com/users/hfwanguanghui/following{/other_user}",
"gists_url": "https://api.github.com/users/hfwanguanghui/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hfwanguanghui/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hfwanguanghui/subscriptions",
"organizations_url": "https://api.github.com/users/hfwanguanghui/orgs",
"repos_url": "https://api.github.com/users/hfwanguanghui/repos",
"events_url": "https://api.github.com/users/hfwanguanghui/events{/privacy}",
"received_events_url": "https://api.github.com/users/hfwanguanghui/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": 3797168204,
"node_id": "LA_kwDOArmXAs7iVDBM",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8",
"name": "TF 2.8",
"color": "5DC9D0",
"default": false,
"description": ""
}
] | closed | false | {
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@hfwanguanghui Could you please make sure that you are using the correct version of CMake?\r\nAs you are using Linux so please confirm if you have used right command for CMake as below,\r\n```\r\ncmake -S tensorflow/lite -B build -DCMAKE_TOOLCHAIN_FILE=path/to/toolchain.cmake\r\n\r\n```\r\nThe toolchain file that you are using needs to be corrected. The toolchain file should specify the compiler and linker that you want to use for cross compiling TensorFlow Lite.\r\n\r\nCould you please upgrade to the latest stable TF v2.14 as you are using an older version?\r\n\r\nIf you are still having issues then please provide more information about your environment and the steps that you are using to build the package.\r\n\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62150\">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/62150\">No</a>\n",
"I have the same issue and I can't solve the problem \r\n[this is the link for my issue](https://github.com/tensorflow/tensorflow/issues/68616)"
] | 2023-10-18T12:48:09 | 2024-05-28T08:57:33 | 2023-11-15T01:49:20 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
tf.2.8
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
gcc-arm-10.3
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I want to get a libtensorflow.so for my Arm Linux.
### Standalone code to reproduce the issue
```shell
ARMCC_FLAGS="-march=armv7-a -mfpu=neon-vfpv4 -funsafe-math-optimizations -mfp16-format=ieee"
cmake -DCMAKE_C_COMPILER=gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gcc \
-DCMAKE_CXX_COMPILER=gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-g++ \
-DCMAKE_C_FLAGS="${ARMCC_FLAGS}" \
-DCMAKE_CXX_FLAGS="${ARMCC_FLAGS}" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=armv7 \
../tensorflow/lite/
make -j 16
then I get the Error:
w/tensorflow/build_sdk/xnnpack/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c
[ 79%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o
cd /mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/_deps/xnnpack-build && /mnt/fileroot/guanghui.wan/nanoQ/Algorithm/tools/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gcc -DEIGEN_MPL2_ONLY -DFXDIV_USE_INLINE_ASSEMBLY=0 -DNOMINMAX=1 -DPTHREADPOOL_NO_DEPRECATED_API=1 -DXNN_ENABLE_ARM_BF16=0 -DXNN_ENABLE_ARM_DOTPROD=1 -DXNN_ENABLE_ARM_FP16_SCALAR=1 -DXNN_ENABLE_ARM_FP16_VECTOR=1 -DXNN_ENABLE_ARM_I8MM=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_CPUINFO=1 -DXNN_ENABLE_DWCONV_MULTIPASS=0 -DXNN_ENABLE_GEMM_M_SPECIALIZATION=1 -DXNN_ENABLE_JIT=0 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_RISCV_VECTOR=1 -DXNN_ENABLE_SPARSE=1 -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/third_party/xla/third_party/tsl -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/xnnpack/src -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/pthreadpool-source/include -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/FXdiv-source/include -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/FP16-source/include -march=armv8-a -mfpu=neon-vfpv4 -funsafe-math-optimizations -mfp16-format=ieee -O3 -DNDEBUG -std=c99 -fPIC -Wno-psabi -O2 -pthread -fno-math-errno -marm -march=armv8.2-a+dotprod -mfpu=neon-fp-armv8 -MD -MT _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o -MF CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o.d -o CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o -c /mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/xnnpack/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c
/tmp/ccrZ5z20.s: Assembler messages:
/tmp/ccrZ5z20.s:75: Error: selected processor does not support `vsdot.s8 q14,q12,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:76: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:77: Error: selected processor does not support `vsdot.s8 q14,q11,d7[1]' in ARM mode
/tmp/ccrZ5z20.s:78: Error: selected processor does not support `vsdot.s8 q10,q8,d7[1]' in ARM mode
/tmp/ccrZ5z20.s:134: Error: selected processor does not support `vsdot.s8 q14,q9,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:135: Error: selected processor does not support `vsdot.s8 q10,q8,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49877: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c4-minmax-neondot.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/ccWEkUHN.s: Assembler messages:
/tmp/ccWEkUHN.s:81: Error: selected processor does not support `vsdot.s8 q12,q9,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:82: Error: selected processor does not support `vsdot.s8 q13,q2,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:83: Error: selected processor does not support `vsdot.s8 q15,q8,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:85: Error: selected processor does not support `vsdot.s8 q10,q14,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:91: Error: selected processor does not support `vsdot.s8 q12,q8,d7[1]' in ARM mode
/tmp/ccWEkUHN.s:93: Error: selected processor does not support `vsdot.s8 q13,q14,d7[1]' in ARM mode
/tmp/ccWEkUHN.s:99: Error: selected processor does not support `vsdot.s8 q10,q14,d7[1]' in ARM mode
/tmp/ccWEkUHN.s:100: Error: selected processor does not support `vsdot.s8 q15,q8,d7[1]' in ARM mode
/tmp/ccWEkUHN.s:184: Error: selected processor does not support `vsdot.s8 q13,q2,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:185: Error: selected processor does not support `vsdot.s8 q12,q9,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:186: Error: selected processor does not support `vsdot.s8 q10,q14,d7[0]' in ARM mode
/tmp/ccWEkUHN.s:187: Error: selected processor does not support `vsdot.s8 q15,q8,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49905: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c.o] Error 1
/tmp/ccEQXTmv.s: Assembler messages:
/tmp/ccEQXTmv.s:88: Error: selected processor does not support `vsdot.s8 q15,q11,d7[0]' in ARM mode
/tmp/ccEQXTmv.s:89: Error: selected processor does not support `vsdot.s8 q14,q9,d7[0]' in ARM mode
/tmp/ccEQXTmv.s:90: Error: selected processor does not support `vsdot.s8 q15,q10,d7[1]' in ARM mode
/tmp/ccEQXTmv.s:91: Error: selected processor does not support `vsdot.s8 q14,q8,d7[1]' in ARM mode
/tmp/ccEQXTmv.s:93: Error: selected processor does not support `vsdot.s8 q13,q11,d7[0]' in ARM mode
/tmp/ccEQXTmv.s:94: Error: selected processor does not support `vsdot.s8 q12,q9,d7[0]' in ARM mode
/tmp/ccEQXTmv.s:95: Error: selected processor does not support `vsdot.s8 q13,q10,d7[1]' in ARM mode
/tmp/ccEQXTmv.s:96: Error: selected processor does not support `vsdot.s8 q12,q8,d7[1]' in ARM mode
/tmp/ccEQXTmv.s:189: Error: selected processor does not support `vsdot.s8 q15,q9,d6[0]' in ARM mode
/tmp/ccEQXTmv.s:190: Error: selected processor does not support `vsdot.s8 q14,q8,d6[0]' in ARM mode
/tmp/ccEQXTmv.s:191: Error: selected processor does not support `vsdot.s8 q13,q9,d7[0]' in ARM mode
/tmp/ccEQXTmv.s:192: Error: selected processor does not support `vsdot.s8 q12,q8,d7[0]' in ARM mode
/tmp/ccmAlACc.s: make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49933: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-2x8c4-minmax-neondot.c.o] Error 1
Assembler messages:
/tmp/ccmAlACc.s:87: Error: selected processor does not support `vsdot.s8 q1,q10,q8' in ARM mode
/tmp/ccmAlACc.s:90: Error: selected processor does not support `vsdot.s8 q0,q5,q8' in ARM mode
/tmp/ccmAlACc.s:91: Error: selected processor does not support `vsdot.s8 q2,q9,q8' in ARM mode
/tmp/ccmAlACc.s:92: Error: selected processor does not support `vsdot.s8 q14,q4,q8' in ARM mode
/tmp/ccmAlACc.s:101: Error: selected processor does not support `vsdot.s8 q13,q5,q8' in ARM mode
/tmp/ccmAlACc.s:102: Error: selected processor does not support `vsdot.s8 q3,q10,q8' in ARM mode
/tmp/ccmAlACc.s:103: Error: selected processor does not support `vsdot.s8 q12,q4,q8' in ARM mode
/tmp/ccmAlACc.s:104: Error: selected processor does not support `vsdot.s8 q15,q9,q8' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49919: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neondot-ld64.c.o] Error 1
/tmp/ccBfIgBU.s: Assembler messages:
/tmp/ccBfIgBU.s:109: Error: selected processor does not support `vsdot.s8 q14,q10,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:110: Error: selected processor does not support `vsdot.s8 q13,q9,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:111: Error: selected processor does not support `vsdot.s8 q12,q8,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:112: Error: selected processor does not support `vsdot.s8 q1,q11,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:114: Error: selected processor does not support `vsdot.s8 q0,q10,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:115: Error: selected processor does not support `vsdot.s8 q4,q9,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:116: Error: selected processor does not support `vsdot.s8 q5,q8,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:117: Error: selected processor does not support `vsdot.s8 q6,q11,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:126: Error: selected processor does not support `vsdot.s8 q14,q11,d6[1]' in ARM mode
/tmp/ccBfIgBU.s:127: Error: selected processor does not support `vsdot.s8 q0,q11,d7[1]' in ARM mode
/tmp/ccBfIgBU.s:128: Error: selected processor does not support `vsdot.s8 q13,q10,d6[1]' in ARM mode
/tmp/ccBfIgBU.s:129: Error: selected processor does not support `vsdot.s8 q4,q10,d7[1]' in ARM mode
/tmp/ccBfIgBU.s:130: Error: selected processor does not support `vsdot.s8 q12,q9,d6[1]' in ARM mode
/tmp/ccBfIgBU.s:131: Error: selected processor does not support `vsdot.s8 q1,q8,d6[1]' in ARM mode
/tmp/ccBfIgBU.s:132: Error: selected processor does not support `vsdot.s8 q5,q9,d7[1]' in ARM mode
/tmp/ccBfIgBU.s:133: Error: selected processor does not support `vsdot.s8 q6,q8,d7[1]' in ARM mode
/tmp/ccBfIgBU.s:255: Error: selected processor does not support `vsdot.s8 q13,q9,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:256: Error: selected processor does not support `vsdot.s8 q4,q9,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:258: Error: selected processor does not support `vsdot.s8 q14,q10,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:260: Error: selected processor does not support `vsdot.s8 q0,q10,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:262: Error: selected processor does not support `vsdot.s8 q12,q9,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:263: Error: selected processor does not support `vsdot.s8 q5,q9,d7[0]' in ARM mode
/tmp/ccBfIgBU.s:264: Error: selected processor does not support `vsdot.s8 q1,q8,d6[0]' in ARM mode
/tmp/ccBfIgBU.s:265: Error: selected processor does not support `vsdot.s8 q6,q8,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49947: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-2x16c4-minmax-neondot.c.o] Error 1
/tmp/ccDJj1kS.s: Assembler messages:
/tmp/ccDJj1kS.s:75: Error: selected processor does not support `vsdot.s8 q15,q12,q10' in ARM mode
/tmp/ccDJj1kS.s:76: Error: selected processor does not support `vsdot.s8 q2,q9,q10' in ARM mode
/tmp/ccDJj1kS.s:77: Error: selected processor does not support `vsdot.s8 q13,q11,q10' in ARM mode
/tmp/ccDJj1kS.s:78: Error: selected processor does not support `vsdot.s8 q3,q8,q10' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49891: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-neondot-ld64.c.o] Error 1
/tmp/ccRqcaMJ.s: Assembler messages:
/tmp/ccRqcaMJ.s:143: Error: selected processor does not support `vsdot.s8 q1,q14,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:146: Error: selected processor does not support `vsdot.s8 q5,q14,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:147: Error: selected processor does not support `vsdot.s8 q15,q14,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:149: Error: selected processor does not support `vsdot.s8 q6,q7,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:151: Error: selected processor does not support `vsdot.s8 q4,q7,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:152: Error: selected processor does not support `vsdot.s8 q0,q7,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:158: Error: selected processor does not support `vsdot.s8 q7,q14,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:159: Error: selected processor does not support `vsdot.s8 q13,q10,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:160: Error: selected processor does not support `vsdot.s8 q12,q14,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:162: Error: selected processor does not support `vsdot.s8 q11,q14,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:163: Error: selected processor does not support `vsdot.s8 q10,q1,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:166: Error: selected processor does not support `vsdot.s8 q14,q1,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:170: Error: selected processor does not support `vsdot.s8 q6,q1,d5[1]' in ARM mode
/tmp/ccRqcaMJ.s:171: Error: selected processor does not support `vsdot.s8 q5,q9,d5[1]' in ARM mode
/tmp/ccRqcaMJ.s:172: Error: selected processor does not support `vsdot.s8 q4,q1,d6[1]' in ARM mode
/tmp/ccRqcaMJ.s:173: Error: selected processor does not support `vsdot.s8 q0,q1,d7[1]' in ARM mode
/tmp/ccRqcaMJ.s:174: Error: selected processor does not support `vsdot.s8 q15,q9,d7[1]' in ARM mode
/tmp/ccRqcaMJ.s:177: Error: selected processor does not support `vsdot.s8 q1,q9,d6[1]' in ARM mode
/tmp/ccRqcaMJ.s:186: Error: selected processor does not support `vsdot.s8 q7,q9,d5[1]' in ARM mode
/tmp/ccRqcaMJ.s:187: Error: selected processor does not support `vsdot.s8 q10,q8,d6[1]' in ARM mode
/tmp/ccRqcaMJ.s:188: Error: selected processor does not support `vsdot.s8 q14,q8,d7[1]' in ARM mode
/tmp/ccRqcaMJ.s:191: Error: selected processor does not support `vsdot.s8 q13,q8,d5[1]' in ARM mode
/tmp/ccRqcaMJ.s:192: Error: selected processor does not support `vsdot.s8 q12,q9,d6[1]' in ARM mode
/tmp/ccRqcaMJ.s:193: Error: selected processor does not support `vsdot.s8 q11,q9,d7[1]' in ARM mode
/tmp/ccRqcaMJ.s:453: Error: selected processor does not support `vsdot.s8 q6,q9,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:454: Error: selected processor does not support `vsdot.s8 q5,q8,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:456: Error: selected processor does not support `vsdot.s8 q4,q9,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:457: Error: selected processor does not support `vsdot.s8 q0,q9,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:458: Error: selected processor does not support `vsdot.s8 q1,q8,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:460: Error: selected processor does not support `vsdot.s8 q15,q8,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:467: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:468: Error: selected processor does not support `vsdot.s8 q12,q9,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:469: Error: selected processor does not support `vsdot.s8 q11,q9,d5[0]' in ARM mode
/tmp/ccRqcaMJ.s:472: Error: selected processor does not support `vsdot.s8 q13,q8,d7[0]' in ARM mode
/tmp/ccRqcaMJ.s:474: Error: selected processor does not support `vsdot.s8 q9,q8,d6[0]' in ARM mode
/tmp/ccRqcaMJ.s:478: Error: selected processor does not support `vsdot.s8 q9,q8,d5[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49961: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-3x16c4-minmax-neondot.c.o] Error 1
/tmp/ccuyJ4D9.s: Assembler messages:
/tmp/ccuyJ4D9.s:64: Error: selected processor does not support `vsdot.s8 q9,q11,d7[0]' in ARM mode
/tmp/ccuyJ4D9.s:66: Error: selected processor does not support `vsdot.s8 q8,q10,d7[0]' in ARM mode
/tmp/ccuyJ4D9.s:69: Error: selected processor does not support `vsdot.s8 q9,q10,d7[1]' in ARM mode
/tmp/ccuyJ4D9.s:73: Error: selected processor does not support `vsdot.s8 q8,q10,d7[1]' in ARM mode
/tmp/ccuyJ4D9.s:130: Error: selected processor does not support `vsdot.s8 q9,q11,d7[0]' in ARM mode
/tmp/ccuyJ4D9.s:132: Error: selected processor does not support `vsdot.s8 q8,q10,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50031: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c4-minmax-neondot.c.o] Error 1
/tmp/ccRNmUcC.s: Assembler messages:
/tmp/ccRNmUcC.s:110: Error: selected processor does not support `vsdot.s8 q4,q11,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:111: Error: selected processor does not support `vsdot.s8 q2,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:112: Error: selected processor does not support `vsdot.s8 q4,q10,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:113: Error: selected processor does not support `vsdot.s8 q2,q8,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:116: Error: selected processor does not support `vsdot.s8 q0,q11,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:117: Error: selected processor does not support `vsdot.s8 q15,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:118: Error: selected processor does not support `vsdot.s8 q0,q10,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:119: Error: selected processor does not support `vsdot.s8 q15,q8,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:123: Error: selected processor does not support `vsdot.s8 q1,q11,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:124: Error: selected processor does not support `vsdot.s8 q14,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:125: Error: selected processor does not support `vsdot.s8 q1,q10,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:126: Error: selected processor does not support `vsdot.s8 q14,q8,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:129: Error: selected processor does not support `vsdot.s8 q13,q11,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:130: Error: selected processor does not support `vsdot.s8 q12,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:131: Error: selected processor does not support `vsdot.s8 q13,q10,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:132: Error: selected processor does not support `vsdot.s8 q12,q8,d7[1]' in ARM mode
/tmp/ccRNmUcC.s:300: Error: selected processor does not support `vsdot.s8 q4,q10,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:301: Error: selected processor does not support `vsdot.s8 q2,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:303: Error: selected processor does not support `vsdot.s8 q0,q10,d6[0]' in ARM mode
/tmp/ccRNmUcC.s:304: Error: selected processor does not support `vsdot.s8 q15,q9,d6[0]' in ARM mode
/tmp/ccRNmUcC.s:305: Error: selected processor does not support `vsdot.s8 q1,q10,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:307: Error: selected processor does not support `vsdot.s8 q13,q10,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:309: Error: selected processor does not support `vsdot.s8 q14,q9,d7[0]' in ARM mode
/tmp/ccRNmUcC.s:311: Error: selected processor does not support `vsdot.s8 q12,q9,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49975: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c4-minmax-neondot.c.o] Error 1
/tmp/ccNllqu0.s: Assembler messages:
/tmp/ccNllqu0.s:176: Error: selected processor does not support `vsdot.s8 q6,q11,d4[0]' in ARM mode
/tmp/ccNllqu0.s:177: Error: selected processor does not support `vsdot.s8 q4,q11,d5[0]' in ARM mode
/tmp/ccNllqu0.s:178: Error: selected processor does not support `vsdot.s8 q15,q11,d6[0]' in ARM mode
/tmp/ccNllqu0.s:179: Error: selected processor does not support `vsdot.s8 q14,q11,d7[0]' in ARM mode
/tmp/ccNllqu0.s:183: Error: selected processor does not support `vsdot.s8 q7,q12,d4[0]' in ARM mode
/tmp/ccNllqu0.s:184: Error: selected processor does not support `vsdot.s8 q5,q12,d5[0]' in ARM mode
/tmp/ccNllqu0.s:186: Error: selected processor does not support `vsdot.s8 q0,q12,d6[0]' in ARM mode
/tmp/ccNllqu0.s:189: Error: selected processor does not support `vsdot.s8 q1,q12,d7[0]' in ARM mode
/tmp/ccNllqu0.s:195: Error: selected processor does not support `vsdot.s8 q9,q11,d5[0]' in ARM mode
/tmp/ccNllqu0.s:196: Error: selected processor does not support `vsdot.s8 q8,q11,d7[0]' in ARM mode
/tmp/ccNllqu0.s:199: Error: selected processor does not support `vsdot.s8 q13,q11,d4[0]' in ARM mode
/tmp/ccNllqu0.s:200: Error: selected processor does not support `vsdot.s8 q12,q10,d4[0]' in ARM mode
/tmp/ccNllqu0.s:203: Error: selected processor does not support `vsdot.s8 q9,q10,d5[0]' in ARM mode
/tmp/ccNllqu0.s:211: Error: selected processor does not support `vsdot.s8 q9,q11,d6[0]' in ARM mode
/tmp/ccNllqu0.s:215: Error: selected processor does not support `vsdot.s8 q9,q10,d7[0]' in ARM mode
/tmp/ccNllqu0.s:221: Error: selected processor does not support `vsdot.s8 q11,q10,d6[0]' in ARM mode
/tmp/ccNllqu0.s:225: Error: selected processor does not support `vsdot.s8 q7,q10,d4[1]' in ARM mode
/tmp/ccNllqu0.s:226: Error: selected processor does not support `vsdot.s8 q5,q10,d5[1]' in ARM mode
/tmp/ccNllqu0.s:227: Error: selected processor does not support `vsdot.s8 q0,q10,d6[1]' in ARM mode
/tmp/ccNllqu0.s:228: Error: selected processor does not support `vsdot.s8 q1,q10,d7[1]' in ARM mode
/tmp/ccNllqu0.s:231: Error: selected processor does not support `vsdot.s8 q6,q9,d4[1]' in ARM mode
/tmp/ccNllqu0.s:232: Error: selected processor does not support `vsdot.s8 q4,q9,d5[1]' in ARM mode
/tmp/ccNllqu0.s:233: Error: selected processor does not support `vsdot.s8 q15,q9,d6[1]' in ARM mode
/tmp/ccNllqu0.s:234: Error: selected processor does not support `vsdot.s8 q14,q9,d7[1]' in ARM mode
/tmp/ccNllqu0.s:240: Error: selected processor does not support `vsdot.s8 q10,q9,d5[1]' in ARM mode
/tmp/ccNllqu0.s:241: Error: selected processor does not support `vsdot.s8 q13,q9,d4[1]' in ARM mode
/tmp/ccNllqu0.s:244: Error: selected processor does not support `vsdot.s8 q12,q8,d4[1]' in ARM mode
/tmp/ccNllqu0.s:245: Error: selected processor does not support `vsdot.s8 q11,q8,d6[1]' in ARM mode
/tmp/ccNllqu0.s:248: Error: selected processor does not support `vsdot.s8 q10,q8,d5[1]' in ARM mode
/tmp/ccNllqu0.s:255: Error: selected processor does not support `vsdot.s8 q10,q9,d6[1]' in ARM mode
/tmp/ccNllqu0.s:260: Error: selected processor does not support `vsdot.s8 q10,q9,d7[1]' in ARM mode
/tmp/ccNllqu0.s:264: Error: selected processor does not support `vsdot.s8 q9,q8,d7[1]' in ARM mode
/tmp/ccNllqu0.s:658: Error: selected processor does not support `vsdot.s8 q7,q9,d7[0]' in ARM mode
/tmp/ccNllqu0.s:659: Error: selected processor does not support `vsdot.s8 q6,q8,d7[0]' in ARM mode
/tmp/ccNllqu0.s:660: Error: selected processor does not support `vsdot.s8 q5,q9,d6[0]' in ARM mode
/tmp/ccNllqu0.s:661: Error: selected processor does not support `vsdot.s8 q4,q8,d6[0]' in ARM mode
/tmp/ccNllqu0.s:665: Error: selected processor does not support `vsdot.s8 q0,q9,d5[0]' in ARM mode
/tmp/ccNllqu0.s:667: Error: selected processor does not support `vsdot.s8 q15,q8,d5[0]' in ARM mode
/tmp/ccNllqu0.s:669: Error: selected processor does not support `vsdot.s8 q1,q9,d4[0]' in ARM mode
/tmp/ccNllqu0.s:670: Error: selected processor does not support `vsdot.s8 q14,q8,d4[0]' in ARM mode
/tmp/ccNllqu0.s:678: Error: selected processor does not support `vsdot.s8 q10,q8,d7[0]' in ARM mode
/tmp/ccNllqu0.s:679: Error: selected processor does not support `vsdot.s8 q13,q9,d7[0]' in ARM mode
/tmp/ccNllqu0.s:684: Error: selected processor does not support `vsdot.s8 q10,q9,d6[0]' in ARM mode
/tmp/ccNllqu0.s:689: Error: selected processor does not support `vsdot.s8 q10,q8,d6[0]' in ARM mode
/tmp/ccNllqu0.s:694: Error: selected processor does not support `vsdot.s8 q10,q9,d5[0]' in ARM mode
/tmp/ccNllqu0.s:699: Error: selected processor does not support `vsdot.s8 q10,q9,d4[0]' in ARM mode
/tmp/ccNllqu0.s:704: Error: selected processor does not support `vsdot.s8 q9,q8,d5[0]' in ARM mode
/tmp/ccNllqu0.s:708: Error: selected processor does not support `vsdot.s8 q9,q8,d4[0]' in ARM mode
/tmp/ccWKfZvp.s: Assembler messages:
/tmp/ccWKfZvp.s:65: Error: selected processor does not support `vsdot.s8 q10,q14,q8' in ARM mode
/tmp/ccWKfZvp.s:68: Error: selected processor does not support `vsdot.s8 q12,q13,q8' in ARM mode
/tmp/ccWKfZvp.s:71: Error: selected processor does not support `vsdot.s8 q9,q13,q8' in ARM mode
/tmp/ccWKfZvp.s:75: Error: selected processor does not support `vsdot.s8 q11,q13,q8' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49989: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c.o] Error 1
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50045: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-neondot-ld64.c.o] Error 1
/tmp/ccw5qRTa.s: Assembler messages:
/tmp/ccw5qRTa.s:183: Error: selected processor does not support `vsdot.s8 q6,q7,d2[0]' in ARM mode
/tmp/ccw5qRTa.s:184: Error: selected processor does not support `vsdot.s8 q4,q7,d3[0]' in ARM mode
/tmp/ccw5qRTa.s:185: Error: selected processor does not support `vsdot.s8 q10,q7,d4[0]' in ARM mode
/tmp/ccw5qRTa.s:186: Error: selected processor does not support `vsdot.s8 q15,q7,d5[0]' in ARM mode
/tmp/ccw5qRTa.s:188: Error: selected processor does not support `vsdot.s8 q11,q7,d6[0]' in ARM mode
/tmp/ccw5qRTa.s:189: Error: selected processor does not support `vsdot.s8 q5,q9,d2[0]' in ARM mode
/tmp/ccw5qRTa.s:190: Error: selected processor does not support `vsdot.s8 q0,q9,d3[0]' in ARM mode
/tmp/ccw5qRTa.s:193: Error: selected processor does not support `vsdot.s8 q10,q9,d4[0]' in ARM mode
/tmp/ccw5qRTa.s:196: Error: selected processor does not support `vsdot.s8 q12,q9,d5[0]' in ARM mode
/tmp/ccw5qRTa.s:197: Error: selected processor does not support `vsdot.s8 q14,q9,d6[0]' in ARM mode
/tmp/ccw5qRTa.s:198: Error: selected processor does not support `vsdot.s8 q13,q9,d7[0]' in ARM mode
/tmp/ccw5qRTa.s:201: Error: selected processor does not support `vsdot.s8 q10,q7,d7[0]' in ARM mode
/tmp/ccw5qRTa.s:206: Error: selected processor does not support `vsdot.s8 q6,q9,d2[1]' in ARM mode
/tmp/ccw5qRTa.s:207: Error: selected processor does not support `vsdot.s8 q5,q8,d2[1]' in ARM mode
/tmp/ccw5qRTa.s:208: Error: selected processor does not support `vsdot.s8 q4,q9,d3[1]' in ARM mode
/tmp/ccw5qRTa.s:209: Error: selected processor does not support `vsdot.s8 q0,q8,d3[1]' in ARM mode
/tmp/ccw5qRTa.s:210: Error: selected processor does not support `vsdot.s8 q10,q9,d7[1]' in ARM mode
/tmp/ccw5qRTa.s:212: Error: selected processor does not support `vsdot.s8 q15,q9,d5[1]' in ARM mode
/tmp/ccw5qRTa.s:213: Error: selected processor does not support `vsdot.s8 q1,q9,d4[1]' in ARM mode
/tmp/ccw5qRTa.s:214: Error: selected processor does not support `vsdot.s8 q12,q8,d5[1]' in ARM mode
/tmp/ccw5qRTa.s:216: Error: selected processor does not support `vsdot.s8 q11,q9,d6[1]' in ARM mode
/tmp/ccw5qRTa.s:217: Error: selected processor does not support `vsdot.s8 q14,q8,d6[1]' in ARM mode
/tmp/ccw5qRTa.s:220: Error: selected processor does not support `vsdot.s8 q13,q8,d7[1]' in ARM mode
/tmp/ccw5qRTa.s:221: Error: selected processor does not support `vsdot.s8 q1,q8,d4[1]' in ARM mode
/tmp/ccw5qRTa.s:513: Error: selected processor does not support `vsdot.s8 q6,q9,d7[0]' in ARM mode
/tmp/ccw5qRTa.s:514: Error: selected processor does not support `vsdot.s8 q5,q8,d7[0]' in ARM mode
/tmp/ccw5qRTa.s:515: Error: selected processor does not support `vsdot.s8 q4,q9,d6[0]' in ARM mode
/tmp/ccw5qRTa.s:516: Error: selected processor does not support `vsdot.s8 q0,q8,d6[0]' in ARM mode
/tmp/ccw5qRTa.s:517: Error: selected processor does not support `vsdot.s8 q15,q9,d4[0]' in ARM mode
/tmp/ccw5qRTa.s:519: Error: selected processor does not support `vsdot.s8 q12,q8,d4[0]' in ARM mode
/tmp/ccw5qRTa.s:520: Error: selected processor does not support `vsdot.s8 q3,q9,d5[0]' in ARM mode
/tmp/ccw5qRTa.s:521: Error: selected processor does not support `vsdot.s8 q11,q9,d3[0]' in ARM mode
/tmp/ccw5qRTa.s:523: Error: selected processor does not support `vsdot.s8 q10,q9,d2[0]' in ARM mode
/tmp/ccw5qRTa.s:524: Error: selected processor does not support `vsdot.s8 q14,q8,d3[0]' in ARM mode
/tmp/ccw5qRTa.s:527: Error: selected processor does not support `vsdot.s8 q13,q8,d2[0]' in ARM mode
/tmp/ccw5qRTa.s:528: Error: selected processor does not support `vsdot.s8 q3,q8,d5[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50003: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x8c4-minmax-neondot.c.o] Error 1
/tmp/cczsG4jB.s: Assembler messages:
/tmp/cczsG4jB.s:76: Error: selected processor does not support `vsdot.s8 q12,q2,q8' in ARM mode
/tmp/cczsG4jB.s:79: Error: selected processor does not support `vsdot.s8 q3,q2,q8' in ARM mode
/tmp/cczsG4jB.s:82: Error: selected processor does not support `vsdot.s8 q11,q2,q8' in ARM mode
/tmp/cczsG4jB.s:85: Error: selected processor does not support `vsdot.s8 q15,q2,q8' in ARM mode
/tmp/cczsG4jB.s:88: Error: selected processor does not support `vsdot.s8 q10,q2,q8' in ARM mode
/tmp/cczsG4jB.s:91: Error: selected processor does not support `vsdot.s8 q14,q2,q8' in ARM mode
/tmp/cczsG4jB.s:94: Error: selected processor does not support `vsdot.s8 q9,q2,q8' in ARM mode
/tmp/cczsG4jB.s:98: Error: selected processor does not support `vsdot.s8 q13,q2,q8' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50073: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-neondot-ld64.c.o] Error 1
/tmp/cchtznlO.s: Assembler messages:
/tmp/cchtznlO.s:236: Error: selected processor does not support `vsdot.s8 q7,q12,d2[0]' in ARM mode
/tmp/cchtznlO.s:238: Error: selected processor does not support `vsdot.s8 q6,q11,d2[0]' in ARM mode
/tmp/cchtznlO.s:240: Error: selected processor does not support `vsdot.s8 q5,q12,d3[0]' in ARM mode
/tmp/cchtznlO.s:242: Error: selected processor does not support `vsdot.s8 q4,q11,d3[0]' in ARM mode
/tmp/cchtznlO.s:245: Error: selected processor does not support `vsdot.s8 q0,q12,d4[0]' in ARM mode
/tmp/cchtznlO.s:246: Error: selected processor does not support `vsdot.s8 q9,q11,d4[0]' in ARM mode
/tmp/cchtznlO.s:247: Error: selected processor does not support `vsdot.s8 q14,q12,d5[0]' in ARM mode
/tmp/cchtznlO.s:250: Error: selected processor does not support `vsdot.s8 q13,q11,d5[0]' in ARM mode
/tmp/cchtznlO.s:251: Error: selected processor does not support `vsdot.s8 q15,q11,d7[0]' in ARM mode
/tmp/cchtznlO.s:255: Error: selected processor does not support `vsdot.s8 q9,q12,d6[0]' in ARM mode
/tmp/cchtznlO.s:261: Error: selected processor does not support `vsdot.s8 q9,q12,d7[0]' in ARM mode
/tmp/cchtznlO.s:267: Error: selected processor does not support `vsdot.s8 q12,q11,d6[0]' in ARM mode
/tmp/cchtznlO.s:274: Error: selected processor does not support `vsdot.s8 q9,q11,d2[0]' in ARM mode
/tmp/cchtznlO.s:275: Error: selected processor does not support `vsdot.s8 q8,q10,d3[0]' in ARM mode
/tmp/cchtznlO.s:281: Error: selected processor does not support `vsdot.s8 q9,q10,d2[0]' in ARM mode
/tmp/cchtznlO.s:286: Error: selected processor does not support `vsdot.s8 q9,q11,d3[0]' in ARM mode
/tmp/cchtznlO.s:291: Error: selected processor does not support `vsdot.s8 q9,q11,d4[0]' in ARM mode
/tmp/cchtznlO.s:296: Error: selected processor does not support `vsdot.s8 q8,q10,d4[0]' in ARM mode
/tmp/cchtznlO.s:301: Error: selected processor does not support `vsdot.s8 q9,q11,d5[0]' in ARM mode
/tmp/cchtznlO.s:306: Error: selected processor does not support `vsdot.s8 q8,q10,d5[0]' in ARM mode
/tmp/cchtznlO.s:311: Error: selected processor does not support `vsdot.s8 q9,q11,d6[0]' in ARM mode
/tmp/cchtznlO.s:316: Error: selected processor does not support `vsdot.s8 q8,q11,d7[0]' in ARM mode
/tmp/cchtznlO.s:321: Error: selected processor does not support `vsdot.s8 q9,q10,d7[0]' in ARM mode
/tmp/cchtznlO.s:329: Error: selected processor does not support `vsdot.s8 q11,q10,d6[0]' in ARM mode
/tmp/cchtznlO.s:335: Error: selected processor does not support `vsdot.s8 q8,q9,d4[1]' in ARM mode
/tmp/cchtznlO.s:336: Error: selected processor does not support `vsdot.s8 q7,q10,d2[1]' in ARM mode
/tmp/cchtznlO.s:339: Error: selected processor does not support `vsdot.s8 q5,q10,d3[1]' in ARM mode
/tmp/cchtznlO.s:340: Error: selected processor does not support `vsdot.s8 q0,q10,d4[1]' in ARM mode
/tmp/cchtznlO.s:341: Error: selected processor does not support `vsdot.s8 q14,q10,d5[1]' in ARM mode
/tmp/cchtznlO.s:344: Error: selected processor does not support `vsdot.s8 q8,q10,d6[1]' in ARM mode
/tmp/cchtznlO.s:347: Error: selected processor does not support `vsdot.s8 q12,q9,d6[1]' in ARM mode
/tmp/cchtznlO.s:348: Error: selected processor does not support `vsdot.s8 q6,q9,d2[1]' in ARM mode
/tmp/cchtznlO.s:349: Error: selected processor does not support `vsdot.s8 q4,q9,d3[1]' in ARM mode
/tmp/cchtznlO.s:352: Error: selected processor does not support `vsdot.s8 q8,q10,d7[1]' in ARM mode
/tmp/cchtznlO.s:353: Error: selected processor does not support `vsdot.s8 q13,q9,d5[1]' in ARM mode
/tmp/cchtznlO.s:356: Error: selected processor does not support `vsdot.s8 q15,q9,d7[1]' in ARM mode
/tmp/cchtznlO.s:367: Error: selected processor does not support `vsdot.s8 q10,q12,d2[1]' in ARM mode
/tmp/cchtznlO.s:368: Error: selected processor does not support `vsdot.s8 q11,q8,d6[1]' in ARM mode
/tmp/cchtznlO.s:372: Error: selected processor does not support `vsdot.s8 q10,q8,d2[1]' in ARM mode
/tmp/cchtznlO.s:377: Error: selected processor does not support `vsdot.s8 q10,q12,d3[1]' in ARM mode
/tmp/cchtznlO.s:382: Error: selected processor does not support `vsdot.s8 q10,q8,d3[1]' in ARM mode
/tmp/cchtznlO.s:387: Error: selected processor does not support `vsdot.s8 q10,q12,d4[1]' in ARM mode
/tmp/cchtznlO.s:392: Error: selected processor does not support `vsdot.s8 q10,q8,d4[1]' in ARM mode
/tmp/cchtznlO.s:397: Error: selected processor does not support `vsdot.s8 q9,q8,d7[1]' in ARM mode
/tmp/cchtznlO.s:404: Error: selected processor does not support `vsdot.s8 q10,q12,d5[1]' in ARM mode
/tmp/cchtznlO.s:409: Error: selected processor does not support `vsdot.s8 q10,q8,d5[1]' in ARM mode
/tmp/cchtznlO.s:414: Error: selected processor does not support `vsdot.s8 q10,q12,d6[1]' in ARM mode
/tmp/cchtznlO.s:419: Error: selected processor does not support `vsdot.s8 q10,q12,d7[1]' in ARM mode
/tmp/cchtznlO.s:1117: Error: selected processor does not support `vsdot.s8 q7,q9,d7[0]' in ARM mode
/tmp/cchtznlO.s:1118: Error: selected processor does not support `vsdot.s8 q6,q8,d7[0]' in ARM mode
/tmp/cchtznlO.s:1119: Error: selected processor does not support `vsdot.s8 q5,q9,d6[0]' in ARM mode
/tmp/cchtznlO.s:1120: Error: selected processor does not support `vsdot.s8 q4,q8,d6[0]' in ARM mode
/tmp/cchtznlO.s:1124: Error: selected processor does not support `vsdot.s8 q12,q8,d5[0]' in ARM mode
/tmp/cchtznlO.s:1126: Error: selected processor does not support `vsdot.s8 q0,q9,d5[0]' in ARM mode
/tmp/cchtznlO.s:1134: Error: selected processor does not support `vsdot.s8 q14,q9,d4[0]' in ARM mode
/tmp/cchtznlO.s:1136: Error: selected processor does not support `vsdot.s8 q13,q8,d4[0]' in ARM mode
/tmp/cchtznlO.s:1140: Error: selected processor does not support `vsdot.s8 q12,q9,d3[0]' in ARM mode
/tmp/cchtznlO.s:1147: Error: selected processor does not support `vsdot.s8 q12,q9,d2[0]' in ARM mode
/tmp/cchtznlO.s:1148: Error: selected processor does not support `vsdot.s8 q15,q8,d2[0]' in ARM mode
/tmp/cchtznlO.s:1151: Error: selected processor does not support `vsdot.s8 q9,q8,d3[0]' in ARM mode
/tmp/cchtznlO.s:1162: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode
/tmp/cchtznlO.s:1166: Error: selected processor does not support `vsdot.s8 q10,q8,d7[0]' in ARM mode
/tmp/cchtznlO.s:1171: Error: selected processor does not support `vsdot.s8 q10,q9,d6[0]' in ARM mode
/tmp/cchtznlO.s:1176: Error: selected processor does not support `vsdot.s8 q10,q8,d6[0]' in ARM mode
/tmp/cchtznlO.s:1181: Error: selected processor does not support `vsdot.s8 q10,q9,d5[0]' in ARM mode
/tmp/cchtznlO.s:1186: Error: selected processor does not support `vsdot.s8 q10,q8,d5[0]' in ARM mode
/tmp/cchtznlO.s:1191: Error: selected processor does not support `vsdot.s8 q10,q9,d4[0]' in ARM mode
/tmp/cchtznlO.s:1196: Error: selected processor does not support `vsdot.s8 q10,q8,d4[0]' in ARM mode
/tmp/cchtznlO.s:1201: Error: selected processor does not support `vsdot.s8 q10,q9,d3[0]' in ARM mode
/tmp/cchtznlO.s:1206: Error: selected processor does not support `vsdot.s8 q10,q9,d2[0]' in ARM mode
/tmp/cchtznlO.s:1211: Error: selected processor does not support `vsdot.s8 q9,q8,d3[0]' in ARM mode
/tmp/cchtznlO.s:1216: Error: selected processor does not support `vsdot.s8 q9,q8,d2[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50017: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-6x16c4-minmax-neondot.c.o] Error 1
/tmp/ccJrNOda.s: Assembler messages:
/tmp/ccJrNOda.s:72: Error: selected processor does not support `vsdot.s8 q8,q13,d7[0]' in ARM mode
/tmp/ccJrNOda.s:74: Error: selected processor does not support `vsdot.s8 q11,q12,d7[0]' in ARM mode
/tmp/ccJrNOda.s:77: Error: selected processor does not support `vsdot.s8 q10,q12,d7[0]' in ARM mode
/tmp/ccJrNOda.s:80: Error: selected processor does not support `vsdot.s8 q9,q12,d7[0]' in ARM mode
/tmp/ccJrNOda.s:83: Error: selected processor does not support `vsdot.s8 q8,q12,d7[1]' in ARM mode
/tmp/ccJrNOda.s:86: Error: selected processor does not support `vsdot.s8 q11,q12,d7[1]' in ARM mode
/tmp/ccJrNOda.s:89: Error: selected processor does not support `vsdot.s8 q10,q12,d7[1]' in ARM mode
/tmp/ccJrNOda.s:93: Error: selected processor does not support `vsdot.s8 q9,q12,d7[1]' in ARM mode
/tmp/ccJrNOda.s:171: Error: selected processor does not support `vsdot.s8 q8,q13,d7[0]' in ARM mode
/tmp/ccJrNOda.s:173: Error: selected processor does not support `vsdot.s8 q11,q12,d7[0]' in ARM mode
/tmp/ccJrNOda.s:176: Error: selected processor does not support `vsdot.s8 q10,q12,d7[0]' in ARM mode
/tmp/ccJrNOda.s:180: Error: selected processor does not support `vsdot.s8 q9,q12,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50059: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c4-minmax-neondot.c.o] Error 1
/tmp/cceW7UTH.s: Assembler messages:
/tmp/cceW7UTH.s:78: Error: selected processor does not support `vsdot.s8 q10,q11,d6[0]' in ARM mode
/tmp/cceW7UTH.s:80: Error: selected processor does not support `vsdot.s8 q13,q12,d6[0]' in ARM mode
/tmp/cceW7UTH.s:84: Error: selected processor does not support `vsdot.s8 q9,q11,d7[0]' in ARM mode
/tmp/cceW7UTH.s:85: Error: selected processor does not support `vsdot.s8 q8,q12,d7[0]' in ARM mode
/tmp/cceW7UTH.s:87: Error: selected processor does not support `vsdot.s8 q13,q11,d6[1]' in ARM mode
/tmp/cceW7UTH.s:89: Error: selected processor does not support `vsdot.s8 q8,q11,d7[1]' in ARM mode
/tmp/cceW7UTH.s:92: Error: selected processor does not support `vsdot.s8 q10,q11,d6[1]' in ARM mode
/tmp/cceW7UTH.s:93: Error: selected processor does not support `vsdot.s8 q9,q11,d7[1]' in ARM mode
/tmp/cceW7UTH.s:168: Error: selected processor does not support `vsdot.s8 q13,q12,d6[0]' in ARM mode
/tmp/cceW7UTH.s:169: Error: selected processor does not support `vsdot.s8 q8,q12,d7[0]' in ARM mode
/tmp/cceW7UTH.s:171: Error: selected processor does not support `vsdot.s8 q10,q11,d6[0]' in ARM mode
/tmp/cceW7UTH.s:172: Error: selected processor does not support `vsdot.s8 q9,q11,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:50087: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o] Error 1
make[2]: Leaving directory '/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk'
make[1]: *** [CMakeFiles/Makefile2:6654: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/all] Error 2
make[1]: Leaving directory '/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk'
make: *** [Makefile:139: all] Error 2
guanghui.wan@rd01:/mnt/fileroot/guanghui.wan/tensorflow/tensorflow$
```
### Relevant log output
```shell
[ 79%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o
cd /mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/_deps/xnnpack-build && /mnt/fileroot/guanghui.wan/nanoQ/Algorithm/tools/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gcc -DEIGEN_MPL2_ONLY -DFXDIV_USE_INLINE_ASSEMBLY=0 -DNOMINMAX=1 -DPTHREADPOOL_NO_DEPRECATED_API=1 -DXNN_ENABLE_ARM_BF16=0 -DXNN_ENABLE_ARM_DOTPROD=1 -DXNN_ENABLE_ARM_FP16_SCALAR=1 -DXNN_ENABLE_ARM_FP16_VECTOR=1 -DXNN_ENABLE_ARM_I8MM=0 -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_CPUINFO=1 -DXNN_ENABLE_DWCONV_MULTIPASS=0 -DXNN_ENABLE_GEMM_M_SPECIALIZATION=1 -DXNN_ENABLE_JIT=0 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_RISCV_VECTOR=1 -DXNN_ENABLE_SPARSE=1 -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/third_party/xla/third_party/tsl -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/xnnpack/src -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/pthreadpool-source/include -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/FXdiv-source/include -I/mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/FP16-source/include -march=armv8-a -mfpu=neon-vfpv4 -funsafe-math-optimizations -mfp16-format=ieee -O3 -DNDEBUG -std=c99 -fPIC -Wno-psabi -O2 -pthread -fno-math-errno -marm -march=armv8.2-a+dotprod -mfpu=neon-fp-armv8 -MD -MT _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o -MF CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o.d -o CMakeFiles/microkernels-all.dir/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c.o -c /mnt/fileroot/guanghui.wan/tensorflow/tensorflow/build_sdk/xnnpack/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-2x8c4-minmax-neondot.c
/tmp/ccrZ5z20.s: Assembler messages:
/tmp/ccrZ5z20.s:75: Error: selected processor does not support `vsdot.s8 q14,q12,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:76: Error: selected processor does not support `vsdot.s8 q10,q9,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:77: Error: selected processor does not support `vsdot.s8 q14,q11,d7[1]' in ARM mode
/tmp/ccrZ5z20.s:78: Error: selected processor does not support `vsdot.s8 q10,q8,d7[1]' in ARM mode
/tmp/ccrZ5z20.s:134: Error: selected processor does not support `vsdot.s8 q14,q9,d7[0]' in ARM mode
/tmp/ccrZ5z20.s:135: Error: selected processor does not support `vsdot.s8 q10,q8,d7[0]' in ARM mode
make[2]: *** [_deps/xnnpack-build/CMakeFiles/microkernels-all.dir/build.make:49877: _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c4-minmax-neondot.c.o] Error 1
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62150/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62150/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62149 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62149/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62149/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62149/events | https://github.com/tensorflow/tensorflow/pull/62149 | 1,949,406,141 | PR_kwDOArmXAs5dH5MV | 62,149 | [TOSA ] Add GELU approximate attr and transform to Tosa | {
"login": "SaoirseARM",
"id": 44364573,
"node_id": "MDQ6VXNlcjQ0MzY0NTcz",
"avatar_url": "https://avatars.githubusercontent.com/u/44364573?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SaoirseARM",
"html_url": "https://github.com/SaoirseARM",
"followers_url": "https://api.github.com/users/SaoirseARM/followers",
"following_url": "https://api.github.com/users/SaoirseARM/following{/other_user}",
"gists_url": "https://api.github.com/users/SaoirseARM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SaoirseARM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaoirseARM/subscriptions",
"organizations_url": "https://api.github.com/users/SaoirseARM/orgs",
"repos_url": "https://api.github.com/users/SaoirseARM/repos",
"events_url": "https://api.github.com/users/SaoirseARM/events{/privacy}",
"received_events_url": "https://api.github.com/users/SaoirseARM/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | open | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rsuderman, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!",
"Hi @rdzhabarov, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!",
"Hi @jpienaar, Can you please review this PR ? Thank you!"
] | 2023-10-18T10:29:02 | 2024-06-07T16:30:24 | null | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62149",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62149",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62149.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62149.patch",
"merged_at": null
} | Hi,
This PR adds check for getApproximateAttr when converting TFL -> TOSA legalization and adds GELU approximation transform.
Thanks,
Saoirse | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62149/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62149/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62148 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62148/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62148/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62148/events | https://github.com/tensorflow/tensorflow/pull/62148 | 1,949,304,137 | PR_kwDOArmXAs5dHisY | 62,148 | Skip buffer contents comparison in bitcast_op_test_cpu for s390x | {
"login": "yasiribmcon",
"id": 107119183,
"node_id": "U_kgDOBmKCTw",
"avatar_url": "https://avatars.githubusercontent.com/u/107119183?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yasiribmcon",
"html_url": "https://github.com/yasiribmcon",
"followers_url": "https://api.github.com/users/yasiribmcon/followers",
"following_url": "https://api.github.com/users/yasiribmcon/following{/other_user}",
"gists_url": "https://api.github.com/users/yasiribmcon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yasiribmcon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yasiribmcon/subscriptions",
"organizations_url": "https://api.github.com/users/yasiribmcon/orgs",
"repos_url": "https://api.github.com/users/yasiribmcon/repos",
"events_url": "https://api.github.com/users/yasiribmcon/events{/privacy}",
"received_events_url": "https://api.github.com/users/yasiribmcon/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 | [
"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/62148/checks?check_run_id=17813806352) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request.",
"Hi @yasiribmcon Can you please sign CLA. Thank you!",
"Hi @gbaned Sorry for the delay, CLA has been signed now!"
] | 2023-10-18T09:37:38 | 2023-11-06T04:53:51 | 2023-11-06T04:53:51 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62148",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62148",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62148.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62148.patch",
"merged_at": "2023-11-06T04:53:51"
} | After PR https://github.com/tensorflow/tensorflow/pull/57069, **bitcast_op_test_cpu** test case started failing for BE machines due to difference in buffer contents.
As per TensorFlow [bitcast](https://www.tensorflow.org/api_docs/python/tf/bitcast#:~:text=Bitcast%20is%20implemented%20as%20a%20low%2Dlevel%20cast%2C%20so%20machines%20with%20different%20endian%20orderings%20will%20give%20different%20results.%20A%20copy%20from%20input%20buffer%20to%20output%20buffer%20is%20made%20on%20BE%20machines%20when%20types%20are%20of%20different%20sizes%20in%20order%20to%20get%20the%20same%20casting%20results%20as%20on%20LE%20machines.) documentation, buffer contents after bitcast operation may differ for BE machines, causing **bitcast_op_test_cpu** to fail.
Hence, skipping buffer content comparison/assert done in bitcast_op_test_cpu for s390x(big-endian).
This code change would not cause any regressions on existing test cases and it won't affect LE machines.
Will rectify below test case for s390x:
`//tensorflow/python/kernel_tests/array_ops:bitcast_op_test_cpu`
Signed-off-by: Yasir Ashfaq <[email protected]> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62148/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62148/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62147 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62147/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62147/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62147/events | https://github.com/tensorflow/tensorflow/issues/62147 | 1,949,165,483 | I_kwDOArmXAs50Leer | 62,147 | TensorFlow Lite - CMake build installable package fail | {
"login": "algat",
"id": 24991147,
"node_id": "MDQ6VXNlcjI0OTkxMTQ3",
"avatar_url": "https://avatars.githubusercontent.com/u/24991147?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/algat",
"html_url": "https://github.com/algat",
"followers_url": "https://api.github.com/users/algat/followers",
"following_url": "https://api.github.com/users/algat/following{/other_user}",
"gists_url": "https://api.github.com/users/algat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/algat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/algat/subscriptions",
"organizations_url": "https://api.github.com/users/algat/orgs",
"repos_url": "https://api.github.com/users/algat/repos",
"events_url": "https://api.github.com/users/algat/events{/privacy}",
"received_events_url": "https://api.github.com/users/algat/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1205765054,
"node_id": "MDU6TGFiZWwxMjA1NzY1MDU0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS",
"name": "subtype:macOS",
"color": "b619ea",
"default": false,
"description": "macOS Build/Installation issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "LakshmiKalaKadali",
"id": 149650845,
"node_id": "U_kgDOCOt9nQ",
"avatar_url": "https://avatars.githubusercontent.com/u/149650845?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LakshmiKalaKadali",
"html_url": "https://github.com/LakshmiKalaKadali",
"followers_url": "https://api.github.com/users/LakshmiKalaKadali/followers",
"following_url": "https://api.github.com/users/LakshmiKalaKadali/following{/other_user}",
"gists_url": "https://api.github.com/users/LakshmiKalaKadali/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LakshmiKalaKadali/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LakshmiKalaKadali/subscriptions",
"organizations_url": "https://api.github.com/users/LakshmiKalaKadali/orgs",
"repos_url": "https://api.github.com/users/LakshmiKalaKadali/repos",
"events_url": "https://api.github.com/users/LakshmiKalaKadali/events{/privacy}",
"received_events_url": "https://api.github.com/users/LakshmiKalaKadali/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "LakshmiKalaKadali",
"id": 149650845,
"node_id": "U_kgDOCOt9nQ",
"avatar_url": "https://avatars.githubusercontent.com/u/149650845?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LakshmiKalaKadali",
"html_url": "https://github.com/LakshmiKalaKadali",
"followers_url": "https://api.github.com/users/LakshmiKalaKadali/followers",
"following_url": "https://api.github.com/users/LakshmiKalaKadali/following{/other_user}",
"gists_url": "https://api.github.com/users/LakshmiKalaKadali/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LakshmiKalaKadali/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LakshmiKalaKadali/subscriptions",
"organizations_url": "https://api.github.com/users/LakshmiKalaKadali/orgs",
"repos_url": "https://api.github.com/users/LakshmiKalaKadali/repos",
"events_url": "https://api.github.com/users/LakshmiKalaKadali/events{/privacy}",
"received_events_url": "https://api.github.com/users/LakshmiKalaKadali/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@algat There could be the following reasons for this specific build failure such as;\r\na. The dependencies would be missing - the libraries such as Flatbuffers, and XNNPACK should be installed properly\r\nb. Incompatible dependencies - the version would be mismatched sometimes which will cause this failure\r\nc. CMake configuration- The right version of CMake along with configuration set up for this should be correct.\r\n\r\nBy seeing your error log we are assuming that the CMake build system is trying to include the header file and to fix this error, you need to set the `INTERFACE_INCLUDE_DIRECTORIES` property to an absolute path. \r\nHope it helps?\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"I confirm that compilation to an installable package on Ubuntu 23.10 is not possible.\r\n\r\n```bash\r\n$ cmake ../tensorflow/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON \\\r\n -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \\\r\n -DSYSTEM_FARMHASH=ON \\\r\n -DSYSTEM_PTHREADPOOL=ON \\\r\n -Dabsl_DIR=/usr/lib/x86_64-linux-gnu/cmake/absl \\\r\n -DEigen3_DIR=/usr/share/eigen3/cmake \\\r\n -DFlatBuffers_DIR=/usr/lib/x86_64-linux-gnu/cmake/flatbuffers \\\r\n -Dgemmlowp_DIR=/usr/lib/x86_64-linux-gnu/cmake/gemmlowp \\\r\n -DNEON_2_SSE_DIR=/usr/lib/cmake/NEON_2_SSE \\\r\n -Dcpuinfo_DIR=/usr/lib/x86_64-linux-gnu/cmake/cpuinfo \\\r\n -Druy_DIR=/usr/lib/x86_64-linux-gnu/cmake/ruy\r\n```\r\n\r\nproduces the following:\r\n\r\n```bash\r\n-- Setting build type to Release, for debug builds use'-DCMAKE_BUILD_TYPE=Debug'.\r\n-- The C compiler identification is GNU 13.2.0\r\n-- The CXX compiler identification is GNU 13.2.0\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working C compiler: /usr/bin/cc - skipped\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Check for working CXX compiler: /usr/bin/c++ - skipped\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD\r\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success\r\n-- Found Threads: TRUE \r\n-- Found farmhash: /usr/lib/x86_64-linux-gnu/libfarmhash.so \r\nCMake Warning (dev) at /usr/share/cmake-3.27/Modules/FetchContent.cmake:1316 (message):\r\n The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is\r\n not set. The policy's OLD behavior will be used. When using a URL\r\n download, the timestamps of extracted files should preferably be that of\r\n the time of extraction, otherwise code that depends on the extracted\r\n contents might not be rebuilt if the URL changes. The OLD behavior\r\n preserves the timestamps from the archive instead, but this is usually not\r\n what you want. Update your project to the NEW behavior or specify the\r\n DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this\r\n robustness issue.\r\nCall Stack (most recent call first):\r\n tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)\r\n tools/cmake/modules/fft2d.cmake:22 (OverridableFetchContent_Declare)\r\n tools/cmake/modules/Findfft2d.cmake:18 (include)\r\n CMakeLists.txt:150 (find_package)\r\nThis warning is for project developers. Use -Wno-dev to suppress it.\r\n\r\n-- The ASM compiler identification is GNU\r\n-- Found assembler: /usr/bin/cc\r\n-- Downloading cpuinfo to /home/me/Documents/GitHub/tflite_build/cpuinfo-source (define CPUINFO_SOURCE_DIR to avoid it)\r\n-- Configuring done (0.0s)\r\n-- Generating done (0.0s)\r\n-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/cpuinfo-download\r\n[ 11%] Creating directories for 'cpuinfo'\r\n[ 22%] Performing download step (download, verify and extract) for 'cpuinfo'\r\n-- Downloading...\r\n dst='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'\r\n timeout='none'\r\n inactivity timeout='none'\r\n-- Using src='https://github.com/pytorch/cpuinfo/archive/959002f82d7962a473d8bf301845f2af720e0aa4.zip'\r\n-- [download 0% complete]\r\n-- [download 1% complete]\r\n-- [download 2% complete]\r\n-- [download 3% complete]\r\n-- [download 4% complete]\r\n-- [download 5% complete]\r\n-- [download 6% complete]\r\n-- [download 7% complete]\r\n-- [download 8% complete]\r\n-- [download 9% complete]\r\n-- [download 10% complete]\r\n-- [download 11% complete]\r\n-- [download 12% complete]\r\n-- [download 13% complete]\r\n-- [download 14% complete]\r\n-- [download 15% complete]\r\n-- [download 16% complete]\r\n-- [download 17% complete]\r\n-- [download 18% complete]\r\n-- [download 19% complete]\r\n-- [download 20% complete]\r\n-- [download 21% complete]\r\n-- [download 22% complete]\r\n-- [download 23% complete]\r\n-- [download 24% complete]\r\n-- [download 25% complete]\r\n-- [download 26% complete]\r\n-- [download 27% complete]\r\n-- [download 28% complete]\r\n-- [download 29% complete]\r\n-- [download 30% complete]\r\n-- [download 31% complete]\r\n-- [download 32% complete]\r\n-- [download 33% complete]\r\n-- [download 34% complete]\r\n-- [download 35% complete]\r\n-- [download 36% complete]\r\n-- [download 37% complete]\r\n-- [download 38% complete]\r\n-- [download 39% complete]\r\n-- [download 40% complete]\r\n-- [download 41% complete]\r\n-- [download 42% complete]\r\n-- [download 43% complete]\r\n-- [download 44% complete]\r\n-- [download 45% complete]\r\n-- [download 46% complete]\r\n-- [download 47% complete]\r\n-- [download 48% complete]\r\n-- [download 49% complete]\r\n-- [download 50% complete]\r\n-- [download 51% complete]\r\n-- [download 52% complete]\r\n-- [download 53% complete]\r\n-- [download 54% complete]\r\n-- [download 55% complete]\r\n-- [download 56% complete]\r\n-- [download 57% complete]\r\n-- [download 58% complete]\r\n-- [download 59% complete]\r\n-- [download 60% complete]\r\n-- [download 61% complete]\r\n-- [download 62% complete]\r\n-- [download 63% complete]\r\n-- [download 64% complete]\r\n-- [download 65% complete]\r\n-- [download 66% complete]\r\n-- [download 67% complete]\r\n-- [download 68% complete]\r\n-- [download 69% complete]\r\n-- [download 70% complete]\r\n-- [download 71% complete]\r\n-- [download 72% complete]\r\n-- [download 73% complete]\r\n-- [download 74% complete]\r\n-- [download 75% complete]\r\n-- [download 76% complete]\r\n-- [download 77% complete]\r\n-- [download 78% complete]\r\n-- [download 79% complete]\r\n-- [download 80% complete]\r\n-- [download 81% complete]\r\n-- [download 82% complete]\r\n-- [download 83% complete]\r\n-- [download 84% complete]\r\n-- [download 85% complete]\r\n-- [download 86% complete]\r\n-- [download 87% complete]\r\n-- [download 88% complete]\r\n-- [download 89% complete]\r\n-- [download 90% complete]\r\n-- [download 91% complete]\r\n-- [download 92% complete]\r\n-- [download 93% complete]\r\n-- [download 94% complete]\r\n-- [download 95% complete]\r\n-- [download 96% complete]\r\n-- [download 97% complete]\r\n-- [download 98% complete]\r\n-- [download 99% complete]\r\n-- [download 100% complete]\r\n-- verifying file...\r\n file='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'\r\n-- Downloading... done\r\n-- extracting...\r\n src='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'\r\n dst='/home/me/Documents/GitHub/tflite_build/cpuinfo-source'\r\n-- extracting... [tar xfz]\r\n-- extracting... [analysis]\r\n-- extracting... [rename]\r\n-- extracting... [clean up]\r\n-- extracting... done\r\n[ 33%] No update step for 'cpuinfo'\r\n[ 44%] No patch step for 'cpuinfo'\r\n[ 55%] No configure step for 'cpuinfo'\r\n[ 66%] No build step for 'cpuinfo'\r\n[ 77%] No install step for 'cpuinfo'\r\n[ 88%] No test step for 'cpuinfo'\r\n[100%] Completed 'cpuinfo'\r\n[100%] Built target cpuinfo\r\n-- Downloading FP16 to /home/me/Documents/GitHub/tflite_build/FP16-source (define FP16_SOURCE_DIR to avoid it)\r\n-- Configuring done (0.0s)\r\n-- Generating done (0.0s)\r\n-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/FP16-download\r\n[ 11%] Creating directories for 'fp16'\r\n[ 22%] Performing download step (download, verify and extract) for 'fp16'\r\n-- Downloading...\r\n dst='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'\r\n timeout='none'\r\n inactivity timeout='none'\r\n-- Using src='https://github.com/Maratyszcza/FP16/archive/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'\r\n-- [download 14% complete]\r\n-- [download 45% complete]\r\n-- [download 88% complete]\r\n-- [download 99% complete]\r\n-- [download 100% complete]\r\n-- verifying file...\r\n file='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'\r\n-- Downloading... done\r\n-- extracting...\r\n src='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'\r\n dst='/home/me/Documents/GitHub/tflite_build/FP16-source'\r\n-- extracting... [tar xfz]\r\n-- extracting... [analysis]\r\n-- extracting... [rename]\r\n-- extracting... [clean up]\r\n-- extracting... done\r\n[ 33%] No update step for 'fp16'\r\n[ 44%] No patch step for 'fp16'\r\n[ 55%] No configure step for 'fp16'\r\n[ 66%] No build step for 'fp16'\r\n[ 77%] No install step for 'fp16'\r\n[ 88%] No test step for 'fp16'\r\n[100%] Completed 'fp16'\r\n[100%] Built target fp16\r\n-- Downloading FXdiv to /home/me/Documents/GitHub/tflite_build/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)\r\n-- Configuring done (0.0s)\r\n-- Generating done (0.0s)\r\n-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/FXdiv-download\r\n[ 11%] Creating directories for 'fxdiv'\r\n[ 22%] Performing download step (download, verify and extract) for 'fxdiv'\r\n-- Downloading...\r\n dst='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'\r\n timeout='none'\r\n inactivity timeout='none'\r\n-- Using src='https://github.com/Maratyszcza/FXdiv/archive/b408327ac2a15ec3e43352421954f5b1967701d1.zip'\r\n-- [download 65% complete]\r\n-- [download 100% complete]\r\n-- verifying file...\r\n file='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'\r\n-- Downloading... done\r\n-- extracting...\r\n src='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'\r\n dst='/home/me/Documents/GitHub/tflite_build/FXdiv-source'\r\n-- extracting... [tar xfz]\r\n-- extracting... [analysis]\r\n-- extracting... [rename]\r\n-- extracting... [clean up]\r\n-- extracting... done\r\n[ 33%] No update step for 'fxdiv'\r\n[ 44%] No patch step for 'fxdiv'\r\n[ 55%] No configure step for 'fxdiv'\r\n[ 66%] No build step for 'fxdiv'\r\n[ 77%] No install step for 'fxdiv'\r\n[ 88%] No test step for 'fxdiv'\r\n[100%] Completed 'fxdiv'\r\n[100%] Built target fxdiv\r\n-- Downloading pthreadpool to /home/me/Documents/GitHub/tflite_build/pthreadpool-source (define PTHREADPOOL_SOURCE_DIR to avoid it)\r\n-- Configuring done (0.0s)\r\n-- Generating done (0.0s)\r\n-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/pthreadpool-download\r\n[ 11%] Creating directories for 'pthreadpool'\r\n[ 22%] Performing download step (download, verify and extract) for 'pthreadpool'\r\n-- Downloading...\r\n dst='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'\r\n timeout='none'\r\n inactivity timeout='none'\r\n-- Using src='https://github.com/Maratyszcza/pthreadpool/archive/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'\r\n-- [download 18% complete]\r\n-- [download 37% complete]\r\n-- [download 56% complete]\r\n-- [download 87% complete]\r\n-- [download 95% complete]\r\n-- [download 100% complete]\r\n-- verifying file...\r\n file='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'\r\n-- Downloading... done\r\n-- extracting...\r\n src='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'\r\n dst='/home/me/Documents/GitHub/tflite_build/pthreadpool-source'\r\n-- extracting... [tar xfz]\r\n-- extracting... [analysis]\r\n-- extracting... [rename]\r\n-- extracting... [clean up]\r\n-- extracting... done\r\n[ 33%] No update step for 'pthreadpool'\r\n[ 44%] No patch step for 'pthreadpool'\r\n[ 55%] No configure step for 'pthreadpool'\r\n[ 66%] No build step for 'pthreadpool'\r\n[ 77%] No install step for 'pthreadpool'\r\n[ 88%] No test step for 'pthreadpool'\r\n[100%] Completed 'pthreadpool'\r\n[100%] Built target pthreadpool\r\nCMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/FP16-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):\r\n Compatibility with CMake < 3.5 will be removed from a future version of\r\n CMake.\r\n\r\n Update the VERSION argument <min> value or use a ...<max> suffix to tell\r\n CMake that the project does not need compatibility with older versions.\r\n\r\n\r\n-- Downloading PSimd to /home/me/Documents/GitHub/tflite_build/psimd-source (define PSIMD_SOURCE_DIR to avoid it)\r\nCMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):\r\n Compatibility with CMake < 3.5 will be removed from a future version of\r\n CMake.\r\n\r\n Update the VERSION argument <min> value or use a ...<max> suffix to tell\r\n CMake that the project does not need compatibility with older versions.\r\n\r\n\r\n-- Configuring done (0.0s)\r\n-- Generating done (0.0s)\r\n-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/psimd-download\r\n[ 11%] Creating directories for 'psimd'\r\n[ 22%] Performing download step (git clone) for 'psimd'\r\nKlone nach 'psimd-source' …\r\nIhr Branch ist auf demselben Stand wie 'origin/master'.\r\nBereits auf 'master'\r\n[ 33%] Performing update step for 'psimd'\r\n[ 44%] No patch step for 'psimd'\r\n[ 55%] No configure step for 'psimd'\r\n[ 66%] No build step for 'psimd'\r\n[ 77%] No install step for 'psimd'\r\n[ 88%] No test step for 'psimd'\r\n[100%] Completed 'psimd'\r\n[100%] Built target psimd\r\nCMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/psimd-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):\r\n Compatibility with CMake < 3.5 will be removed from a future version of\r\n CMake.\r\n\r\n Update the VERSION argument <min> value or use a ...<max> suffix to tell\r\n CMake that the project does not need compatibility with older versions.\r\n\r\n\r\n-- Configuring done (35.6s)\r\nCMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:\r\n Target \"ml_dtypes\" INTERFACE_INCLUDE_DIRECTORIES property contains path:\r\n\r\n \"/home/me/Documents/GitHub/tflite_build/ml_dtypes\"\r\n\r\n which is prefixed in the build directory.\r\n\r\n\r\nCMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:\r\n Target \"ml_dtypes\" INTERFACE_INCLUDE_DIRECTORIES property contains path:\r\n\r\n \"/home/me/Documents/GitHub/tflite_build/ml_dtypes/ml_dtypes\"\r\n\r\n which is prefixed in the build directory.\r\n\r\n\r\nCMake Error: install(EXPORT \"tensorflow-liteTargets\" ...) includes target \"tensorflow-lite\" which requires target \"pthreadpool\" that is not in any export set.\r\nCMake Error: install(EXPORT \"tensorflow-liteTargets\" ...) includes target \"tensorflow-lite\" which requires target \"XNNPACK\" that is not in any export set.\r\n-- Generating done (0.4s)\r\nCMake Generate step failed. Build files cannot be regenerated correctly.\r\n```",
"@algat \r\nThis issue is effectively a duplicate of #62381 .\r\nCan we close this issue here as it is already being tracked there?\r\n\r\n Thank You",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62147\">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/62147\">No</a>\n"
] | 2023-10-18T08:25:53 | 2023-11-30T01:49:33 | 2023-11-30T01:49:20 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.14
### Custom code
No
### OS platform and distribution
Mac Ventura
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
When following https://www.tensorflow.org/lite/guide/build_cmake#build_installable_package to build TensorFlow Lite with CMake, using the flag `-DTFLITE_ENABLE_INSTALL=ON`, a CMake error happens, saying that `the Target ml_dtypes INTERFACE_INCLUDE_DIRECTORIES property contains path: which is prefixed in the build directory.`
### Standalone code to reproduce the issue
```shell
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
mkdir tflite_build
cd tflite_build
cmake ../tensorflow_src/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON
```
### Relevant log output
```shell
CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/Users/me/tf_build/ml_dtypes"
which is prefixed in the build directory.
CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/Users/me/tf_build/ml_dtypes/ml_dtypes"
which is prefixed in the build directory.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62147/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62147/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62146 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62146/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62146/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62146/events | https://github.com/tensorflow/tensorflow/issues/62146 | 1,948,861,315 | I_kwDOArmXAs50KUOD | 62,146 | core dumped with tf.raw_ops.BiasAdd | {
"login": "Gwihwan-Go",
"id": 83144588,
"node_id": "MDQ6VXNlcjgzMTQ0NTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/83144588?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Gwihwan-Go",
"html_url": "https://github.com/Gwihwan-Go",
"followers_url": "https://api.github.com/users/Gwihwan-Go/followers",
"following_url": "https://api.github.com/users/Gwihwan-Go/following{/other_user}",
"gists_url": "https://api.github.com/users/Gwihwan-Go/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Gwihwan-Go/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gwihwan-Go/subscriptions",
"organizations_url": "https://api.github.com/users/Gwihwan-Go/orgs",
"repos_url": "https://api.github.com/users/Gwihwan-Go/repos",
"events_url": "https://api.github.com/users/Gwihwan-Go/events{/privacy}",
"received_events_url": "https://api.github.com/users/Gwihwan-Go/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@sachinprasadhs,\r\nI was able to reproduce the issue on tensorflow v2.14 and [tf-nightly](https://colab.research.google.com/gist/tilakrayal/627c4a38027beada5fb0a4da7bc8e915/untitled1396.ipynb) But whereas in tensorflow v2.13, the colab was unable to get a crash and it was executed with the error. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/f402321fdfdb57589971f9c77e499bb4/untitled1397.ipynb). "
] | 2023-10-18T05:32:47 | 2023-10-19T18:34:37 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
v1.12.1-100714-gd8e55c05473 2.15.0-dev20231005
### Custom code
Yes
### OS platform and distribution
Ubuntu 22.04.3 LTS (x86_64)
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
_No response_
### Current behavior?
core dumped when running tf.raw_ops.BiasAdd with below code.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
args = {'value': tf.random.uniform([8, 2], 0, 256, dtype=tf.int32), 'bias': tf.random.uniform([5],0, 256, dtype=tf.int32), 'data_format': 'NCHW'}
res = tf.raw_ops.BiasAdd(**args)
print(res)
```
### Relevant log output
```shell
2023-10-18 13:29:08.644285: F tensorflow/core/framework/tensor_shape.cc:357] Check failed: d < dims() (2 vs. 2)
Aborted (core dumped)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62146/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62146/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62145 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62145/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62145/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62145/events | https://github.com/tensorflow/tensorflow/issues/62145 | 1,948,342,735 | I_kwDOArmXAs50IVnP | 62,145 | Trying to process RBG images and use RandomContrast: LookupError: gradient registry has no entry for: AdjustContrastv2 | {
"login": "RangaSamudrala",
"id": 31590624,
"node_id": "MDQ6VXNlcjMxNTkwNjI0",
"avatar_url": "https://avatars.githubusercontent.com/u/31590624?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RangaSamudrala",
"html_url": "https://github.com/RangaSamudrala",
"followers_url": "https://api.github.com/users/RangaSamudrala/followers",
"following_url": "https://api.github.com/users/RangaSamudrala/following{/other_user}",
"gists_url": "https://api.github.com/users/RangaSamudrala/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RangaSamudrala/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RangaSamudrala/subscriptions",
"organizations_url": "https://api.github.com/users/RangaSamudrala/orgs",
"repos_url": "https://api.github.com/users/RangaSamudrala/repos",
"events_url": "https://api.github.com/users/RangaSamudrala/events{/privacy}",
"received_events_url": "https://api.github.com/users/RangaSamudrala/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "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 @RangaSamudrala ,\r\n\r\nThe `AdjustContrastV2` Op has no gradient registered. Hence you are getting the error. You can have a look into [source](https://www.tensorflow.org/api_docs/python/tf/raw_ops) here to find the list of Ops and have gradient support or not.",
"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/62145\">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/62145\">No</a>\n"
] | 2023-10-17T21:50:07 | 2023-11-02T01:47:26 | 2023-11-02T01:47:24 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.13.0
### Custom code
Yes
### OS platform and distribution
google collaboration
### Mobile device
_No response_
### Python version
3.10.12
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
T4
### Current behavior?
I see an error when I add RandomContrast layer into the model. Otherwise, it works fine.
### Standalone code to reproduce the issue
```shell
# Clean session
clear_session()
model_6 = Sequential()
model_6.add(Conv2D(filters = 16, kernel_size = (3, 3)
, padding = "same", input_shape = (img_height, img_wdith, 3)
, activation='relu'))
model_6.add(RandomRotation(factor=0.3))
model_6.add(layers.RandomFlip("horizontal_and_vertical"))
model_6.add(MaxPooling2D(pool_size = (2, 2)))
model_6.add(Conv2D(filters = 16, kernel_size = (3, 3) , padding = "same" , activation='relu'))
model_6.add(MaxPooling2D(pool_size = (2, 2)))
# Add batch normalization
batch_normalization = BatchNormalization()
batch_normalization.trainable = True
model_6.add(batch_normalization)
model_6.add(layers.RandomContrast(factor=0.2, seed=11))
model_6.add(Flatten())
# Adding a fully connected dense layer with 256 neurons
model_6.add(Dense(256))
model_6.add(LeakyReLU(0.1))
model_6.add(Dense(num_classes, activation = 'softmax'))
# Printing the model summary
model_6.summary()
```
### Relevant log output
```shell
Epoch 1/20
---------------------------------------------------------------------------
StagingError Traceback (most recent call last)
[<ipython-input-72-d1c53732b3af>](https://39j3jgoo0eu-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20231016-060118_RC00_573771261#) in <cell line: 7>()
5
6 # Fit training dataset to model
----> 7 history_6 = model_6.fit(n_train_ds, validation_data=n_val_ds, epochs=num_epochs, verbose = 1 )
1 frames
[/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/polymorphic_function/autograph_util.py](https://39j3jgoo0eu-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20231016-060118_RC00_573771261#) in autograph_handler(*args, **kwargs)
50 except Exception as e: # pylint:disable=broad-except
51 if hasattr(e, "ag_error_metadata"):
---> 52 raise e.ag_error_metadata.to_exception(e)
53 else:
54 raise
StagingError: in user code:
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1338, in train_function *
return step_function(self, iterator)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1322, in step_function **
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1303, in run_step **
outputs = model.train_step(data)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1084, in train_step
self.optimizer.minimize(loss, self.trainable_variables, tape=tape)
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/optimizer.py", line 543, in minimize
grads_and_vars = self.compute_gradients(loss, var_list, tape)
File "/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/optimizer.py", line 276, in compute_gradients
grads = tape.gradient(loss, var_list)
LookupError: gradient registry has no entry for: AdjustContrastv2
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62145/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62145/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62144 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62144/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62144/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62144/events | https://github.com/tensorflow/tensorflow/pull/62144 | 1,948,275,414 | PR_kwDOArmXAs5dEBg3 | 62,144 | Bump urllib3 from 2.0.6 to 2.0.7 | {
"login": "dependabot[bot]",
"id": 49699333,
"node_id": "MDM6Qm90NDk2OTkzMzM=",
"avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dependabot%5Bbot%5D",
"html_url": "https://github.com/apps/dependabot",
"followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
},
{
"id": 2421643380,
"node_id": "MDU6TGFiZWwyNDIxNjQzMzgw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/dependencies",
"name": "dependencies",
"color": "0366d6",
"default": false,
"description": "Pull requests that update a dependency file"
},
{
"id": 2622893001,
"node_id": "MDU6TGFiZWwyNjIyODkzMDAx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/python",
"name": "python",
"color": "2b67c6",
"default": false,
"description": "Pull requests that update Python code"
}
] | 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-10-17T21:10:26 | 2023-10-23T06:22:12 | 2023-10-23T06:22:10 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62144",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62144",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62144.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62144.patch",
"merged_at": "2023-10-23T06:22:10"
} | Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.6 to 2.0.7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/urllib3/urllib3/releases">urllib3's releases</a>.</em></p>
<blockquote>
<h2>2.0.7</h2>
<ul>
<li>Made body stripped from HTTP requests changing the request method to GET after HTTP 303 "See Other" redirect responses. (GHSA-g4mx-q9vg-27p4)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/urllib3/urllib3/blob/main/CHANGES.rst">urllib3's changelog</a>.</em></p>
<blockquote>
<h1>2.0.7 (2023-10-17)</h1>
<ul>
<li>Made body stripped from HTTP requests changing the request method to GET after HTTP 303 "See Other" redirect responses.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/urllib3/urllib3/commit/56f01e088dc006c03d4ee6ea9da4ab810f1ed700"><code>56f01e0</code></a> Release 2.0.7</li>
<li><a href="https://github.com/urllib3/urllib3/commit/4e50fbc5db74e32cabd5ccc1ab81fc103adfe0b3"><code>4e50fbc</code></a> Merge pull request from GHSA-g4mx-q9vg-27p4</li>
<li><a href="https://github.com/urllib3/urllib3/commit/80808b04bfa68fbd099828848c96ee25df185f1d"><code>80808b0</code></a> Fix docs build on Python 3.12 (<a href="https://redirect.github.com/urllib3/urllib3/issues/3144">#3144</a>)</li>
<li><a href="https://github.com/urllib3/urllib3/commit/f28deff1cf162c673b50d88d3552e91bda6d68a8"><code>f28deff</code></a> Add 1.26.17 to the current changelog</li>
<li>See full diff in <a href="https://github.com/urllib3/urllib3/compare/2.0.6...2.0.7">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/tensorflow/tensorflow/network/alerts).
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62144/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62144/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62143 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62143/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62143/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62143/events | https://github.com/tensorflow/tensorflow/pull/62143 | 1,948,149,693 | PR_kwDOArmXAs5dDluN | 62,143 | Update numerical_utils.cc | {
"login": "gautam1858",
"id": 4949778,
"node_id": "MDQ6VXNlcjQ5NDk3Nzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4949778?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gautam1858",
"html_url": "https://github.com/gautam1858",
"followers_url": "https://api.github.com/users/gautam1858/followers",
"following_url": "https://api.github.com/users/gautam1858/following{/other_user}",
"gists_url": "https://api.github.com/users/gautam1858/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gautam1858/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gautam1858/subscriptions",
"organizations_url": "https://api.github.com/users/gautam1858/orgs",
"repos_url": "https://api.github.com/users/gautam1858/repos",
"events_url": "https://api.github.com/users/gautam1858/events{/privacy}",
"received_events_url": "https://api.github.com/users/gautam1858/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-17T19:57:19 | 2023-10-20T14:59:51 | 2023-10-20T14:59:51 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62143",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62143",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62143.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62143.patch",
"merged_at": "2023-10-20T14:59:51"
} | 1. Used descriptive variable names. Rdename the q_fixed variable to quantized_multiplier.
2. To Check for errors. For example, check that the shift amount is not greater than 31 or less than -31. If it is, return an error instead of converting the multiplier to zero.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62143/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62143/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62142 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62142/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62142/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62142/events | https://github.com/tensorflow/tensorflow/issues/62142 | 1,947,958,524 | I_kwDOArmXAs50G3z8 | 62,142 | core dumped with Conv2DBackpropFilter | {
"login": "Gwihwan-Go",
"id": 83144588,
"node_id": "MDQ6VXNlcjgzMTQ0NTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/83144588?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Gwihwan-Go",
"html_url": "https://github.com/Gwihwan-Go",
"followers_url": "https://api.github.com/users/Gwihwan-Go/followers",
"following_url": "https://api.github.com/users/Gwihwan-Go/following{/other_user}",
"gists_url": "https://api.github.com/users/Gwihwan-Go/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Gwihwan-Go/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gwihwan-Go/subscriptions",
"organizations_url": "https://api.github.com/users/Gwihwan-Go/orgs",
"repos_url": "https://api.github.com/users/Gwihwan-Go/repos",
"events_url": "https://api.github.com/users/Gwihwan-Go/events{/privacy}",
"received_events_url": "https://api.github.com/users/Gwihwan-Go/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
}
] | 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 | [
"@GwiHwan-Go I tried to replicate the issue reported in both TF [v2.14](https://colab.research.google.com/gist/sushreebarsa/4303b9fd7d7e08b6e3d08631d24c9fcd/62142.ipynb#scrollTo=n-zt9Xm8Z7oy) , tf-[nightly](https://colab.research.google.com/gist/sushreebarsa/3260a844f3a8be89da01fce7e053ffbd/untitled890.ipynb#scrollTo=n-zt9Xm8Z7oy) and didn't face the error reported. Could you please have a look at this gists and confirm the same? The error log is attached below;\r\n```\r\n**InvalidArgumentError Traceback (most recent call last)\r\n[<ipython-input-2-b326ca390b51>](https://localhost:8080/#) in <cell line: 10>()\r\n 8 'padding': 'VALID', 'strides': [3],\r\n 9 'use_cudnn_on_gpu': True}\r\n---> 10 res = tf.raw_ops.Conv2DBackpropFilter(**args)\r\n 11 print(res)\r\n\r\n3 frames\r\n[/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/execute.py](https://localhost:8080/#) in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)\r\n 51 try:\r\n 52 ctx.ensure_initialized()\r\n---> 53 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,\r\n 54 inputs, attrs, num_outputs)\r\n 55 except core._NotOkStatusException as e:\r\n\r\nInvalidArgumentError: {{function_node __wrapped__Conv2DBackpropFilter_device_/job:localhost/replica:0/task:0/device:CPU:0}} Sliding window strides field must specify 4 dimensions [Op:Conv2DBackpropFilter]**\r\n```\r\nThank you!",
"I've upgraded TensorFlow from version v1.12.1-100714-gd8e55c05473 to 2.15.0-dev20231005, as indicated in the logs below. Despite the upgrade, I'm still encountering a \"core dumped\" error, also provided below.\r\n```\r\n023-10-18 15:47:55.233348: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\r\n2023-10-18 15:47:55.233380: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\r\n2023-10-18 15:47:55.234739: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\r\n2023-10-18 15:47:55.242401: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-10-18 15:47:56.170911: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-10-18 15:47:58.000540: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 727 MB memory: -> device: 0, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:02:00.0, compute capability: 7.5\r\n2023-10-18 15:47:58.001140: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 6732 MB memory: -> device: 1, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:04:00.0, compute capability: 7.5\r\n2023-10-18 15:47:58.001643: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 6732 MB memory: -> device: 2, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:83:00.0, compute capability: 7.5\r\n2023-10-18 15:47:58.002156: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 6732 MB memory: -> device: 3, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:84:00.0, compute capability: 7.5\r\ntf version : 2.15.0-dev20231005\r\n2023-10-18 15:47:58.050863: F ./tensorflow/core/util/tensor_format.h:428] Check failed: index >= 0 && index < num_total_dims Invalid index from the dimension: 3, 0, C\r\nAborted (core dumped)\r\n```\r\nThis is my other environment information :\r\n\r\nCUDA used to build PyTorch: 11.8\r\nROCM used to build PyTorch: N/A\r\n\r\nOS: Ubuntu 22.04.3 LTS (x86_64)\r\nGCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\r\nClang version: Could not collect\r\nCMake version: version 3.22.1\r\nLibc version: glibc-2.35\r\n\r\nPython version: 3.9.17 (main, Jul 5 2023, 20:41:20) [GCC 11.2.0] (64-bit runtime)\r\nPython platform: Linux-5.15.0-86-generic-x86_64-with-glibc2.35\r\nIs CUDA available: True\r\nCUDA runtime version: 12.1.105\r\nCUDA_MODULE_LOADING set to: LAZY\r\nGPU models and configuration: \r\nGPU 0: NVIDIA GeForce RTX 2070\r\nGPU 1: NVIDIA GeForce RTX 2070\r\nGPU 2: NVIDIA GeForce RTX 2070\r\nGPU 3: NVIDIA GeForce RTX 2070\r\n\r\nNvidia driver version: 535.104.12\r\ncuDNN version: Could not collect\r\nHIP runtime version: N/A\r\nMIOpen runtime version: N/A\r\nIs XNNPACK available: True\r\n\r\nCPU:\r\nArchitecture: x86_64\r\nCPU op-mode(s): 32-bit, 64-bit\r\nAddress sizes: 46 bits physical, 48 bits virtual\r\nByte Order: Little Endian\r\nCPU(s): 32\r\nOn-line CPU(s) list: 0-31\r\nVendor ID: GenuineIntel\r\nModel name: Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz\r\nCPU family: 6\r\nModel: 63\r\nThread(s) per core: 2\r\nCore(s) per socket: 8\r\nSocket(s): 2\r\nStepping: 2\r\nCPU max MHz: 3200.0000\r\nCPU min MHz: 1200.0000\r\nBogoMIPS: 4793.99\r\nFlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d\r\nVirtualization: VT-x\r\nL1d cache: 512 KiB (16 instances)\r\nL1i cache: 512 KiB (16 instances)\r\nL2 cache: 4 MiB (16 instances)\r\nL3 cache: 40 MiB (2 instances)\r\nNUMA node(s): 2\r\nNUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30\r\nNUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31\r\nVulnerability Gather data sampling: Not affected\r\nVulnerability Itlb multihit: KVM: Mitigation: VMX disabled\r\nVulnerability L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable\r\nVulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable\r\nVulnerability Meltdown: Mitigation; PTI\r\nVulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable\r\nVulnerability Retbleed: Not affected\r\nVulnerability Spec rstack overflow: Not affected\r\nVulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp\r\nVulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization\r\nVulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling, PBRSB-eIBRS Not affected\r\nVulnerability Srbds: Not affected\r\nVulnerability Tsx async abort: Not affected\r\n\r\nVersions of relevant libraries:\r\n[pip3] numpy==1.24.3\r\n",
"@GwiHwan-Go I was able to replicate the issue on colab, please find the [gist](https://colab.research.google.com/gist/sushreebarsa/e894b385f0fa20e264f16c2923df4ab8/62142.ipynb) here.\r\n@sachinprasadhs Could you please have a look at this issue?\r\nThank you!",
"What is the purpose of this bug report? If it's to report a security issue see the [security policy](https://github.com/tensorflow/tensorflow/security/policy) and report through the proper channel.",
"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/62142\">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/62142\">No</a>\n"
] | 2023-10-17T17:58:27 | 2024-02-23T03:51:27 | 2024-02-23T00:52:44 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
v1.12.1-100714-gd8e55c05473 2.15.0-dev20231005
### Custom code
Yes
### OS platform and distribution
Ubuntu 22.04.3 LTS (x86_64)
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
_No response_
### Current behavior?
core dumped error with specific input parameters.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
args = {'data_format': 'NHWC',
'dilations': [1],
'explicit_paddings': [2],
'filter_sizes': [3],
'input': tf.random.normal([2, 7]),
'out_backprop': tf.random.normal([10]),
'padding': 'VALID', 'strides': [3],
'use_cudnn_on_gpu': True}
res = tf.raw_ops.Conv2DBackpropFilter(**args)
print(res)
```
### Relevant log output
```shell
2023-10-18 01:54:46.384973: F ./tensorflow/core/util/tensor_format.h:428] Check failed: index >= 0 && index < num_total_dims Invalid index from the dimension: 3, 0, C
Aborted (core dumped)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62142/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62142/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62141 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62141/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62141/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62141/events | https://github.com/tensorflow/tensorflow/pull/62141 | 1,947,914,345 | PR_kwDOArmXAs5dCy1X | 62,141 | r2.15 cherry-pick: dc805474308 "Override boringssl static linking by explicitly importing openssl" | {
"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-10-17T17:28:39 | 2023-10-17T17:36:07 | 2023-10-17T17:36:06 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62141",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62141",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62141.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62141.patch",
"merged_at": "2023-10-17T17:36:06"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/dc805474308d1c5563844c6442ca195e251d17f6 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62141/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62141/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62140 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62140/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62140/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62140/events | https://github.com/tensorflow/tensorflow/issues/62140 | 1,947,579,672 | I_kwDOArmXAs50FbUY | 62,140 | core dumped Error with tf.raw_ops.BiasAddGrad | {
"login": "Gwihwan-Go",
"id": 83144588,
"node_id": "MDQ6VXNlcjgzMTQ0NTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/83144588?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Gwihwan-Go",
"html_url": "https://github.com/Gwihwan-Go",
"followers_url": "https://api.github.com/users/Gwihwan-Go/followers",
"following_url": "https://api.github.com/users/Gwihwan-Go/following{/other_user}",
"gists_url": "https://api.github.com/users/Gwihwan-Go/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Gwihwan-Go/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gwihwan-Go/subscriptions",
"organizations_url": "https://api.github.com/users/Gwihwan-Go/orgs",
"repos_url": "https://api.github.com/users/Gwihwan-Go/repos",
"events_url": "https://api.github.com/users/Gwihwan-Go/events{/privacy}",
"received_events_url": "https://api.github.com/users/Gwihwan-Go/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"
}
] | 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 | [
"@GwiHwan-Go I tried with the latest TF version 2.14 and the result is as shown in the below;\r\n```\r\ntf.Tensor(\r\n[ 1.6422114 0.17947054 -1.2081759 -1.3383625 0.62573224 1.6191798\r\n -0.49271154], shape=(7,), dtype=float32)\r\n[ ]\r\n\r\n```\r\nCould you please have a look at the [gist](https://colab.research.google.com/gist/sushreebarsa/59bba6ef2eb918b41d4b2e0d85961e33/62140.ipynb) and confirm the same?\r\nThank you!",
"I've upgraded TensorFlow from version v1.12.1-100714-gd8e55c05473 to 2.15.0-dev20231005, as indicated in the logs below. Despite the upgrade, I'm still encountering a \"core dumped\" error, also provided below.\r\n```\r\nTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-10-20 13:47:43.827420: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2.15.0-dev20231005\r\n2023-10-20 13:47:45.912409: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 3554 MB memory: -> device: 0, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:02:00.0, compute capability: 7.5\r\n2023-10-20 13:47:45.913276: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 6826 MB memory: -> device: 1, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:04:00.0, compute capability: 7.5\r\n2023-10-20 13:47:45.914124: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 6826 MB memory: -> device: 2, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:83:00.0, compute capability: 7.5\r\n2023-10-20 13:47:45.914841: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 6826 MB memory: -> device: 3, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:84:00.0, compute capability: 7.5\r\n2023-10-20 13:47:46.023909: F tensorflow/core/framework/tensor_shape.cc:357] Check failed: d < dims() (2 vs. 2)\r\nAborted (core dumped)\r\n```\r\nThis is my other environment information :\r\n\r\nCUDA used to build PyTorch: 11.8\r\nROCM used to build PyTorch: N/A\r\n\r\nOS: Ubuntu 22.04.3 LTS (x86_64)\r\nGCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\r\nClang version: Could not collect\r\nCMake version: version 3.22.1\r\nLibc version: glibc-2.35\r\n\r\nPython version: 3.9.17 (main, Jul 5 2023, 20:41:20) [GCC 11.2.0] (64-bit runtime)\r\nPython platform: Linux-5.15.0-86-generic-x86_64-with-glibc2.35\r\nIs CUDA available: True\r\nCUDA runtime version: 12.1.105\r\nCUDA_MODULE_LOADING set to: LAZY\r\nGPU models and configuration:\r\nGPU 0: NVIDIA GeForce RTX 2070\r\nGPU 1: NVIDIA GeForce RTX 2070\r\nGPU 2: NVIDIA GeForce RTX 2070\r\nGPU 3: NVIDIA GeForce RTX 2070\r\n\r\nNvidia driver version: 535.104.12\r\ncuDNN version: Could not collect\r\nHIP runtime version: N/A\r\nMIOpen runtime version: N/A\r\nIs XNNPACK available: True\r\n\r\nCPU:\r\nArchitecture: x86_64\r\nCPU op-mode(s): 32-bit, 64-bit\r\nAddress sizes: 46 bits physical, 48 bits virtual\r\nByte Order: Little Endian\r\nCPU(s): 32\r\nOn-line CPU(s) list: 0-31\r\nVendor ID: GenuineIntel\r\nModel name: Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz\r\nCPU family: 6\r\nModel: 63\r\nThread(s) per core: 2\r\nCore(s) per socket: 8\r\nSocket(s): 2\r\nStepping: 2\r\nCPU max MHz: 3200.0000\r\nCPU min MHz: 1200.0000\r\nBogoMIPS: 4793.99\r\nFlags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d\r\nVirtualization: VT-x\r\nL1d cache: 512 KiB (16 instances)\r\nL1i cache: 512 KiB (16 instances)\r\nL2 cache: 4 MiB (16 instances)\r\nL3 cache: 40 MiB (2 instances)\r\nNUMA node(s): 2\r\nNUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30\r\nNUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31\r\nVulnerability Gather data sampling: Not affected\r\nVulnerability Itlb multihit: KVM: Mitigation: VMX disabled\r\nVulnerability L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable\r\nVulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable\r\nVulnerability Meltdown: Mitigation; PTI\r\nVulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable\r\nVulnerability Retbleed: Not affected\r\nVulnerability Spec rstack overflow: Not affected\r\nVulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp\r\nVulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization\r\nVulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling, PBRSB-eIBRS Not affected\r\nVulnerability Srbds: Not affected\r\nVulnerability Tsx async abort: Not affected\r\n\r\nVersions of relevant libraries:\r\n[pip3] numpy==1.24.3",
"@GwiHwan-Go I haven't faced this issue while using TF v2.14 as shown in my comment above. tf.raw_ops.BiasAddGrad was introduced in TensorFlow 2.14.0, so you need to use at least that version to use it. Sometimes due to invalid arguments will be causing such issues. Please make sure you have enough memory or disk space available to avoid such situations. Thank you! ",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62140\">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/62140\">No</a>\n"
] | 2023-10-17T14:32:50 | 2023-11-17T01:49:17 | 2023-11-17T01:49:13 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
v1.12.1-100714-gd8e55c05473 2.15.0-dev20231005
### Custom code
Yes
### OS platform and distribution
Ubuntu 22.04.3 LTS (x86_64)
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
_No response_
### Current behavior?
Description:
While using the tf.raw_ops.BiasAddGrad operation, I encountered a core dumped error with specific input parameters.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
args = {'out_backprop': tf.random.normal([2, 7]), 'data_format': 'NCHW'}
res = tf.raw_ops.BiasAddGrad(**args)
print(res)
```
### Relevant log output
```shell
2023-10-17 22:20:54.530750: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-10-17 22:20:56.422509: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 733 MB memory: -> device: 0, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:02:00.0, compute capability: 7.5
2023-10-17 22:20:56.423111: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 6732 MB memory: -> device: 1, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:04:00.0, compute capability: 7.5
2023-10-17 22:20:56.423635: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 6732 MB memory: -> device: 2, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:83:00.0, compute capability: 7.5
2023-10-17 22:20:56.424135: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 6732 MB memory: -> device: 3, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:84:00.0, compute capability: 7.5
2023-10-17 22:20:56.471424: F tensorflow/core/framework/tensor_shape.cc:357] Check failed: d < dims() (2 vs. 2)
Aborted (core dumped)
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62140/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62140/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62139 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62139/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62139/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62139/events | https://github.com/tensorflow/tensorflow/pull/62139 | 1,947,562,782 | PR_kwDOArmXAs5dBmjl | 62,139 | fix cos op for nnapi delegate | {
"login": "freedomtan",
"id": 3395998,
"node_id": "MDQ6VXNlcjMzOTU5OTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3395998?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/freedomtan",
"html_url": "https://github.com/freedomtan",
"followers_url": "https://api.github.com/users/freedomtan/followers",
"following_url": "https://api.github.com/users/freedomtan/following{/other_user}",
"gists_url": "https://api.github.com/users/freedomtan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/freedomtan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/freedomtan/subscriptions",
"organizations_url": "https://api.github.com/users/freedomtan/orgs",
"repos_url": "https://api.github.com/users/freedomtan/repos",
"events_url": "https://api.github.com/users/freedomtan/events{/privacy}",
"received_events_url": "https://api.github.com/users/freedomtan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-17T14:25:32 | 2023-10-23T05:41:35 | 2023-10-23T05:41:35 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62139",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62139",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62139.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62139.patch",
"merged_at": "2023-10-23T05:41:35"
} | fix #62091
Still convert cos to sin with $cos(x) = sin(\frac{\pi}{2} - x)$
But since input tensor is not available when `TransformCosIntoSupportedOps()` is called, we should do `sub` then `sin` instead of manipulating the input tensor as suggested by in #62091
Tested on Pixel 8 Pro.
When tested with `nnapi_delegate_test` built with
```
$ bazel build --config android_arm64 //tensorflow/lite/delegates/nnapi:nnapi_delegate_test
```
before this PR.
```
husky:/data/local/tmp $ ./nnapi_delegate_test --gtest_filter=Elementwise.Cos
Running main() from gmock_main.cc
Note: Google Test filter = Elementwise.Cos
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Elementwise
[ RUN ] Elementwise.Cos
INFO: Initialized TensorFlow Lite runtime.
INFO: Created TensorFlow Lite delegate for NNAPI.
WARN: Having a manually-set TfLite delegate, and bypassing KernelTestDelegateProviders
VERBOSE: Replacing 1 out of 1 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 1 partitions for the whole graph.
ERROR: NN API returned error ANEURALNETWORKS_BAD_DATA at line 6290 while identifying model inputs and outputs.
ERROR: Node number 1 (TfLiteNnapiDelegate) failed to prepare.
ERROR: Restored original execution plan after delegate application failure.
[ OK ] Elementwise.Cos (78 ms)
[----------] 1 test from Elementwise (79 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (79 ms total)
[ PASSED ] 1 test.
husky:/data/local/tmp $
```
after
```
husky:/data/local/tmp $ ./nnapi_delegate_test --gtest_filter=Elementwise.Cos
Running main() from gmock_main.cc
Note: Google Test filter = Elementwise.Cos
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Elementwise
[ RUN ] Elementwise.Cos
INFO: Initialized TensorFlow Lite runtime.
INFO: Created TensorFlow Lite delegate for NNAPI.
WARN: Having a manually-set TfLite delegate, and bypassing KernelTestDelegateProviders
VERBOSE: Replacing 1 out of 1 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 1 partitions for the whole graph.
[ OK ] Elementwise.Cos (83 ms)
[----------] 1 test from Elementwise (84 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (84 ms total)
[ PASSED ] 1 test.
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62139/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62139/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62138 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62138/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62138/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62138/events | https://github.com/tensorflow/tensorflow/issues/62138 | 1,947,405,276 | I_kwDOArmXAs50Ewvc | 62,138 | Incorrect calculation of cropping indices | {
"login": "rafaelubalmw",
"id": 133914350,
"node_id": "U_kgDOB_te7g",
"avatar_url": "https://avatars.githubusercontent.com/u/133914350?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rafaelubalmw",
"html_url": "https://github.com/rafaelubalmw",
"followers_url": "https://api.github.com/users/rafaelubalmw/followers",
"following_url": "https://api.github.com/users/rafaelubalmw/following{/other_user}",
"gists_url": "https://api.github.com/users/rafaelubalmw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rafaelubalmw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rafaelubalmw/subscriptions",
"organizations_url": "https://api.github.com/users/rafaelubalmw/orgs",
"repos_url": "https://api.github.com/users/rafaelubalmw/repos",
"events_url": "https://api.github.com/users/rafaelubalmw/events{/privacy}",
"received_events_url": "https://api.github.com/users/rafaelubalmw/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"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@rafaelubalmw,\r\nCould you please provide some more information and the usecase to analyse the issue in an effective way. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-10-17T13:16:22 | 2023-11-02T01:47:26 | 2023-11-02T01:47:26 | NONE | null | null | null | https://github.com/tensorflow/tensorflow/blob/b2a7a25d102fec8fc7e3690218b627738d8a6fc2/tensorflow/compiler/mlir/tosa/transforms/legalize_common.cc#L1234
Should be:
```
int crops_lo = crops_const[i * 2 + 0];
int crops_hi = crops_const[i * 2 + 1];
```
The tests happen to cover only the case in which `crops_dims` is 2, so the bug is hidden. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62138/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62138/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62137 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62137/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62137/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62137/events | https://github.com/tensorflow/tensorflow/issues/62137 | 1,947,349,454 | I_kwDOArmXAs50EjHO | 62,137 | relu provide wrong / inconsistent result for tensorflow-macos 2.14.0. | {
"login": "MKrbm",
"id": 57752203,
"node_id": "MDQ6VXNlcjU3NzUyMjAz",
"avatar_url": "https://avatars.githubusercontent.com/u/57752203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MKrbm",
"html_url": "https://github.com/MKrbm",
"followers_url": "https://api.github.com/users/MKrbm/followers",
"following_url": "https://api.github.com/users/MKrbm/following{/other_user}",
"gists_url": "https://api.github.com/users/MKrbm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MKrbm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MKrbm/subscriptions",
"organizations_url": "https://api.github.com/users/MKrbm/orgs",
"repos_url": "https://api.github.com/users/MKrbm/repos",
"events_url": "https://api.github.com/users/MKrbm/events{/privacy}",
"received_events_url": "https://api.github.com/users/MKrbm/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": 1205765054,
"node_id": "MDU6TGFiZWwxMjA1NzY1MDU0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:macOS",
"name": "subtype:macOS",
"color": "b619ea",
"default": false,
"description": "macOS Build/Installation issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @MKrbm ,\r\n\r\nThanks for reaching us. `tensorflow-macos` is built and maintained by Apple. I hope you have followed the metal plugin instructions [here](https://developer.apple.com/metal/tensorflow-plugin/). As this works fine on Colab(Linux) and the issue persists on only Mac M1, I request you to raise an issue with apple developer forum [here](https://developer.apple.com/forums/tags/tensorflow-metal/).\r\n\r\n@kulinseth , Do you have any pointers here?",
"@SuryanarayanaY Yes, I indeed followd the instructions. I will raisean issue there as you suggested. Thank you.\r\n",
"Hi @MKrbm ,\r\n\r\nCOuld you checked the issue with latest Keras3 versions either 3.0.4 or keras-nightly and let us know the result?",
"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/62137\">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/62137\">No</a>\n"
] | 2023-10-17T12:49:02 | 2024-02-14T01:47:23 | 2024-02-14T01:47:21 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.14
### Custom code
No
### OS platform and distribution
macOS 14.0
### Mobile device
_No response_
### Python version
3.11 / 3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
Apple m1 16GB
### Current behavior?
I was playing with https://www.tensorflow.org/tutorials/generative/autoencoder and I found the results of autoencoder were completely inconsistent between when I run this on **google colab** and my own **m1 macbook**.
Concrete problems are
1. Result image of first AE ( basic autoencoder) doesn't make sense at all.
<img width="892" alt="Screenshot 2023-10-17 at 14 37 31" src="https://github.com/tensorflow/tensorflow/assets/57752203/49a56138-faf0-4f31-813d-53b97a3fa99f">
2. Displayed loss value is quite different from when I test after training. (See below sc)
local
<img width="1034" alt="Screenshot 2023-10-17 at 14 40 41" src="https://github.com/tensorflow/tensorflow/assets/57752203/e5c15d6c-83c1-46db-9748-0a1240a550c0">
colab
<img width="1398" alt="image" src="https://github.com/tensorflow/tensorflow/assets/57752203/03cdb403-6b72-4c70-b6ae-280a6f9aaf59">
3. When I use `elu` instead of `relu`, problems were solved.
<img width="1022" alt="Screenshot 2023-10-17 at 14 47 36" src="https://github.com/tensorflow/tensorflow/assets/57752203/1ae8274d-e302-4488-8a07-c2312df8426d">
<img width="971" alt="image" src="https://github.com/tensorflow/tensorflow/assets/57752203/f828d8a1-706a-4bef-90c3-8dec9dee0194">
Is `relu` not recommended for tensorflor-macos right now?
### Standalone code to reproduce the issue
```shell
You can directy use notebook from google colab.
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62137/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62137/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62136 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62136/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62136/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62136/events | https://github.com/tensorflow/tensorflow/issues/62136 | 1,947,056,544 | I_kwDOArmXAs50Dbmg | 62,136 | Build broken for AARCH64 by XLA PJRT | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 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": 1205615612,
"node_id": "MDU6TGFiZWwxMjA1NjE1NjEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux",
"name": "subtype: ubuntu/linux",
"color": "b619ea",
"default": false,
"description": "Ubuntu/Linux Build/Installation Issues"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Broken commit was reverted by https://github.com/tensorflow/tensorflow/commit/341a0320140f94a57eb81bbba8f70615afca161e",
"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/62136\">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/62136\">No</a>\n"
] | 2023-10-17T10:11:33 | 2023-10-18T09:27:43 | 2023-10-18T09:27:40 | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
git HEAD
### Custom code
No
### OS platform and distribution
Ubuntu 20.04
### Mobile device
n/a
### Python version
3.9.17
### Bazel version
6.1.0
### GCC/compiler version
17.0.0
### CUDA/cuDNN version
n/a
### GPU model and memory
n/a
### Current behavior?
Build fails on AARCH64 since https://github.com/tensorflow/tensorflow/commit/7b81b8c94a3fcf067ce50c31ce031a9ea449a59b
### Standalone code to reproduce the issue
```shell
bazel build --config=mkl_aarch64_threadpool --copt=-flax-vector-conversions --define=tf_api_version=2 --verbose_failures --jobs=75 -- //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
```shell
ERROR: /home/andrew/src/tf_test/tensorflow-git/bazel-ci_build-cache/.cache/bazel/_bazel_andrew/eab0d61a99b6696edb3d2aff87b585e8/external/local_xla/xla/pjrt/BUILD:754:11: Compiling xla/pjrt/transpose.cc failed: (Exit 1): clang failed: error executing command (from target @local_xla//xla/pjrt:transpose)
(cd /home/andrew/src/tf_test/tensorflow-git/bazel-ci_build-cache/.cache/bazel/_bazel_andrew/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow && \
exec env - \
CACHEBUSTER=20220325 \
CLANG_COMPILER_PATH=/usr/lib/llvm-17/bin/clang \
PATH=/home/andrew/src/tf_test/tensorflow-git/bazel-ci_build-cache/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-arm64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
PWD=/proc/self/cwd \
PYTHON_BIN_PATH=/usr/bin/python3.10 \
PYTHON_LIB_PATH=/usr/lib/python3/dist-packages \
TF2_BEHAVIOR=1 \
/usr/lib/llvm-17/bin/clang -MD -MF bazel-out/aarch64-opt/bin/external/local_xla/xla/pjrt/_objs/transpose/transpose.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/local_xla/xla/pjrt/_objs/transpose/transpose.pic.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY '-DBAZEL_CURRENT_REPOSITORY="local_xla"' -iquote external/local_xla -iquote bazel-out/aarch64-opt/bin/external/local_xla -iquote external/com_google_absl -iquote bazel-out/aarch64-opt/bin/external/com_google_absl -iquote external/local_tsl -iquote bazel-out/aarch64-opt/bin/external/local_tsl -iquote . -iquote bazel-out/aarch64-opt/bin -iquote external/eigen_archive -iquote bazel-out/aarch64-opt/bin/external/eigen_archive -iquote external/ml_dtypes -iquote bazel-out/aarch64-opt/bin/external/ml_dtypes -iquote external/nsync -iquote bazel-out/aarch64-opt/bin/external/nsync -iquote external/double_conversion -iquote bazel-out/aarch64-opt/bin/external/double_conversion -iquote external/com_google_protobuf -iquote bazel-out/aarch64-opt/bin/external/com_google_protobuf -iquote external/snappy -iquote bazel-out/aarch64-opt/bin/external/snappy -iquote external/com_googlesource_code_re2 -iquote bazel-out/aarch64-opt/bin/external/com_googlesource_code_re2 -Ibazel-out/aarch64-opt/bin/external/ml_dtypes/_virtual_includes/float8 -Ibazel-out/aarch64-opt/bin/external/ml_dtypes/_virtual_includes/int4 -isystem third_party/eigen3/mkl_include -isystem bazel-out/aarch64-opt/bin/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/aarch64-opt/bin/external/eigen_archive -isystem external/ml_dtypes -isystem bazel-out/aarch64-opt/bin/external/ml_dtypes -isystem external/ml_dtypes/ml_dtypes -isystem bazel-out/aarch64-opt/bin/external/ml_dtypes/ml_dtypes -isystem external/nsync/public -isystem bazel-out/aarch64-opt/bin/external/nsync/public -isystem external/com_google_protobuf/src -isystem bazel-out/aarch64-opt/bin/external/com_google_protobuf/src -fmerge-all-constants -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wno-invalid-partial-specialization -fno-omit-frame-pointer -no-canonical-prefixes -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -Wno-all -Wno-extra -Wno-deprecated -Wno-deprecated-declarations -Wno-ignored-attributes -Wno-array-bounds -Wunused-result '-Werror=unused-result' -Wswitch '-Werror=switch' '-Wno-error=unused-but-set-variable' -DAUTOLOAD_DYNAMIC_KERNELS -Wno-gnu-offsetof-extensions '-mtune=generic' '-march=armv8-a' -O3 -flax-vector-conversions '-std=c++17' '--sysroot=/dt10' -c external/local_xla/xla/pjrt/transpose.cc -o bazel-out/aarch64-opt/bin/external/local_xla/xla/pjrt/_objs/transpose/transpose.pic.o)
# Configuration: 05cc03ffdfad7b565350ad2b01d7497c783d20d25ca4abeda724de457d2afb5e
# Execution platform: @local_execution_config_platform//:platform
In file included from external/local_xla/xla/pjrt/transpose.cc:94:
external/local_xla/xla/pjrt/transpose_kernels.h:710:46: error: use of undeclared identifier '__m128i'
710 | if constexpr (sizeof(T) * bs <= sizeof(__m128i)) {
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned short, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned short, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned short, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:459:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned short, xla::TransposePlan::Transformation::kNone>' requested here
459 | ExecuteTyped<uint16_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '512 <= 256'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:471:17: error: static assertion failed due to requirement '32UL * (0 + 1) <= sizeof(__attribute__((neon_vector_type(2))) unsigned long)'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:551:4: note: in instantiation of function template specialization 'xla::StoreElementFromVec128<32UL, 0>' requested here
551 | (StoreElementFromVec128</*bytes=*/bytes, lane>(b + ldb * (i + lane), x), ...);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:594:7: note: in instantiation of function template specialization 'xla::StoreElementsFromVec128<32UL, 0UL>' requested here
594 | StoreElementsFromVec128<element_size * bs>(
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned short, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned short, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned short, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:459:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned short, xla::TransposePlan::Transformation::kNone>' requested here
459 | ExecuteTyped<uint16_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:471:36: note: expression evaluates to '32 <= 16'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:498:21: error: static assertion failed due to requirement '32UL == 0'
498 | static_assert(bytes == 0);
| ^~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned int, 8>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned int, 8>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned int, 8, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:463:11: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned int, xla::TransposePlan::Transformation::kNone>' requested here
463 | ExecuteTyped<uint32_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '256 <= 128'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned int, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned int, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned int, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:463:11: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned int, xla::TransposePlan::Transformation::kNone>' requested here
463 | ExecuteTyped<uint32_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '1024 <= 256'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:471:17: error: static assertion failed due to requirement '64UL * (0 + 1) <= sizeof(__attribute__((neon_vector_type(2))) unsigned long)'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:551:4: note: in instantiation of function template specialization 'xla::StoreElementFromVec128<64UL, 0>' requested here
551 | (StoreElementFromVec128</*bytes=*/bytes, lane>(b + ldb * (i + lane), x), ...);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:594:7: note: in instantiation of function template specialization 'xla::StoreElementsFromVec128<64UL, 0UL>' requested here
594 | StoreElementsFromVec128<element_size * bs>(
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned int, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned int, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned int, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:463:11: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned int, xla::TransposePlan::Transformation::kNone>' requested here
463 | ExecuteTyped<uint32_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:471:36: note: expression evaluates to '64 <= 16'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:498:21: error: static assertion failed due to requirement '64UL == 0'
498 | static_assert(bytes == 0);
| ^~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned long, 4>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned long, 4>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned long, 4, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:470:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned long, xla::TransposePlan::Transformation::kNone>' requested here
470 | ExecuteTyped<uint64_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '128 <= 64'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned long, 8>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned long, 8>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned long, 8, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:470:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned long, xla::TransposePlan::Transformation::kNone>' requested here
470 | ExecuteTyped<uint64_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '512 <= 128'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned long, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned long, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned long, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:470:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned long, xla::TransposePlan::Transformation::kNone>' requested here
470 | ExecuteTyped<uint64_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '2048 <= 256'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:471:17: error: static assertion failed due to requirement '128UL * (0 + 1) <= sizeof(__attribute__((neon_vector_type(2))) unsigned long)'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:551:4: note: in instantiation of function template specialization 'xla::StoreElementFromVec128<128UL, 0>' requested here
551 | (StoreElementFromVec128</*bytes=*/bytes, lane>(b + ldb * (i + lane), x), ...);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:594:7: note: in instantiation of function template specialization 'xla::StoreElementsFromVec128<128UL, 0UL>' requested here
594 | StoreElementsFromVec128<element_size * bs>(
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<unsigned long, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<unsigned long, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<unsigned long, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:470:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<unsigned long, xla::TransposePlan::Transformation::kNone>' requested here
470 | ExecuteTyped<uint64_t, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:471:36: note: expression evaluates to '128 <= 16'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:498:21: error: static assertion failed due to requirement '128UL == 0'
498 | static_assert(bytes == 0);
| ^~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<xla::uint128, 2>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<xla::uint128, 2>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<xla::uint128, 2, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:473:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<xla::uint128, xla::TransposePlan::Transformation::kNone>' requested here
473 | ExecuteTyped<uint128, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '64 <= 32'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<xla::uint128, 4>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<xla::uint128, 4>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<xla::uint128, 4, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:473:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<xla::uint128, xla::TransposePlan::Transformation::kNone>' requested here
473 | ExecuteTyped<uint128, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '256 <= 64'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<xla::uint128, 8>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<xla::uint128, 8>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<xla::uint128, 8, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:473:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<xla::uint128, xla::TransposePlan::Transformation::kNone>' requested here
473 | ExecuteTyped<uint128, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '1024 <= 128'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:576:19: error: static assertion failed due to requirement 'kBytesInMatrix <= sizeof(__attribute__((neon_vector_type(2))) unsigned long) * last_transpose.size()'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<xla::uint128, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<xla::uint128, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<xla::uint128, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:473:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<xla::uint128, xla::TransposePlan::Transformation::kNone>' requested here
473 | ExecuteTyped<uint128, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:576:34: note: expression evaluates to '4096 <= 256'
576 | static_assert(kBytesInMatrix <= sizeof(Vec128) * last_transpose.size());
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:471:17: error: static assertion failed due to requirement '256UL * (0 + 1) <= sizeof(__attribute__((neon_vector_type(2))) unsigned long)'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:551:4: note: in instantiation of function template specialization 'xla::StoreElementFromVec128<256UL, 0>' requested here
551 | (StoreElementFromVec128</*bytes=*/bytes, lane>(b + ldb * (i + lane), x), ...);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:594:7: note: in instantiation of function template specialization 'xla::StoreElementsFromVec128<256UL, 0UL>' requested here
594 | StoreElementsFromVec128<element_size * bs>(
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:711:66: note: in instantiation of member function 'xla::Vec128RectangularTransposeMicroKernelImpl<xla::uint128, 16>::Apply' requested here
711 | return Vec128RectangularTransposeMicroKernelImpl<T, bs>::Apply(a, lda,
| ^
external/local_xla/xla/pjrt/transpose.cc:170:42: note: in instantiation of member function 'xla::TransposeMicroKernel<xla::uint128, 16>::Apply' requested here
170 | TransposeMicroKernel<T, inner_bs>::Apply(
| ^
external/local_xla/xla/pjrt/transpose.cc:410:9: note: in instantiation of function template specialization 'xla::MacroKernel<xla::uint128, 16, xla::TransposePlan::Transformation::kNone>' requested here
410 | MacroKernel<T, const_inner_block_elems, transformation>(
| ^
external/local_xla/xla/pjrt/transpose.cc:473:9: note: in instantiation of function template specialization 'xla::TransposePlan::ExecuteTyped<xla::uint128, xla::TransposePlan::Transformation::kNone>' requested here
473 | ExecuteTyped<uint128, Transformation::kNone>(ac, bc, nodes);
| ^
external/local_xla/xla/pjrt/transpose_kernels.h:471:36: note: expression evaluates to '256 <= 16'
471 | static_assert(bytes * (lane + 1) <= sizeof(uint64x2_t));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
external/local_xla/xla/pjrt/transpose_kernels.h:498:21: error: static assertion failed due to requirement '256UL == 0'
498 | static_assert(bytes == 0);
| ^~~~~~~~~~
19 errors generated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62136/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62136/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62135 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62135/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62135/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62135/events | https://github.com/tensorflow/tensorflow/issues/62135 | 1,946,537,520 | I_kwDOArmXAs50Bc4w | 62,135 | Not able to get TFlite Model Maker Object Detector to produce expected output | {
"login": "jansdhillon",
"id": 77344313,
"node_id": "MDQ6VXNlcjc3MzQ0MzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/77344313?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jansdhillon",
"html_url": "https://github.com/jansdhillon",
"followers_url": "https://api.github.com/users/jansdhillon/followers",
"following_url": "https://api.github.com/users/jansdhillon/following{/other_user}",
"gists_url": "https://api.github.com/users/jansdhillon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jansdhillon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jansdhillon/subscriptions",
"organizations_url": "https://api.github.com/users/jansdhillon/orgs",
"repos_url": "https://api.github.com/users/jansdhillon/repos",
"events_url": "https://api.github.com/users/jansdhillon/events{/privacy}",
"received_events_url": "https://api.github.com/users/jansdhillon/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 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": 5664422260,
"node_id": "LA_kwDOArmXAs8AAAABUaA5dA",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteModelMaker",
"name": "TFLiteModelMaker",
"color": "257569",
"default": false,
"description": "TFLite Model Maker related issues"
}
] | closed | false | {
"login": "LakshmiKalaKadali",
"id": 149650845,
"node_id": "U_kgDOCOt9nQ",
"avatar_url": "https://avatars.githubusercontent.com/u/149650845?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LakshmiKalaKadali",
"html_url": "https://github.com/LakshmiKalaKadali",
"followers_url": "https://api.github.com/users/LakshmiKalaKadali/followers",
"following_url": "https://api.github.com/users/LakshmiKalaKadali/following{/other_user}",
"gists_url": "https://api.github.com/users/LakshmiKalaKadali/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LakshmiKalaKadali/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LakshmiKalaKadali/subscriptions",
"organizations_url": "https://api.github.com/users/LakshmiKalaKadali/orgs",
"repos_url": "https://api.github.com/users/LakshmiKalaKadali/repos",
"events_url": "https://api.github.com/users/LakshmiKalaKadali/events{/privacy}",
"received_events_url": "https://api.github.com/users/LakshmiKalaKadali/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "LakshmiKalaKadali",
"id": 149650845,
"node_id": "U_kgDOCOt9nQ",
"avatar_url": "https://avatars.githubusercontent.com/u/149650845?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LakshmiKalaKadali",
"html_url": "https://github.com/LakshmiKalaKadali",
"followers_url": "https://api.github.com/users/LakshmiKalaKadali/followers",
"following_url": "https://api.github.com/users/LakshmiKalaKadali/following{/other_user}",
"gists_url": "https://api.github.com/users/LakshmiKalaKadali/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LakshmiKalaKadali/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LakshmiKalaKadali/subscriptions",
"organizations_url": "https://api.github.com/users/LakshmiKalaKadali/orgs",
"repos_url": "https://api.github.com/users/LakshmiKalaKadali/repos",
"events_url": "https://api.github.com/users/LakshmiKalaKadali/events{/privacy}",
"received_events_url": "https://api.github.com/users/LakshmiKalaKadali/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @jansdhillon \r\n\r\nThe output shapes for the tflite model can be observed using `interpreter.get_output_details()`. The outputs might be ordered and need to be accessed accordingly. \r\n\r\nCould you please share a toy tflite model in order to debug the issue?\r\n\r\nThanks.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"@jansdhillon Were you able to solve this and could please post the solution to this issue? I am having the same problem at the moment",
"> Hi @jansdhillon\r\n> \r\n> The output shapes for the tflite model can be observed using `interpreter.get_output_details()`. The outputs might be ordered and need to be accessed accordingly.\r\n> \r\n> Could you please share a toy tflite model in order to debug the issue?\r\n> \r\n> Thanks.\r\n\r\nI did run that, which you can see the output of in the last block of code. They all have a shape of [].",
"> @jansdhillon Were you able to solve this and could please post the solution to this issue? I am having the same problem at the moment\r\n\r\nUnfortunately, no I was not. I was trying to use this for a project but wasn't able to get it working in time so I had to pivot.",
"Alright thanks for responding I will try to reproduce! I have run model maker on two different datasets. With one the inference afer conversion works just fine. With the other (the current one) I got the same results as you. Maybe I can find out the reason",
"I was not able to reproduce it again. I am also using WSL with Ubuntu 22.04. I tested the same model as you with model maker and this time loading worked. However, when exporting the model to Tflite I also got this\r\n\r\n `2023-11-13 00:52:04.885225: W tensorflow/core/common_runtime/graph_constructor.cc:803] Node 'resample_p7/PartitionedCall' has 1 outputs but the _output_shapes attribute specifies shapes for 3 outputs. Output shapes may be inaccurate.\r\n`\r\n\r\nBut it did not matter. Loading the model and inferring it worked fine afterwards. I was able to access to output tensors like this:\r\n\r\n```\r\n signature_fn = interpreter.get_signature_runner()\r\n output = signature_fn(images=image)\r\n\r\n count = int(np.squeeze(output['output_0']))\r\n scores = np.squeeze(output['output_1'])\r\n classes = np.squeeze(output['output_2'])\r\n boxes = np.squeeze(output['output_3'])\r\n\r\n```\r\n\r\n",
"Hi @jansdhillon \r\n\r\nAs mentioned @alexw92 , use the signature function to get the output details. You can add the following code to the interpreter. This information can be found in the [documentation](https://www.tensorflow.org/lite/models/modify/model_maker/object_detection ) as well. \r\n\r\n\r\n\r\n```\r\ndef detect_objects(interpreter, image, threshold):\r\n \"\"\"Returns a list of detection results, each a dictionary of object info.\"\"\"\r\n\r\n signature_fn = interpreter.get_signature_runner()\r\n\r\n # Feed the input image to the model\r\n output = signature_fn(images=image)\r\n\r\n # Get all outputs from the model\r\n count = int(np.squeeze(output['output_0']))\r\n scores = np.squeeze(output['output_1'])\r\n classes = np.squeeze(output['output_2'])\r\n boxes = np.squeeze(output['output_3'])\r\n\r\n results = []\r\n for i in range(count):\r\n if scores[i] >= threshold:\r\n result = {\r\n 'bounding_box': boxes[i],\r\n 'class_id': classes[i],\r\n 'score': scores[i]\r\n }\r\n results.append(result)\r\n return results\r\n```\r\nPlease let us know if any problem persists.\r\n\r\nThank You",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62135\">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/62135\">No</a>\n",
"@alexw92 Hi, I'm not sure if you've deleted your comment but I got a notification about it so I figured I'd respond.\r\n\r\nThat was the same issue I was having. I should have been more clear about what I was actually trying to do, which was use the tflite model directly in my Flutter app with tflite_flutter. However, as you mentioned, it seems like the only way to get the actual output is with Python, which obviously does not work with Flutter directly. \r\n\r\nOf course, you could use a Flask server but at that point what's the point of on-device inference, really. This is why I pivoted away from this approach.\r\n\r\nBut I do agree, it would be ideal if the TFLite Model Maker could create models that work outside with the Flutter package. I did have some better results using MediaPipe but ultimately scrapped Flutter entirely.",
"@jansdhillon Hi, yes sorry I did delete it. I thought I could reopen the issue but it does not work :D\r\n\r\nYes I fully aggree! I had to do manual fixes which are not appropriate in flutter tflite package to make this work. We should not be forced to do it like that. And since both Tensorflow, Flutter and also now the Flutter TFLite Package are under the hood of Google there should also be some interest of Google to make these work together I guess. \r\n\r\nUntil this is getting resolved if you or anyone else want to come back to use Flutter TFLite you can refer to this [issue](https://github.com/tensorflow/flutter-tflite/issues/67) which describes what must be done to in Flutter TFLite to use model maker OD models."
] | 2023-10-17T04:49:24 | 2023-12-05T10:22:59 | 2023-11-30T01:49:22 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): WSL Linux Ubuntu 20.04 (although I've also tried on Linux Ubuntu 22.04)
- TensorFlow installation (pip package or built from source): Pip package (t.
- TensorFlow library (version, if pip package or github SHA, if built from source):
- I built it with Conda and Python 3.9. Basically I install the environment in a Jupyter kernel and then use it to install the packages and eventually run the script.
```
# Install Miniconda
!apt install wget
!wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.9.2-Linux-x86_64.sh
!chmod +x Miniconda3-py37_4.9.2-Linux-x86_64.sh
!bash ./Miniconda3-py37_4.9.2-Linux-x86_64.sh -b -f -p /usr/local
# Update Conda
!conda update -n base -c defaults conda -y
# #Create a Python 3.9 environment
!conda create --name py39_environment python=3.9 -y
# # Initialize shell for Conda
!conda init bash
# # Activate the environment and check Python version
!source activate py39_environment && python --version
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip install tflite_model_maker
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip install -q pycocotools
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip install opencv-python-headless
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip uninstall -y tensorflow && pip install -q tensorflow==2.8.0
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip install ipykernel
!source /usr/local/etc/profile.d/conda.sh && conda activate py39_environment && pip install --upgrade numba llvmlite
```
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
train.py:
```
import numpy as np
import os
np.object = object
np.bool = bool
np.complex = complex
from tflite_model_maker.config import ExportFormat
from tflite_model_maker import model_spec
from tflite_model_maker import object_detector
import tensorflow as tf
assert tf.__version__.startswith('2')
tf.get_logger().setLevel('ERROR')
from absl import logging
logging.set_verbosity(logging.ERROR)
label_map = {1: 'Plastic', 2: 'Trash'}
train_images_dir = '/trashnet-training/pascal_voc/train/images'
train_annotations_dir = '/trashnet-training/pascal_voc/train/Annotations'
val_images_dir = '/trashnet-training/pascal_voc/valid/images/'
val_annotations_dir = '/trashnet-training/pascal_voc/valid/Annotations'
# test_images_dir = '/trashnet-training/pascal_voc/train/Annotations'
# test_annotations_dir = '/trashnet-training/pascal_voc/train/Annotations'
train_data = object_detector.DataLoader.from_pascal_voc(
train_images_dir, train_annotations_dir, label_map=label_map)
validation_data = object_detector.DataLoader.from_pascal_voc(
val_images_dir, val_annotations_dir, label_map=label_map)
# test_data = object_detector.DataLoader.from_pascal_voc(
# test_images_dir, test_annotations_dir, label_map=label_map)
spec = model_spec.get('efficientdet_lite0')
model = object_detector.create(train_data=train_data,
model_spec=spec,
validation_data=validation_data,
epochs=50,
batch_size=10,
train_whole_model=True)
model.evaluate(validation_data)
TFLITE_FILENAME = 'trained_model.tflite'
LABELS_FILENAME = 'model-labels.txt'
model.export(export_dir='.', tflite_filename=TFLITE_FILENAME, label_filename=LABELS_FILENAME,
export_format=[ExportFormat.TFLITE, ExportFormat.LABEL])
```
test_model.py:
```
import tensorflow as tf
import numpy as np
interpreter = tf.lite.Interpreter(model_path="trained_model.tflite")
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
input_data = interpreter.get_tensor(input_details[0]['index'])
print(f"Input tensor: {input_data}")
print(f"Output tensor: {output_data}")
tf.lite.experimental.Analyzer.analyze(model_path="trained_model.tflite")
```
My dataset is in the Pascal VOC format with train and valid subfolders, each with their own images/ and Annotations/ folders. I've been able to train the model several times but whenever I put the resulting .tflite into the testing script, it doesn't product the shape it's supposed to. According to the TF documentation for the TFLite Object Detector export_tflite function [here](https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/core/task/model_spec/object_detector_spec.py#L348-L401) the output shape should be:
Four Outputs:
detection_boxes: a float32 tensor of shape [1, num_boxes, 4] with box
locations.
detection_classes: a float32 tensor of shape [1, num_boxes] with class
indices.
detection_scores: a float32 tensor of shape [1, num_boxes] with class
scores.
num_boxes: a float32 tensor of size 1 containing the number of detected
boxes.
### 3. Failure after conversion
The training seems to go fine, although somewhere along the way it warns me that:
`2023-10-17 04:41:28.736735: W tensorflow/core/common_runtime/graph_constructor.cc:803] Node 'resample_p7/PartitionedCall' has 1 outputs but the _output_shapes attribute specifies shapes for 3 outputs. Output shapes may be inaccurate.`
Which is concerning. And I think part of the problem because when I run my testing script on the model the output tensors are all blank:
```
...
d_4;class_net/class-predict/bias11) shape:[1, 3, 3, 18], type:INT8
T#583(Reshape) shape:[1, 14400, 2], type:INT8
T#584(Reshape_1) shape:[1, 14400, 4], type:INT8
T#585(Reshape_2) shape:[1, 3600, 2], type:INT8
T#586(Reshape_3) shape:[1, 3600, 4], type:INT8
T#587(Reshape_4) shape:[1, 900, 2], type:INT8
T#588(Reshape_5) shape:[1, 900, 4], type:INT8
T#589(Reshape_6) shape:[1, 225, 2], type:INT8
T#590(Reshape_7) shape:[1, 225, 4], type:INT8
T#591(Reshape_8) shape:[1, 81, 2], type:INT8
T#592(concat) shape:[1, 19206, 2], type:INT8
T#593(Sigmoid) shape:[1, 19206, 2], type:INT8
T#594(Sigmoid1) shape:[1, 19206, 2], type:FLOAT32
T#595(Reshape_9) shape:[1, 81, 4], type:INT8
T#596(concat_1) shape:[1, 19206, 4], type:INT8
T#597(tfl.dequantize) shape:[1, 19206, 4], type:FLOAT32
T#598(StatefulPartitionedCall:3) shape:[], type:FLOAT32
T#599(StatefulPartitionedCall:2) shape:[], type:FLOAT32
T#600(StatefulPartitionedCall:1) shape:[], type:FLOAT32
T#601(StatefulPartitionedCall:0) shape:[], type:FLOAT32
---------------------------------------------------------------
Your TFLite model has ‘1’ signature_def(s).
Signature#0 key: 'serving_default'
- Subgraph: Subgraph#0
- Inputs:
'images' : T#0
- Outputs:
'output_0' : T#601
'output_1' : T#600
'output_2' : T#599
'output_3' : T#598
---------------------------------------------------------------
Model size: 4444720 bytes
Non-data buffer size: 799672 bytes (17.99 %)
Total data buffer size: 3645048 bytes (82.01 %)
(Zero value buffers): 256 bytes (00.01 %)
```
I've trained it several times with different formats but I just can't get the right output shapes, every time they're blank Could someone help me to understand why this is not working? Any guidance or insight would be greatly appreciated.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62135/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62135/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62134 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62134/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62134/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62134/events | https://github.com/tensorflow/tensorflow/pull/62134 | 1,946,319,150 | PR_kwDOArmXAs5c9YZn | 62,134 | Create AI Generator | {
"login": "Krysclick12",
"id": 148156783,
"node_id": "U_kgDOCNSxbw",
"avatar_url": "https://avatars.githubusercontent.com/u/148156783?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Krysclick12",
"html_url": "https://github.com/Krysclick12",
"followers_url": "https://api.github.com/users/Krysclick12/followers",
"following_url": "https://api.github.com/users/Krysclick12/following{/other_user}",
"gists_url": "https://api.github.com/users/Krysclick12/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Krysclick12/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Krysclick12/subscriptions",
"organizations_url": "https://api.github.com/users/Krysclick12/orgs",
"repos_url": "https://api.github.com/users/Krysclick12/repos",
"events_url": "https://api.github.com/users/Krysclick12/events{/privacy}",
"received_events_url": "https://api.github.com/users/Krysclick12/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
},
{
"id": 1593512946,
"node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid",
"name": "invalid",
"color": "db6f57",
"default": true,
"description": "Hacktoberfest spam PR"
}
] | closed | true | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/62134/checks?check_run_id=17761789154) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request.",
"Hi @Krysclick12 Can you please sign CLA. Thank you!",
"Closing as spam"
] | 2023-10-17T00:40:28 | 2023-10-22T20:25:49 | 2023-10-22T20:25:46 | NONE | spam | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62134",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62134",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62134.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62134.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62134/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62134/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62133 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62133/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62133/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62133/events | https://github.com/tensorflow/tensorflow/pull/62133 | 1,946,271,708 | PR_kwDOArmXAs5c9OMS | 62,133 | r2.15 cherry-pick: 33df98aab56 "Update curl from 8.2.1 to 8.4.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-10-16T23:42:23 | 2023-10-17T05:30:51 | 2023-10-17T05:30:50 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62133",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62133",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62133.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62133.patch",
"merged_at": "2023-10-17T05:30:50"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/33df98a | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62133/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62133/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62132 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62132/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62132/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62132/events | https://github.com/tensorflow/tensorflow/pull/62132 | 1,945,965,501 | PR_kwDOArmXAs5c8KSz | 62,132 | Limit numpy in 2.14.1 to < 2.0 | {
"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
} | [] | closed | false | null | [] | null | [] | 2023-10-16T19:44:43 | 2023-10-16T21:14:12 | 2023-10-16T21:14:10 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62132",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62132",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62132.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62132.patch",
"merged_at": "2023-10-16T21:14:10"
} | Numpy 2 is scheduled for Jan 2024, limit numpy to avoid breakages until 2.0 can be adopted | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62132/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62132/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62131 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62131/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62131/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62131/events | https://github.com/tensorflow/tensorflow/pull/62131 | 1,945,957,784 | PR_kwDOArmXAs5c8ImB | 62,131 | Limit numpy in 2.15 to < 2.0 | {
"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
} | [] | closed | false | null | [] | null | [] | 2023-10-16T19:39:29 | 2023-10-16T21:14:19 | 2023-10-16T21:14:18 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62131",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62131",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62131.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62131.patch",
"merged_at": "2023-10-16T21:14:18"
} | Numpy 2 is scheduled for Jan 2024, limit numpy to avoid breakages until 2.0 can be adopted | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62131/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62131/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62130 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62130/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62130/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62130/events | https://github.com/tensorflow/tensorflow/issues/62130 | 1,945,731,974 | I_kwDOArmXAs5z-YOG | 62,130 | Make configure.py non-interactive | {
"login": "crroush",
"id": 9982203,
"node_id": "MDQ6VXNlcjk5ODIyMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/9982203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/crroush",
"html_url": "https://github.com/crroush",
"followers_url": "https://api.github.com/users/crroush/followers",
"following_url": "https://api.github.com/users/crroush/following{/other_user}",
"gists_url": "https://api.github.com/users/crroush/gists{/gist_id}",
"starred_url": "https://api.github.com/users/crroush/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/crroush/subscriptions",
"organizations_url": "https://api.github.com/users/crroush/orgs",
"repos_url": "https://api.github.com/users/crroush/repos",
"events_url": "https://api.github.com/users/crroush/events{/privacy}",
"received_events_url": "https://api.github.com/users/crroush/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
}
] | open | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@crroush,\r\nCould you please elaborate about your Feature and please specify the Use Cases for this feature. \r\n\r\nAlso TensorFlow builds are **configured** by the .`bazelrc` file in the repository's root directory. The ./configure or `./configure.py` scripts can be used to adjust common settings.\r\n\r\nhttps://www.tensorflow.org/install/source#configure_the_build\r\n\r\nThere is also a python version of this script, .**/configure.py**. If using a virtual environment, python `configure.py` prioritizes paths within the environment, whereas ./configure prioritizes paths outside the environment. In both cases you can change the default. Thank you!\r\n",
"I was using the python script, but I cannot just pass the configuration into the python script, I have to interactively type them in, so I am unable to automate this process. I have to build it for 3-4 architectures, so I would rather this process not require an engineer typing in commands. \r\n\r\nI am not that familiar with bazel, so if I can drop in different .bazelrc with my custom configs and forgo the configure.py that will get me to the same goal. "
] | 2023-10-16T17:23:18 | 2023-10-24T17:20:47 | null | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
r2.6
### Custom code
Yes
### OS platform and distribution
centos / redhat 7.x
### Mobile device
_No response_
### Python version
3.6
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Right now you have to manually select all of your options for building tensorflow from source. When you are wanting to optimize across various architectures this becomes manually intensive. It would be much better if you could pass the various arguments via the command line to setup your environment, instead of being forced to accept or override the default arguments.
### Standalone code to reproduce the issue
```shell
run `./configure`
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62130/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62130/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62129 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62129/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62129/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62129/events | https://github.com/tensorflow/tensorflow/pull/62129 | 1,945,671,190 | PR_kwDOArmXAs5c7K3e | 62,129 | Update version numbers for TensorFlow 2.15.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-10-16T16:44:58 | 2023-10-16T18:32:56 | 2023-10-16T18:32:56 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62129",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62129",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62129.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62129.patch",
"merged_at": "2023-10-16T18:32:56"
} | 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: 15 -> 15
Patch: 0 -> 0
WARNING: Below are potentially instances of lingering old version string
"2.15.0" in source directory "tensorflow/" that are not updated by this script.
Please check them manually!
tensorflow/tools/pip_package/setup.py:50:2.15.0
tensorflow/tools/pip_package/setup.py:119:2.15.0
tensorflow/tools/pip_package/setup.py:121:2.15.0
tensorflow/lite/core/c/c_api.h:150:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:76:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:111:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:134:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:141:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:270:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:376:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:380:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:433:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:434:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:435:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:436:2.15.0
tensorflow/tensorflow.bzl:84:2.15.0
WARNING: Below are potentially instances of lingering old version string
"2.15.0" in source directory "tensorflow/" that are not updated by this script.
Please check them manually!
tensorflow/tools/pip_package/setup.py:50:2.15.0
tensorflow/tools/pip_package/setup.py:119:2.15.0
tensorflow/tools/pip_package/setup.py:121:2.15.0
tensorflow/lite/core/c/c_api.h:150:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:76:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:111:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:134:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:141:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:270:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:376:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:380:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:433:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:434:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:435:2.15.0
tensorflow/lite/tools/versioning/runtime_version.cc:436:2.15.0
tensorflow/tensorflow.bzl:84:2.15.0
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62129/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62129/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62128 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62128/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62128/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62128/events | https://github.com/tensorflow/tensorflow/pull/62128 | 1,945,660,487 | PR_kwDOArmXAs5c7IkC | 62,128 | Fix format of CUDA classifier used for upload to PyPi | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
},
{
"id": 1178505529,
"node_id": "MDU6TGFiZWwxMTc4NTA1NTI5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/prtype:bugfix",
"name": "prtype:bugfix",
"color": "159b2e",
"default": false,
"description": "PR to fix a bug"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"BTW this may not even fix it as the classifier for 12.2 is not even listed on https://pypi.org/classifiers/ yet, but at least it would be correct for when it does appear."
] | 2023-10-16T16:38:22 | 2023-10-17T15:06:34 | 2023-10-17T15:06:33 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62128",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62128",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62128.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62128.patch",
"merged_at": "2023-10-17T15:06:33"
} | For CUDA 12 there is an extra field in the classifier so add that in to fix the upload failures.
Fixes: https://github.com/tensorflow/tensorflow/issues/62127 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62128/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62128/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62127 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62127/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62127/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62127/events | https://github.com/tensorflow/tensorflow/issues/62127 | 1,945,654,313 | I_kwDOArmXAs5z-FQp | 62,127 | Invalid classifier used for CUDA 12.2 | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
}
] | closed | false | {
"login": "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 | [
"https://github.com/tensorflow/tensorflow/actions/runs/6516448173/job/17699971553",
"Thank you. This is being rolled back for now. \r\nIn the meantime, a PR was created to add the classifier to PyPi: \r\nhttps://github.com/pypa/trove-classifiers/pull/155",
"You could use 'Environment :: GPU :: NVIDIA CUDA :: 12' instead as that one already exists.",
"Seems like a good idea until the 12.2 tag gets added",
"PR updated",
"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/62127\">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/62127\">No</a>\n"
] | 2023-10-16T16:34:28 | 2023-10-17T15:06:38 | 2023-10-17T15:06:35 | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
git HEAD
### Custom code
No
### OS platform and distribution
Ubuntu 20.04
### Mobile device
n/a
### Python version
3.9.17
### Bazel version
6.1.0
### GCC/compiler version
16.0.6
### CUDA/cuDNN version
n/a
### GPU model and memory
n/a
### Current behavior?
Uploads to PyPi fail with invalid classifier.
Introduced by https://github.com/tensorflow/tensorflow/commit/c3b98ea5a8387eec21e808caa6e999417494e09a
### Standalone code to reproduce the issue
```shell
python3 -m twine upload --verbose /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/whl/* -u "__token__" -p ***
```
### Relevant log output
```shell
INFO Response from https://upload.pypi.org/legacy/:
400 Invalid value for classifiers. Error: Classifier 'Environment ::
GPU :: NVIDIA CUDA :: 12.2' is not a valid classifier.
INFO <html>
<head>
<title>400 Invalid value for classifiers. Error: Classifier
'Environment :: GPU :: NVIDIA CUDA :: 12.2' is not a valid
classifier.</title>
</head>
<body>
<h1>400 Invalid value for classifiers. Error: Classifier 'Environment
:: GPU :: NVIDIA CUDA :: 12.2' is not a valid classifier.</h1>
The server could not comply with the request since it is either
malformed or otherwise incorrect.<br/><br/>
Invalid value for classifiers. Error: Classifier 'Environment ::
GPU :: NVIDIA CUDA :: 12.2' is not a valid classifier.
</body>
</html>
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Invalid value for classifiers. Error: Classifier 'Environment :: GPU ::
NVIDIA CUDA :: 12.2' is not a valid classifier.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62127/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62127/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62126 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62126/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62126/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62126/events | https://github.com/tensorflow/tensorflow/pull/62126 | 1,945,422,189 | PR_kwDOArmXAs5c6TPF | 62,126 | Fix static_assert failure when compiling with gcc | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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"
}
] | 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 @elfringham Can you please resolve conflicts? Thank you!",
"Issue was resolved by https://github.com/tensorflow/tensorflow/commit/5a39244519e46bfba66e377e5ee533bc2ab3969b"
] | 2023-10-16T14:55:35 | 2023-10-18T09:34:59 | 2023-10-18T09:34:51 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62126",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62126",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62126.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62126.patch",
"merged_at": null
} | Compiling with gcc compiler results in a build failure due the use of 'false' in the static_assert. Instead replace this with the condition that needs to be satisified.
Fixes: https://github.com/tensorflow/tensorflow/issues/62125 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62126/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62126/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62125 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62125/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62125/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62125/events | https://github.com/tensorflow/tensorflow/issues/62125 | 1,945,316,561 | I_kwDOArmXAs5z8yzR | 62,125 | static_assert failure with gcc | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 1222092379,
"node_id": "MDU6TGFiZWwxMjIyMDkyMzc5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:bazel",
"name": "subtype:bazel",
"color": "b619ea",
"default": false,
"description": "Bazel related Build_Installation issues"
}
] | 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 | [
"Introduced by https://github.com/tensorflow/tensorflow/commit/e7aa1cadef44349d57019401e54d4fb390bf48f1",
"Fixed by https://github.com/tensorflow/tensorflow/commit/5a39244519e46bfba66e377e5ee533bc2ab3969b",
"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/62125\">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/62125\">No</a>\n"
] | 2023-10-16T14:13:37 | 2023-10-18T09:35:23 | 2023-10-18T09:35:20 | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
git HEAD
### Custom code
No
### OS platform and distribution
Ubuntu 20.04
### Mobile device
n/a
### Python version
3.9.17
### Bazel version
6.1.0
### GCC/compiler version
10.2.1
### CUDA/cuDNN version
n/a
### GPU model and memory
n/a
### Current behavior?
Build failure
### Standalone code to reproduce the issue
```shell
bazel build --config=mkl_aarch64_threadpool --copt=-flax-vector-conversions --define=tf_api_version=2 --verbose_failures --jobs=75 -- //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
```shell
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc: In member function 'mlir::LogicalResult mlir::odml::{anonymous}::ConvertReduceOpToTfArgMinMax<TfReduce, TfArgReduce>::matchAndRewrite(mlir::mhlo::ReduceOp, mlir::OpConversionPattern<mlir::mhlo::ReduceOp>::OpAdaptor, mlir::ConversionPatternRewriter&) const':
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc:2186: error: static assertion failed: Only TF::MaxOp and TF::MinOp are supported.
2186 | static_assert(false, "Only TF::MaxOp and TF::MinOp are supported.");
|
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 502.712s, Critical Path: 197.25s
INFO: 1603 processes: 79 internal, 1524 local.
FAILED: Build did NOT complete successfully
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62125/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62125/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62124 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62124/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62124/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62124/events | https://github.com/tensorflow/tensorflow/pull/62124 | 1,945,195,249 | PR_kwDOArmXAs5c5hbW | 62,124 | Fix typo in forward_compatible_horizon function signature | {
"login": "Raguggg",
"id": 88898517,
"node_id": "MDQ6VXNlcjg4ODk4NTE3",
"avatar_url": "https://avatars.githubusercontent.com/u/88898517?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Raguggg",
"html_url": "https://github.com/Raguggg",
"followers_url": "https://api.github.com/users/Raguggg/followers",
"following_url": "https://api.github.com/users/Raguggg/following{/other_user}",
"gists_url": "https://api.github.com/users/Raguggg/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Raguggg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Raguggg/subscriptions",
"organizations_url": "https://api.github.com/users/Raguggg/orgs",
"repos_url": "https://api.github.com/users/Raguggg/repos",
"events_url": "https://api.github.com/users/Raguggg/events{/privacy}",
"received_events_url": "https://api.github.com/users/Raguggg/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 | [
"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/62124/checks?check_run_id=17740681824) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request."
] | 2023-10-16T13:14:07 | 2023-10-18T05:58:04 | 2023-10-18T05:58:04 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62124",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62124",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62124.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62124.patch",
"merged_at": "2023-10-18T05:58:04"
} | **Pull Request Summary:**
This pull request updates the forward compatibility date in the `forward_compatibility_horizon` function to fix a small typo in the function signature. The parameter name `date` has been corrected to `day` for consistency.
**Changes Made:**
- Updated the function signature in `forward_compatibility_horizon` from `forward_compatible(year=2018, month=08, date=01)` to `forward_compatible(year=2018, month=08, day=01)`.
This change is cosmetic and does not alter the functionality of the code. It enhances code readability by aligning the parameter name with its usage within the function.
**Context:**
The adjustment aims to maintain a uniform and intuitive coding style. Consistent parameter naming conventions contribute to a more understandable codebase and facilitate collaboration among contributors. This modification has no impact on the behavior of the code but promotes better code comprehension.
```diff
- if compat.forward_compatible(year=2018, month=08, date=01):
+ if compat.forward_compatible(year=2018, month=08, day=01):
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62124/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62124/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62123 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62123/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62123/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62123/events | https://github.com/tensorflow/tensorflow/issues/62123 | 1,945,148,881 | I_kwDOArmXAs5z8J3R | 62,123 | Different results interpreter python and Android | {
"login": "justlike-prog",
"id": 55004292,
"node_id": "MDQ6VXNlcjU1MDA0Mjky",
"avatar_url": "https://avatars.githubusercontent.com/u/55004292?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/justlike-prog",
"html_url": "https://github.com/justlike-prog",
"followers_url": "https://api.github.com/users/justlike-prog/followers",
"following_url": "https://api.github.com/users/justlike-prog/following{/other_user}",
"gists_url": "https://api.github.com/users/justlike-prog/gists{/gist_id}",
"starred_url": "https://api.github.com/users/justlike-prog/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/justlike-prog/subscriptions",
"organizations_url": "https://api.github.com/users/justlike-prog/orgs",
"repos_url": "https://api.github.com/users/justlike-prog/repos",
"events_url": "https://api.github.com/users/justlike-prog/events{/privacy}",
"received_events_url": "https://api.github.com/users/justlike-prog/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello, @justlike-prog ! Could you please add the new line so that the bytes are returned in LITTLE_ENDIAN. By default, the order of a ByteBuffer object is BIG_ENDIAN. Finally, the order method is invoked to modify the byte order. \r\n```\r\n byteBuffer.order(ByteOrder.nativeOrder()); // new line added\r\n```\r\n\r\nIn order to expedite the trouble-shooting process, please provide a complete code snippet to reproduce the issue reported here. The drive link seems to be not working. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62123\">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/62123\">No</a>\n"
] | 2023-10-16T12:51:19 | 2023-11-14T01:48:22 | 2023-11-14T01:48:20 | NONE | null | null | null | - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS
- TensorFlow installation (pip package or built from source): pip
- TensorFlow library (version, if pip package or github SHA, if built from source): 2.13
I get different results when running my model with the TF Lite interpreter in Python and on Android. I do the same normalization in both of those.
The Python code:
```
def read_image(file_path):
mean = 255*np.array([0.485, 0.456, 0.406])
std = 255*np.array([0.229, 0.224, 0.225])
img = Image.open(file_path).convert('RGB')
img = img.resize((224,224), resample=PIL.Image.BILINEAR)
img = np.array(img)
img = (img - mean[None, None, :]) / std[None, None, :]
img = np.float32(img)
return img
img = read_image_normal(path)
interpreter = tf.lite.Interpreter(model_path="./model.tflite")
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.set_tensor(input_details[0]['index'], processed_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_details[0]['index'])
```
Snippets of the relevant Android code:
For preprocessing:
```
private fun preprocessImage(image1: Bitmap) = with(TensorImage(DataType.FLOAT32)) {
load(image1)
val imageProcessor: ImageProcessor = ImageProcessor.Builder()
.add(
ResizeOp(
224,
224,
ResizeOp.ResizeMethod.BILINEAR
)
)
.add(
NormalizeOp(
floatArrayOf(
0.485f*255f,
0.456f*255f,
0.406f*255f,
),
floatArrayOf(
0.229f*255f,
0.224f*255f,
0.225f*255f,
),
)
)
.build()
imageProcessor.process(this)
}
```
For inference:
```
val options = Interpreter.Options()
options.setNumThreads(1)
interpreter = Interpreter(model, options)
val timeStart = System.currentTimeMillis()
val image = preprocessImage(bitmap)
val probabilityBuffer = TensorBuffer.createFixedSize(intArrayOf(1, 1), DataType.FLOAT32)
interpreter.run(image.buffer, probabilityBuffer.buffer)
val score = probabilityBuffer.floatArray[0]
```
Both results are different by quite a lot - around 0.1 score. The images that enter are exactly the same.
Model: https://drive.google.com/file/d/1Pr3mCZ7kocEPw_tAQuokrZBpqqXC0gek/view?usp=sharing
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62123/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62123/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62122 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62122/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62122/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62122/events | https://github.com/tensorflow/tensorflow/issues/62122 | 1,945,103,069 | I_kwDOArmXAs5z7-rd | 62,122 | Tensorflow Importation Error | {
"login": "DAMMYICAN",
"id": 78174076,
"node_id": "MDQ6VXNlcjc4MTc0MDc2",
"avatar_url": "https://avatars.githubusercontent.com/u/78174076?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DAMMYICAN",
"html_url": "https://github.com/DAMMYICAN",
"followers_url": "https://api.github.com/users/DAMMYICAN/followers",
"following_url": "https://api.github.com/users/DAMMYICAN/following{/other_user}",
"gists_url": "https://api.github.com/users/DAMMYICAN/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DAMMYICAN/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DAMMYICAN/subscriptions",
"organizations_url": "https://api.github.com/users/DAMMYICAN/orgs",
"repos_url": "https://api.github.com/users/DAMMYICAN/repos",
"events_url": "https://api.github.com/users/DAMMYICAN/events{/privacy}",
"received_events_url": "https://api.github.com/users/DAMMYICAN/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@DAMMYICAN,\r\nThere are at least 3 possible scenarios:\r\n\r\n 1. You need to install the MSVC 2019 redistributable\r\n 2. Your CPU does not support AVX2 instructions\r\n 3. Your CPU/Python is on 32 bits\r\n 4. There is a library that is in a different location/not installed on your system that cannot be loaded.\r\n\r\nCould you please confirm that you installed Tensorflow using pip and kindly share the steps you have followed to install Tensorflow. It is recommended to follow the installation instructions from [here](https://www.tensorflow.org/install/pip#windows-native). Thank you!",
"Thanks @tilakrayal ",
"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/62122\">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/62122\">No</a>\n"
] | 2023-10-16T12:29:18 | 2023-10-17T11:01:14 | 2023-10-17T11:01:12 | NONE | null | null | null | Good day!
I have a project and i need TensorFlow module (this is the first time using the library)
I have installed the library and try to force-download different lower versions and they got installed successfully but to import now is the issue
Below is the error message it keep bringing up:
ImportError Traceback (most recent call last)
~\anaconda3\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
61 try:
---> 62 from tensorflow.python._pywrap_tensorflow_internal import *
63 # This try catch logic is because there is no bazel equivalent for py_extension.
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-1-64156d691fe5> in <module>
----> 1 import tensorflow as tf
~\anaconda3\Anaconda3\lib\site-packages\tensorflow\__init__.py in <module>
35 import typing as _typing
36
---> 37 from tensorflow.python.tools import module_util as _module_util
38 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
39
~\anaconda3\Anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module>
34 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top
35
---> 36 from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
37 from tensorflow.python.eager import context
38
~\anaconda3\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
76 except ImportError:
77 raise ImportError(
---> 78 f'{traceback.format_exc()}'
79 f'\n\nFailed to load the native TensorFlow runtime.\n'
80 f'See https://www.tensorflow.org/install/errors '
ImportError: Traceback (most recent call last):
File "C:\Users\DAMMYICAN\anaconda3\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.
I would be glad if you could be of help
Thanks in advance.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62122/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62122/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62121 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62121/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62121/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62121/events | https://github.com/tensorflow/tensorflow/issues/62121 | 1,945,070,774 | I_kwDOArmXAs5z72y2 | 62,121 | Tensorflow Im | {
"login": "DAMMYICAN",
"id": 78174076,
"node_id": "MDQ6VXNlcjc4MTc0MDc2",
"avatar_url": "https://avatars.githubusercontent.com/u/78174076?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DAMMYICAN",
"html_url": "https://github.com/DAMMYICAN",
"followers_url": "https://api.github.com/users/DAMMYICAN/followers",
"following_url": "https://api.github.com/users/DAMMYICAN/following{/other_user}",
"gists_url": "https://api.github.com/users/DAMMYICAN/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DAMMYICAN/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DAMMYICAN/subscriptions",
"organizations_url": "https://api.github.com/users/DAMMYICAN/orgs",
"repos_url": "https://api.github.com/users/DAMMYICAN/repos",
"events_url": "https://api.github.com/users/DAMMYICAN/events{/privacy}",
"received_events_url": "https://api.github.com/users/DAMMYICAN/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
}
] | closed | false | {
"login": "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 | [
"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/62121\">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/62121\">No</a>\n"
] | 2023-10-16T12:12:00 | 2023-10-16T13:05:50 | 2023-10-16T13:05:47 | NONE | null | null | null | Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:
1. It must be a bug, a feature request, or a significant problem with the
documentation (for small docs fixes please send a PR instead).
2. The form below must be filled out.
3. It shouldn't be a TensorBoard issue. Those go
[here](https://github.com/tensorflow/tensorboard/issues).
**Here's why we have that policy**: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
------------------------
### System information
- **Have I written custom code (as opposed to using a stock example script
provided in TensorFlow)**:
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**:
- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device**:
- **TensorFlow installed from (source or binary)**:
- **TensorFlow version (use command below)**:
- **Python version**:
- **Bazel version (if compiling from source)**:
- **GCC/Compiler version (if compiling from source)**:
- **CUDA/cuDNN version**:
- **GPU model and memory**:
- **Exact command to reproduce**:
You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
```bash
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
```
### Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
### Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62121/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62121/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62120 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62120/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62120/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62120/events | https://github.com/tensorflow/tensorflow/issues/62120 | 1,944,963,773 | I_kwDOArmXAs5z7cq9 | 62,120 | Error when loading TFLite model on Android with GPU Delegate | {
"login": "mitsunami",
"id": 29079227,
"node_id": "MDQ6VXNlcjI5MDc5MjI3",
"avatar_url": "https://avatars.githubusercontent.com/u/29079227?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mitsunami",
"html_url": "https://github.com/mitsunami",
"followers_url": "https://api.github.com/users/mitsunami/followers",
"following_url": "https://api.github.com/users/mitsunami/following{/other_user}",
"gists_url": "https://api.github.com/users/mitsunami/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mitsunami/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mitsunami/subscriptions",
"organizations_url": "https://api.github.com/users/mitsunami/orgs",
"repos_url": "https://api.github.com/users/mitsunami/repos",
"events_url": "https://api.github.com/users/mitsunami/events{/privacy}",
"received_events_url": "https://api.github.com/users/mitsunami/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": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @mitsunami \r\n\r\nIt is hard to say from the error log, I can guess that there is a problem with the input data being passed with android. Please check the input tensor shapes and resize before during inference accordingly. Also, you need to see of the data chunk being passed is of 81920. \r\n\r\nAnother possibility is if the loaded model in TFLite does not have any defined batch size, converter will take the batch size as 1, and when you evaluate it with the different batch size, you are likely to end up with the problem which you are facing.\r\n\r\nThanks.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Hi @pjpratik\r\n\r\nThank you for your reply, and sorry for my late reply. \r\nI've prepared a reproducible code for the error. Could you please check it out please?\r\nhttps://colab.research.google.com/gist/mitsunami/fa5cacac520bde7d446441155bbb7479/tensorflow-lite-debugger-colab.ipynb\r\n\r\nWhen you run the code in the above Colab notebook, a TFLite model named `model_fixed_batch.tflite` will be generated. As mentioned, the model can be executed correctly on Colab. However, when trying to load this model on Android with the GPU Delegate option, an error occurs. \r\n\r\nTo reproduce this, please follow the steps below:\r\n1. Unzip the Android project ZIP file in the link: https://drive.google.com/file/d/1CvB8NemWQzaY0AaWcQEh1Y-3BeHN2uiS/view?usp=sharing\r\n2. Copy the TFLite file you generated earlier to the path `android_repro\\app\\src\\main\\assets`. \r\n3. Build the project using Android Studio, install it on the device, and run it. (This app is a slightly modified version of the StyleTransfer app from tensorflow/examples, designed to reproduce the error.)\r\n4. After running the app, when you change the Delegate to `GPU` and click the `Run` button, you should be able to see the error message in Android Studio's Logcat.\r\n\r\nIf you have any questions about the reproduction steps, please let me know.\r\n\r\nRegarding the data size you pointed out, I have confirmed that the batch size is fixed to 1 during TFLite conversion. Also, since it's an error during model loading, the input data size should not be an issue here.\r\n\r\nThanks for your support.",
"Hi @pjpratik \r\n\r\nI've sent a reproducible code for the error that I'm facing. If you could check it and provide an update, that would be great. \r\n\r\nThank you!",
"Hi @mitsunami, I'm looking into this but in the mean time you might want to check if you do any broadcasting in your model, the GPU delegate generally does not handle this case very well currently ex: https://github.com/tensorflow/tensorflow/issues/60043 .",
"Hi @mitsunami, I was able to run your project on CPU, I tried to change the project to run on GPU by changing MainViewModel:31 from 0 to 1 (which is the constant for the GPU DELEGATE), that didn't seem to reproduce your issue. Can you explain to me how you\r\n\r\n> change the Delegate to GPU\r\n\r\nSo that I know we are doing the same thing. Thanks.",
"Hi @pkgoogle, \r\n\r\nThanks for looking into this. \r\nPlease do the following to change the Delegate to GPU: \r\nWhen the application is launched, the camera is activated. After taking a picture, the attached screen will appear, where you can change the Delegate field circled in red to `GPU.` Then press the `RUN` button below. (You don't have to change MainViewModel code.)\r\n\r\nPlease let me know if you any questions. Thanks.\r\n\r\n\r\n\r\n",
"Please note that the app is just a modified version of the existing StyleTransfer app for the purpose of loading the model in question. So if you press RUN, the app itself will work fine. However, when you press RUN, the model in question is loaded, and you should see the error that occurs when loading the model on Logcat in Android Studio. That is the issue I would like you to see.\r\n\r\nThank you.",
"Got it, I did that and did not run into your same issue, I got some errors but they seem unrelated:\r\n\r\n\r\n\r\nTFLiteXNNPackDelegate seems to be used though, maybe something related to me using an emulator. Can you let me know what API level you are using for your pixel 7 Pro?",
"I haven't tried it with an emulator, but it might be related to it. I'm away from my PC right now, but I'll check with an emulator on my end later to see if it's same as you.\r\n\r\nThe API level I'm using should be 33. \r\n\r\nThanks.",
"Hi @pkgoogle,\r\nI tried with an emulator, but it doesn't reproduce the error. Please use some physical devices. I confirmed that at least the issues occurs with the two phones I've tried (Pixel 7 Pro and Galaxy S21 Exynos).\r\nThanks.",
"Hi @arfaian, can you please take a look? Thanks.",
"Hi @arfaian, do you have any updates on this? If you could help on this, that would be great. Thanks.",
"I also have same issue here",
"I also experienced the same issue here."
] | 2023-10-16T11:10:13 | 2024-02-03T13:26:19 | null | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution: TFLite conversion on Windows 10 and run models on Android 13
- TensorFlow installation: pip package
- TensorFlow library: 2.14.0
### 2. Code
I understand the importance of providing a reproducible code for better troubleshooting. Given the size and complexity of the model, I'm unable to provide a simplified version immediately. However, I am actively working on preparing one to help diagnose the issue more effectively.
In the meantime, if there are any insights, workarounds, how to debug, or known issues that you can infer from the error message I've shared below, it would be immensely helpful.
### 3. Failure after conversion
Model produces correct results on my PC, but an error occurs when tyring to load it on an Android device.
Any insights or solutions would be greatly appreciated. I'd like to know if there's something I'm missing or if this is a known issue.
### 5. Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
I'm currently trying to run a TFLite model on an Android mobile device using the GPU Delegate. While the converted TFLite model works perfectly on my PC, I encounter an error when trying to load it on the mobile device. Here's the error message I received:
```
Internal error: Failed to apply delegate: Failed to build program executable - Build program failure<source>:69:103: error: expected expression
{half4 second_value = read_imageh(src_tensor_1_image2d, smp_zero, (int2)(((0) * shared_int4_0.w + (())), ((0) * shared_int4_1.x + ((Z)))));
^
error: Compiler frontend failed (error code 63)
Falling back to OpenGL
TfLiteGpuDelegate Init: Batch size mismatch, exp
at org.tensorflow.lite.NativeInterpreterWrapper.createInterpreter(Native Method)
at org.tensorflow.lite.NativeInterpreterWrapper.init(NativeInterpreterWrapper.java:110)
at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:73)
at org.tensorflow.lite.NativeInterpreterWrapperExperimental.<init>(NativeInterpreterWrapperExperimental.java:36)
at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:232)
at com.XXX.ModelHelper.loadModelFromStorage(ModelHelper.kt:171)
```
While there's no issue loading with TFLite CPU, I encounter the following error during execution. What's weird is that even though I'm feeding the same size of data on both PC and mobile, this error only appears on the mobile.
```
Shutting down VM
FATAL EXCEPTION: main
Process: com.XXX, PID: 8445
java.lang.IllegalStateException: Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/reshape.cc:92 num_input_elements != num_output_elements (81920 != 1310720)
Node number 995 (RESHAPE) failed to prepare.
at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensors(Native Method)
at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensorsIfNeeded(NativeInterpreterWrapper.java:308)
at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:248)
at org.tensorflow.lite.InterpreterImpl.runForMultipleInputsOutputs(InterpreterImpl.java:101)
at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:95)
at com.XXX.ModelHelper.runModel(ModelHelper.kt:316)
```
I have confirmed that the same error occurs on at least two different Android devices (Pixel 7 Pro and Galaxy S20 Exynos).
Thank you for your understanding and assistance. I truly appreciate any guidance you can provide.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62120/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62120/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62119 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62119/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62119/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62119/events | https://github.com/tensorflow/tensorflow/pull/62119 | 1,944,700,331 | PR_kwDOArmXAs5c30qK | 62,119 | Remove user 'Varsha-anjanappa' from auto-assignment list. | {
"login": "shmishra99",
"id": 124146945,
"node_id": "U_kgDOB2ZVAQ",
"avatar_url": "https://avatars.githubusercontent.com/u/124146945?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shmishra99",
"html_url": "https://github.com/shmishra99",
"followers_url": "https://api.github.com/users/shmishra99/followers",
"following_url": "https://api.github.com/users/shmishra99/following{/other_user}",
"gists_url": "https://api.github.com/users/shmishra99/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shmishra99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shmishra99/subscriptions",
"organizations_url": "https://api.github.com/users/shmishra99/orgs",
"repos_url": "https://api.github.com/users/shmishra99/repos",
"events_url": "https://api.github.com/users/shmishra99/events{/privacy}",
"received_events_url": "https://api.github.com/users/shmishra99/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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-10-16T08:48:01 | 2023-10-20T14:54:27 | 2023-10-20T14:54:26 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62119",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62119",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62119.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62119.patch",
"merged_at": "2023-10-20T14:54:26"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62119/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62119/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62118 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62118/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62118/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62118/events | https://github.com/tensorflow/tensorflow/issues/62118 | 1,944,494,528 | I_kwDOArmXAs5z5qHA | 62,118 | How to use Tensorflow or TFLite for Renesas Boards. There are almost no tutorials on official tf website also. | {
"login": "Varun-pro",
"id": 56366874,
"node_id": "MDQ6VXNlcjU2MzY2ODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/56366874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varun-pro",
"html_url": "https://github.com/Varun-pro",
"followers_url": "https://api.github.com/users/Varun-pro/followers",
"following_url": "https://api.github.com/users/Varun-pro/following{/other_user}",
"gists_url": "https://api.github.com/users/Varun-pro/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varun-pro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varun-pro/subscriptions",
"organizations_url": "https://api.github.com/users/Varun-pro/orgs",
"repos_url": "https://api.github.com/users/Varun-pro/repos",
"events_url": "https://api.github.com/users/Varun-pro/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varun-pro/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@Varun-pro,\r\nThe TensorFlow provides TensorFlow Lite for Microcontrollers which is designed to run machine learning models on microcontrollers and other devices with only a few kilobytes of memory.\r\n\r\nPlease check the list of [supported platforms](https://www.tensorflow.org/lite/microcontrollers#supported_platforms) which includes [STM32F746 Discovery kit](https://www.st.com/en/evaluation-tools/32f746gdiscovery.html).\r\n\r\nThe documentation provides a hello world template and other examples which can be used as templates to create own projects.\r\n\r\nThis [documentation](https://www.tensorflow.org/lite/microcontrollers/library) outlines the basic structure of the C++ library and provides information about creating your own project.\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/62118\">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/62118\">No</a>\n"
] | 2023-10-16T06:47:18 | 2023-11-01T01:48:45 | 2023-11-01T01:48:43 | NONE | null | null | null | ### Issue type
Support
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.14
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 20.04
### Mobile device
Renesas Board
### Python version
3.8
### Bazel version
6.1.0
### GCC/compiler version
9
### CUDA/cuDNN version
11.8/8.6
### GPU model and memory
AXM-8-256
### Current behavior?
I want to run a resnet50 model on Renesas v4h board using tensorflow or tflite. Does tflite/tensorflow support Renesas v-series boards . If so , then do we need to cross-compile tflite for renesas board and how to run the model on board?
### Standalone code to reproduce the issue
```shell
How to run tensorflow/tflite models on renesas v-series boards?
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62118/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62118/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62117 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62117/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62117/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62117/events | https://github.com/tensorflow/tensorflow/issues/62117 | 1,944,311,267 | I_kwDOArmXAs5z49Xj | 62,117 | Command `pip install tensorflow[and-cuda]` need quotation mark | {
"login": "ammar-818",
"id": 55966878,
"node_id": "MDQ6VXNlcjU1OTY2ODc4",
"avatar_url": "https://avatars.githubusercontent.com/u/55966878?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ammar-818",
"html_url": "https://github.com/ammar-818",
"followers_url": "https://api.github.com/users/ammar-818/followers",
"following_url": "https://api.github.com/users/ammar-818/following{/other_user}",
"gists_url": "https://api.github.com/users/ammar-818/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ammar-818/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ammar-818/subscriptions",
"organizations_url": "https://api.github.com/users/ammar-818/orgs",
"repos_url": "https://api.github.com/users/ammar-818/repos",
"events_url": "https://api.github.com/users/ammar-818/events{/privacy}",
"received_events_url": "https://api.github.com/users/ammar-818/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@cheesy-burger,\r\nCould you please provide more information for the requested change. Whenever I tried to install the tensorflow with the provided statement, it worked without any issues. **pip install tensorflow[and-cuda]**\r\n\r\n\r\n \r\n\r\nAnd also [Gist](https://colab.research.google.com/gist/tilakrayal/9b1293ec79de11e65bfc4894835d8367/untitled1394.ipynb) for the reference. \r\nhttps://www.tensorflow.org/install/pip\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/62117\">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/62117\">No</a>\n"
] | 2023-10-16T04:06:30 | 2023-10-31T01:47:46 | 2023-10-31T01:47:44 | NONE | null | null | null | Running this `pip install tensorflow[and-cuda]` command would be wrong as failed to install, but running `pip install "tensorflow[and-cuda]"` is okay. It just required the quotation mark. Please fix the documentation. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62117/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62117/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62116 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62116/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62116/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62116/events | https://github.com/tensorflow/tensorflow/issues/62116 | 1,944,201,767 | I_kwDOArmXAs5z4ion | 62,116 | Questions about the interpreter’s operational flow for quantized neural networks | {
"login": "Bajirak",
"id": 108508050,
"node_id": "U_kgDOBnezkg",
"avatar_url": "https://avatars.githubusercontent.com/u/108508050?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Bajirak",
"html_url": "https://github.com/Bajirak",
"followers_url": "https://api.github.com/users/Bajirak/followers",
"following_url": "https://api.github.com/users/Bajirak/following{/other_user}",
"gists_url": "https://api.github.com/users/Bajirak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Bajirak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Bajirak/subscriptions",
"organizations_url": "https://api.github.com/users/Bajirak/orgs",
"repos_url": "https://api.github.com/users/Bajirak/repos",
"events_url": "https://api.github.com/users/Bajirak/events{/privacy}",
"received_events_url": "https://api.github.com/users/Bajirak/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Bajirak \r\n\r\nBy default, the model will run by dequantizing the 8-bit parameters to 32-bits, and then performing operations in standard 32-bit floating point arithmetic depending on the hardware support(assuming hardware supports floating point arithmetic). \r\n\r\nFor example if there is a hardware support for accelerated fp16 calculations, it allowing us to drop the upsample to float32 and compute directly in these half precision values.\r\n\r\nThe information can be obtained from source code or the official Tensorflow Lite blogs and videos .\r\n\r\nFor example check enabling post-training float16 quantization blog\r\nhttps://blog.tensorflow.org/2019/08/tensorflow-model-optimization-toolkit_5.html\r\n\r\nThanks.\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"@pjpratik \r\n\r\nThank you. I really appreciate it!",
"No contents.",
"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/62116\">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/62116\">No</a>\n"
] | 2023-10-16T02:02:27 | 2023-10-29T23:40:03 | 2023-10-29T23:40:00 | NONE | null | null | null | ### Issue type
Others
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.13.0
### Custom code
No
### OS platform and distribution
Linux Ubuntu 18.04
### Mobile device
_No response_
### Python version
3.8
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Hi. TensorFlow
This is not a post related to issues or bugs, but a post related to questions.
I am curious about how the interpreter operates when a quantized neural network is given to it.
I looked for documentation related to this, but couldn't find it.
Let me give you an example of what I am looking for in a document.
Let's say that the data type of the convolution's input activation is float32, and the data type of the weight is int8.
At this time, the interpreter
operates after dequantizing the weight of the convolution.
OR,
operates after converting the activation of Convolution to int8.
I'm looking for an explanation like this.
Is there a link with an explanation like this?
### Standalone code to reproduce the issue
```shell
Not required.
```
### Relevant log output
```shell
Not required.
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62116/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62116/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62114 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62114/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62114/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62114/events | https://github.com/tensorflow/tensorflow/issues/62114 | 1,943,732,115 | I_kwDOArmXAs5z2v-T | 62,114 | Internal Error for truncatediv when denominator is an integer zero. | {
"login": "drewshark",
"id": 128925028,
"node_id": "U_kgDOB689ZA",
"avatar_url": "https://avatars.githubusercontent.com/u/128925028?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/drewshark",
"html_url": "https://github.com/drewshark",
"followers_url": "https://api.github.com/users/drewshark/followers",
"following_url": "https://api.github.com/users/drewshark/following{/other_user}",
"gists_url": "https://api.github.com/users/drewshark/gists{/gist_id}",
"starred_url": "https://api.github.com/users/drewshark/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drewshark/subscriptions",
"organizations_url": "https://api.github.com/users/drewshark/orgs",
"repos_url": "https://api.github.com/users/drewshark/repos",
"events_url": "https://api.github.com/users/drewshark/events{/privacy}",
"received_events_url": "https://api.github.com/users/drewshark/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | 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 | [
"Can I try my hands on it?",
"@drewshark Thank you for raising this issue!\r\nTruncation designates that negative numbers will round fractional quantities toward zero. It performs integer division. When the denominator is zero, there is no integer quotient that can be defined, so the function raises an error.\r\nCould you use a floating-point denominator instead of an integer denominator, but this will change the behavior of the truncatediv function, as it will now perform floating-point division instead of integer division. Please let us know if it helps?\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62114\">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/62114\">No</a>\n"
] | 2023-10-15T05:48:56 | 2023-11-15T01:49:26 | 2023-11-15T01:49:22 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
tf.truncatediv raises internal error when denominator is an integer zero. If the denominator is a float zero, this function works normally.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
x = tf.constant(33, dtype="int32")
y = tf.constant(0, dtype="int32")
print(x, y)
print(tf.truncatediv(x,y))
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62114/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62114/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62113 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62113/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62113/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62113/events | https://github.com/tensorflow/tensorflow/issues/62113 | 1,943,188,128 | I_kwDOArmXAs5z0rKg | 62,113 | Utilize Hexagon DSP using Python on ARM Devkit | {
"login": "Abhinav0002",
"id": 54789584,
"node_id": "MDQ6VXNlcjU0Nzg5NTg0",
"avatar_url": "https://avatars.githubusercontent.com/u/54789584?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Abhinav0002",
"html_url": "https://github.com/Abhinav0002",
"followers_url": "https://api.github.com/users/Abhinav0002/followers",
"following_url": "https://api.github.com/users/Abhinav0002/following{/other_user}",
"gists_url": "https://api.github.com/users/Abhinav0002/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Abhinav0002/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Abhinav0002/subscriptions",
"organizations_url": "https://api.github.com/users/Abhinav0002/orgs",
"repos_url": "https://api.github.com/users/Abhinav0002/repos",
"events_url": "https://api.github.com/users/Abhinav0002/events{/privacy}",
"received_events_url": "https://api.github.com/users/Abhinav0002/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
}
] | closed | false | {
"login": "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 | [
"@Abhinav0002 Here is a new [TensorFlow Lite delegate](https://www.tensorflow.org/lite/performance/delegates) that utilizes Hexagon NN Direct to run quantized models faster on the millions of mobile devices with Hexagon DSPs. Could you please have a look at this for reference? \r\nFor any further queries can you please post the issue on TF [forum](https://discuss.tensorflow.org/) where there is a larger community that would help you. Thank you! ",
"I want to run for ARM Linux, is there any documentation for cross-compilation for ARM ?",
"@Abhinav0002 For more detailed instructions, please refer to the TensorFlow documentation:\r\n\r\nCross-compiling TensorFlow Lite with Bazel: https://www.tensorflow.org/lite/guide/build_arm\r\nCross-compiling TensorFlow Lite with CMake: https://www.tensorflow.org/lite/guide/build_cmake_arm\\\r\n\r\nThank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62113\">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/62113\">No</a>\n"
] | 2023-10-14T10:56:43 | 2023-11-17T10:54:14 | 2023-11-17T10:54:11 | NONE | null | null | null | I am trying to run Tensorflow utilizing the Hexagon DSP on an ARM Devkit running ARM Linux
I am able to build Tensorflow for DSP. Also the necessary DSP files are available (.so files) , but I am not able to find resources for any code in Python that would be able to run on DSP | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62113/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62113/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62112 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62112/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62112/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62112/events | https://github.com/tensorflow/tensorflow/pull/62112 | 1,943,072,564 | PR_kwDOArmXAs5cyu91 | 62,112 | fix uint32 issue | {
"login": "fsx950223",
"id": 17592563,
"node_id": "MDQ6VXNlcjE3NTkyNTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/17592563?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fsx950223",
"html_url": "https://github.com/fsx950223",
"followers_url": "https://api.github.com/users/fsx950223/followers",
"following_url": "https://api.github.com/users/fsx950223/following{/other_user}",
"gists_url": "https://api.github.com/users/fsx950223/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fsx950223/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fsx950223/subscriptions",
"organizations_url": "https://api.github.com/users/fsx950223/orgs",
"repos_url": "https://api.github.com/users/fsx950223/repos",
"events_url": "https://api.github.com/users/fsx950223/events{/privacy}",
"received_events_url": "https://api.github.com/users/fsx950223/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": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
},
{
"id": 1178505529,
"node_id": "MDU6TGFiZWwxMTc4NTA1NTI5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/prtype:bugfix",
"name": "prtype:bugfix",
"color": "159b2e",
"default": false,
"description": "PR to fix a bug"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-14T08:10:35 | 2023-10-18T05:45:15 | 2023-10-18T05:45:15 | MEMBER | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62112",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62112",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62112.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62112.patch",
"merged_at": "2023-10-18T05:45:15"
} | Fix #62072 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62112/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62112/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62111 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62111/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62111/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62111/events | https://github.com/tensorflow/tensorflow/issues/62111 | 1,942,900,963 | I_kwDOArmXAs5zzlDj | 62,111 | After compilation, only 'libtensorflow_cc.so' was generated, and 'liblibtensorflow_cc.so.ifso' is missing | {
"login": "zengtianzeng",
"id": 80331367,
"node_id": "MDQ6VXNlcjgwMzMxMzY3",
"avatar_url": "https://avatars.githubusercontent.com/u/80331367?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zengtianzeng",
"html_url": "https://github.com/zengtianzeng",
"followers_url": "https://api.github.com/users/zengtianzeng/followers",
"following_url": "https://api.github.com/users/zengtianzeng/following{/other_user}",
"gists_url": "https://api.github.com/users/zengtianzeng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zengtianzeng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zengtianzeng/subscriptions",
"organizations_url": "https://api.github.com/users/zengtianzeng/orgs",
"repos_url": "https://api.github.com/users/zengtianzeng/repos",
"events_url": "https://api.github.com/users/zengtianzeng/events{/privacy}",
"received_events_url": "https://api.github.com/users/zengtianzeng/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": 3255468475,
"node_id": "MDU6TGFiZWwzMjU1NDY4NDc1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/2.6.0",
"name": "2.6.0",
"color": "FA96B6",
"default": false,
"description": ""
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@zengtianzeng,\r\nIf you need .dll files, you should only rename `bazel-bin\\tensorflow\\libtensorflow_cc.so` to `tensorflow_cc.dll.` and `bazel-bin\\tensorflow\\liblibtensorflow_cc.so.ifso` to `tensorflow_cc.lib`.\r\n\r\nAlso you are using tensorflow v2.6 and bazel 3.7.2 which are pretty old. So I request to update the tensorflow for the latest stable version 2.14 from the official document.\r\n\r\nGPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin.\r\nhttps://www.tensorflow.org/install/source_windows\r\n\r\nThank you!\r\n\r\n",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62111\">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/62111\">No</a>\n",
"> @zengtianzeng, If you need .dll files, you should only rename `bazel-bin\\tensorflow\\libtensorflow_cc.so` to `tensorflow_cc.dll.` and `bazel-bin\\tensorflow\\liblibtensorflow_cc.so.ifso` to `tensorflow_cc.lib`.\r\n> \r\n> Also you are using tensorflow v2.6 and bazel 3.7.2 which are pretty old. So I request to update the tensorflow for the latest stable version 2.14 from the official document.\r\n> \r\n> GPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin. https://www.tensorflow.org/install/source_windows\r\n> \r\n> Thank you!\r\n\r\nThank you!",
"@zengtianzeng,\r\nCould you please feel free to move this issue to closed status, if the issue got resolved. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62111\">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/62111\">No</a>\n"
] | 2023-10-14T02:49:05 | 2023-10-31T01:47:49 | 2023-10-31T01:47:46 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.6.0
### Custom code
Yes
### OS platform and distribution
Windows
### Mobile device
_No response_
### Python version
3.7.16
### Bazel version
3.7.2
### GCC/compiler version
2019
### CUDA/cuDNN version
11.2/8.1
### GPU model and memory
3090
### Current behavior?
"libtensorflow_cc.so"和"liblibtensorflow_cc.so.ifso" were both generated.
### Standalone code to reproduce the issue
```shell
only 'libtensorflow_cc.so' was generated, and 'liblibtensorflow_cc.so.ifso' is missing
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62111/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62111/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62110 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62110/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62110/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62110/events | https://github.com/tensorflow/tensorflow/pull/62110 | 1,942,824,494 | PR_kwDOArmXAs5cyF43 | 62,110 | [TOSA] fix legalization of tfl.quantize | {
"login": "Tai78641",
"id": 6504206,
"node_id": "MDQ6VXNlcjY1MDQyMDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6504206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tai78641",
"html_url": "https://github.com/Tai78641",
"followers_url": "https://api.github.com/users/Tai78641/followers",
"following_url": "https://api.github.com/users/Tai78641/following{/other_user}",
"gists_url": "https://api.github.com/users/Tai78641/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tai78641/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tai78641/subscriptions",
"organizations_url": "https://api.github.com/users/Tai78641/orgs",
"repos_url": "https://api.github.com/users/Tai78641/repos",
"events_url": "https://api.github.com/users/Tai78641/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tai78641/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rsuderman, Can you please review this PR ? Thank you!"
] | 2023-10-14T00:44:28 | 2023-11-21T20:49:33 | 2023-11-21T20:49:32 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62110",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62110",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62110.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62110.patch",
"merged_at": "2023-11-21T20:49:32"
} | legalization of tfl.quantize used to do:
- multiply by scale in f32, add zeropoint in f32, cast to output type
this led to mismatches because tosa cast (fp to int) used rounding mode: "round to nearest, tie to even",
so rounding can be wrong when adding the zeropoint before rounding.
this patch changes legalization to do:
- multiply by scale in f32, cast to i32, add zeropoint in i32, cast to output type
- also, if zeropoint is 0, then skip the "cast to i32" and "add zeropoint"
Change-Id: Ibaacd24778d83dd2cf1b1d914b287e32f4d775d0 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62110/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62110/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62109 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62109/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62109/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62109/events | https://github.com/tensorflow/tensorflow/issues/62109 | 1,942,741,075 | I_kwDOArmXAs5zy-BT | 62,109 | Errors when building v2.14 from source - ubuntu 20.04 / arm64 / GPU + CUDA (capabilities 8.7) / clang 16 | {
"login": "antoniaelsen",
"id": 3891725,
"node_id": "MDQ6VXNlcjM4OTE3MjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/3891725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/antoniaelsen",
"html_url": "https://github.com/antoniaelsen",
"followers_url": "https://api.github.com/users/antoniaelsen/followers",
"following_url": "https://api.github.com/users/antoniaelsen/following{/other_user}",
"gists_url": "https://api.github.com/users/antoniaelsen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/antoniaelsen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/antoniaelsen/subscriptions",
"organizations_url": "https://api.github.com/users/antoniaelsen/orgs",
"repos_url": "https://api.github.com/users/antoniaelsen/repos",
"events_url": "https://api.github.com/users/antoniaelsen/events{/privacy}",
"received_events_url": "https://api.github.com/users/antoniaelsen/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @antoniaelsen ,\r\n\r\nBy looking at the logs it seems your environment have CUDA 11.4 and cuDNN 8 versions which may raise compatibility issues. For TF2.14v, CUDA=11.8 and cuDNN=8.7 are tested versions.\r\n\r\nPlease refer the official tested build configurations [here](https://www.tensorflow.org/install/source#gpu).\r\n\r\nCould you test with official build configurations and let us know the outcome.\r\n\r\nThanks!",
"> Hi @antoniaelsen ,\r\n> \r\n> By looking at the logs it seems your environment have CUDA 11.4 and cuDNN 8 versions which may raise compatibility issues. For TF2.14v, CUDA=11.8 and cuDNN=8.7 are tested versions.\r\n> \r\n> Please refer the official tested build configurations [here](https://www.tensorflow.org/install/source#gpu).\r\n> \r\n> Could you test with official build configurations and let us know the outcome.\r\n> \r\n> Thanks!\r\n\r\nThat did it, 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/62109\">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/62109\">No</a>\n"
] | 2023-10-13T22:49:45 | 2023-10-25T16:57:27 | 2023-10-25T16:57:24 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
v2.14.0
### Custom code
No
### OS platform and distribution
Ubuntu 20.04.6
### Mobile device
_No response_
### Python version
3.10.13
### Bazel version
6.1.0
### GCC/compiler version
clang 16.0.6
### CUDA/cuDNN version
11.4 / 8.6.0
### GPU model and memory
jetson orin agx -> nvidia ampere
### Current behavior?
Attempting to build TF from source
- Jetson Orin w Ampere GPU, arm64
- TF 2.14.0
- bazel 6.1.0
- python 3.10
`./configure`
- no ROCm
- yes CUDA (capabilities = 8.7)
- no TensorRT
- using clang 16 as cuda compiler
`bazel build //tensorflow/tools/pip_package:build_pip_package`
Resultng behavior: build fails, with the following error:
```
.../tensorflow/core/kernels/BUILD:4996:18: Compiling tensorflow/core/kernels/sparse_reorder_op_gpu.cu.cc failed: (Exit 1): clang failed: error executing command (from target
//tensorflow/core/kernels:sparse_reorder_op_gpu) /usr/lib/llvm-16/bin/clang -MD -MF bazel-out/aarch64-opt/bin/tensorflow/core/kernels/_objs/sparse_reorder_op_gpu/sparse_reorder_op_gpu.cu.pic.d ... (remaining 192 a
rguments skipped)
In file included from tensorflow/core/kernels/sparse_reorder_op_gpu.cu.cc:21:
In file included from ./tensorflow/core/kernels/gpu_prim.h:24:
In file included from bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/device_radix_sort.cuh:40:
In file included from bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/dispatch/dispatch_radix_sort.cuh:40:
In file included from bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/dispatch/../../agent/agent_radix_sort_histogram.cuh:38:
bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/dispatch/../../agent/../block/radix_rank_sort_operations.cuh:124:20: error: explicit qualification required to use member 'ProcessFl
oatMinusZero' from dependent base class
return BFE(ProcessFloatMinusZero(key), bit_start, num_bits);
^
...
bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/device_radix_sort.cuh:168:65: note: in instantiation of member function 'cub::DispatchRadixSort<false, long, long, int>::Dispatch' r
equested here
return DispatchRadixSort<false, KeyT, ValueT, OffsetT>::Dispatch(
^
./tensorflow/core/kernels/gpu_prim_helpers.h:117:37: note: in instantiation of function template specialization 'cub::DeviceRadixSort::SortPairs<long, long>' requested here
err = gpuprim::DeviceRadixSort::SortPairs(
^
./tensorflow/core/kernels/gpu_prim_helpers.h:159:18: note: in instantiation of function template specialization 'tensorflow::detail::GpuRadixSortImpl<false, long, long>' requested here
return detail::GpuRadixSortImpl</*Descending=*/false>(
^
tensorflow/core/kernels/sparse_reorder_op_gpu.cu.cc:104:12: note: in instantiation of function template specialization 'tensorflow::GpuRadixSort<long, long>' requested here
c, GpuRadixSort(c, num_elems, /*keys_in=*/flat_indices,
^
bazel-out/aarch64-opt/bin/external/local_config_cuda/cuda/cuda/include/cub/device/dispatch/../../agent/../block/radix_rank_sort_operations.cuh:98:52: note: member is declared here
static __device__ __forceinline__ UnsignedBits ProcessFloatMinusZero(UnsignedBits key)
^
2 errors generated when compiling for sm_87.
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: 9646.040s, Critical Path: 487.26s
INFO: 17934 processes: 6479 internal, 11455 local.
FAILED: Build did NOT complete successfully
```
### Standalone code to reproduce the issue
```shell
see below
```
### Relevant log output
```shell
<someuser>:tensorflow ➜ git status
HEAD detached at v2.14.0
nothing to commit, working tree clean
<someuser>:tensorflow ➜ ./configure
You have bazel 6.1.0 installed.
Please specify the location of python. [Default is /home/someuser/.pyenv/versions/3.10.13/bin/python3]:
Found possible Python library paths:
/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages
Please input the desired Python library path to use. Default is [/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages]
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Do you wish to build TensorFlow with TensorRT support? [y/N]:
No TensorRT support will be enabled for TensorFlow.
Found CUDA 11.4 in:
/usr/local/cuda-11.4/targets/aarch64-linux/lib
/usr/local/cuda-11.4/targets/aarch64-linux/include
Found cuDNN 8 in:
/usr/lib/aarch64-linux-gnu
/usr/include
Please specify a list of comma-separated CUDA compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code.
Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 8.7
Do you want to use clang as CUDA compiler? [Y/n]:
Clang will be used as CUDA compiler.
Please specify clang path that to be used as host compiler. [Default is /usr/lib/llvm-16/bin/clang]:
You have Clang 16.0.6 installed.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: N
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl # Build with MKL support.
--config=mkl_aarch64 # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
--config=monolithic # Config for mostly static monolithic build.
--config=numa # Build with NUMA support.
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
--config=v1 # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
--config=nogcp # Disable GCP support.
--config=nonccl # Disable NVIDIA NCCL support.
Configuration finished
<someuser>:tensorflow ➜ bazel build //tensorflow/tools/pip_package:build_pip_package
WARNING: while reading option defaults file '/home/someuser/projects/other/tensorflow/.bazelrc':
invalid command name 'startup:windows'.
WARNING: The following configs were expanded more than once: [cuda_clang, cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=214
INFO: Reading rc options for 'build' from /home/someuser/projects/other/tensorflow/.bazelrc:
Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/someuser/projects/other/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 --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /home/someuser/projects/other/tensorflow/.tf_configure.bazelrc:
'build' options: --action_env PYTHON_BIN_PATH=/home/someuser/.pyenv/versions/3.10.13/bin/python3 --action_env PYTHON_LIB_PATH=/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages --python_path=/home/someuser/.pyenv/versions/3.10.13/bin/python3 --action_env CUDA_TOOLKIT_PATH=/usr/local/cuda-11.4 --action_env TF_CUDA_COMPUTE_CAPABILITIES=8.7 --config=cuda_clang --action_env CLANG_CUDA_COMPILER_PATH=/usr/lib/llvm-16/bin/clang --copt=-Wno-gnu-offsetof-extensions --config=cuda_clang
INFO: Found applicable config definition build:short_logs in file /home/someuser/projects/other/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/someuser/projects/other/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:cuda_clang in file /home/someuser/projects/other/tensorflow/.bazelrc: --config=cuda --repo_env TF_CUDA_CLANG=1 --@local_config_cuda//:cuda_compiler=clang
INFO: Found applicable config definition build:cuda in file /home/someuser/projects/other/tensorflow/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:cuda_clang in file /home/someuser/projects/other/tensorflow/.bazelrc: --config=cuda --repo_env TF_CUDA_CLANG=1 --@local_config_cuda//:cuda_compiler=clang
INFO: Found applicable config definition build:cuda in file /home/someuser/projects/other/tensorflow/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:linux in file /home/someuser/projects/other/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /home/someuser/projects/other/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/668e33c6401abe7844691fb7d47a3cf2d2012dbc.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/769f5cc9b8732933140b09e8808d13614182b496.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: while reading option defaults file '/home/someuser/projects/other/tensorflow/.bazelrc':
invalid command name 'startup:windows'.
WARNING: The following configs were expanded more than once: [cuda_clang, cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
INFO: Build options --copt and --host_copt have changed, discarding analysis cache.
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/9ae6c373a6e2941ff84a8831bb3724728cb2b49a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/pytorch/cpuinfo/archive/87d8234510367db49a65535021af5e1838a65ac2.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/triton/archive/cl546794996.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (1 packages loaded, 47122 targets configured).
INFO: Found 1 target...
[1,765 / 6,027] 8 actions running
[1,802 / 6,027] 8 actions running
Compiling mlir/lib/Dialect/Arith/IR/ArithOps.cpp [for tool]; 41s local
Compiling mlir/lib/Dialect/Arith/IR/ArithDialect.cpp [for tool]; 40s local
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: build interrupted
INFO: Elapsed time: 195.807s, Critical Path: 101.10s
INFO: 301 processes: 15 internal, 286 local.
FAILED: Build did NOT complete successfully
<someuser>:tensorflow ➜
<someuser>:tensorflow ➜
<someuser>:tensorflow ➜
<someuser>:tensorflow ➜ reset
<someuser>:tensorflow ➜ bazel clean
WARNING: while reading option defaults file '/home/someuser/projects/other/tensorflow/.bazelrc':
invalid command name 'startup:windows'.
WARNING: The following configs were expanded more than once: [cuda_clang, cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=214
INFO: Reading rc options for 'clean' from /home/someuser/projects/other/tensorflow/.bazelrc:
Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'clean' from /home/someuser/projects/other/tensorflow/.bazelrc:
Inherited 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'clean' from /home/someuser/projects/other/tensorflow/.tf_configure.bazelrc:
Inherited 'build' options: --action_env PYTHON_BIN_PATH=/home/someuser/.pyenv/versions/3.10.13/bin/python3 --action_env PYTHON_LIB_PATH=/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages --python_path=/home/someuser/.pyenv/versions/3.10.13/bin/python3 --action_env CUDA_TOOLKIT_PATH=/usr/local/cuda-11.4 --action_env TF_CUDA_COMPUTE_CAPABILITIES=8.7 --config=cuda_clang --action_env CLANG_CUDA_COMPILER_PATH=/usr/lib/llvm-16/bin/clang --copt=-Wno-gnu-offsetof-extensions --config=cuda_clang
INFO: Found applicable config definition build:short_logs in file /home/someuser/projects/other/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/someuser/projects/other/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:cuda_clang in file /home/someuser/projects/other/tensorflow/.bazelrc: --config=cuda --repo_env TF_CUDA_CLANG=1 --@local_config_cuda//:cuda_compiler=clang
INFO: Found applicable config definition build:cuda in file /home/someuser/projects/other/tensorflow/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:cuda_clang in file /home/someuser/projects/other/tensorflow/.bazelrc: --config=cuda --repo_env TF_CUDA_CLANG=1 --@local_config_cuda//:cuda_compiler=clang
INFO: Found applicable config definition build:cuda in file /home/someuser/projects/other/tensorflow/.bazelrc: --repo_env TF_NEED_CUDA=1 --crosstool_top=@local_config_cuda//crosstool:toolchain --@local_config_cuda//:enable_cuda
INFO: Found applicable config definition build:linux in file /home/someuser/projects/other/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /home/someuser/projects/other/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
<someuser>:tensorflow ➜ reset
'
<someuser>:tensorflow ➜ git status
HEAD detached at v2.14.0
nothing to commit, working tree clean
<someuser>:tensorflow ➜ bazel --version
bazel 6.1.0
<someuser>:tensorflow ➜ clang-16 --version
Ubuntu clang version 16.0.6 (++20230710042046+7cbf1a259152-1~exp1~20230710162136.105)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
<someuser>:tensorflow ➜ ./configure
You have bazel 6.1.0 installed.
Please specify the location of python. [Default is /home/someuser/.pyenv/versions/3.10.13/bin/python3]:
Found possible Python library paths:
/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages
Please input the desired Python library path to use. Default is [/home/someuser/.pyenv/versions/3.10.13/lib/python3.10/site-packages]
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Do you wish to build TensorFlow with TensorRT support? [y/N]:
No TensorRT support will be enabled for TensorFlow.
Found CUDA 11.4 in:
/usr/local/cuda-11.4/targets/aarch64-linux/lib
/usr/local/cuda-11.4/targets/aarch64-linux/include
Found cuDNN 8 in:
/usr/lib/aarch64-linux-gnu
/usr/include
Please specify a list of comma-separated CUDA compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code.
Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 3.5,7.0]: 8.7
Do you want to use clang as CUDA compiler? [Y/n]:
Clang will be used as CUDA compiler.
Please specify clang path that to be used as host compiler. [Default is /usr/lib/llvm-16/bin/clang]:
You have Clang 16.0.6 installed.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl # Build with MKL support.
--config=mkl # Build with MKL support. [12/7774]
--config=mkl_aarch64 # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
--config=monolithic # Config for mostly static monolithic build.
--config=numa # Build with NUMA support.
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
--config=v1 # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
--config=nogcp # Disable GCP support.
--config=nonccl # Disable NVIDIA NCCL support.
Configuration finished
<someuser>:tensorflow ➜ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
/////////////////////////
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62109/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62109/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62108 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62108/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62108/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62108/events | https://github.com/tensorflow/tensorflow/issues/62108 | 1,942,354,564 | I_kwDOArmXAs5zxfqE | 62,108 | [Q] ConvertPrimitiveTypeToMLIRType and mlir::IntegerType::Signless | {
"login": "apivovarov",
"id": 218087,
"node_id": "MDQ6VXNlcjIxODA4Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/218087?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/apivovarov",
"html_url": "https://github.com/apivovarov",
"followers_url": "https://api.github.com/users/apivovarov/followers",
"following_url": "https://api.github.com/users/apivovarov/following{/other_user}",
"gists_url": "https://api.github.com/users/apivovarov/gists{/gist_id}",
"starred_url": "https://api.github.com/users/apivovarov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/apivovarov/subscriptions",
"organizations_url": "https://api.github.com/users/apivovarov/orgs",
"repos_url": "https://api.github.com/users/apivovarov/repos",
"events_url": "https://api.github.com/users/apivovarov/events{/privacy}",
"received_events_url": "https://api.github.com/users/apivovarov/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 1133285679,
"node_id": "MDU6TGFiZWwxMTMzMjg1Njc5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla",
"name": "comp:xla",
"color": "0052cc",
"default": false,
"description": "XLA"
}
] | 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 | [
"Got the following replies\r\nhttps://github.com/openxla/xla/commit/3dab17571e28a5acac08e4905f115fc6da9365b4#r129933757\r\n\r\nhttps://groups.google.com/a/openxla.org/g/openxla-discuss/c/ILBDvAIp0Ps",
"Hi, @apivovarov ! Thank you for asking this question. \r\nYour above comment is helpful.\r\nThere is an open [ticket](https://github.com/openxla/stablehlo/issues/22), once that will close then this issue would be resolved, it seems. Thank you! "
] | 2023-10-13T17:30:43 | 2023-10-18T04:48:21 | 2023-10-18T04:48:21 | CONTRIBUTOR | null | null | null | I have a question about the code block below https://github.com/tensorflow/tensorflow/blob/master/third_party/xla/xla/translate/hlo_to_mhlo/hlo_utils.cc#L286-L288
hlo_utils.cc - ConvertPrimitiveTypeToMLIRType
```
default:
if (primitive_util::IsIntegralType(element_type)) {
return mlir::IntegerType::get(
builder.getContext(),
/*width=*/primitive_util::BitWidth(element_type),
/*signed=*/
primitive_util::IsUnsignedIntegralType(element_type)
? mlir::IntegerType::Unsigned
: mlir::IntegerType::Signless);
}
```
Should we return `mlir::IntegerType::Signed` instead of `mlir::IntegerType::Signless` ?
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62108/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62108/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62107 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62107/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62107/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62107/events | https://github.com/tensorflow/tensorflow/issues/62107 | 1,942,081,491 | I_kwDOArmXAs5zwc_T | 62,107 | UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position XX: invalid continuation byte | {
"login": "DemO-O-On",
"id": 71461233,
"node_id": "MDQ6VXNlcjcxNDYxMjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/71461233?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DemO-O-On",
"html_url": "https://github.com/DemO-O-On",
"followers_url": "https://api.github.com/users/DemO-O-On/followers",
"following_url": "https://api.github.com/users/DemO-O-On/following{/other_user}",
"gists_url": "https://api.github.com/users/DemO-O-On/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DemO-O-On/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DemO-O-On/subscriptions",
"organizations_url": "https://api.github.com/users/DemO-O-On/orgs",
"repos_url": "https://api.github.com/users/DemO-O-On/repos",
"events_url": "https://api.github.com/users/DemO-O-On/events{/privacy}",
"received_events_url": "https://api.github.com/users/DemO-O-On/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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "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 | [
"Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name",
"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/62107\">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/62107\">No</a>\n",
"> Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name\r\n\r\nHowever no, the problem isn't solved - it suddenly stopped to open models with non-english characters",
"> > Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name\r\n> \r\n> However no, the problem isn't solved - it suddenly stopped to open models with non-english characters\r\n\r\nUpd: I changed my command prompt encoding to UTF-8 following [this](https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096) and got new error:\r\n\r\n```\r\n2023-10-19 01:41:23.044095: E tensorflow/tsl/platform/windows/windows_file_system.cc:362] ERROR: GetSymbolicLinkTarget cannot open file for \\\\?\\C:\\Users\\termi\\Desktop\\stlsegm\\Низ_все\\Низ_без_десны только низ\\Model_7_без_десны_все только низ GetLastError: 5\r\n\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\termi\\Desktop\\stlsegm\\Низ_все\\Низ_без_десны только низ\\2.py\", line 6, in <module>\r\n a = tf.keras.saving.load_model('Model_7_без_десны_все только низ')\r\n File \"C:\\Users\\termi\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\keras\\saving\\saving_api.py\", line 212, in load_model\r\n return legacy_sm_saving_lib.load_model(\r\n File \"C:\\Users\\termi\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\keras\\utils\\traceback_utils.py\", line 70, in error_handler\r\n raise e.with_traceback(filtered_tb) from None\r\n File \"C:\\Users\\termi\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\h5py\\_hl\\files.py\", line 562, in __init__\r\n fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)\r\n File \"C:\\Users\\termi\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\h5py\\_hl\\files.py\", line 235, in make_fid\r\n fid = h5f.open(name, flags, fapl=fapl)\r\n File \"h5py\\_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper\r\n File \"h5py\\_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper\r\n File \"h5py\\h5f.pyx\", line 102, in h5py.h5f.open\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\ntensorflow.python.framework.errors_impl.UnknownError: NewRandomAccessFile failed to Create/Open: Model_7_без_десны_все только низ : Access denied.\r\n\r\n; Input/output error\r\n[Finished in 3.2s]\r\n```\r\n\r\nThe folder `Низ_без_десны только низ` can be read and something can be written there. The error is encountered in Python 3.9, 3.10 and tf 2.12.0, 2.13.0, 2.14.0",
"@DemO-O-On This issue generally occurs when the python interpreter tries to decode the byte sequence that is not a valid UTF-8 encoded character. It could be because of the following reasons as well;\r\na. The data might be corrupted or invalid.\r\nb. The data is encoded in a different encoding.\r\nc. The data contains a character that is not supported by the UTF-8 encoding etc.\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/62107\">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/62107\">No</a>\n",
"The following path has only ASCII characters, but it still fails to load\r\n\r\nOriginal path: `\\\\SERVER-1\\Public\\functional_models\\exp_151`\r\nTensorflow version: 2.12.0\r\nError:\r\n```\r\ntensorflow/tsl/platform/windows/windows_file_system.cc:362] ERROR: GetSymbolicLinkTarget cannot open file for \\\\?\\\\\\SERVER-1\\Public\\functional_models\\exp_151 GetLastError: 123\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\Riccardo\\Documents\\proj\\scripts\\offline.py\", line 202, in <module>\r\n model: tf.keras.Model = tf.keras.models.load_model(model_path)\r\n File \"C:\\Users\\Riccardo\\Documents\\venv_tmp\\lib\\site-packages\\keras\\saving\\saving_api.py\", line 212, in load_model\r\n return legacy_sm_saving_lib.load_model(\r\n File \"C:\\Users\\Riccardo\\Documents\\venv_tmp\\lib\\site-packages\\keras\\utils\\traceback_utils.py\", line 70, in error_handler\r\n raise e.with_traceback(filtered_tb) from None\r\n File \"C:\\Users\\Riccardo\\Documents\\venv_tmp\\lib\\site-packages\\h5py\\_hl\\files.py\", line 562, in __init__\r\n fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)\r\n File \"C:\\Users\\Riccardo\\Documents\\venv_tmp\\lib\\site-packages\\h5py\\_hl\\files.py\", line 235, in make_fid\r\n fid = h5f.open(name, flags, fapl=fapl)\r\n File \"h5py\\_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper\r\n File \"h5py\\_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper\r\n File \"h5py\\h5f.pyx\", line 102, in h5py.h5f.open\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\n File \"h5py\\h5fd.pyx\", line 155, in h5py.h5fd.H5FD_fileobj_get_eof\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 191: invalid continuation byte\r\n```",
"@diriki Could you please create a new ticket with all the relevant information which we could track?\r\nThank you!"
] | 2023-10-13T14:34:18 | 2024-01-10T06:42:52 | 2023-11-14T01:48:23 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
tf 2.14.0
### Custom code
Yes
### OS platform and distribution
Windows 11 Home 22H2
### Mobile device
_No response_
### Python version
3.9.13
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I've created a model in google colab: [here](https://colab.research.google.com/drive/1776CZxkKcetQsPkJfMACWnNel3Hj-hbA?usp=sharing). Then downloaded it and loaded few times on my computer. However after these times it stopped to load by the function `tf.keras.saving.load_model(model_name)` and started to drop this error:
```
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
Cell In[3], line 9
5 import time
6 from random import sample
----> 9 model = tf.keras.saving.load_model('Верх сегментация')
File C:\Program Files\Python39\lib\site-packages\keras\src\saving\saving_api.py:262, in load_model(filepath, custom_objects, compile, safe_mode, **kwargs)
254 return saving_lib.load_model(
255 filepath,
256 custom_objects=custom_objects,
257 compile=compile,
258 safe_mode=safe_mode,
259 )
261 # Legacy case.
--> 262 return legacy_sm_saving_lib.load_model(
263 filepath, custom_objects=custom_objects, compile=compile, **kwargs
264 )
File C:\Program Files\Python39\lib\site-packages\keras\src\utils\traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs)
67 filtered_tb = _process_traceback_frames(e.__traceback__)
68 # To get the full stack trace, call:
69 # `tf.debugging.disable_traceback_filtering()`
---> 70 raise e.with_traceback(filtered_tb) from None
71 finally:
72 del filtered_tb
File C:\Program Files\Python39\lib\site-packages\h5py\_hl\files.py:562, in File.__init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds)
553 fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0,
554 locking, page_buf_size, min_meta_keep, min_raw_keep,
555 alignment_threshold=alignment_threshold,
556 alignment_interval=alignment_interval,
557 meta_block_size=meta_block_size,
558 **kwds)
559 fcpl = make_fcpl(track_order=track_order, fs_strategy=fs_strategy,
560 fs_persist=fs_persist, fs_threshold=fs_threshold,
561 fs_page_size=fs_page_size)
--> 562 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
564 if isinstance(libver, tuple):
565 self._libver = libver
File C:\Program Files\Python39\lib\site-packages\h5py\_hl\files.py:235, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
233 if swmr and swmr_support:
234 flags |= h5f.ACC_SWMR_READ
--> 235 fid = h5f.open(name, flags, fapl=fapl)
236 elif mode == 'r+':
237 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
File h5py\_objects.pyx:54, in h5py._objects.with_phil.wrapper()
File h5py\_objects.pyx:55, in h5py._objects.with_phil.wrapper()
File h5py\h5f.pyx:102, in h5py.h5f.open()
File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()
File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()
File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 77: invalid continuation byte
```
I haven't changed anything in the code, it just suddenly stopped to open. I've tried to recreate the model in colab and download it again, changed tf version on computer to tf 2.13.0 (colab has it). Also I've tried to open another models on my pc and all of them threw this error
[Model in google drive](https://drive.google.com/drive/folders/1QIYJklw1tW5WCBanlfkIFyKFLwMGzez3?usp=sharing)
### Standalone code to reproduce the issue
```shell
https://colab.research.google.com/drive/1776CZxkKcetQsPkJfMACWnNel3Hj-hbA?usp=sharing - colab code for the nn
https://gist.github.com/DemO-O-On/65d5f1114d8163ae234a57c7789d7039 - script for loading model
```
### Relevant log output
Output from jupyter when trying to load model:
`2023-10-13 16:33:40.479946: E tensorflow/tsl/platform/windows/windows_file_system.cc:363] ERROR: GetSymbolicLinkTarget cannot open file for \\?\C:\Users\termi\Desktop\stlsegm\╨Т╨╡╤А╤Е_╨▓╤Б╨╡\╨Т╨╡╤А╤Е_╨▒╨╡╨╖_╨┤╨╡╤Б╨╜╤Л ╤В╨╛╨╗╤М╨║╨╛ ╨▓╨╡╤А╤Е╨╜╨╕╨╡\╨Т╨╡╤А╤Е ╤Б╨╡╨│╨╝╨╡╨╜╤В╨░╤Ж╨╕╤П GetLastError: 5` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62107/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62107/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62106 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62106/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62106/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62106/events | https://github.com/tensorflow/tensorflow/issues/62106 | 1,941,478,443 | I_kwDOArmXAs5zuJwr | 62,106 | 编译后缺少liblibtensorflow_cc.so.ifso文件 只有libtensorflow_cc.so | {
"login": "zengtianzeng",
"id": 80331367,
"node_id": "MDQ6VXNlcjgwMzMxMzY3",
"avatar_url": "https://avatars.githubusercontent.com/u/80331367?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zengtianzeng",
"html_url": "https://github.com/zengtianzeng",
"followers_url": "https://api.github.com/users/zengtianzeng/followers",
"following_url": "https://api.github.com/users/zengtianzeng/following{/other_user}",
"gists_url": "https://api.github.com/users/zengtianzeng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zengtianzeng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zengtianzeng/subscriptions",
"organizations_url": "https://api.github.com/users/zengtianzeng/orgs",
"repos_url": "https://api.github.com/users/zengtianzeng/repos",
"events_url": "https://api.github.com/users/zengtianzeng/events{/privacy}",
"received_events_url": "https://api.github.com/users/zengtianzeng/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": 1593512946,
"node_id": "MDU6TGFiZWwxNTkzNTEyOTQ2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/invalid",
"name": "invalid",
"color": "db6f57",
"default": true,
"description": "Hacktoberfest spam PR"
}
] | closed | true | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-13T08:19:47 | 2023-10-13T16:45:52 | 2023-10-13T16:45:52 | NONE | spam | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.6.0
### Custom code
Yes
### OS platform and distribution
Windows
### Mobile device
_No response_
### Python version
3.7.16
### Bazel version
3.7.2
### GCC/compiler version
2019
### CUDA/cuDNN version
11.2/8.1
### GPU model and memory
3090
### Current behavior?
1
### Standalone code to reproduce the issue
```shell
INFO: Analyzed target //tensorflow:libtensorflow_cc.so (227 packages loaded, 22492 targets configured).
INFO: Found 1 target...
Target //tensorflow:libtensorflow_cc.so up-to-date:
bazel-bin/tensorflow/libtensorflow_cc.so
INFO: Elapsed time: 5307.398s, Critical Path: 942.31s
INFO: 14402 processes: 3952 internal, 10450 local.
INFO: Build completed successfully, 14402 total actions
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62106/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62106/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62105 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62105/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62105/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62105/events | https://github.com/tensorflow/tensorflow/issues/62105 | 1,941,230,207 | I_kwDOArmXAs5ztNJ_ | 62,105 | Error when convert dynamic axes ONNX to dynamic axes TFLite | {
"login": "ThuyyTran",
"id": 107923930,
"node_id": "U_kgDOBm7J2g",
"avatar_url": "https://avatars.githubusercontent.com/u/107923930?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ThuyyTran",
"html_url": "https://github.com/ThuyyTran",
"followers_url": "https://api.github.com/users/ThuyyTran/followers",
"following_url": "https://api.github.com/users/ThuyyTran/following{/other_user}",
"gists_url": "https://api.github.com/users/ThuyyTran/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ThuyyTran/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ThuyyTran/subscriptions",
"organizations_url": "https://api.github.com/users/ThuyyTran/orgs",
"repos_url": "https://api.github.com/users/ThuyyTran/repos",
"events_url": "https://api.github.com/users/ThuyyTran/events{/privacy}",
"received_events_url": "https://api.github.com/users/ThuyyTran/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 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": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @ThuyyTran \r\n\r\nCould you please share a toy TFLite model or TF saved model inorder to reproduce the error. That will help to better investigate the issue.\r\n\r\nThanks.",
"> Hi @ThuyyTran\r\n> \r\n> Could you please share a toy TFLite model or TF saved model inorder to reproduce the error. That will help to better investigate the issue.\r\n> \r\n> Thanks.\r\n\r\n\r\n@pjpratik Here is model: https://drive.google.com/drive/folders/1BUpjHtBOZYD_pqfBvUSQf25y9AMACufd?usp=sharing\r\n\r\n",
"@pjpratik Hi",
"I was able to reproduce this issue. Please find this [gist](https://colab.research.google.com/gist/pjpratik/afd62bad52fa7df3aaa16f81ad3e8bb7/62015.ipynb). Seems to be pytorch->onnx->tflite issue.\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"Hi @ThuyyTran, unfortunately we currently do not support dynamic input shapes and do not plan to in the near future as doing so will have too great of a performance impact to most workflows. https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model. For dynamic axes, please manually/force these axes to be static and shape your model/data statically before converting to .tflite format and let us know if that works.\r\n",
"> Hi @ThuyyTran, unfortunately we currently do not support dynamic input shapes and do not plan to in the near future as doing so will have too great of a performance impact to most workflows. https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model. For dynamic axes, please manually/force these axes to be static and shape your model/data statically before converting to .tflite format and let us know if that works.\r\n\r\nDoes it mean I can't use dynamic axes for the TFlite model? So what is dynamic input shape and how does it work?",
"@ThuyyTran, correct you can't use dynamic axes for the TFLite model, dynamic input shape means that one or more dimensions of your input data is variable. Dynamic axes defines which dimensions are variable, so if there are dynamic axes -> there is a dynamic input shape. TFLite is currently not designed to convert/handle dynamic input shapes due to the performance costs involved in handling such architectures. Usually there is a way to force your model/data to be statically shaped which makes sense but you'll have to figure it out for your own situation. Common ways include padding/cropping and various forms of extrapolation, interpolation, upsampling or downsampling but it really depends on what you are trying to do.",
"> @ThuyyTran, correct you can't use dynamic axes for the TFLite model, dynamic input shape means that one or more dimensions of your input data is variable. Dynamic axes defines which dimensions are variable, so if there are dynamic axes -> there is a dynamic input shape. TFLite is currently not designed to convert/handle dynamic input shapes due to the performance costs involved in handling such architectures. Usually there is a way to force your model/data to be statically shaped which makes sense but you'll have to figure it out for your own situation. Common ways include padding/cropping and various forms of extrapolation, interpolation, upsampling or downsampling but it really depends on what you are trying to do.\r\n\r\nWhen I run input sample with shape(224x244) by Onnx in step 1 and convert to TFlite. I tested TFLite model with sizes 411x411, 320x320 and it was successful but when I try with size 150x150, 480x480 so got error:\r\nline 917, in invoke\r\n self._interpreter.Invoke()\r\nRuntimeError: tensorflow/lite/kernels/squeeze.cc:63 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.Node number 254 (SQUEEZE) failed to prepare.",
"Hi @ThuyyTran, we don't purposely try to limit these workflows so sometimes it does handle dynamic shapes for some ops however because we can't guarantee it works for every case, it is considered not supported, in your case please statically size the input shape for the model (then convert it) and do data preprocessing to force your data into the right shape to feed into the converted model. For example say you choose 224x224 as your static input shape, you would need to upsample the 150x150 image (perhaps interpolate the holes?) and downsample the 480x480 image, before it ever gets to the converted model.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62105\">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/62105\">No</a>\n"
] | 2023-10-13T04:47:44 | 2023-10-19T06:43:24 | 2023-10-19T06:43:22 | NONE | null | null | null | ### 1. System information
- Ubuntu20.04
- Tensorflow: 2.11
- Python: 3.10.8
- Pytorch: 1.12.0
### 2. Code
#### The first convert Pytorch model to Onnx with dynamic input:
network = 'rSfM120k-tl-resnet50-gem-w'
state = load_url(PRETRAINED[network], model_dir=os.path.join(get_data_root(), 'networks'))
net_params = {}
net_params['architecture'] = state['meta']['architecture']
net_params['pooling'] = state['meta']['pooling']
net_params['local_whitening'] = state['meta'].get('local_whitening', False)
net_params['regional'] = state['meta'].get('regional', False)
net_params['whitening'] = state['meta'].get('whitening', True)
net_params['mean'] = state['meta']['mean']
net_params['std'] = state['meta']['std']
net_params['pretrained'] = False
net = init_network(net_params)
net.load_state_dict(state['state_dict'])
if useRmac:
net.pool = RMAC(3)
net.cuda()
net.eval()
dummy_input = torch.randn(1, 3, 400, 900)
input_names = [ "actual_input" ]
output_names = [ "output" ]
dynamic_axes_dict = { 'actual_input': { 0: 'bs', 2: 'img_x',3: 'img_y'},'Output': { 0: 'bs'}}
torch.onnx.export(net,
dummy_input,
"resnet50.onnx",
verbose=False,
input_names=input_names,
output_names=output_names,
dynamic_axes=dynamic_axes_dict,
opset_version=12,
)
#### The second convert Onnx model to Tf:
onnx_path = 'resnet50.onnx'
onnx_model = onnx.load( onnx_path)
onnx.checker.check_model(onnx_model)
tf_path = 'cirtorch_tf_0210_resnet50_withoutNor'
tf_rep = prepare(onnx_model) #Prepare TF representation
tf_rep.export_graph(tf_path) #Export the model
#### The third convert Tf model to TfLite:
tf_lite_path = '0210_cirtorch_fl16_resnet50_withoutNor.tflite'
converter = tf.lite.TFLiteConverter.from_saved_model(tf_path)
tflite_model = converter.convert()
with open(tf_lite_path, 'wb') as f:
f.write(tflite_model)
#### Test model TfLite with dynamic input:
tflite_model_path = tf_lite_path
interpreter = tf.lite.Interpreter(model_path=tflite_model_path,experimental_delegates=[])
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.resize_tensor_input(interpreter.get_input_details()[0]['index'],[1,3,200,200])
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.allocate_tensors()
x1 = torch.ones(1,3,200, 200)
input_data = np.array(x1, dtype=np.float32)
print(input_data.shape)
interpreter.set_tensor(input_details[0]['index'], input_data)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
print(output_data.shape)
### But I got error when invoke model TFLite:
Traceback (most recent call last):
File "convertCirtorchFreesizeTFlite.py", line 143, in <module>
interpreter.invoke()
File "/home/anlab/anaconda3/envs/bopw/lib/python3.10/site-packages/tensorflow/lite/python/interpreter.py", line 917, in invoke
self._interpreter.Invoke()
RuntimeError: tensorflow/lite/kernels/squeeze.cc:63 current >= 0 && current < input_num_dims && input_dims->data[current] == 1 was not true.Node number 0 (SQUEEZE) failed to prepare.Node number 144 (IF) failed to prepare.
#### Or
File "/home/anlab/anaconda3/envs/bopw/lib/python3.10/site-packages/tensorflow/lite/python/interpreter.py", line 917, in invoke
self._interpreter.Invoke()
RuntimeError: tensorflow/lite/kernels/reshape.cc:85 num_input_elements != num_output_elements (2048 != 4194304)Node number 2 (RESHAPE) failed to invoke.Node number 144 (IF) failed to invoke.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62105/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62105/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62104 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62104/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62104/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62104/events | https://github.com/tensorflow/tensorflow/issues/62104 | 1,941,166,140 | I_kwDOArmXAs5zs9g8 | 62,104 | Unable to change validation dataset for "model.fit()" function after it raises an exception | {
"login": "yashwanth98",
"id": 35037989,
"node_id": "MDQ6VXNlcjM1MDM3OTg5",
"avatar_url": "https://avatars.githubusercontent.com/u/35037989?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yashwanth98",
"html_url": "https://github.com/yashwanth98",
"followers_url": "https://api.github.com/users/yashwanth98/followers",
"following_url": "https://api.github.com/users/yashwanth98/following{/other_user}",
"gists_url": "https://api.github.com/users/yashwanth98/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yashwanth98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yashwanth98/subscriptions",
"organizations_url": "https://api.github.com/users/yashwanth98/orgs",
"repos_url": "https://api.github.com/users/yashwanth98/repos",
"events_url": "https://api.github.com/users/yashwanth98/events{/privacy}",
"received_events_url": "https://api.github.com/users/yashwanth98/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@SuryanarayanaY I was able to replicate this issue. Please find the [gist](https://colab.research.google.com/gist/sushreebarsa/fc4de78e81b2267dd16fd133c349190a/copy-of-cnn.ipynb#scrollTo=vNVwAMsaNlIV) here. Thank you!",
"I have been digging into the code and I think I found out what the problem is. It appears that the model.fit function caches the validation data as a data handler before executing the model.evaluate function. Normally, this cache is cleared after the evaluate function call. However, when the model.evaluate call encounters an exception, the cache is not cleared, leading to the continued use of the same data for subsequent model.fit calls.\n\nI can work on this issue. Can you please assign it to me?",
"I believe there is a major issue with the Keras `model.fit` module, as I've been experiencing several OOM crashes while using it with the validation parameter on versions 2.13, 2.13.1, and 2.14. Specifically, I've noticed a significant memory growth per epoch in a Linux environment, which can be monitored by running the `free -gh` command in the terminal. \r\n\r\nMoreover, there seems to be an interaction problem between the gradientTape and model.fit with validation data that causes free memory to decline very quickly on consecutive epochs. To recreate this issue, one can use a dataset with one million samples and 1000 classes similar to ImageNet. \r\n\r\nIn Pytorch, there is a zero.grad() method to manage memory, but Keras manages it automatically. Therefore, the Keras `fit` method should resolve the data handler memory management, but it doesn't seem to be doing so effectively. \r\n\r\n@yashwanth98 recommend this page: https://www.tensorflow.org/guide/keras/writing_a_training_loop_from_scratch\r\n@SuryanarayanaY \r\n",
"Related and open cases to the above.\r\n\r\n`Memory leak when using tf.Model and tf.Model.fit() in a loop. clear_session() does not help`\r\nhttps://github.com/tensorflow/tensorflow/issues/61791 \r\n\r\n`Higher Memory Usage with model.predict in Recent TF Versions (TF 2.10, 2.11 etc)`\r\nhttps://github.com/tensorflow/tensorflow/issues/58676\r\n\r\n@yashwanth98 @SuryanarayanaY ",
"> I have been digging into the code and I think I found out what the problem is. It appears that the model.fit function caches the validation data as a data handler before executing the model.evaluate function. Normally, this cache is cleared after the evaluate function call. However, when the model.evaluate call encounters an exception, the cache is not cleared, leading to the continued use of the same data for subsequent model.fit calls.\r\n> \r\n> I can work on this issue. Can you please assign it to me?\r\n\r\nHi @yashwanth98 , Yes model.fit creates a cache of data handler for validation data which will be cleared after completion of all epochs of training. In a case where training not completed due to any reason or exception like reproduced by you the validation data handler object not getting deleted and during next call to `model.fit `as it was already exists there is no new validation data handler object generated and using older object only.This is causing the Graph execution error(due to shape mismatch).",
"@yashwanth98 ,\r\n\r\nThe issue exists in keras_core(multi backend) and needs to be reported on keras repo. Could you please submit an issue with [keras-team/keras](https://github.com/keras-team/keras/issues) repo ?",
"@yashwanth98 ,\r\n\r\nIt was resolved in keras-nightly(3.0.dev version) as per Keras repo PR#[18659](https://github.com/keras-team/keras/pull/18659). Thanks for reporting this. \r\n\r\nShall we mark it as closed now? Please verify and close from your end.",
"@SuryanarayanaY @yashwanth98 - i want to investigate. \r\n@SuryanarayanaY please explain why point to keras vs. tf.keras? Please clarify.",
"@dokutoshi,\r\n\r\nSince Keras (available as ` Keras-nightly(3.0.Dev)` ) now transformed to Multi backend that can support Pytorch,Tensorflow,Jax as well any issues related to tensorflow backend i.e tf.keras module can be handled in tf-keras repo if not related to Keras3. \r\n\r\nAnyways the reported issue fixed in keras-nightly with the PR mentioned in above [comment](https://github.com/tensorflow/tensorflow/issues/62104#issuecomment-1780773667).\r\n\r\n@yashwanth98 ,\r\n\r\nCould you please verify and close the issue and let us know if have any problems still needs a look. Thanks!\r\n\r\n",
"I will look into the solution from Keras. ",
"Hi, I verified the fix and it seems to be working fine now. 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/62104\">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/62104\">No</a>\n"
] | 2023-10-13T03:30:14 | 2023-11-01T16:08:15 | 2023-11-01T16:07:57 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.13.0
### Custom code
Yes
### OS platform and distribution
Google Colab
### Mobile device
_No response_
### Python version
3.10.12
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
When using model.fit() in TensorFlow, the validation data provided as an input parameter is initially used for model evaluation. However, if the initial evaluation fails, subsequent runs of model.fit() still use the previously provided validation data, even if new data is provided.
### Standalone code to reproduce the issue
```shell
The error is quite easy to reproduce. Check the "compile and train section" in the below provided colab.
https://colab.research.google.com/drive/1Es8mQd0FOoWea4SrJ2TDz4NRSx0ZxwEt#scrollTo=08WJXiheNxK7
I modified a tensorflow tutorial colab on CNNs to reproduce this error. In the section i first run the model with correct parameters, then with incorrect and then again with correct parameters but this time it fails.
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62104/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62104/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62103 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62103/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62103/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62103/events | https://github.com/tensorflow/tensorflow/issues/62103 | 1,940,879,796 | I_kwDOArmXAs5zr3m0 | 62,103 | AuditWheel Failures on Build for TensorFlow 2.14 | {
"login": "ohadkatz",
"id": 20158647,
"node_id": "MDQ6VXNlcjIwMTU4NjQ3",
"avatar_url": "https://avatars.githubusercontent.com/u/20158647?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ohadkatz",
"html_url": "https://github.com/ohadkatz",
"followers_url": "https://api.github.com/users/ohadkatz/followers",
"following_url": "https://api.github.com/users/ohadkatz/following{/other_user}",
"gists_url": "https://api.github.com/users/ohadkatz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ohadkatz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ohadkatz/subscriptions",
"organizations_url": "https://api.github.com/users/ohadkatz/orgs",
"repos_url": "https://api.github.com/users/ohadkatz/repos",
"events_url": "https://api.github.com/users/ohadkatz/events{/privacy}",
"received_events_url": "https://api.github.com/users/ohadkatz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 1205615612,
"node_id": "MDU6TGFiZWwxMjA1NjE1NjEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux",
"name": "subtype: ubuntu/linux",
"color": "b619ea",
"default": false,
"description": "Ubuntu/Linux Build/Installation Issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "angerson",
"id": 32465472,
"node_id": "MDQ6VXNlcjMyNDY1NDcy",
"avatar_url": "https://avatars.githubusercontent.com/u/32465472?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/angerson",
"html_url": "https://github.com/angerson",
"followers_url": "https://api.github.com/users/angerson/followers",
"following_url": "https://api.github.com/users/angerson/following{/other_user}",
"gists_url": "https://api.github.com/users/angerson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/angerson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/angerson/subscriptions",
"organizations_url": "https://api.github.com/users/angerson/orgs",
"repos_url": "https://api.github.com/users/angerson/repos",
"events_url": "https://api.github.com/users/angerson/events{/privacy}",
"received_events_url": "https://api.github.com/users/angerson/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "angerson",
"id": 32465472,
"node_id": "MDQ6VXNlcjMyNDY1NDcy",
"avatar_url": "https://avatars.githubusercontent.com/u/32465472?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/angerson",
"html_url": "https://github.com/angerson",
"followers_url": "https://api.github.com/users/angerson/followers",
"following_url": "https://api.github.com/users/angerson/following{/other_user}",
"gists_url": "https://api.github.com/users/angerson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/angerson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/angerson/subscriptions",
"organizations_url": "https://api.github.com/users/angerson/orgs",
"repos_url": "https://api.github.com/users/angerson/repos",
"events_url": "https://api.github.com/users/angerson/events{/privacy}",
"received_events_url": "https://api.github.com/users/angerson/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Thanks for checking out the newer scripts. Sorry that it's not super clear, but they're still under development. They were not the scripts used to build TF 2.14 -- we're aiming to use them for TF 2.16. So they're not guaranteed to work yet.\r\n\r\nI'm guessing this is not working because your build is not using the correct bazelrc settings to select the toolchain present in the container, since the correct toolchain settings have been moving around while these scripts are under development. I think for 2.14 you'd need to make sure that the build is using one of the bazelrcs from the container, e.g. \"--bazelrc=/tf/cpu.bazelrc\", I think. ",
"HI @angerson I attempted to update the build to using the bazelrc's contained within the container, and am still seeing the same auditwheel failure on TF2.14 sigbuild with image being tensorflow/build:2.14-python3.10 . "
] | 2023-10-12T22:14:27 | 2023-10-16T20:53:35 | null | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
TF2.14
### Custom code
No
### OS platform and distribution
Ubuntu 20.04
### Mobile device
_No response_
### Python version
Python3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
_No response_
### Current behavior?
When trying to build TensorFlow 2.14 on the ci/official `wheel.sh` script, we are seeing manylinux failures during the auditwheel check stating that the "presence of too-recent versioned symbols. You'll need to compile the wheel on an older toolchain."
Are there any recommendations to fix this issue for TF2.14 builds?
### Standalone code to reproduce the issue
```shell
Env Vars local:
TF_PYTHON_VERSION=3.10
TFCI_INDEX_HTML_ENABLE=0
TFCI_NIGHTLY_UPDATE_VERSION_ENABLE=0
TFCI_DOCKER_ENABLE=1
PWD=/home/ubuntu/TF/tensorflow/build/logs
LANG=C.UTF-8
TFCI_CAPTURE_LOGS_ENABLE=1
TFCI_UPLOAD_LIB_ENABLE=0
TFCI_DOCKER_IMAGE=tensorflow/build:2.14-python3.10
TFCI_NVIDIA_SMI_ENABLE=0
TFCI_GIT_DIR=<TF_HOME>
TFCI_DOCKER_PULL_ENABLE=0
TFCI_COPYBARA_ENABLE=0
Run:
./ci/official/wheel.sh
```
### Relevant log output
```shell
/root/.cache/bazel/_bazel_root/80314ce22acbaa076a5371cd57252cbd/external/python_x86_64-unknown-linux-gnu/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Thu Oct 12 22:03:56 UTC 2023 : === Output wheel file is in: /home/ubuntu/TF/tensorflow/build
+ tfrun ./ci/official/utilities/rename_and_verify_wheels.sh build
+ docker exec tf ./ci/official/utilities/rename_and_verify_wheels.sh build
+ DIR=build
+ for wheel in $DIR/*.whl
+ echo 'Checking and renaming build/tensorflow-2.14.0-cp310-cp310-linux_x86_64.whl...'
Checking and renaming build/tensorflow-2.14.0-cp310-cp310-linux_x86_64.whl...
+ python3 -m auditwheel repair --plat manylinux2014_x86_64 build/tensorflow-2.14.0-cp310-cp310-linux_x86_64.whl --wheel-dir build
+ tee check.txt
INFO:auditwheel.main_repair:Repairing tensorflow-2.14.0-cp310-cp310-linux_x86_64.whl
usage: __main__.py [-h] [-V] [-v] command ...
__main__.py: error: cannot repair "build/tensorflow-2.14.0-cp310-cp310-linux_x86_64.whl" to "manylinux2014_x86_64" ABI because of the presence of too-recent versioned symbols. You'll need to compile the wheel on an older toolchain.
real 0m26.251s
user 0m23.852s
sys 0m2.388s
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62103/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62103/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62102 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62102/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62102/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62102/events | https://github.com/tensorflow/tensorflow/pull/62102 | 1,940,539,417 | PR_kwDOArmXAs5cqeNp | 62,102 | Update release notes for TensorFlow 2.15.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-10-12T18:15:27 | 2023-10-14T00:18:50 | 2023-10-14T00:18:50 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62102",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62102",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62102.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62102.patch",
"merged_at": "2023-10-14T00:18:49"
} | This PR is intentionally incomplete. One of the Release Owners for 2.15.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/62102/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62102/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62101 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62101/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62101/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62101/events | https://github.com/tensorflow/tensorflow/issues/62101 | 1,940,446,882 | I_kwDOArmXAs5zqN6i | 62,101 | Problemas com instalacao do tensorflow no docker | {
"login": "yurymiguel",
"id": 90262442,
"node_id": "MDQ6VXNlcjkwMjYyNDQy",
"avatar_url": "https://avatars.githubusercontent.com/u/90262442?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yurymiguel",
"html_url": "https://github.com/yurymiguel",
"followers_url": "https://api.github.com/users/yurymiguel/followers",
"following_url": "https://api.github.com/users/yurymiguel/following{/other_user}",
"gists_url": "https://api.github.com/users/yurymiguel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yurymiguel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yurymiguel/subscriptions",
"organizations_url": "https://api.github.com/users/yurymiguel/orgs",
"repos_url": "https://api.github.com/users/yurymiguel/repos",
"events_url": "https://api.github.com/users/yurymiguel/events{/privacy}",
"received_events_url": "https://api.github.com/users/yurymiguel/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"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@yurymiguel,\r\nThe package tensorflow-cpu-aws is meant for **Arm/AArch64** processors and it can't be downloaded in `X86_64` architectures through pip. \r\n\r\nPip will try to resolve the wheels suitable for the particular host platform and if it is not found then it raises the error like no matching distribution found.\r\n\r\nThe pre-built pip wheels for X86_64 built and maintained by tensorflow itself which you can install through pip install tensorflow-cpu and this can be installed on x86_64 machines only.\r\n\r\nCould you please refer the documentation [source](https://www.tensorflow.org/install/pip#linux:~:text=Nightly-,Note%3A%20Starting%20with%20TensorFlow%202.10%2C%20Linux%20CPU%2Dbuilds%20for%20Aarch64,package.%20See%20this%20blog%20post%20for%20more%20information%20about%20this%20collaboration.,-conda%20install%20%2D) for more details.\r\n\r\nThis does not look like a problem that is specific to TensorFlow. I think your problem is all about creating a docker container for a foreign architecture from your x86 machine. In order to do that you need to add qemu to the mix so that there is an environment that allows the docker container to execute.\r\nSee https://www.docker.com/blog/multi-platform-docker-builds/\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/62101\">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/62101\">No</a>\n"
] | 2023-10-12T17:16:38 | 2023-11-10T01:48:23 | 2023-11-10T01:48:21 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
Atual
### Custom code
Yes
### OS platform and distribution
Torizon-Linux arm64
### Mobile device
Linux arm64
### 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 behavior?
Estou tentando construir um docker, mas somente a lib do tensorflow não funciona. Coisa que não acontecia antes, há pouco tempo atrás, eu não tinha nenhum problema. Já tentei diversas coisas como especificar versão do tensorflow, e do tensorflow-cpu-aws no requirements, atualizo o setuptools, construo a wheel, construo o build.
### Standalone code to reproduce the issue
```shell
Antes usando mesma imagem eu não tinha nenhum problema com instalação das libs, agora eu tenho problema somente com a lib do tensorflow.
```
### Relevant log output
```shell
FROM python:3.10
RUN apt-get update && apt-get install -y libgl1-mesa-glx
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install -r requirements.txt
Meu arquivo requirements.txt:
pytorch
keras
pytesseract
joblib
facenet-pytorch
flask-cors
flask
pandas
plotly
opencv-python
folium
socketio
regex
paramiko
joblib
numpy
psycopg2
tensorflow
ERRO:
ERROR: Could not find a version that satisfies the requirement tensorflow-cpu-aws==2.11.1; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64") (from tensorflow) (from versions: 2.9.1, 2.10.0rc0, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0)
ERROR: No matching distribution found for tensorflow-cpu-aws==2.11.1; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64")
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62101/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62101/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62100 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62100/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62100/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62100/events | https://github.com/tensorflow/tensorflow/issues/62100 | 1,940,030,551 | I_kwDOArmXAs5zooRX | 62,100 | Deterministic behavior gets extremely slow with CNNs in TF > 2.13 | {
"login": "erickrf",
"id": 294483,
"node_id": "MDQ6VXNlcjI5NDQ4Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/294483?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/erickrf",
"html_url": "https://github.com/erickrf",
"followers_url": "https://api.github.com/users/erickrf/followers",
"following_url": "https://api.github.com/users/erickrf/following{/other_user}",
"gists_url": "https://api.github.com/users/erickrf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/erickrf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erickrf/subscriptions",
"organizations_url": "https://api.github.com/users/erickrf/orgs",
"repos_url": "https://api.github.com/users/erickrf/repos",
"events_url": "https://api.github.com/users/erickrf/events{/privacy}",
"received_events_url": "https://api.github.com/users/erickrf/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": 1463677878,
"node_id": "MDU6TGFiZWwxNDYzNjc3ODc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:performance",
"name": "type:performance",
"color": "159b2e",
"default": false,
"description": "Performance Issue"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "reedwm",
"id": 6510203,
"node_id": "MDQ6VXNlcjY1MTAyMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reedwm",
"html_url": "https://github.com/reedwm",
"followers_url": "https://api.github.com/users/reedwm/followers",
"following_url": "https://api.github.com/users/reedwm/following{/other_user}",
"gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reedwm/subscriptions",
"organizations_url": "https://api.github.com/users/reedwm/orgs",
"repos_url": "https://api.github.com/users/reedwm/repos",
"events_url": "https://api.github.com/users/reedwm/events{/privacy}",
"received_events_url": "https://api.github.com/users/reedwm/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "reedwm",
"id": 6510203,
"node_id": "MDQ6VXNlcjY1MTAyMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reedwm",
"html_url": "https://github.com/reedwm",
"followers_url": "https://api.github.com/users/reedwm/followers",
"following_url": "https://api.github.com/users/reedwm/following{/other_user}",
"gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reedwm/subscriptions",
"organizations_url": "https://api.github.com/users/reedwm/orgs",
"repos_url": "https://api.github.com/users/reedwm/repos",
"events_url": "https://api.github.com/users/reedwm/events{/privacy}",
"received_events_url": "https://api.github.com/users/reedwm/received_events",
"type": "User",
"site_admin": false
},
{
"login": "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 @erickrf ,\r\n\r\nI have replicated the reported problem and attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/f627915b4bb167190faa73aa179736cd/62100.ipynb) here. With Tf2.9v I can see execution time around 63 sec whereas with TF2.14v estimated time Going to 5 Hours. With tf-nightly its taken 724 seconds.\r\n\r\nWithout `tf.config.experimental.enable_op_determinism()` it seems fine with around 70 sec in all versions.\r\n\r\nThis needs to be checked. Thanks for reporting.\r\n\r\n"
] | 2023-10-12T13:41:59 | 2023-11-29T23:31:57 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.14.0
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 20.04
### Mobile device
_No response_
### Python version
3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
Tesla T4 15 GB
### Current behavior?
When setting up deterministic behavior with `tf.config.experimental.enable_op_determinism()`, a small model with convolution layers gets prohibitively slow.
The same code runs in about 80 seconds without the flag, but over 10 minutes with it. This behavior was not observed in TF 2.8.
The model code is as follows:
```
import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Dense, Embedding, GlobalMaxPooling1D, Conv1D, BatchNormalization, Activation, concatenate, Dropout
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.initializers import Constant
import numpy as np
vocab_size = 200_000
vocab_dim = 100
length1 = 50
length2 = 100
length = 100
num_samples = 100_000
conv_dim = 128
window_sizes = [2, 3, 4, 5]
num_classes = 2000
input_features = [Input(shape=(length1,), dtype="int32"), Input(shape=(length2,), dtype="int32")]
hidden_tensors = []
for feature in input_features:
embeddings = Embedding(vocab_size, vocab_dim)(feature)
for window_size in window_sizes:
convoluted = Conv1D(conv_dim, window_size)(embeddings)
normed = BatchNormalization()(convoluted)
activated = Activation("relu")(normed)
pooled = GlobalMaxPooling1D()(activated)
hidden_tensors.append(pooled)
hidden = Dropout(0.5)(concatenate(hidden_tensors))
outputs = Dense(num_classes, activation='softmax')(hidden)
model = Model(inputs=input_features, outputs=outputs)
model.compile(loss="sparse_categorical_crossentropy", optimizer=Adam(learning_rate=0.001), metrics=['accuracy'])
features1 = np.random.randint(0, vocab_size, size=(num_samples, length1), dtype=np.int32)
features2 = np.random.randint(0, vocab_size, size=(num_samples, length2), dtype=np.int32)
labels = np.random.randint(0, num_classes, size=num_samples)
model.fit([features1, features2], labels, epochs=1, batch_size=256)
```
And I triggered determinism with:
```
tf.keras.utils.set_random_seed(1234)
tf.config.experimental.enable_op_determinism()
```
### Standalone code to reproduce the issue
[Colab notebook](https://colab.research.google.com/drive/16B1zAX24EYLkty6j3FmbecBx-t9jNoFe?usp=sharing)
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62100/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62100/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62099 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62099/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62099/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62099/events | https://github.com/tensorflow/tensorflow/pull/62099 | 1,939,686,157 | PR_kwDOArmXAs5cniTJ | 62,099 | [ROCm] Adaptions necessary for unified blaslt API | {
"login": "pemeliya",
"id": 141146080,
"node_id": "U_kgDOCGm34A",
"avatar_url": "https://avatars.githubusercontent.com/u/141146080?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pemeliya",
"html_url": "https://github.com/pemeliya",
"followers_url": "https://api.github.com/users/pemeliya/followers",
"following_url": "https://api.github.com/users/pemeliya/following{/other_user}",
"gists_url": "https://api.github.com/users/pemeliya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pemeliya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pemeliya/subscriptions",
"organizations_url": "https://api.github.com/users/pemeliya/orgs",
"repos_url": "https://api.github.com/users/pemeliya/repos",
"events_url": "https://api.github.com/users/pemeliya/events{/privacy}",
"received_events_url": "https://api.github.com/users/pemeliya/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": 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 | [
"Thank you for the adjustments. If I understand correctly, this will need to land together with the OpenXLA PR. I will include these changes into the internal change so that both can be landed together.",
"This has been merged in https://github.com/tensorflow/tensorflow/commit/b5953b857b7e8f4f0eb6e67ac7c3c40c9d4ddae3"
] | 2023-10-12T10:26:46 | 2023-10-13T08:25:50 | 2023-10-13T08:25:46 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62099",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62099",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62099.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62099.patch",
"merged_at": null
} |
This PR contains adaptions on TF side required for integration of unified blas-lt API in XLA: https://github.com/openxla/xla/pull/5911 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62099/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62099/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62098 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62098/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62098/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62098/events | https://github.com/tensorflow/tensorflow/issues/62098 | 1,939,302,949 | I_kwDOArmXAs5zl2ol | 62,098 | The configuration file of newer tensorflow versions doesn't provide building with sycl/opencl option. Does newer versions of Tensorflow doesn't provide sycl support? | {
"login": "Varun-pro",
"id": 56366874,
"node_id": "MDQ6VXNlcjU2MzY2ODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/56366874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varun-pro",
"html_url": "https://github.com/Varun-pro",
"followers_url": "https://api.github.com/users/Varun-pro/followers",
"following_url": "https://api.github.com/users/Varun-pro/following{/other_user}",
"gists_url": "https://api.github.com/users/Varun-pro/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varun-pro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varun-pro/subscriptions",
"organizations_url": "https://api.github.com/users/Varun-pro/orgs",
"repos_url": "https://api.github.com/users/Varun-pro/repos",
"events_url": "https://api.github.com/users/Varun-pro/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varun-pro/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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello, @Varun-pro! Could you please refer to [this](https://github.com/tensorflow/tensorflow/issues/41809) issue where it states that after this [commit](https://github.com/tensorflow/tensorflow/commit/3cbb50768909c585d33e99ba10172d1c44c04d6f) the support for sycl has been removed. For opencl as well [this](https://github.com/tensorflow/tensorflow/issues/22) older issue states to refer to [this](https://blog.tensorflow.org/2020/08/faster-mobile-gpu-inference-with-opencl.html) blog. Please have a look. Thank you!",
"Thanks for the reply\r\nAlso does TFLite supports PowerVR and if so then through delegates?",
"@Varun-pro There is no specific support for PowerVR in tflite, please have a look at the official doc [here](https://www.tensorflow.org/lite/performance/gpu) for GPU delegates. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62098\">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/62098\">No</a>\n"
] | 2023-10-12T06:47:22 | 2023-11-02T01:47:31 | 2023-11-02T01:47:28 | NONE | null | null | null | ### Issue type
Support
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.14
### Custom code
Yes
### OS platform and distribution
Ubuntu 20.04
### Mobile device
_No response_
### Python version
3.8
### Bazel version
_No response_
### GCC/compiler version
9
### CUDA/cuDNN version
11.8/8.6
### GPU model and memory
NVIDIA RTX 3090 24 GB
### Current behavior?
I am trying to build Tensorflow version 2.14 from source with sycl/opencl support but when I am running the configuration file it isn't showing any sycl support option. So does the newer versions of tensorflow doesn't provide opencl/sycl support?
If they do provide support, how to build newer versions of TF with sycl/opencl support?
### Standalone code to reproduce the issue
```shell
download and unzip the TF 2.14
and run configure file
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62098/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62098/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62097 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62097/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62097/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62097/events | https://github.com/tensorflow/tensorflow/issues/62097 | 1,939,263,773 | I_kwDOArmXAs5zltEd | 62,097 | Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. | {
"login": "jiangshaonian",
"id": 136143946,
"node_id": "U_kgDOCB1kSg",
"avatar_url": "https://avatars.githubusercontent.com/u/136143946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jiangshaonian",
"html_url": "https://github.com/jiangshaonian",
"followers_url": "https://api.github.com/users/jiangshaonian/followers",
"following_url": "https://api.github.com/users/jiangshaonian/following{/other_user}",
"gists_url": "https://api.github.com/users/jiangshaonian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jiangshaonian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jiangshaonian/subscriptions",
"organizations_url": "https://api.github.com/users/jiangshaonian/orgs",
"repos_url": "https://api.github.com/users/jiangshaonian/repos",
"events_url": "https://api.github.com/users/jiangshaonian/events{/privacy}",
"received_events_url": "https://api.github.com/users/jiangshaonian/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": 2915920098,
"node_id": "MDU6TGFiZWwyOTE1OTIwMDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-flex",
"name": "comp:lite-flex",
"color": "2E0DFE",
"default": false,
"description": ""
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @jiangshaonian \r\n\r\nCould you please fill the [template](https://github.com/tensorflow/tensorflow/issues/new?assignees=&labels=comp%3Alite-in-play-services&projects=&template=tflite-in-play-services.md) ignoring play services?\r\n\r\nFor using flex ops for C/C++ we need to enable Flex delegate by linking a TensorFlow Lite Flex delegate shared library. You can build it with Bazel as the following command.\r\n\r\n```\r\nbazel build -c opt --config=monolithic tensorflow/lite/delegates/flex:tensorflowlite_flex\r\n\r\n```\r\n\r\nThanks.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-10-12T06:22:08 | 2023-11-02T01:47:30 | 2023-11-02T01:47:30 | NONE | null | null | null |
ERROR: Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select
ERROR: Node number 13 (FlexTensorArrayV3) failed to prepare.
Problems with calling tesonflowlite in C/C++。Has anyone encountered this problem?? | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62097/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62097/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62096 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62096/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62096/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62096/events | https://github.com/tensorflow/tensorflow/issues/62096 | 1,939,199,725 | I_kwDOArmXAs5zldbt | 62,096 | Unit tests failed on some Intel Sapphire Rapids CPUs due to wrong reference results from numpy 1.23.5 | {
"login": "wenchenvincent",
"id": 32376000,
"node_id": "MDQ6VXNlcjMyMzc2MDAw",
"avatar_url": "https://avatars.githubusercontent.com/u/32376000?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wenchenvincent",
"html_url": "https://github.com/wenchenvincent",
"followers_url": "https://api.github.com/users/wenchenvincent/followers",
"following_url": "https://api.github.com/users/wenchenvincent/following{/other_user}",
"gists_url": "https://api.github.com/users/wenchenvincent/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wenchenvincent/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wenchenvincent/subscriptions",
"organizations_url": "https://api.github.com/users/wenchenvincent/orgs",
"repos_url": "https://api.github.com/users/wenchenvincent/repos",
"events_url": "https://api.github.com/users/wenchenvincent/events{/privacy}",
"received_events_url": "https://api.github.com/users/wenchenvincent/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5244472328,
"node_id": "LA_kwDOArmXAs8AAAABOJhMCA",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:cpu-intel",
"name": "subtype:cpu-intel",
"color": "507561",
"default": false,
"description": "To track windows cpu issues"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Since the issue depends mainly on Numpy, let's wait till the Numpy issue to get resolved.",
"@sachinprasadhs It seems that numpy is not going to make new releases for 1.23.* (https://github.com/numpy/numpy/issues/24903#issuecomment-1779586475). Could we move to use 1.24.0 in TF so that we won't be impacted by the bug?",
"@wenchenvincent , Does 1.24.0 has the fix related to this issue?",
"> @wenchenvincent , Does 1.24.0 has the fix related to this issue?\r\n\r\n@sachinprasadhs Yes. Numpy 1.24.0 fixed this issue.",
"Thanks for confirming, but for `TensorFlow` to include `Numpy` 1.24.0 it has to take account of compatibility of all the dependency packages and bump the version, in the upcoming version 2.15.0 `TensorFlow` still uses `Numpy >=1.23.5` and same with the ongoing nightly version as well.\r\n@MichaelHudgins , Is there any plan to bump the `Numpy` version?",
"To my knowledge there was no immediate plan to bump the Numpy version. Let me check with some others on this"
] | 2023-10-12T05:23:55 | 2023-10-26T13:07:53 | null | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
2.15
### Custom code
No
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
This is not an issue with using Tensorflow but an issue of false test failure when running some unit tests (e.g. //tensorflow/python/kernel_tests/math_ops:tensordot_op_test_gpu) due to issues with numpy 1.23.5 on some Intel Sapphire Rapids CPUs, including and not limited to:
Intel(R) Xeon(R) Platinum 8480C
Intel(R) Xeon(R) Platinum 8468
I have filed an issue with numpy, which has more details on the numpy bug (https://github.com/numpy/numpy/issues/24903).
Currently, Tensorflow uses numpy 1.23.5 when running unit tests via bazel (https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/blob/develop-upstream/requirements_lock_3_10.txt#L287). For some tests like //tensorflow/python/kernel_tests/math_ops:tensordot_op_test_gpu, it uses the results from numpy as reference. When running on systems with the above described Intel CPUs, the tests would falsely fail.
### Standalone code to reproduce the issue
```shell
## This is modified from tensorflow/tools/ci_build/linux/gpu/run_py3_core.sh
set -e
set -x
N_JOBS=$(grep -c ^processor /proc/cpuinfo)
echo ""
echo "Bazel will use ${N_JOBS} concurrent job(s)."
echo ""
# Run configure.
export PYTHON_BIN_PATH=`which python3`
export CC_OPT_FLAGS='-mavx'
export TF_NEED_ROCM=0
export TF_NEED_CUDA=1
export TF_CUDA_COMPUTE_CAPABILITIES=9.0 ## Replace with the compute capability of your GPUs
export TF_CUDA_CLANG=0
yes "" | $PYTHON_BIN_PATH configure.py
# Run bazel test command. Double test timeouts to avoid flakes.
bazel test --config=cuda --test_tag_filters=-no_oss,-oss_excluded,-oss_serial,-no_gpu,-benchmark-test -k \
--test_lang_filters=py --jobs=${N_JOBS} --test_timeout 300,450,1200,3600 \
--build_tests_only --test_output=errors --local_test_jobs=8 --config=opt \
--test_size_filters=small,medium \
--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute -- \
//tensorflow/python/kernel_tests/math_ops:tensordot_op_test_gpu
```
### Relevant log output
```shell
[ RUN ] TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False
INFO:tensorflow:Running test_tensordot_scalar_axes in GRAPH mode.
I1012 05:21:54.708423 139914706186240 test_util.py:1521] Running test_tensordot_scalar_axes in GRAPH mode.
2023-10-12 05:21:54.715617: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1929] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 78659 MB memory: -> device: 0, name: NVIDIA H100 80GB HBM3, pci bus id: 0000:5d:00.0, compute capability: 9.0
INFO:tensorflow:time(__main__.TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False): 5.42s
I1012 05:22:00.128815 139914706186240 test_util.py:2574] time(__main__.TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False): 5.42s
INFO:tensorflow:Running test_tensordot_scalar_axes in EAGER mode.
I1012 05:22:00.129978 139914706186240 test_util.py:1540] Running test_tensordot_scalar_axes in EAGER mode.
INFO:tensorflow:time(__main__.TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False): 5.11s
I1012 05:22:05.238928 139914706186240 test_util.py:2574] time(__main__.TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False): 5.11s
No pending test case: __main__.TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False
======================================================================
FAIL: test_test_tensordot_scalar_axes_float64_5_5_5_False (__main__.TensordotTest) [graph_mode]
TensordotTest.test_test_tensordot_scalar_axes_float64_5_5_5_False
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 1535, in decorated
f(self, *args, **kwargs)
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 2436, in decorated
f(self, *args, **kwargs)
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/kernel_tests/math_ops/tensordot_op_test.py", line 226, in test_tensordot_scalar_axes
self.assertAllClose(tf_ans, np_ans, rtol=tol, atol=tol)
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 1657, in decorated
return f(*args, **kwds)
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 3293, in assertAllClose
self._assertAllCloseRecursive(a, b, rtol=rtol, atol=atol, msg=msg)
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 3249, in _assertAllCloseRecursive
self._assertArrayLikeAllClose(
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/org_tensorflow/tensorflow/python/framework/test_util.py", line 3186, in _assertArrayLikeAllClose
np.testing.assert_allclose(
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/pypi_numpy/site-packages/numpy/testing/_private/utils.py", line 1527, in assert_allclose
assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
File "/root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/python/kernel_tests/math_ops/tensordot_op_test_gpu.runfiles/pypi_numpy/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-12, atol=1e-12
Mismatched value: a is different from b.
not close where = (array([0, 0, 0, ..., 4, 4, 4]), array([0, 0, 0, ..., 4, 4, 4]), array([0, 0, 0, ..., 4, 4, 4]), array([0, 0, 0, ..., 4, 4, 4]), array([0, 0, 0, ..., 4, 4, 4]), array([0, 0, 0, ..., 4, 4, 4]), array([2, 2, 2, ..., 2, 2, 3]), array([0, 1, 2, ..., 3, 4, 0]))
not close lhs = [ 1.62769716 -0.26834483 0.47169531 ... 0.99900873 0.74603632
-1.2264429 ]
not close rhs = [-0.02489534 1.05437826 -1.4554834 ... 0.14947069 1.62145362
-0.23293471]
not close dif = [1.65259251 1.32272308 1.92717871 ... 0.84953805 0.8754173 0.99350819]
not close tol = [1.02489534e-12 2.05437826e-12 2.45548340e-12 ... 1.14947069e-12
2.62145362e-12 1.23293471e-12]
dtype = float64, shape = (5, 5, 5, 5, 5, 5, 5, 5)
Mismatched elements: 315000 / 390625 (80.6%)
Max absolute difference: 4.74676846
Max relative difference: 795311.53094219
x: array([[[[[[[[ 9.517157e-01, -4.421175e-01, -5.290973e-01,
-9.733468e-01, -9.410919e-02],
[-3.183883e-01, -1.084177e+00, -6.588139e-01,...
y: array([[[[[[[[ 9.517157e-01, -4.421175e-01, -5.290973e-01,
-9.733468e-01, -9.410919e-02],
[-3.183883e-01, -1.084177e+00, -6.588139e-01,...
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62096/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62096/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62095 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62095/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62095/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62095/events | https://github.com/tensorflow/tensorflow/issues/62095 | 1,938,687,583 | I_kwDOArmXAs5zjgZf | 62,095 | WSL2 tensorflow install not working | {
"login": "Syndicateeee",
"id": 64731985,
"node_id": "MDQ6VXNlcjY0NzMxOTg1",
"avatar_url": "https://avatars.githubusercontent.com/u/64731985?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Syndicateeee",
"html_url": "https://github.com/Syndicateeee",
"followers_url": "https://api.github.com/users/Syndicateeee/followers",
"following_url": "https://api.github.com/users/Syndicateeee/following{/other_user}",
"gists_url": "https://api.github.com/users/Syndicateeee/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Syndicateeee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Syndicateeee/subscriptions",
"organizations_url": "https://api.github.com/users/Syndicateeee/orgs",
"repos_url": "https://api.github.com/users/Syndicateeee/repos",
"events_url": "https://api.github.com/users/Syndicateeee/events{/privacy}",
"received_events_url": "https://api.github.com/users/Syndicateeee/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": 4257391797,
"node_id": "LA_kwDOArmXAs79wqS1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/wsl2",
"name": "wsl2",
"color": "A352E6",
"default": false,
"description": "Windows Subsystem for Linux"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Syndicateeee ,\r\n\r\nCould you please confirm the installation command you have used ? Is it `python3 -m pip install tensorflow[and-cuda]` ??\r\n\r\nAlso please note that above command will fetch the required cuda,cudnn libraries automatically. So please don't install any cuda libraries separately as it seems duplicating the registries. Only you need to install suitable CUDA driver manually and then all required CUDA toolkit shall be imported along with tensorflow if used above command.\r\n\r\nThank you.\r\n",
"@SuryanarayanaY yes this is the exact command, i also tried it with docker desktop on windows and docker in wsl2. windows wont boot at all which is fine probably misconfigured and wsl2 also yields the same error.",
"@Syndicateeee ,\r\n\r\nI hope you have deleted any CUDA libraries that is installed manually except those bundled with tensorflow[and-cuda].Please confirm. Because multiple libraries may cause ambiguity.\r\n\r\nI expect nvidia driver has been installed and running.Please share `nvidia-smi` command output.\r\n\r\nPlease share the environment details using `pip list` .\r\n\r\nI am attaching a relevant issues here #57663 for verifying.\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
"I managed to resolve the issue. Note that im not sure what the issue was in the end. This worked for tensorflow 2.14\r\nMy steps to solving it:\r\n1. installed Ubuntu 20.04 LTS\r\n2. disable nouveau driver [https://askubuntu.com/a/951892](url)\r\n3. install cudaToolkit 11.8 using the .run local installer [https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=runfile_local](url)\r\n4. add cuda path to PATH and LD_LIBRARY_PATH [https://forums.developer.nvidia.com/t/path-ld-library-path/48080](url)\r\n5. install cudnn 8.6 using the installation guide [https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installlinux-deb](url)\r\n6. check if cuda is working `nvcc --version`\r\n7. check if cudnn is working as stated in the install guide. \r\n7.1. if you get an error about FreeImage not being setup correctly [https://forums.developer.nvidia.com/t/freeimage-is-not-set-up-correctly-please-ensure-freeimae-is-set-up-correctly/66950/2?u=tschm300](url)\r\n7.2. If you get an error stating somethin about \"compute_35\" go to cudnn_samples_v8 folder edit the samples common file `sudo nano samples_common.mk ` and at the end where it says `SMS ?=` remove 35 and save.\r\n7.3. if your test passes you have installed cuda and cudnn\r\n8. install anaconda [https://docs.anaconda.com/free/anaconda/install/linux/](url)\r\n9. create anacona environment using `conda create --name tensorflow_001 -c conda-forge python=3.11\r\n`\r\n10. activate conda environment `conda activate tensorflow_001`\r\n11. install tensorflow using `python3 -m pip install tensorflow[and-cuda]`\r\n12. done (note: some infos may be still there)",
"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/62095\">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/62095\">No</a>\n",
"Hello, \r\n\r\nI'm experiencing the same issue and I have already posted in details what I'm dealing with in this [comment](https://github.com/tensorflow/tensorflow/issues/62075#issuecomment-1766011448)\r\n\r\nError:\r\nUnable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered.\r\nUnable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered.\r\nUnable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered.\r\n\r\nOS: Windows 11, WSL 2, Ubuntu 22.04.3 LTS\r\nCUDA Version: 11.8 \r\nCUDNN: 8.7\r\n\r\nI have installed both CUDA and cudnn on WSL globally and then I used anaconda to download TF in a certain env.\r\n\r\nIn a weird way Tensorflow has worked when I used python 3.11 in my env, but then it downloaded TF 2.13, not 2.14, with one warning: tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT.\r\n\r\nHowever, when I used python 3.10 in my env, it downloaded TF 2.14 BUT with the errors above.\r\n\r\nNote: I have already followed the instructions from CUDA and Cudnn very carefully, And used a conda en",
"@FaisalAlj \r\n1. i use cuDNN 8.6\r\n2. for me installing the 11.8 toolkit wasnt enough, i also needed a NVIDIA driver with cuda 11.8 which is 520.61.05\r\n3. this driver only worked on Ubuntu 20.04 supposedly because of the newer Ubuntu kernel in 22.04\r\n4. I gave up on WSL2, went to a close by electronics store, bought a 500gig nvme and installed ubuntu on there\r\n5. If you ensist on using wsl2 please give my guide a shot [https://github.com/tensorflow/tensorflow/issues/62095#issuecomment-1763366758](url)\r\nYou can setup ubuntu 20.04 on wsl2 using `wsl --install -d Ubuntu-20.04` also make sure ur using wsl2 not wsl so after u install `wsl --set-version Ubuntu-20.04 2` not sure if you can install the driver on wsl tho might look for the same nvidia driver for your windows host. When typing `nvidia-smi` in ur terminal it should say CUDA: 11.8."
] | 2023-10-11T20:36:58 | 2023-10-19T11:40:12 | 2023-10-15T11:56:50 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
v2.14.0-rc1-21-g4dacf3f368e 2.14.0
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 22.04.1 on WSL2
### Mobile device
_No response_
### Python version
3.10.12
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
CUDA: 12.2 cudnn: ??
### GPU model and memory
rtx 3090 24gb
### Current behavior?
Im trying to use tensorflow 2 on wsl2. I did the installation as in the tf docs.
After Installing tensorflow on wsl2 and running a test script as stated in the relevant code.
I get this some errors.
I have tried training a simple model with resnet which, at first, didnt work because cudnn was missing. After manually installing cudnn it worked but it feels so sketchy given that it should work without having to install it manually.
Also when I train my model (i dont know if this is normal behaviour) only my vram is used, the compute power of my gpu seems to not be used at all when i look at my taskmanager.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
tf.test.is_built_with_cuda()
```
### Relevant log output
```shell
2023-10-11 22:19:14.589975: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-10-11 22:19:14.590010: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-10-11 22:19:14.590032: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-10-11 22:19:14.593224: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
/usr/lib/python3/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.26.0
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62095/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62095/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62094 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62094/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62094/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62094/events | https://github.com/tensorflow/tensorflow/issues/62094 | 1,938,607,251 | I_kwDOArmXAs5zjMyT | 62,094 | Is there a way to run predict() for the same batch of data on two different sets of weights (same model architecture) | {
"login": "ben-arnao",
"id": 8053809,
"node_id": "MDQ6VXNlcjgwNTM4MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8053809?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ben-arnao",
"html_url": "https://github.com/ben-arnao",
"followers_url": "https://api.github.com/users/ben-arnao/followers",
"following_url": "https://api.github.com/users/ben-arnao/following{/other_user}",
"gists_url": "https://api.github.com/users/ben-arnao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ben-arnao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ben-arnao/subscriptions",
"organizations_url": "https://api.github.com/users/ben-arnao/orgs",
"repos_url": "https://api.github.com/users/ben-arnao/repos",
"events_url": "https://api.github.com/users/ben-arnao/events{/privacy}",
"received_events_url": "https://api.github.com/users/ben-arnao/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
}
] | closed | false | {
"login": "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 | [
"Yes, there's a way to do this by creating multiple instances of a model's architecture and loading different weights for each instance. Then, you can use pridict() method for each of these different instances of the original model for the same batch of data.",
"@ManishSharma1609 each predict would be a separate set of calculations that needs to be run sequentially no? My issue here is that I want the computations to be run in parallel.\r\n\r\nIt *should* be possible as what I am asking about is essentially just one network with the two (or more) networks for nodes being complete separate and only sharing input nodes (think how nodes within CNN are not all connected).",
"@ben-arnao I understand, but i guess predict() method doesn't provide parallelism and to run the computations in parallel we have to use modules like multiprocessing or concurrent.futures or threading libraries.",
"They are very short predictions, loading data into GPU then offloading takes away the benefit of multiprocessing from the tests I've ran, that's why I wanted a more native solution. Since the dimensions are the same and models like a CNN already skip connections it should be possible.",
"@ben-arnao Sorry for the late response!\r\nThere are two ways to run predict() for the same batch of data on two different sets of weights (same model architecture):\r\n\r\nFirstly, you could create multiple instances of the model's architecture and load different weights for each instance. Then, you can use the predict() method for each of these different instances of the original model for the same batch of data. \r\n\r\nSecondly, you can use the set_weights() method to set the weights of the model to the desired set of weights. Then, you can use the predict() method as usual. \r\n\r\nFor any further queries on this please post this issue on TF [Forum](https://discuss.tensorflow.org/) where there is a larger community to get you the right help. Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62094\">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/62094\">No</a>\n",
"> @ben-arnao Sorry for the late response! There are two ways to run predict() for the same batch of data on two different sets of weights (same model architecture):\r\n> \r\n> Firstly, you could create multiple instances of the model's architecture and load different weights for each instance. Then, you can use the predict() method for each of these different instances of the original model for the same batch of data.\r\n> \r\n> Secondly, you can use the set_weights() method to set the weights of the model to the desired set of weights. Then, you can use the predict() method as usual.\r\n> \r\n> For any further queries on this please post this issue on TF [Forum](https://discuss.tensorflow.org/) where there is a larger community to get you the right help. Thank you!\r\n\r\nHi, thanks for the response. I am more asking if there is a way to parallelize the evaluation of different sets of weights. I have been trying to find something to fit my use case but it seems to be unique."
] | 2023-10-11T19:47:19 | 2024-02-10T06:25:48 | 2023-11-14T01:48:25 | CONTRIBUTOR | null | null | null | ### Issue type
Support
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
n/a
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Hi all, sorry If not the write forum to ask such a question, but I am wondering about functionality of TensorFlow.
Basically I want to run the same batch of data, through X different models. These models will have a different set of weights, but are architecturally the same model.
From a technical perspective, I don't see why it is not possible to do in a single set of computations. In practice, it not different than two submodels that share inputs nodes, but the nodes after are just not connected at all, you would have two output nodes (one of each sub-model).
### Standalone code to reproduce the issue
```shell
n/a
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62094/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62094/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62093 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62093/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62093/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62093/events | https://github.com/tensorflow/tensorflow/issues/62093 | 1,938,559,123 | I_kwDOArmXAs5zjBCT | 62,093 | OneRemoteGPUStrategy | {
"login": "arivero",
"id": 43174,
"node_id": "MDQ6VXNlcjQzMTc0",
"avatar_url": "https://avatars.githubusercontent.com/u/43174?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arivero",
"html_url": "https://github.com/arivero",
"followers_url": "https://api.github.com/users/arivero/followers",
"following_url": "https://api.github.com/users/arivero/following{/other_user}",
"gists_url": "https://api.github.com/users/arivero/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arivero/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arivero/subscriptions",
"organizations_url": "https://api.github.com/users/arivero/orgs",
"repos_url": "https://api.github.com/users/arivero/repos",
"events_url": "https://api.github.com/users/arivero/events{/privacy}",
"received_events_url": "https://api.github.com/users/arivero/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": 3797168204,
"node_id": "LA_kwDOArmXAs7iVDBM",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.8",
"name": "TF 2.8",
"color": "5DC9D0",
"default": false,
"description": ""
}
] | open | false | {
"login": "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 | [
"@arivero ,\r\n\r\nIdeally `ParameterServerStrategy` is designed for multi worker training to enable data parallelism which can scale up a machine learning model on multiple machines. With single worker you can't get performance because of communication overhead.\r\n\r\nFor single device training (on same machine), you can use `tf.distribute.MirroredStrategy` or `tf.distribute.OneDeviceStrategy`. For distribution training across multiple workers you can use\r\n` tf.distribute.MultiWorkerMirroredStrategy` .\r\n\r\nAll the above mentioned are synchronous training strategies and `ParameterServerStrategy` is asynchronous which is also under experimental stage only for now.\r\n\r\n",
"@SuryanarayanaY \r\n\r\nThe great point about PSS is that it uses `tf.distribute.Server` in a way such that it does not require to create, install and execute a separate python script in the remote worker to describe and run the model. \r\n\r\nConsider for instance a scenario where the user is running an analysis in a Jupyter notebook in a gpu-less machine, and some other machine offers their GPUS via `tf.distribute.Server`. Currently a `ParameterServerStrategy` can access such GPUs to use them as workers, but no other Strategy can. \r\n\r\nThat should be the role of `OneRemoteGPUStrategy`, it would have the easy use of PSS and the efficiency of `DefaultStrategy`.\r\n\r\nOf course the alternative could be some tweak of PSS parameter update for the special case of only a parameter server and one single worker, or perhaps to force that if zero workers are found, the parameter server could do the calculation. But on the other hand, a specific `OneRemoteGPUStrategy` could be the base for future multiworker strategies using `tf.distribute.Server` in the same way that PSS does.\r\n\r\n",
"@arivero ,\r\n\r\nRightnow `ParameterServerStrategy` is an multi-worker strategy. I am not sure whether this can be tweaked to make it suitable for single worker and also not sure of the drawbacks and how it affects the performance.Escalating the issue to the concern SME to hear from them.\r\n\r\nPlease note that feature requests can be considered based on its impact or how large the community asking for it etc.",
"Thanks. To argue for the feature:\r\n\r\n- the equivalent pathway of launching a RemoteWorker strategy does not use the distribute.Server.\r\n- going tf1.0 and allocating manually the graph in the remote GPU is not covered anymore in any tutorial, and it could be against the current development plans.\r\n- the case use of Jupyter in a gpu-less machine is very frequent, but not unique. Training in datalakes without GPU is also a common thing.\r\n- the final method could benefit not only to mid-large users with mixed datacenters but also small users with access to one or two GPUs in gaming machines, where a full linux deploy is not being considering but a small script with distribute.Server could be."
] | 2023-10-11T19:20:30 | 2023-10-18T09:26:27 | null | NONE | null | null | null | ### Issue type
Feature Request
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.8
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I have been able to run a ParameterServer with only one external worker and an external parameter server in a remote machine. Unfortunately, the communication overhead is very big compared to a local run, for trainings with keras model.fit
I wonder if someone has developed a simpler version of PSS, that executes multiple steps before returning, or that is able to cache the variables to avoid overhead.
### Standalone code to reproduce the issue
```shell
#ideally I want to run the worker similarly to PSS, this is, just setting the TCONFIG and running #Server(), and in the main or coordinator side create the code:
with my_one_remote_machine_strategy:
model.compile(...)
model.fit()
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62093/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62093/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62092 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62092/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62092/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62092/events | https://github.com/tensorflow/tensorflow/issues/62092 | 1,938,449,275 | I_kwDOArmXAs5zimN7 | 62,092 | Internal definition breaks tensorflow-probability | {
"login": "NeilGirdhar",
"id": 730137,
"node_id": "MDQ6VXNlcjczMDEzNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/730137?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NeilGirdhar",
"html_url": "https://github.com/NeilGirdhar",
"followers_url": "https://api.github.com/users/NeilGirdhar/followers",
"following_url": "https://api.github.com/users/NeilGirdhar/following{/other_user}",
"gists_url": "https://api.github.com/users/NeilGirdhar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NeilGirdhar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NeilGirdhar/subscriptions",
"organizations_url": "https://api.github.com/users/NeilGirdhar/orgs",
"repos_url": "https://api.github.com/users/NeilGirdhar/repos",
"events_url": "https://api.github.com/users/NeilGirdhar/events{/privacy}",
"received_events_url": "https://api.github.com/users/NeilGirdhar/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/62092\">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/62092\">No</a>\n"
] | 2023-10-11T18:25:54 | 2023-10-11T19:49:28 | 2023-10-11T19:49:25 | CONTRIBUTOR | null | null | null | Tensorflow-probability's [test](https://github.com/tensorflow/probability/issues/1753#issuecomment-1753993699) is broken, and it appears to be due to a [bad definition in tensorflow](https://github.com/tensorflow/probability/issues/1753#issuecomment-1756359940).
This is preventing the tensorflow-probability team from updating `typing_extensions`, which then breaks upgrading to Python 3.12.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62092/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62092/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62091 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62091/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62091/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62091/events | https://github.com/tensorflow/tensorflow/issues/62091 | 1,938,335,253 | I_kwDOArmXAs5ziKYV | 62,091 | NNAPI delegate crashes on kTfLiteBuiltinCos in TF Lite 2.14 | {
"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": 299643928,
"node_id": "MDU6TGFiZWwyOTk2NDM5Mjg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:contribution%20welcome",
"name": "stat:contribution welcome",
"color": "f4b400",
"default": false,
"description": "Status - Contributions welcome"
},
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 2671354709,
"node_id": "MDU6TGFiZWwyNjcxMzU0NzA5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteNNAPIDelegate",
"name": "TFLiteNNAPIDelegate",
"color": "65916E",
"default": false,
"description": "For issues related to TFLite NNAPI Delegate"
},
{
"id": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "arfaian",
"id": 1106365,
"node_id": "MDQ6VXNlcjExMDYzNjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1106365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arfaian",
"html_url": "https://github.com/arfaian",
"followers_url": "https://api.github.com/users/arfaian/followers",
"following_url": "https://api.github.com/users/arfaian/following{/other_user}",
"gists_url": "https://api.github.com/users/arfaian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arfaian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arfaian/subscriptions",
"organizations_url": "https://api.github.com/users/arfaian/orgs",
"repos_url": "https://api.github.com/users/arfaian/repos",
"events_url": "https://api.github.com/users/arfaian/events{/privacy}",
"received_events_url": "https://api.github.com/users/arfaian/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @brtal \r\n\r\nThanks for the finding. \r\n\r\nIs the error reproducible in the nightly pull as well?\r\n\r\nAre you interested in creating a PR for this?\r\n\r\nThanks.\r\n\r\n",
"Yes it repros in nightly.\r\n\r\n```\r\no1q:/data/local/tmp $ ./benchmark_model_nightly --use_nnapi=true --graph=models/nnapi_cos_bug.tflite \r\nINFO: STARTING!\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [models/nnapi_cos_bug.tflite]\r\nINFO: Use NNAPI: [1]\r\nINFO: NNAPI accelerators available: [qti-default,qti-dsp,qti-gpu,nnapi-reference]\r\nINFO: Loaded model models/nnapi_cos_bug.tflite\r\nINFO: Initialized TensorFlow Lite runtime.\r\nINFO: Created TensorFlow Lite delegate for NNAPI.\r\nINFO: NNAPI delegate created.\r\nWARNING: NNAPI SL driver did not implement SL_ANeuralNetworksDiagnostic_registerCallbacks!\r\nSegmentation fault \r\n```\r\n\r\nOur group does have some patches we would like to contribute back to tensorflow but we don't have any contacts at Google to help coordinate with on this. We would love to make some contacts so we can help facilitate these.\r\n\r\nIn the case of this patch, we don't have a fix for it, so I will decline to put up a PR. A proper fix is more involved and I don't have one prepared and don't really have the time at the moment. If NNAPI doesn't support `cos` natively, then it should be mapped to multiple NNAPI ops to translate it into a `sin`. However, in the immediate term, the [breaking change](https://github.com/tensorflow/tensorflow/commit/4aac8c95b7d7827eedca82a76cb71db1525dafc9) should simply be reverted.\r\n\r\nThanks.",
"@brtal Thanks for the information.\r\n\r\n@pkgoogle Could you please look into this issue?\r\n\r\nThanks.",
"I was able to reproduce with a Pixel 4 API 33 emulator: \r\n[Test62091.zip](https://github.com/tensorflow/tensorflow/files/12922233/Test62091.zip)\r\n\r\n\r\n\r\nI wasn't able to reproduce on a general linux (debian) benchmark_model build that had --use_nnapi=true\r\n\r\n```sh\r\n./benchmark_model --use_nnapi=true --graph=nnapi_cos_bug.tflite\r\nINFO: STARTING!\r\nWARN: Unconsumed cmdline flags: --use_nnapi=true\r\nINFO: Log parameter values verbosely: [0]\r\nINFO: Graph: [nnapi_cos_bug.tflite]\r\nINFO: Loaded model nnapi_cos_bug.tflite\r\nINFO: Created TensorFlow Lite XNNPACK delegate for CPU.\r\nINFO: The input model file size (MB): 0.00066\r\nINFO: Initialized session in 1.257ms.\r\nINFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.\r\nINFO: count=2873432 first=14 curr=1 min=0 max=64 avg=0.0808256 std=0\r\n\r\nINFO: Running benchmark for at least 50 iterations and at least 1 seconds but terminate if exceeding 150 seconds.\r\nINFO: count=5724139 first=1 curr=0 min=0 max=70 avg=0.0812042 std=0\r\n\r\nINFO: Inference timings in us: Init: 1257, First inference: 14, Warmup (avg): 0.0808256, Inference (avg): 0.0812042\r\nINFO: Note: as the benchmark tool itself affects memory footprint, the following is only APPROXIMATE to the actual memory footprint of the model at runtime. Take the information at your discretion.\r\nINFO: Memory footprint delta from the start of the tool (MB): init=2.625 overall=3\r\n```\r\n\r\nHi @arfaian, can you please take a look? Thanks.",
"@pkgoogle fyi - this won't fail on debian because it's an NNAPI-specific failure, which only exists on Android. Note from your `benchmark_model` output, the model is running on XNNPACK not NNAPI.\r\n\r\nThis issue is really straight forward. Just revert the broken commit. :) thanks.",
"Hi @brtal, that commit was there for a reason, so just reverting it will likely cause a regression.. that being said the original author might be available, @freedomtan, would you have any insight on how we may fix your commit to resolve both cases? Thanks for any help you can provide.",
"@pkgoogle and @brtal the cos op works fine on my Pixel 7 Pro. I guess it's an NNAPI API level issue. The math `sin` op, which I used to provide `cos` op, in NNAPI is not available before feature level 3.",
"@freedomtan - respectful, the issue is not in NNAPI, it is in the delegate code modified in the originating change. Specifically, it crashes in `TransformCosIntoSupportedOps` because the `TfLiteTensor` being modified has a null data pointer (because the tensor hasn't been allocated yet). Tensor allocation is meant to happen after delegates have modified the graph.\r\n\r\nMoreover, as per my original description, I don't believe it's appropriate to mutate input data at this stage.\r\n\r\nI suggest you try the `benchmark_model` repro that @pkgoogle supplies above on your device.",
"> @freedomtan - respectful, the issue is not in NNAPI, it is in the delegate code modified in the originating change. Specifically, it crashes in `TransformCosIntoSupportedOps` because the `TfLiteTensor` being modified has a null data pointer (because the tensor hasn't been allocated yet). Tensor allocation is meant to happen after delegates have modified the graph.\r\n> \r\n> Moreover, as per my original description, I don't believe it's appropriate to mutate input data at this stage.\r\n> \r\n> I suggest you try the `benchmark_model` repro that @pkgoogle supplies above on your device.\r\n\r\nThat's interesting. Thanks for the information. I'll check it out. BTW, as far as I can remember. I have unit test for the `cos` op in `nnapi_delegate_test.cc`. I'll check the unit test first, and then check the tensor allocation issue you mentioned.",
"@brtal: you are right. I fixed it in #62139.",
"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/62091\">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/62091\">No</a>\n"
] | 2023-10-11T17:32:53 | 2023-10-23T05:41:38 | 2023-10-23T05:41:36 | NONE | null | null | null | ### Issue type
Bug (segfault!)
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.14
### Custom code
No
### OS platform and distribution
Android 13
### Mobile device
Pixel 4
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
In TF Lite 2.14, the NNAPI delegate was changed to support the cos operator. Unfortunately, it does not work as expected and causes a segfault.
The originating change is https://github.com/tensorflow/tensorflow/commit/4aac8c95b7d7827eedca82a76cb71db1525dafc9.
The repro is easy. Use the below network and run with NNAPI.
The error is in `TransformCosIntoSupportedOps`, which makes the assumption that `theta` is non-null. This causes a null-pointer dereference.
But the problem is bigger than this - the NNAPI delegate should _not_ be modifying static data. This is dangerous and will lead to problems if the node is not accepted by the delegate, or if the execution graph is modified again to use a different delegate.
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
class MyModel(tf.Module):
@tf.function(input_signature=[tf.TensorSpec(shape=[None], dtype=tf.float32)])
def my_operation(self, x):
return tf.cos(x)
model = MyModel()
concrete_func = model.my_operation.get_concrete_function()
converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_func])
tflite_model = converter.convert()
with open("nnapi_cos_bug.tflite", "wb") as f:
f.write(tflite_model)
```
Convert to tflite and load using NNAPI. The application will segfault.
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62091/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62091/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62090 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62090/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62090/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62090/events | https://github.com/tensorflow/tensorflow/pull/62090 | 1,937,951,380 | PR_kwDOArmXAs5chkDD | 62,090 | Avoid overflow problem in math.is_non_decreasing | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | [
"I fix the bug in another PR #62112",
"Closing the PR as it is fixed in another PR mentioned [here](https://github.com/tensorflow/tensorflow/pull/62090#issuecomment-1762710097)."
] | 2023-10-11T14:35:36 | 2023-12-27T23:00:27 | 2023-11-16T06:53:43 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62090",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62090",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62090.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62090.patch",
"merged_at": null
} | The API `tf.math.is_non_decreasing` returns `True` with `unsigned` input dtypes even though the input have decreasing values. This is because of the overflow that happens at this line of code.
https://github.com/tensorflow/tensorflow/blob/4dacf3f368eb7965e9b5c3bbdd5193986081c3b2/tensorflow/python/ops/check_ops.py#L1947
Hence proposing to cast the input to signed dtype in case if it is unsigned.This will potentially avoid overflow error.
Fixes #62072. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62090/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62090/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62089 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62089/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62089/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62089/events | https://github.com/tensorflow/tensorflow/issues/62089 | 1,937,681,863 | I_kwDOArmXAs5zfq3H | 62,089 | Failed to determine best cudnn convolution algorithm when using mixed_float16 policy | {
"login": "shkarupa-alex",
"id": 1289725,
"node_id": "MDQ6VXNlcjEyODk3MjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1289725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shkarupa-alex",
"html_url": "https://github.com/shkarupa-alex",
"followers_url": "https://api.github.com/users/shkarupa-alex/followers",
"following_url": "https://api.github.com/users/shkarupa-alex/following{/other_user}",
"gists_url": "https://api.github.com/users/shkarupa-alex/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shkarupa-alex/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shkarupa-alex/subscriptions",
"organizations_url": "https://api.github.com/users/shkarupa-alex/orgs",
"repos_url": "https://api.github.com/users/shkarupa-alex/repos",
"events_url": "https://api.github.com/users/shkarupa-alex/events{/privacy}",
"received_events_url": "https://api.github.com/users/shkarupa-alex/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 5508003926,
"node_id": "LA_kwDOArmXAs8AAAABSE14Vg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.13",
"name": "TF 2.13",
"color": "B13ACB",
"default": false,
"description": "For issues related to Tensorflow 2.13"
}
] | open | false | {
"login": "reedwm",
"id": 6510203,
"node_id": "MDQ6VXNlcjY1MTAyMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reedwm",
"html_url": "https://github.com/reedwm",
"followers_url": "https://api.github.com/users/reedwm/followers",
"following_url": "https://api.github.com/users/reedwm/following{/other_user}",
"gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reedwm/subscriptions",
"organizations_url": "https://api.github.com/users/reedwm/orgs",
"repos_url": "https://api.github.com/users/reedwm/repos",
"events_url": "https://api.github.com/users/reedwm/events{/privacy}",
"received_events_url": "https://api.github.com/users/reedwm/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "reedwm",
"id": 6510203,
"node_id": "MDQ6VXNlcjY1MTAyMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6510203?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reedwm",
"html_url": "https://github.com/reedwm",
"followers_url": "https://api.github.com/users/reedwm/followers",
"following_url": "https://api.github.com/users/reedwm/following{/other_user}",
"gists_url": "https://api.github.com/users/reedwm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reedwm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reedwm/subscriptions",
"organizations_url": "https://api.github.com/users/reedwm/orgs",
"repos_url": "https://api.github.com/users/reedwm/repos",
"events_url": "https://api.github.com/users/reedwm/events{/privacy}",
"received_events_url": "https://api.github.com/users/reedwm/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@sachinprasadhs I was able to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/6fdcee7ffcbc7773d8dcf8ff7b65524c/failed-to-determine-best-cudnn-convolution-algorithm.ipynb#scrollTo=KuFHU9kYs24S). Thank you!",
"It seems to be a problem with XLA. When `jit_compile` is set to `False`, the mixed_float16 behaves as expected. @shkarupa-alex Could you please confirm if this solution works for you? After confirmation, we can investigate the underlying issue in XLA.",
"@kaixih i confirm that issue raises only when precision policy is mixed_float16 and jit_compile=True.\r\nIn all other cases it works well.\r\n\r\nBut i need both mixed_float16 and jit_compile=True.\r\nIn my models i see that with jit_compile=True batch size could be twice larger then with autoclustering",
"Certainly. We are investigating whether the problem lies in the jit compilation or if it is related to an issue with the Nvidia library. Rest assured, we are actively working on resolving this issue and will keep you informed of any progress. Thank you for your patience.",
"There is another error message in TF 2.15 + cuda 12.2:\r\n```\r\nINFO:tensorflow:Mixed precision compatibility check (mixed_float16): OK\r\nYour GPU will likely run quickly with dtype policy mixed_float16 as it has compute capability of at least 7.0. Your GPU: NVIDIA GeForce RTX 4090, compute capability 8.9\r\nloc(loc(\"\"ddoott..5587\"\")): : error: error: ''arith.mulfarith.mulf' op ' op requires the same type for all operands and resultsrequires the same type for all operands and results\r\n\r\nF0000 00:00:1700554808.926726 189829 ir_emitter_triton.cc:1672] Check failed: mlir::succeeded(mlir::verify(*triton_module)) \r\nF0000 00:00:1700554808.926724 189834 ir_emitter_triton.cc:1672] Check failed: mlir::succeeded(mlir::verify(*triton_module)) \r\n```"
] | 2023-10-11T12:42:52 | 2023-11-21T08:21:47 | null | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
binary
### TensorFlow version
'v2.13.0-rc2-7-g1cb1a030a62', '2.13.0'
### Custom code
Yes
### OS platform and distribution
Google Colab
### Mobile device
No
### Python version
Google Colab default
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
Google Colab default
### GPU model and memory
Google Colab default
### Current behavior?
When using depthwise conv inside custom attention (https://arxiv.org/pdf/2304.04237.pdf) layer with **mixed_float16** policy got "Failed to determine best cudnn convolution algorithm".
There is no such error with full precision.
### Standalone code to reproduce the issue
```shell
https://colab.research.google.com/drive/1vsdCr_Mus9N6xax1vKjDvN093dh5F6rO?usp=sharing
```
### Relevant log output
```shell
---------------------------------------------------------------------------
UnknownError Traceback (most recent call last)
<ipython-input-3-32ea805343ae> in <cell line: 23>()
21 # Train
22 model.compile(loss='sparse_categorical_crossentropy', optimizer='adam', run_eagerly=False, jit_compile=True)
---> 23 model.fit(ds_train, epochs=1, steps_per_epoch=20)
1 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
51 try:
52 ctx.ensure_initialized()
---> 53 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
54 inputs, attrs, num_outputs)
55 except core._NotOkStatusException as e:
UnknownError: Graph execution error:
Detected at node 'StatefulPartitionedCall' defined at (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/dist-packages/colab_kernel_launcher.py", line 37, in <module>
ColabKernelApp.launch_instance()
File "/usr/local/lib/python3.10/dist-packages/traitlets/config/application.py", line 992, in launch_instance
app.start()
File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelapp.py", line 619, in start
self.io_loop.start()
File "/usr/local/lib/python3.10/dist-packages/tornado/platform/asyncio.py", line 195, in start
self.asyncio_loop.run_forever()
File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
handle._run()
File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py", line 685, in <lambda>
lambda f: self._run_callback(functools.partial(callback, future))
File "/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 825, in inner
self.ctx_run(self.run)
File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 786, in run
yielded = self.gen.send(value)
File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 361, in process_one
yield gen.maybe_future(dispatch(*args))
File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
yielded = ctx_run(next, result)
File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 261, in dispatch_shell
yield gen.maybe_future(handler(stream, idents, msg))
File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
yielded = ctx_run(next, result)
File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 539, in execute_request
self.do_execute(
File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
yielded = ctx_run(next, result)
File "/usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py", line 302, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/usr/local/lib/python3.10/dist-packages/ipykernel/zmqshell.py", line 539, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 2975, in run_cell
result = self._run_cell(
File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3030, in _run_cell
return runner(coro)
File "/usr/local/lib/python3.10/dist-packages/IPython/core/async_helpers.py", line 78, in _pseudo_sync_runner
coro.send(None)
File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3257, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3473, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-32ea805343ae>", line 23, in <cell line: 23>
model.fit(ds_train, epochs=1, steps_per_epoch=20)
File "/usr/local/lib/python3.10/dist-packages/keras/src/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1742, in fit
tmp_logs = self.train_function(iterator)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1338, in train_function
return step_function(self, iterator)
File "/usr/local/lib/python3.10/dist-packages/keras/src/engine/training.py", line 1322, in step_function
outputs = model.distribute_strategy.run(run_step, args=(data,))
Node: 'StatefulPartitionedCall'
Failed to determine best cudnn convolution algorithm for:
%cudnn-conv.19 = (f16[8,128,128,64]{3,2,1,0}, u8[0]{0}) custom-call(f16[8,128,128,1600]{3,2,1,0} %bitcast.959, f16[64,5,5,32]{3,2,1,0} %pad.15), window={size=5x5 pad=2_2x2_2}, dim_labels=b01f_o01i->b01f, feature_group_count=64, custom_call_target="__cudnn$convForward", metadata={op_type="DepthwiseConv2dNativeBackpropInput" op_name="gradient_tape/model_1/slide_attention_1/depthwise/DepthwiseConv2dNativeBackpropInput" source_file="/usr/local/lib/python3.10/dist-packages/keras/src/optimizers/optimizer.py" source_line=276}, backend_config="{\"conv_result_scale\":1,\"activation_mode\":\"0\",\"side_input_scale\":0}"
Original error: UNKNOWN: CUDNN_STATUS_BAD_PARAM
in tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc(3999): 'op' CUDNN_BACKEND_OPERATION: cudnnFinalize Failed
To ignore this failure and try to use a fallback algorithm (which may have suboptimal performance), use XLA_FLAGS=--xla_gpu_strict_conv_algorithm_picker=false. Please also file a bug for the root cause of failing autotuning.
[[{{node StatefulPartitionedCall}}]] [Op:__inference_train_function_4989]
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62089/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62089/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62088 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62088/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62088/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62088/events | https://github.com/tensorflow/tensorflow/issues/62088 | 1,937,620,171 | I_kwDOArmXAs5zfbzL | 62,088 | Shape inference for tf.gather is inconsistent with/without --tf_mlir_enable_mlir_bridge | {
"login": "tqxia",
"id": 44689929,
"node_id": "MDQ6VXNlcjQ0Njg5OTI5",
"avatar_url": "https://avatars.githubusercontent.com/u/44689929?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tqxia",
"html_url": "https://github.com/tqxia",
"followers_url": "https://api.github.com/users/tqxia/followers",
"following_url": "https://api.github.com/users/tqxia/following{/other_user}",
"gists_url": "https://api.github.com/users/tqxia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tqxia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tqxia/subscriptions",
"organizations_url": "https://api.github.com/users/tqxia/orgs",
"repos_url": "https://api.github.com/users/tqxia/repos",
"events_url": "https://api.github.com/users/tqxia/events{/privacy}",
"received_events_url": "https://api.github.com/users/tqxia/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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | closed | false | {
"login": "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 | [
"Personally I digged into this issue a little bit.\r\n\r\nWhen mlir bridge is enabled, ops roughly go through the following transformations:\r\n\r\ngraph -> tf dialect -> mhlo dialect -> xla hlo dialect -> some backend stuff...\r\n\r\nTaking gather as an example, after transforming to tf.GatherV2, TensorFlowShapeInferencePass will be run at some stage to do shape inference. This pass eventually invokes GatherV2's OpShapeInferenceFn to do the actual work, which deduces the output shape based on the formula:\r\n\r\ndef batched_result_shape(p_shape, i_shape, axis=0, batch_dims=0):\r\n return p_shape[:axis] + i_shape[batch_dims:] + p_shape[axis+1:]\r\n\r\n(https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/gather)\r\n\r\nBut looks like the doc does not tell us what to do when the batch_dim dimensions of params and indices disagree.\r\n\r\nShould the formula be updated to something like:\r\n\r\ndef batched_result_shape(p_shape, i_shape, axis=0, batch_dims=0):\r\n return i_shape[:batch_dims] + p_shape[batch_dims:axis] + i_shape[batch_dims:] + p_shape[axis+1:] \r\n\r\nor, should we just add a validation check to count the mismatch of batch_dim dimensions of params and indices?",
"Hello, @tqxia! Sorry for the late response!\r\nI was able to replicate the issue reported [here](https://colab.research.google.com/gist/sushreebarsa/fc5e05758acca39bfb53fc14f1497f39/62088.ipynb). \r\nCould you please share the complete error log here which will help us to analyze this ticket?\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/62088\">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/62088\">No</a>\n"
] | 2023-10-11T12:07:56 | 2023-11-14T01:48:31 | 2023-11-14T01:48:27 | CONTRIBUTOR | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
Yes
### Source
source
### TensorFlow version
tf 2.14
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
3.11
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Please refer to the "Relevant log output" section for detailed description of current behavior.
### Standalone code to reproduce the issue
```shell
# Run the code snippet with the following flags to reproduce the issue:
# TF_XLA_FLAGS="--tf_mlir_enable_mlir_bridge --tf_xla_enable_xla_devices --tf_xla_auto_jit=2 --tf_xla_cpu_global_jit --tf_xla_min_cluster_size=1"
import tensorflow as tf
params = tf.constant([
[0, 0, 1, 0, 2],
[3, 0, 0, 0, 4],
[0, 5, 0, 6, 0]])
indices = tf.constant([
[2, 4],
[0, 4]])
print(tf.gather(params, indices, axis=1, batch_dims=1))
```
### Relevant log output
```shell
When mlir bridge is disabled, the code snippet works without any error. The return value of tf.gather is [[1 2][3 4]]
when mlir bridge is enabled, the code snippet returned with error:
2023-10-11 11:43:24.846292: W tensorflow/core/framework/op_kernel.cc:1839] OP_REQUIRES failed at xla_ops.cc:841 : INVALID_ARGUMENT: Shape used to set computation result layout (s32[3,2]{1,0}) is not compatible with result shape (s32[2,2])
Traceback (most recent call last):
File "/tf/playground/test_gather.py", line 37, in <module>
print(tf.gather(params, indices, validate_indices=True, axis=1, batch_dims=1).numpy())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.11/dist-packages/tensorflow/python/framework/ops.py", line 5888, in raise_from_not_ok_status
raise core._status_to_exception(e) from None # pylint: disable=protected-access
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __wrapped__GatherV2_device_/job:localhost/replica:0/task:0/device:CPU:0}} Shape used to set computation result layout (s32[3,2]{1,0}) is not compatible with result shape (s32[2,2])
[[{{node cluster_1_1/xla_compile}}]] [Op:GatherV2] name:
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62088/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62088/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62087 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62087/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62087/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62087/events | https://github.com/tensorflow/tensorflow/issues/62087 | 1,937,546,520 | I_kwDOArmXAs5zfJ0Y | 62,087 | TFRecordWriter stuck (or very slow) while serializing data, depending on feature transformation type | {
"login": "DominikGithub",
"id": 6154714,
"node_id": "MDQ6VXNlcjYxNTQ3MTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/6154714?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DominikGithub",
"html_url": "https://github.com/DominikGithub",
"followers_url": "https://api.github.com/users/DominikGithub/followers",
"following_url": "https://api.github.com/users/DominikGithub/following{/other_user}",
"gists_url": "https://api.github.com/users/DominikGithub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DominikGithub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DominikGithub/subscriptions",
"organizations_url": "https://api.github.com/users/DominikGithub/orgs",
"repos_url": "https://api.github.com/users/DominikGithub/repos",
"events_url": "https://api.github.com/users/DominikGithub/events{/privacy}",
"received_events_url": "https://api.github.com/users/DominikGithub/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/62087\">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/62087\">No</a>\n"
] | 2023-10-11T11:29:35 | 2023-10-11T13:12:14 | 2023-10-11T13:12:10 | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
2.13
### Custom code
Yes
### OS platform and distribution
ubuntu 22.4
### Mobile device
_No response_
### Python version
3.8.9
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
11.8
### GPU model and memory
_No response_
### Current behavior?
**tf.io.TFRecordWriter** freeze when preprocessing features with **scikit-learn** (**Dask-ML**) **QuantileTranformer**, whereas its working (writing out few k samples within seconds) when using **StandardScaler**.
How might QuantileTransformer produce output data shaped in a way it breaks TFRecords serialization? Might dtype precision influence serialization performance in such criticality?
### Standalone code to reproduce the issue
```shell
(reduced pseudo code)
# fit scalers
#### NOTE Option 1: using this scaler breaks TF records writer!
feat_standardizer = dask_QuantileTransformer(output_distribution=standardizer_distribution,
n_quantiles=n_feat_standardizer_quantils,
subsample=n_fit_samples, copy=False)
# NOTE Option 2: Using this one works for TF records writer
feat_standardizer = dask_StandardScaler(copy=False)
## from here proceed the same way until TF data serialization as TFRecord files
x_train_future = dask_client.scatter(x_train_arr)
feat_standardizer = dask_client.submit(feat_standardizer.fit, x_train_future).result()
x_train_preproc_future = dask_client.submit(feat_standardizer.transform, x_train_future)
x_train_dask_arr = dask_client.gather(x_train_preproc_future)
....
# Transform training data (in chuncks of subsets of the total training dataset)
X_train_future = dask_client.scatter(x_train_arr_transform_batch)
X_train_future = dask_client.submit(feat_standardizer.transform, X_train_future)
X_train_future = dask_client.submit(feat_normalizer.transform, X_train_future)
x_train_arr_transform_batch = dask_client.gather(X_train_future)
# reshape features: (sample * time, feat) -> (sample, time, feat)
X_train = x_train_arr_transform_batch.reshape((n_train_samples, n_steps, n_feat))
# cast numpy default precision float64 -> TF float32
X_train = X_train.astype(np.float32)
y_train = y_train.astype(np.int64)
def array_to_tfrecords(X, y):
feature_dict = {
'X': tf.train.Feature(float_list=tf.train.FloatList(value=X.flatten())),
'y': tf.train.Feature(int64_list=tf.train.Int64List(value=y.flatten()))
}
example = tf.train.Example(features=tf.train.Features(feature=feature_dict))
return example.SerializeToString()
tf.io.TFRecordWriter(tfrecords_file_path, options=tf.io.TFRecordOptions(compression_type='ZLIB', compression_level=7)) as writer:
for x, y in tqdm(zip(X_train, y_train)): # <---- no progress visible here when using QuantileTransformer!
serialized = array_to_tfrecords(x, y)
writer.write(serialized)
```
### Relevant log output
```shell
No output visible. The script just never continues and freeze while pretending to serialize data
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62087/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62087/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62086 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62086/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62086/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62086/events | https://github.com/tensorflow/tensorflow/issues/62086 | 1,937,515,501 | I_kwDOArmXAs5zfCPt | 62,086 | Conda-forge doesn't have tensorflow 1.15 anymore? | {
"login": "Lambik",
"id": 467373,
"node_id": "MDQ6VXNlcjQ2NzM3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/467373?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lambik",
"html_url": "https://github.com/Lambik",
"followers_url": "https://api.github.com/users/Lambik/followers",
"following_url": "https://api.github.com/users/Lambik/following{/other_user}",
"gists_url": "https://api.github.com/users/Lambik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lambik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lambik/subscriptions",
"organizations_url": "https://api.github.com/users/Lambik/orgs",
"repos_url": "https://api.github.com/users/Lambik/repos",
"events_url": "https://api.github.com/users/Lambik/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lambik/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": 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": 1548890241,
"node_id": "MDU6TGFiZWwxNTQ4ODkwMjQx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%201.15",
"name": "TF 1.15",
"color": "e99695",
"default": false,
"description": "for issues seen on TF 1.15"
}
] | closed | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi,\r\n\r\nThanks for reporting the issue.\r\n\r\n`conda-forge` is community build TensorFlow which we don't have any control on.\r\n\r\nFor 1.15 version, you can refer to the official `PyPi` release from `TensorFlow` here https://pypi.org/project/tensorflow/1.15.0/.\r\n\r\nHowever, it is suggested to use latest `TensorFlow` (2.14 as of now) for bug fixes and newly added feature and from TensorFlow 2.0 onwards, eager mode is the default behavior.",
"Ok thanks for the information!",
"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/62086\">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/62086\">No</a>\n"
] | 2023-10-11T11:14:22 | 2023-10-18T06:33:56 | 2023-10-18T06:33:53 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
binary
### TensorFlow version
1.15
### Custom code
Yes
### OS platform and distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
I have an old project that uses tensorflow 1.15, but recently I can't install the conda environment for this anymore. The version no longer exists on conda-forge, for some reason?
There are versions 1.14 and lower, and 2.*, but no longer 1.15? Why is that?
### Standalone code to reproduce the issue
```shell
conda create --name tf1 python=3.7
conda activate tf1
conda install -c conda-forge tensorflow=1.15
```
### Relevant log output
```shell
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow=1.15
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62086/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62086/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62085 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62085/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62085/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62085/events | https://github.com/tensorflow/tensorflow/issues/62085 | 1,937,181,451 | I_kwDOArmXAs5zdwsL | 62,085 | Tensorflow build with sycl and ComputeCPP throwing error "missing value for mandatory attribute 'toolchain_config' in 'cc_toolchain' rule" | {
"login": "Varun-pro",
"id": 56366874,
"node_id": "MDQ6VXNlcjU2MzY2ODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/56366874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Varun-pro",
"html_url": "https://github.com/Varun-pro",
"followers_url": "https://api.github.com/users/Varun-pro/followers",
"following_url": "https://api.github.com/users/Varun-pro/following{/other_user}",
"gists_url": "https://api.github.com/users/Varun-pro/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Varun-pro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Varun-pro/subscriptions",
"organizations_url": "https://api.github.com/users/Varun-pro/orgs",
"repos_url": "https://api.github.com/users/Varun-pro/repos",
"events_url": "https://api.github.com/users/Varun-pro/events{/privacy}",
"received_events_url": "https://api.github.com/users/Varun-pro/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": 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": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sushreebarsa",
"id": 84765720,
"node_id": "MDQ6VXNlcjg0NzY1NzIw",
"avatar_url": "https://avatars.githubusercontent.com/u/84765720?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sushreebarsa",
"html_url": "https://github.com/sushreebarsa",
"followers_url": "https://api.github.com/users/sushreebarsa/followers",
"following_url": "https://api.github.com/users/sushreebarsa/following{/other_user}",
"gists_url": "https://api.github.com/users/sushreebarsa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sushreebarsa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sushreebarsa/subscriptions",
"organizations_url": "https://api.github.com/users/sushreebarsa/orgs",
"repos_url": "https://api.github.com/users/sushreebarsa/repos",
"events_url": "https://api.github.com/users/sushreebarsa/events{/privacy}",
"received_events_url": "https://api.github.com/users/sushreebarsa/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hello, @Varun-pro! \r\nThank you for raising the issue! We could see you are using TF v2.3, which is an older version and not actively supported. Could you please have a look at this [doc](https://www.tensorflow.org/install/source) and try to build TF using the latest TF version?\r\nThank you!",
"Thanks for the fast reply\r\nI want to build tensorflow from source with sycl support and when I'm running the configure file of new tensorflow versions , It's not showing sycl support option . That's why I have to revert to an old version. \r\nDo you have any idea whether newer versions doesn't support opencl/sycl backend or is there some issue with my hardware. ",
"@Varun-pro There is no further information for supporting sycl as per the issue attached here. \r\nPlease refer to this release [note](https://github.com/tensorflow/tensorflow/releases) for more updates. Please let us know if it helps? Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62085\">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/62085\">No</a>\n"
] | 2023-10-11T08:34:35 | 2023-10-29T01:48:10 | 2023-10-29T01:48:08 | NONE | null | null | null | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.3.0
### Custom code
Yes
### OS platform and distribution
Linux Ubuntu 20.04
### Mobile device
_No response_
### Python version
3.8
### Bazel version
3.1.0
### GCC/compiler version
9
### CUDA/cuDNN version
11.8 / 8.6
### GPU model and memory
RTX 3090- 24 GB
### Current behavior?
I'm trying to build Tensorflow from source with sycl and ComputeCPP backend but when I'm trying to build Tensorflow, I'm getting following errors:
@local_config_sycl//crosstool:cc-compiler-local: missing value for mandatory attribute 'toolchain_config' in 'cc_toolchain' rule
Target '@local_config_sycl//crosstool:empty' contains an error and its package is in error and referenced by '@local_config_sycl//crosstool:cc-compiler-local'
Target '@local_config_sycl//crosstool:cc-compiler-local' contains an error and its package is in error and referenced by '@local_config_sycl//crosstool:toolchain'
/home/vpy2kor/tensorflow-2.3.0/tensorflow/python/BUILD:2998:1: every rule of type cc_binary implicitly depends upon the target '@local_config_sycl//crosstool:toolchain', but this target could not be found because of: Target '@local_config_sycl//crosstool:toolchain' contains an error and its package is in error
### Standalone code to reproduce the issue
```shell
Move to tensorflow folder
Run ./configure and make the necessary checks for sycl and computecpp
Start building tensorflow : bazel build --verbose_failures --jobs=16 //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
_No response_ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62085/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62085/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/62084 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62084/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62084/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62084/events | https://github.com/tensorflow/tensorflow/pull/62084 | 1,936,927,287 | PR_kwDOArmXAs5ceCOW | 62,084 | [oneDNN] Identify new ISA | {
"login": "gaurides",
"id": 42224728,
"node_id": "MDQ6VXNlcjQyMjI0NzI4",
"avatar_url": "https://avatars.githubusercontent.com/u/42224728?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaurides",
"html_url": "https://github.com/gaurides",
"followers_url": "https://api.github.com/users/gaurides/followers",
"following_url": "https://api.github.com/users/gaurides/following{/other_user}",
"gists_url": "https://api.github.com/users/gaurides/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaurides/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaurides/subscriptions",
"organizations_url": "https://api.github.com/users/gaurides/orgs",
"repos_url": "https://api.github.com/users/gaurides/repos",
"events_url": "https://api.github.com/users/gaurides/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaurides/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 @ezhulenev - Can you please share the failures in internal failures in feedback/copybara? Is there something that needs to be fixed?",
"@cantonios - can you please review this PR? is there anything for me to fix? Thanks.",
"Hmm... now that XLA/TSL has been separated out of TF, it looks like we're having issues because this is a cross-cutting change.\r\n\r\nI think you need to create a separate PR on the XLA repo to add the TSL definitions. Then once that's merged, remove that part from this PR and submit only the TF-only changes.\r\n\r\n@jakeharmon8 is that correct?",
"> Hmm... now that XLA/TSL has been separated out of TF, it looks like we're having issues because this is a cross-cutting change.\r\n> \r\n> I think you need to create a separate PR on the XLA repo to add the TSL definitions. Then once that's merged, remove that part from this PR and submit only the TF-only changes.\r\n> \r\n> @jakeharmon8 is that correct?\r\n\r\nok, i will create XLA PR for those 2 files.",
"@cantonios - this is the openXLA PR - This PR is for ISA related changes in XLA part. Earlier they were part of this PR - https://github.com/openxla/xla/pull/7565",
"@cantonios - please let me know if I need to update/fix something for this PR. Thanks."
] | 2023-10-11T06:27:49 | 2023-12-14T21:08:29 | 2023-12-14T21:08:29 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62084",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62084",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62084.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62084.patch",
"merged_at": "2023-12-14T21:08:29"
} | This PR adds code to identify new instruction sets | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62084/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62084/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62083 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62083/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62083/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62083/events | https://github.com/tensorflow/tensorflow/pull/62083 | 1,936,899,282 | PR_kwDOArmXAs5cd76F | 62,083 | [oneDNN] Identify new ISA | {
"login": "gaurides",
"id": 42224728,
"node_id": "MDQ6VXNlcjQyMjI0NzI4",
"avatar_url": "https://avatars.githubusercontent.com/u/42224728?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaurides",
"html_url": "https://github.com/gaurides",
"followers_url": "https://api.github.com/users/gaurides/followers",
"following_url": "https://api.github.com/users/gaurides/following{/other_user}",
"gists_url": "https://api.github.com/users/gaurides/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaurides/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaurides/subscriptions",
"organizations_url": "https://api.github.com/users/gaurides/orgs",
"repos_url": "https://api.github.com/users/gaurides/repos",
"events_url": "https://api.github.com/users/gaurides/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaurides/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1169365682,
"node_id": "MDU6TGFiZWwxMTY5MzY1Njgy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L",
"name": "size:L",
"color": "adafea",
"default": false,
"description": "CL Change Size: Large"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-10-11T06:10:47 | 2023-10-11T06:17:47 | 2023-10-11T06:15:33 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/62083",
"html_url": "https://github.com/tensorflow/tensorflow/pull/62083",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/62083.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/62083.patch",
"merged_at": null
} | This PR adds code to identify new instruction sets | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62083/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62083/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/62082 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/62082/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/62082/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/62082/events | https://github.com/tensorflow/tensorflow/issues/62082 | 1,936,388,602 | I_kwDOArmXAs5zavH6 | 62,082 | Nested ExtensionTypes failing with new __tf_flatten__ / __tf_unflatten__ api | {
"login": "areiner222",
"id": 15827111,
"node_id": "MDQ6VXNlcjE1ODI3MTEx",
"avatar_url": "https://avatars.githubusercontent.com/u/15827111?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/areiner222",
"html_url": "https://github.com/areiner222",
"followers_url": "https://api.github.com/users/areiner222/followers",
"following_url": "https://api.github.com/users/areiner222/following{/other_user}",
"gists_url": "https://api.github.com/users/areiner222/gists{/gist_id}",
"starred_url": "https://api.github.com/users/areiner222/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/areiner222/subscriptions",
"organizations_url": "https://api.github.com/users/areiner222/orgs",
"repos_url": "https://api.github.com/users/areiner222/repos",
"events_url": "https://api.github.com/users/areiner222/events{/privacy}",
"received_events_url": "https://api.github.com/users/areiner222/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": 5922361893,
"node_id": "LA_kwDOArmXAs8AAAABYQASJQ",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF2.14",
"name": "TF2.14",
"color": "b60205",
"default": false,
"description": "For issues related to Tensorflow 2.14.x"
}
] | open | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @areiner222 ,\r\n\r\nI have replicated the reported issue and attached gist for [reference](https://colab.sandbox.google.com/gist/SuryanarayanaY/a31e40d2e2cca8f6c71d5a704eb17240/62082.ipynb#scrollTo=Xg_ZS9IIy1wn). We need to check this.\r\n\r\nThanks!"
] | 2023-10-10T22:43:01 | 2023-10-16T22:17:14 | null | NONE | null | null | null | ### Issue type
Bug
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
tf 2.14
### Custom code
Yes
### OS platform and distribution
Apple Silicon M1
### Mobile device
_No response_
### Python version
3.10
### Bazel version
_No response_
### GCC/compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current behavior?
Nested ExtensionTypes failing with new __tf_flatten__, __tf_unflatten__ api
### Standalone code to reproduce the issue
```shell
import dataclasses
import tensorflow as tf
@dataclasses.dataclass
class MaskedTensor(tf.experimental.ExtensionType):
mask: bool
value: tf.Tensor
def __tf_flatten__(self):
metadata = (self.mask,) # static config.
components = (self.value,) # dynamic values.
return metadata, components
@classmethod
def __tf_unflatten__(cls, metadata, components):
return cls(*metadata, *components)
@dataclasses.dataclass
class MaskedTensorComp(tf.experimental.ExtensionType):
mask: bool
value: tf.Tensor
mt: MaskedTensor
def __tf_flatten__(self):
metadata = (self.mask) # static config.
components = (self.value, self.mt) # dynamic values.
return metadata, components
@classmethod
def __tf_unflatten__(cls, metadata, components):
print('Unflattening MaskedTensorComposite', components, metadata)
return cls(*metadata, *components)
mt0 = MaskedTensor(True, tf.constant(3.))
mt = MaskedTensorComp(False, tf.constant(99.), mt=mt0)
mt_flat = tf.nest.flatten(mt)
mt_recon = tf.nest.pack_sequence_as(mt, mt_flat)
```
```
### Relevant log output
```shell
File ~/mambaforge/envs/_/lib/python3.10/site-packages/tensorflow/python/util/nest.py:538, in pack_sequence_as(structure, flat_sequence, expand_composites)
424 @tf_export("nest.pack_sequence_as")
425 def pack_sequence_as(structure, flat_sequence, expand_composites=False):
426 """Returns a given flattened sequence packed into a given structure.
427
428 Refer to [tf.nest](https://www.tensorflow.org/api_docs/python/tf/nest)
(...)
536 TypeError: `structure` is or contains a dict with non-sortable keys.
537 """
--> 538 return nest_util.pack_sequence_as(
539 nest_util.Modality.CORE, structure, flat_sequence, expand_composites
540 )
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:958, in pack_sequence_as(modality, structure, flat_sequence, expand_composites, sequence_fn)
835 """Returns a given flattened sequence packed into a given structure.
836
837 - For Modality.CORE: Refer to
(...)
955 non-sortable keys.
956 """
957 if modality == Modality.CORE:
--> 958 return _tf_core_pack_sequence_as(
959 structure, flat_sequence, expand_composites, sequence_fn
960 )
961 elif modality == Modality.DATA:
962 return _tf_data_pack_sequence_as(structure, flat_sequence)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:1022, in _tf_core_pack_sequence_as(structure, flat_sequence, expand_composites, sequence_fn)
1015 if len(flat_structure) != len(flat_sequence):
1016 # pylint: disable=raise-missing-from
1017 raise ValueError(
1018 "Could not pack sequence. Structure had %d atoms, but "
1019 "flat_sequence had %d items. Structure: %s, flat_sequence: %s."
1020 % (len(flat_structure), len(flat_sequence), structure, flat_sequence)
1021 )
-> 1022 return sequence_fn(structure, packed)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:336, in sequence_like(instance, args)
334 assert len(args) == 1
335 spec = instance._type_spec # pylint: disable=protected-access
--> 336 return spec._from_components(args[0]) # pylint: disable=protected-access
337 elif _is_type_spec(instance):
338 # Pack a CompositeTensor's components according to a TypeSpec.
339 assert len(args) == 1
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:482, in ExtensionTypeSpec._from_components(self, components)
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
--> 482 value_tuple = nest.pack_sequence_as(spec_tuple, flat)
483 fields = dict(zip(self.__dict__.keys(), value_tuple))
485 # Build the new value. Bypass the constructor (__init__), in case the user
486 # who defined the ExtensionType used a custom constructor.
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest.py:538, in pack_sequence_as(structure, flat_sequence, expand_composites)
424 @tf_export("nest.pack_sequence_as")
425 def pack_sequence_as(structure, flat_sequence, expand_composites=False):
426 """Returns a given flattened sequence packed into a given structure.
427
428 Refer to [tf.nest](https://www.tensorflow.org/api_docs/python/tf/nest)
(...)
536 TypeError: `structure` is or contains a dict with non-sortable keys.
537 """
--> 538 return nest_util.pack_sequence_as(
539 nest_util.Modality.CORE, structure, flat_sequence, expand_composites
540 )
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:958, in pack_sequence_as(modality, structure, flat_sequence, expand_composites, sequence_fn)
835 """Returns a given flattened sequence packed into a given structure.
836
837 - For Modality.CORE: Refer to
(...)
955 non-sortable keys.
956 """
957 if modality == Modality.CORE:
--> 958 return _tf_core_pack_sequence_as(
959 structure, flat_sequence, expand_composites, sequence_fn
960 )
961 elif modality == Modality.DATA:
962 return _tf_data_pack_sequence_as(structure, flat_sequence)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:1006, in _tf_core_pack_sequence_as(structure, flat_sequence, expand_composites, sequence_fn)
1003 return flat_sequence[0]
1005 try:
-> 1006 final_index, packed = _tf_core_packed_nest_with_indices(
1007 structure, flat_sequence, 0, is_nested_fn, sequence_fn
1008 )
1009 if final_index < len(flat_sequence):
1010 raise IndexError
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:679, in _tf_core_packed_nest_with_indices(structure, flat, index, is_nested_fn, sequence_fn)
675 if is_nested_fn(s):
676 new_index, child = _tf_core_packed_nest_with_indices(
677 s, flat, index, is_nested_fn, sequence_fn
678 )
--> 679 packed.append(sequence_fn(s, child))
680 index = new_index
681 else:
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:336, in sequence_like(instance, args)
334 assert len(args) == 1
335 spec = instance._type_spec # pylint: disable=protected-access
--> 336 return spec._from_components(args[0]) # pylint: disable=protected-access
337 elif _is_type_spec(instance):
338 # Pack a CompositeTensor's components according to a TypeSpec.
339 assert len(args) == 1
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:472, in ExtensionTypeSpec._from_components(self, components)
470 spec_tuple = tuple(self.__dict__.values())
471 components_iter = iter(components)
--> 472 flat = [
473 next(components_iter) if isinstance(x, type_spec.TypeSpec) else x
474 for x in nest.flatten(spec_tuple)
475 ]
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
File ~/mambaforge/envs/
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest.py:538, in pack_sequence_as(structure, flat_sequence, expand_composites)
424 @tf_export("nest.pack_sequence_as")
425 def pack_sequence_as(structure, flat_sequence, expand_composites=False):
426 """Returns a given flattened sequence packed into a given structure.
427
428 Refer to [tf.nest](https://www.tensorflow.org/api_docs/python/tf/nest)
(...)
536 TypeError: `structure` is or contains a dict with non-sortable keys.
537 """
--> 538 return nest_util.pack_sequence_as(
539 nest_util.Modality.CORE, structure, flat_sequence, expand_composites
540 )
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:958, in pack_sequence_as(modality, structure, flat_sequence, expand_composites, sequence_fn)
835 """Returns a given flattened sequence packed into a given structure.
836
837 - For Modality.CORE: Refer to
(...)
955 non-sortable keys.
956 """
957 if modality == Modality.CORE:
--> 958 return _tf_core_pack_sequence_as(
959 structure, flat_sequence, expand_composites, sequence_fn
960 )
961 elif modality == Modality.DATA:
962 return _tf_data_pack_sequence_as(structure, flat_sequence)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:1022, in _tf_core_pack_sequence_as(structure, flat_sequence, expand_composites, sequence_fn)
1015 if len(flat_structure) != len(flat_sequence):
1016 # pylint: disable=raise-missing-from
1017 raise ValueError(
1018 "Could not pack sequence. Structure had %d atoms, but "
1019 "flat_sequence had %d items. Structure: %s, flat_sequence: %s."
1020 % (len(flat_structure), len(flat_sequence), structure, flat_sequence)
1021 )
-> 1022 return sequence_fn(structure, packed)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:336, in sequence_like(instance, args)
334 assert len(args) == 1
335 spec = instance._type_spec # pylint: disable=protected-access
--> 336 return spec._from_components(args[0]) # pylint: disable=protected-access
337 elif _is_type_spec(instance):
338 # Pack a CompositeTensor's components according to a TypeSpec.
339 assert len(args) == 1
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:482, in ExtensionTypeSpec._from_components(self, components)
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
--> 482 value_tuple = nest.pack_sequence_as(spec_tuple, flat)
483 fields = dict(zip(self.__dict__.keys(), value_tuple))
485 # Build the new value. Bypass the constructor (__init__), in case the user
486 # who defined the ExtensionType used a custom constructor.
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest.py:538, in pack_sequence_as(structure, flat_sequence, expand_composites)
424 @tf_export("nest.pack_sequence_as")
425 def pack_sequence_as(structure, flat_sequence, expand_composites=False):
426 """Returns a given flattened sequence packed into a given structure.
427
428 Refer to [tf.nest](https://www.tensorflow.org/api_docs/python/tf/nest)
(...)
536 TypeError: `structure` is or contains a dict with non-sortable keys.
537 """
--> 538 return nest_util.pack_sequence_as(
539 nest_util.Modality.CORE, structure, flat_sequence, expand_composites
540 )
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:958, in pack_sequence_as(modality, structure, flat_sequence, expand_composites, sequence_fn)
835 """Returns a given flattened sequence packed into a given structure.
836
837 - For Modality.CORE: Refer to
(...)
955 non-sortable keys.
956 """
957 if modality == Modality.CORE:
--> 958 return _tf_core_pack_sequence_as(
959 structure, flat_sequence, expand_composites, sequence_fn
960 )
961 elif modality == Modality.DATA:
962 return _tf_data_pack_sequence_as(structure, flat_sequence)
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:1006, in _tf_core_pack_sequence_as(structure, flat_sequence, expand_composites, sequence_fn)
1003 return flat_sequence[0]
1005 try:
-> 1006 final_index, packed = _tf_core_packed_nest_with_indices(
1007 structure, flat_sequence, 0, is_nested_fn, sequence_fn
1008 )
1009 if final_index < len(flat_sequence):
1010 raise IndexError
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:679, in _tf_core_packed_nest_with_indices(structure, flat, index, is_nested_fn, sequence_fn)
675 if is_nested_fn(s):
676 new_index, child = _tf_core_packed_nest_with_indices(
677 s, flat, index, is_nested_fn, sequence_fn
678 )
--> 679 packed.append(sequence_fn(s, child))
680 index = new_index
681 else:
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/util/nest_util.py:336, in sequence_like(instance, args)
334 assert len(args) == 1
335 spec = instance._type_spec # pylint: disable=protected-access
--> 336 return spec._from_components(args[0]) # pylint: disable=protected-access
337 elif _is_type_spec(instance):
338 # Pack a CompositeTensor's components according to a TypeSpec.
339 assert len(args) == 1
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:472, in ExtensionTypeSpec._from_components(self, components)
470 spec_tuple = tuple(self.__dict__.values())
471 components_iter = iter(components)
--> 472 flat = [
473 next(components_iter) if isinstance(x, type_spec.TypeSpec) else x
474 for x in nest.flatten(spec_tuple)
475 ]
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
File ~/mambaforge/envs//lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:473, in <listcomp>(.0)
470 spec_tuple = tuple(self.__dict__.values())
471 components_iter = iter(components)
472 flat = [
--> 473 next(components_iter) if isinstance(x, type_spec.TypeSpec) else x
474 for x in nest.flatten(spec_tuple)
475 ]
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
StopIteration:
```/lib/python3.10/site-packages/tensorflow/python/framework/extension_type.py:473, in <listcomp>(.0)
470 spec_tuple = tuple(self.__dict__.values())
471 components_iter = iter(components)
472 flat = [
--> 473 next(components_iter) if isinstance(x, type_spec.TypeSpec) else x
474 for x in nest.flatten(spec_tuple)
475 ]
476 if list(components_iter):
477 raise ValueError(
478 'Cannot build an ExtensionType instance from components '
479 'because more components are provided than the number expected '
480 'by the type spec.'
481 )
StopIteration:
```
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/62082/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/62082/timeline | null | null | false |
Subsets and Splits